AgentSdkInstallableTransport class abstract interface

A transport that can say which kind of unavailable it is, and that can install what it is missing when the user asks it to.

A separate interface rather than two more members on AgentSdkServerTransport, because only the standalone transport has anything to install, and every other implementation — the hosted one, the suites' stand-ins — would carry a member whose only honest body is "nothing". The selector asks with is.

Implemented types
Implementers

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 setterinherited
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 setterinherited
isConnected → bool
Whether a live connection is currently held.
no setterinherited
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 setterinherited
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 setterinherited
unavailableKind → AgentSdkUnavailableKind?
The kind of the last false probe, or null when the last probe succeeded or none has run.
no setter
unavailableReason → String?
Why the last probe answered false, phrased as a remedy.
no setterinherited

Methods

close() → Future<void>
Releases the connection and everything the transport owns — for the standalone path, that includes terminating the child process it started.
inherited
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.
inherited
connect() → Future<void>
Establishes the connection. Throws LlmTransportException with LlmErrorKind.unreachable when no server can be reached.
inherited
install({void onProgress(String line)?}) → Future<AgentSdkInstallOutcome>
Installs the server's dependencies. Never throws: a failed install is an outcome the user is shown, not an error the caller has to catch.
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.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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