SyniServiceClient class
Device-signed, non-streaming client for Synheart's Syni service.
Chat calls are serialized because they are non-idempotent and session order matters. Session reads may run concurrently; the native runtime already retries those idempotent operations.
Constructors
- SyniServiceClient(SyniServiceTransport _transport)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAvailable → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String?
-
no setter
Methods
-
chat(
String message, {String? sessionId, String? personaId, String? persona, String? modelId, bool includeState = false, Map< String, dynamic> ? context}) → Future<SyniServiceChatResponse> -
closeSession(
String sessionId) → Future< void> -
getSession(
String sessionId) → Future< SyniServiceSession> -
getSessionMessages(
String sessionId, {int limit = 0}) → Future< SyniServiceMessagesPage> -
listSessions(
{int limit = 0}) → Future< List< SyniServiceSession> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startNewSession(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
useSession(
String? sessionId) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited