Files
docker-agent/examples/deferred_native_tool_search.yaml
David Gageot a3ce461e9b feat(openai): add cache diagnostics, preserve_reasoning, and native_tool_search provider opts
Surface prompt cache diagnostics from Responses API results, let agents
opt into carrying reasoning state across turns, and use OpenAI's hosted
tool search for deferred tools instead of the local catalog lookup.

Assisted-By: cagent
2026-09-17 21:22:40 +02:00

25 lines
868 B
YAML

agents:
root:
model: openai/gpt-5.6-sol
description: Agent whose deferred tools are discovered by OpenAI's hosted tool search
instruction: Use native tool search to find filesystem and shell tools, then call them directly.
toolsets:
- type: filesystem
defer: true
- type: shell
defer: true
models:
openai/gpt-5.6-sol:
provider: openai
model: gpt-5.6-sol
provider_opts:
# Declare every deferred tool to OpenAI with defer_loading and let the
# server-side tool_search tool load the ones the model needs. Ignored
# (legacy search_tool/add_tool behaviour) on models without support.
native_tool_search: true
# Also available independently of native search.
preserve_reasoning: true
# Run with --debug to inspect cache reuse between turns.
cache_diagnostics: true