AgentRunHandle
AgentRunHandle<
Tools,TOutput> =object
Defined in: packages/core/src/agent/types.ts:220
Handle returned from agent.run — await result or call cancel() without passing AbortSignal in input.
Type Parameters
Section titled “Type Parameters”Tools extends ToolSet = ToolSet
TOutput
Section titled “TOutput”TOutput = string
Properties
Section titled “Properties”agentCallId
Section titled “agentCallId”agentCallId:
string
Defined in: packages/core/src/agent/types.ts:222
Stable id for this agent episode; available before agent_started is emitted.
cancel
Section titled “cancel”cancel: () =>
void
Defined in: packages/core/src/agent/types.ts:226
Returns
Section titled “Returns”void
memoryScope
Section titled “memoryScope”memoryScope:
string
Defined in: packages/core/src/agent/types.ts:224
Scope this episode will persist to; available before agent_started is emitted.
result
Section titled “result”result:
Promise<AgentRunResult<Tools,TOutput>>
Defined in: packages/core/src/agent/types.ts:225