Skip to content

docs: explain function tool pre-execution guardrails#3142

Closed
adityasingh2400 wants to merge 1 commit intoopenai:mainfrom
adityasingh2400:docs/tool-pre-execution-validation-2970
Closed

docs: explain function tool pre-execution guardrails#3142
adityasingh2400 wants to merge 1 commit intoopenai:mainfrom
adityasingh2400:docs/tool-pre-execution-validation-2970

Conversation

@adityasingh2400
Copy link
Copy Markdown
Contributor

Summary

  • Document tool_input_guardrails as the current pre-execution validation hook for local function tools.
  • Include a concrete example for rejecting or halting a tool call based on the final serialized arguments.
  • Clarify that Python-side guardrails cannot intercept hosted tools because those execute server-side.

Test plan

  • uv run mkdocs build
  • git diff --check

Note: uv run mkdocs build --strict currently aborts on pre-existing translated-doc/autoref warnings unrelated to this change.

Closes #2970.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 6, 2026
@seratch
Copy link
Copy Markdown
Member

seratch commented May 6, 2026

This is already covered by the guardrails document page.

@seratch seratch closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add pre-execution validation for tool calls

2 participants