Skip to main content

ToolRenderProps

Agent Runtimes


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?

optional error?: string

Defined in: types/tools.ts:127

Error message (only when status is 'failed')


result?

optional result?: 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