ToolRenderProps
Agent Runtimes / types/tools / ToolRenderProps
Interface: ToolRenderProps<TArgs, TResult>
Defined in: types/tools.ts:113
Props passed to tool render function
Extended by
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
error?
optionalerror?:string
Defined in: types/tools.ts:127
Error message (only when status is 'failed')
result?
optionalresult?:TResult
Defined in: types/tools.ts:124
Result after execution (only when status is 'complete')
status
status:
ToolRenderStatus
Defined in: types/tools.ts:118
Current execution status