AcpV2ActiveSession class final
A locally routed draft-v2 session.
Properties
-
configOptions
→ List<
SessionConfigOption> ? -
Initial config options.
final
-
events
→ Stream<
AcpV2SessionEvent> -
Broadcast raw event stream; collectors do not consume it.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- newSessionResponse → NewSessionResponse?
-
Creation response, or
nullfor resume.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → SessionId
-
Protocol session identifier.
final
- snapshot → AcpV2SessionSnapshot
-
Latest materialized state.
no setter
Methods
-
cancel(
{AcpJsonObject? meta}) → Future< void> - Sends session cancellation.
-
close(
{CancellationToken? cancellationToken, AcpJsonObject? meta}) → Future< CloseSessionResponse> - Closes the protocol session then disposes local routing.
-
dispose(
) → void - Removes local routing without closing the protocol session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prompt(
{required Iterable< ContentBlock> content, CancellationToken? cancellationToken, AcpJsonObject? meta}) → AcpV2PromptTurn - Starts a turn; acceptance and idle completion remain separate.
-
setConfigOption(
SetSessionConfigOptionRequest request, {CancellationToken? cancellationToken}) → Future< SetSessionConfigOptionResponse> - Sends a generated configuration option update.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited