Skip to content

Documentation / @agentick/shared / ToolResultBlock

Interface: ToolResultBlock

Defined in: blocks.ts:197

Tool result block - Function/tool call result

Extends

Properties

content

readonly content: ContentBlock[]

Defined in: blocks.ts:201


createdAt?

readonly optional createdAt: string

Defined in: blocks.ts:58

ISO 8601 timestamp when this block was created

Inherited from

BaseContentBlock.createdAt


executedBy?

readonly optional executedBy: ToolExecutor

Defined in: blocks.ts:207

Who executed this tool.

See

ToolExecutor for possible values


id?

readonly optional id: string

Defined in: blocks.ts:54

Unique identifier for this block

Inherited from

BaseContentBlock.id


index?

readonly optional index: number

Defined in: blocks.ts:62

Position of this block within the message

Inherited from

BaseContentBlock.index


isError?

readonly optional isError: boolean

Defined in: blocks.ts:202


messageId?

readonly optional messageId: string

Defined in: blocks.ts:56

ID of the message containing this block

Inherited from

BaseContentBlock.messageId


metadata?

readonly optional metadata: Record<string, any>

Defined in: blocks.ts:64

Additional metadata

Inherited from

BaseContentBlock.metadata


mimeType?

readonly optional mimeType: string

Defined in: blocks.ts:60

MIME type of the content (for media blocks)

Inherited from

BaseContentBlock.mimeType


name

readonly name: string

Defined in: blocks.ts:200


summary?

readonly optional summary: string

Defined in: blocks.ts:66

Human-readable summary of the content

Inherited from

BaseContentBlock.summary


toolUseId

readonly toolUseId: string

Defined in: blocks.ts:199


type

readonly type: "tool_result" | TOOL_RESULT

Defined in: blocks.ts:198

Discriminator for type narrowing (e.g., 'text', 'image', 'tool_use')

Overrides

BaseContentBlock.type

Released under the ISC License.