RemoteAgent
Defined in: agents/src/a2a/remote.ts:210
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
T |
string |
Properties
Section titled “Properties”[AGENT_RUNTIME]
Section titled “[AGENT_RUNTIME]”readonly [AGENT_RUNTIME]: RemoteRuntime<T>;Defined in: agents/src/a2a/remote.ts:220
readonly id: string;Defined in: agents/src/a2a/remote.ts:212
readonly kind: "remote";Defined in: agents/src/a2a/remote.ts:211
version
Section titled “version”readonly version: string;Defined in: agents/src/a2a/remote.ts:213
Methods
Section titled “Methods”asTool()
Section titled “asTool()”asTool(options): Delegation;Defined in: agents/src/a2a/remote.ts:219
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
SpecialistToolOptions<T | RemotePending> |
Returns
Section titled “Returns”cancel()
Section titled “cancel()”cancel(snapshot, options): Promise<RemoteSnapshot>;Defined in: agents/src/a2a/remote.ts:218
Explicit host command. AbortSignal only detaches local work, never sends CancelTask. Inspect snapshot.remote.cancel.state: acceptance alone does not prove cancellation.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
snapshot |
unknown |
options |
ResumeOptions |
Returns
Section titled “Returns”Promise<RemoteSnapshot>
resume()
Section titled “resume()”resume(snapshot, options): Promise<RemoteOutcome<T>>;Defined in: agents/src/a2a/remote.ts:215
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
snapshot |
unknown |
options |
ResumeOptions |
Returns
Section titled “Returns”Promise<RemoteOutcome<T>>
run(input, options?): Promise<RemoteOutcome<T>>;Defined in: agents/src/a2a/remote.ts:214
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
AgentInput |
options? |
RunOptions |
Returns
Section titled “Returns”Promise<RemoteOutcome<T>>