AgentSdkServerTransport class abstract
The seam. One contract; the hosted and standalone paths implement it and are selected at startup.
- Implementers
Constructors
Properties
- capabilities → LlmCapabilities
-
What the far end can do. Static per transport rather than a wire
round-trip: both transports reach the same Anthropic models
through the same Agent SDK, so the answer is known without asking, and a
capability handshake would invent a question whose answer is fixed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
A stable, human-readable identifier used in diagnostics and in the
settings UI ("AI: connected via …"). Not a display string.
no setter
- isConnected → bool
-
Whether a live connection is currently held.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionNotice → String?
-
Something the user should be told once about a transport that is
working, or null when there is nothing to say.
no setter
- sessionCopy → AgentSdkServerTransport Function()?
-
A function that builds, in another isolate, an unconnected transport
reaching the same far end as this one — what a session isolate
runs on. It captures only values that can be sent to another isolate.
no setter
-
Why the last probe answered false, phrased as a remedy.
no setter
Methods
-
close(
) → Future< void> - Releases the connection and everything the transport owns — for the standalone path, that includes terminating the child process it started.
-
complete(
AgentSdkCompletionRequest request) → Stream< AgentSdkCompletionEvent> - Streams a completion. The stream emits a AgentSdkTrailed for every event in order — text in LlmTextDeltas — and a AgentSdkLiveness whenever the far end is alive and says nothing the trail records. It closes on completion, after LlmRunEnded when the far end reported its end, and emits a LlmTransportException as its error.
-
connect(
) → Future< void> - Establishes the connection. Throws LlmTransportException with LlmErrorKind.unreachable when no server can be reached.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
probe(
) → Future< bool> - Tests reachability without side effects and without throwing.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited