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)})
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
- 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
sessionIdhas 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)?}) → Stream<LlmEvent> -
Runs
requestinsessionIdovertransport, understallGap. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited