LlmClient class abstract
Common interface for all LLM clients in the Vantura framework.
Implementing this interface allows VanturaAgent to interact with various LLM providers (e.g., OpenAI, Anthropic, Gemini) using a unified API.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Closes the client and cleans up any resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendChatRequest(
List< Map< messages, List<String, dynamic> >Map< ? tools, {double? temperature, int? maxCompletionTokens, double? topP, bool? stream, String? reasoningEffort, dynamic stop, CancellationToken? cancellationToken}) → Future<String, dynamic> >Map< String, dynamic> > - Sends a single, complete chat request to the LLM.
-
sendStreamingChatRequest(
List< Map< messages, List<String, dynamic> >Map< ? tools, {double? temperature, int? maxCompletionTokens, double? topP, String? reasoningEffort, dynamic stop, CancellationToken? cancellationToken}) → Stream<String, dynamic> >Map< String, dynamic> > - Sends a streaming chat request to the LLM, yielding chunks as they arrive.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited