Documentation / @agentick/shared / ToolResult
Interface: ToolResult ​
Defined in: tools.ts:113
Tool result - represents the result of a tool execution.
Used in stream events and execution tracking.
Properties ​
content ​
content:
ContentBlock[]
Defined in: tools.ts:123
Result content (tool results are ContentBlock[] for rich output)
error? ​
optionalerror:string
Defined in: tools.ts:125
Error message if success is false
executedBy? ​
optionalexecutedBy:ToolExecutor
Defined in: tools.ts:127
Who executed this tool
id? ​
optionalid:string
Defined in: tools.ts:115
Optional unique ID for the result itself
metadata? ​
optionalmetadata:object
Defined in: tools.ts:131
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:119
Tool name
success ​
success:
boolean
Defined in: tools.ts:121
Whether execution succeeded
toolUseId ​
toolUseId:
string
Defined in: tools.ts:117
ID of the tool call this result is for (matches ToolCall.id)