ToolRenderProps
Agent Runtimes / types/tools / ToolRenderProps
Interface: ToolRenderProps<TArgs, TResult>
Defined in: src/types/tools.ts:127
Props passed to tool render function
Extended by
Type Parameters
TArgs
TArgs = Record<string, unknown>
TResult
TResult = unknown
Properties
args
args:
TArgs
Defined in: src/types/tools.ts:135
Tool arguments from the LLM
error?
optionalerror?:string
Defined in: src/types/tools.ts:141
Error message (only when status is 'failed')
result?
optionalresult?:TResult
Defined in: src/types/tools.ts:138
Result after execution (only when status is 'complete')
status
status:
ToolRenderStatus
Defined in: src/types/tools.ts:132
Current execution status