Docs: show post-call inspection of tool text results - #5385
Conversation
AI-assisted with OpenAI Codex
|
This pull request is awaiting maintainer assignment. Linked PRs stay open while maintainers triage the issue; this check remains failing until assignment. Per CONTRIBUTING.md, an external PR must reference an issue that's assigned to its author. To get there:
Once you're assigned and the link is present, this check is re-run automatically. Previously gate-closed PRs also reopen — no further action needed. Maintainers: reopen this PR or remove the |
jlowin
left a comment
There was a problem hiding this comment.
Thanks! I adjusted the example to reject failed text checks and preserve accepted results unchanged, with an explicit text-only scope. This avoids implying that rewriting text sanitizes structured or raw results.
|
Reviewed at |
Adds a custom middleware example that inspects text blocks in a
ToolResult, preserves non-text blocks, surfaces inspection failures, and clarifies that server middleware cannot inspect client-side model activity. Fixes #5055.🤖 AI-assisted with OpenAI Codex.
Co-authored-by: Roli Bosch roli@hermes-labs.ai