AgentSdkSessionManager class final

The sessions of one app.

Constructors

AgentSdkSessionManager({AgentSdkSessionHosting hosting = AgentSdkSessionHosting.isolate, LlmTrails? trails, TomDiagnostics diagnostics = const TomNullDiagnostics(), Duration cancelGrace = const Duration(seconds: 2), Duration? idleClose})

Properties

cancelGrace → Duration
How long a cancelled run may take to stop before its isolate is.
final
diagnostics → TomDiagnostics
Where a run's lifecycle is logged and an unmapped far-end message type is reported, never with any of its text.
final
hashCode → int
The hash code for this object.
no setterinherited
hosting → AgentSdkSessionHosting
Where sessions run.
final
idleClose → Duration?
How long a session may sit without a run before its host is stopped, or null to keep it until dispose.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trails → LlmTrails
The consolidated trails.
final

Methods

debugKill(String sessionId) → void
Stops sessionId's isolate as a death would, for a suite that proves a death is contained.
dispose() → Future<void>
Stops every session and closes trails.
isBusy(String sessionId) → bool
Whether sessionId has a run in progress.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run({required String sessionId, required AgentSdkServerTransport transport, required AgentSdkCompletionRequest request, required List<LlmEvent> prelude, required Duration stallGap, void onFailure(LlmTransportException failure)?, void onConversation(String conversationId)?, bool queueWhenBusy = false}) → Stream<LlmEvent>
Runs request in sessionId over transport, under stallGap.
toString() → String
A string representation of this object.
inherited

Operators

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