VSCodeBridgeAgentSdkTransport class
Production AgentSdkTransport backed by a VSCodeBridgeClient.
Starts/cancels queries with the client's request channel and listens for
agentSdk.chunk notifications on the client's VSCodeBridgeClient.notifications
stream.
NOTE: end-to-end delivery of agentSdk.chunk over the CLI socket also
requires the tom_vscode_bridge CLI server to relay extension notifications
to the connected client (today it only relays log). That relay is tracked
as a completion step for this todo; this class is the correct client half.
- 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 -
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 -
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