LLMLabSDK class

Constructors

LLMLabSDK.new({required String apiKey})
const

Properties

apiKey String
final
baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
final

Methods

chatWithAgentFuture({required String model, required List<LlmChatMessage> messages, String? sessionId, String? maxTokens, double? temperature}) Future<Either<String, LlmChatMessage>>
chatWithAgentStream({required String model, required List<LlmChatMessage> messages, String? sessionId, int? maxTokens, double? temperature}) Stream<Either<String, List<LlmChatMessage>>>
handleAssistantResponse({required ChatStreamResponse response, required List<LlmChatMessage> messages}) List<LlmChatMessage>
handleInitialResponse({required ChatStreamResponse response, required List<LlmChatMessage> messages, required dynamic onFirstResponseReceived()}) List<LlmChatMessage>
handleResponse({required bool firstResponseReceived, required List<LlmChatMessage> messages, required ChatStreamResponse response, required dynamic onFirstResponseReceived()}) List<LlmChatMessage>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
upsertVectors({required String collectionId, required Map<String, String>? segments}) Future<Either<String, UpsertResponse>>

Operators

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