Skip to content

GthToolResult

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:104

BATCH-21 — one executed tool call’s result, harvested from its ToolMessage by the GS2-16 run-stats accumulator (core/runStats.ts). Fail-soft like everything else there: content is omitted when no text payload could be derived, and is size-capped (runStats.js TOOL_RESULT_CONTENT_CAP) so a giant payload can’t bloat run stats.

optional content?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:110

The result payload as text (a non-string payload is JSON-stringified), capped in length.


isError: boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:108

true iff the result carried LangChain’s real error signal (ToolMessage.status === 'error').


name: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:106

The tool that produced the result (ToolMessage.name).