Skip to content

docs: add #1792 tool guardrails to the guardrails document page #1830

@AbdulSamad94

Description

@AbdulSamad94

Please read this first

  • Have you read the docs?Agents SDK docs yes
  • Have you searched for related issues? yes

Question

Tool input/output guardrails (PR #1792) are implemented but not documented in the main guides.

Gaps

  • No mention in docs/guardrails.md
  • No user guide for implementing input/output guardrails
  • Only a minimal API ref at docs/ref/tool_guardrails.md

Current

  • Code: src/agents/tool_guardrails.py
  • Example: examples/basic/tool_guardrails.py
  • API ref: docs/ref/tool_guardrails.md

Expected

Main docs should explain:

  • What tool guardrails are vs. agent-level guardrails
  • How to add input & output guardrails
  • When/why to use them
  • Complete examples & use cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions