ExecResult

What tools and the log see.

The framework's sandbox layer, not the adapter, builds it: it writes the ExecOutput streams to the artifact store incrementally while keeping head and tail previews, so full output is never held in host memory, and records full_output before the tool_result.

Fields

exit_codenumberrequired

The process's exit code: 0 for success, anything else for failure.

stdoutstringrequired

Head and tail preview.

stderrstringrequired

Head and tail preview.

truncatedbooleanrequired

true when stdout or stderr was longer than its preview; the complete output is then in full_output.

full_outputArtifactRef

Present exactly when truncated: the complete stdout and stderr, readable with read_tool_result.

Edit on GitHub

On this page