Skip to main content

ToolRenderAndWaitProps

Agent Runtimes


Agent Runtimes / types/tools / ToolRenderAndWaitProps

Interface: ToolRenderAndWaitProps<TArgs, TResult>

Defined in: types/tools.ts:133

Props passed to renderAndWaitForResponse (HITL pattern)

Extends

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

ToolRenderProps.args


error?

optional error?: string

Defined in: types/tools.ts:127

Error message (only when status is 'failed')

Inherited from

ToolRenderProps.error


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?

optional result?: TResult

Defined in: types/tools.ts:124

Result after execution (only when status is 'complete')

Inherited from

ToolRenderProps.result


status

status: ToolRenderStatus

Defined in: types/tools.ts:118

Current execution status

Inherited from

ToolRenderProps.status