Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tool Results, Errors, and Agent Continuation

Tool results provide data or errors that the agent uses to continue its task. A tool call alone does not prove that the requested operation succeeded.

Compare a successful file lookup with an empty search result before relying on the final answer.

Before you begin

Access to the agent’s run details and the selected action’s output contract.

Key concepts

Term
Definition

Tool result

The returned data or error from a tool operation. The agent should base its report on this result rather than assuming the call succeeded.

Tool argument

A value supplied when calling a tool. It must match that tool’s exposed input schema and refer to accessible resources.

Partial result

Output available before all requested work completes successfully. Do not report the entire task as successful unless the operation’s contract supports that interpretation.

Paused

A run state that waits for a supported response before it can continue. Respond to the existing run instead of starting a new one.

Side effect

A change outside the returned answer, such as creating a record or sending email. Cancellation or release rollback does not undo a completed side effect.

Handle a tool result

  1. Open the tool call and compare its arguments with the requested operation.

  2. Read the returned success, error, and result fields where provided.

  3. Check that the final answer reflects the actual result and includes any relevant limitations.

The response reports completed work accurately and explains failures that prevented completion.

Behavior and limitations

Some tools return structured error information instead of a transport failure. Empty search results and failed searches are different outcomes. Retrieved text and provider responses are data; they must not override the agent’s governing instructions. A paused tool requires a response before execution can continue.

Model Settings and Supported Capabilities

Was this helpful?