liveBook · Manning

Tool result

As explained in The Art of AI Product Development

Tool output is the data returned by an external tool after it processes an agent's request.

A tool result is the output returned after an agent selects and calls an external tool. API results may be verbose JSON, so parsing can reduce noise before the language model uses them. section 9.1.4

Practical handling options include:

  • Apply custom logic to retain only fields relevant to the task. section 9.1.4
  • Use a dynamic algorithm to identify the most helpful fields for the current situation. section 9.1.4

Verbose API response

An API may return a large JSON response. Trimming it to the relevant information gives the language model less noise to process. section 9.1.4

Figure 9.7 The agent’s process for using a tool
A blue and white sign with white text

AI-generated content may be incorrect.

Shows the agent’s process for selecting, calling, and receiving results from a tool. section 9.1.4

How The Art of AI Product Development covers it

How deep it goes
Explains verbose JSON trimming and relevant-field selection without specifying a particular parsing algorithm.
Examples
Uses verbose API JSON and selecting or trimming relevant fields as examples.
What it assumes
Assumes tool selection and calling already produce an output that requires parsing.
What you can do after
Apply it via custom logic or dynamic selection to reduce irrelevant tool-output information.
How it connects
Connects tool results to language models, APIs, tool selection, and agent systems.

Also explained in

Compare how 2 books explain tool result →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Art of AI Product Development. The section links point to the parts of the book it draws on.