ToolRenderAndWaitProps
Agent Runtimes / types/tools / ToolRenderAndWaitProps
Interface: ToolRenderAndWaitProps<TArgs, TResult>
Defined in: types/tools.ts:133
Props passed to renderAndWaitForResponse (HITL pattern)
Extends
ToolRenderProps<TArgs,TResult>
Type Parameters
TArgs
TArgs = Record<string, unknown>
TResult
TResult = unknown
Properties
args
args:
TArgs
Defined in: types/tools.ts:121
Tool arguments from the LLM
Inherited from
error?
optionalerror?:string
Defined in: types/tools.ts:127
Error message (only when status is 'failed')
Inherited from
respond
respond: (
result) =>Promise<void>
Defined in: types/tools.ts:138
Call this to respond with a result (for HITL approval)
Parameters
result
TResult
Returns
Promise<void>
result?
optionalresult?:TResult
Defined in: types/tools.ts:124
Result after execution (only when status is 'complete')
Inherited from
status
status:
ToolRenderStatus
Defined in: types/tools.ts:118
Current execution status