VSCodeBridgeAgentSdkTransport class
Production AgentSdkTransport backed by a VSCodeBridgeClient.
Starts/cancels queries and sends streaming input with the client's request
channel, and listens for agentSdk.chunk notifications on the client's
VSCodeBridgeClient.notifications stream. The tom_vscode_bridge CLI
server forwards the *Vce requests to the extension and routes a stream's
chunks and reverse-RPC requests back to the client that started it.
- Implemented types
Constructors
Properties
-
chunks
→ Stream<
Map< String, dynamic> > -
The stream of incoming
agentSdk.chunknotification payloads (the unwrappedparamsmap). Each carries astreamIdplus one of:no setteroverride - client → VSCodeBridgeClient
-
The connected bridge client.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelQuery(
String streamId) → Future< void> -
Aborts the query identified by
streamId(agentSdk.cancelVce).override -
endInput(
String streamId) → Future< void> -
Ends the query's input (
agentSdk.endInputVce). The query then finishes the work it has and completes.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerCanUseTool(
String streamId, CanUseTool callback) → void -
Registers
callbackso incomingagentSdk.canUseToolrequests forstreamIdare dispatched to the query's CanUseTool approval callback (todo #6).override -
registerTools(
String streamId, AgentSdkToolRegistry registry) → void -
Registers
registryso incomingagentSdk.toolCallrequests forstreamIdare dispatched to the query's Dart ToolHandlers (todo #5).override -
sendInput(
String streamId, Map< String, dynamic> message) → Future<void> -
Sends one user message into the query
streamId(agentSdk.inputVce).override -
startQuery(
Map< String, dynamic> params) → Future<void> -
Starts a query on the extension.
paramscarriesstreamId,prompt, and (optionally)options(the serialized Options wire JSON).override -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterCanUseTool(
String streamId) → void -
Removes the canUseTool callback for
streamId(on query completion/cancel). Default: no-op.override -
unregisterTools(
String streamId) → void -
Removes the tool registry for
streamId(on query completion/cancel). Default: no-op.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited