ClaudeDatasource class
- Implemented types
Constructors
- ClaudeDatasource(Dio _dio, FlutterSecureStorage _storage)
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
-
isConfigured(
) → Future< bool> -
Whether an API key has been stored.
override
-
listModels(
) → Future< List< AiModel> > -
Fetch available models from the provider's API.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendMessage(
{required String systemPrompt, required List< Map< messages, int maxTokens = 8192}) → Future<String, String> >String> -
Send messages to the Claude Messages API and return the assistant text.
override
-
streamMessage(
{required String systemPrompt, required List< Map< messages, int maxTokens = 8192}) → Stream<String, String> >String> -
Stream a response from the Claude Messages API.
Yields text deltas as they arrive via SSE.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited