Commit graph

5 commits

Author SHA1 Message Date
Javier Leguina
dcb88e69cd
docs: custom output extraction (#817)
In deep agent workflows, each sub‐agent automatically performs an LLM
step to summarize its tool calls before returning to its parent. This
leads to:
1. Excessive latency: every nested agent invokes the LLM, compounding
delays.
2. Loss of raw tool data: summaries may strip out details the top‐level
agent needs.

We discovered that `Agent.as_tool(...)` already accepts an
(undocumented) `custom_output_extractor` parameter. By providing a
callback, a parent agent can override what the sub‐agent returns e.g.
hand back raw tool outputs or a custom slice so that only the final
agent does summarization.

---

This PR adds a “Custom output extraction” section to the Markdown docs
under “Agents as tools,” with a minimal code example.
2025-06-09 10:24:51 -04:00
Sarmad Gulzar
47fa8e87b1
Fixed Python syntax (#665) 2025-05-29 17:24:31 -04:00
Rohan Mehta
a96108e279
Update MCP and tool docs (#736)
## Summary
- mention MCPServerStreamableHttp in MCP server docs
- document CodeInterpreterTool, HostedMCPTool, ImageGenerationTool and
LocalShellTool
- update Japanese translations
2025-05-23 13:00:21 -04:00
Rohan Mehta
5183f528f4
Add docs for customizng agent-as-tool (#504)
Co-authored-by: pakrym-oai <pakrym@openai.com>
2025-04-14 12:40:32 -04:00
Rohan Mehta
aaec57a426 Initial commit 2025-03-11 09:42:28 -07:00