ManagedSession class final

One managed session: the Agent, its persistent Session, and the metadata that identifies it.

Constructors

ManagedSession({required String id, required Agent agent, required Session session})
Creates a managed session.

Properties

agent → Agent
The agent driving this session.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Session id (uuidv7).
final
isStreaming → bool
Whether the agent is currently streaming.
no setter
persistedCount ↔ int
Number of messages already persisted to session.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
session → Session
The persistent session backing this agent's transcript.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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