Skip to content

Documentation / @agentick/shared / ToolResult

Interface: ToolResult

Defined in: tools.ts:129

Tool result - represents the result of a tool execution.

Used in stream events and execution tracking.

Properties

content

content: ContentBlock[]

Defined in: tools.ts:139

Result content (tool results are ContentBlock[] for rich output)


error?

optional error: string

Defined in: tools.ts:141

Error message if success is false


executedBy?

optional executedBy: ToolExecutor

Defined in: tools.ts:143

Who executed this tool


id?

optional id: string

Defined in: tools.ts:131

Optional unique ID for the result itself


metadata?

optional metadata: object

Defined in: tools.ts:147

Execution metadata for observability.

Index Signature

[key: string]: unknown

cacheHit?

optional cacheHit: boolean

executionTimeMs?

optional executionTimeMs: number

retryCount?

optional retryCount: number


name

name: string

Defined in: tools.ts:135

Tool name


success

success: boolean

Defined in: tools.ts:137

Whether execution succeeded


toolUseId

toolUseId: string

Defined in: tools.ts:133

ID of the tool call this result is for (matches ToolCall.id)

Released under the ISC License.