StubLlmPort class

Stub LLM port for testing.

Inheritance

Constructors

StubLlmPort()

Properties

capabilities LlmCapabilities
Runtime capabilities of this LLM implementation.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

complete(LlmRequest request) Future<LlmResponse>
Complete a request (required).
override
completeStream(LlmRequest request) Stream<LlmChunk>
Streaming completion (optional - check capabilities.streaming).
inherited
completeWithContext(LlmRequest request, ContextBundle context) Future<LlmResponse>
RAG: Complete with pre-retrieved context (optional - check capabilities.rag).
inherited
completeWithTools(LlmRequest request, List<LlmTool> tools) Future<LlmResponse>
Complete with tool calling (optional - check capabilities.toolCalling).
inherited
embed(String text) Future<List<double>>
Generate text embeddings (optional - check capabilities.embedding).
override
embedBatch(List<String> texts) Future<List<List<double>>>
Batch embeddings for efficiency.
inherited
hasCapability(String capability) bool
Check if a specific capability is supported.
inherited
isAvailable() Future<bool>
Check if the LLM is available.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
similarity(String text1, String text2) Future<double>
Compute semantic similarity using embeddings.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited