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?
optionalerror:string
Defined in: tools.ts:141
Error message if success is false
executedBy?
optionalexecutedBy:ToolExecutor
Defined in: tools.ts:143
Who executed this tool
id?
optionalid:string
Defined in: tools.ts:131
Optional unique ID for the result itself
metadata?
optionalmetadata:object
Defined in: tools.ts:147
Execution metadata for observability.
Index Signature
[key: string]: unknown
cacheHit?
optionalcacheHit:boolean
executionTimeMs?
optionalexecutionTimeMs:number
retryCount?
optionalretryCount: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)