Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: fix output guardrail step description #724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

usmanashrf
Copy link

Summary

Fixes a copy-paste error in docs/guardrails.md: the first step of “Output guardrails run in 3 steps” said the guardrail “receives the same input passed to the agent,” which contradicts the note and example code. The guardrail actually receives the agent’s output.

What’s changed

Section Before After
Bullet 1 “the same input passed to the agent” “the output produced by the agent
Adjacent note “final agent input “final agent output

No code or API behavior is affected—this is documentation only.

Rationale

This clarification prevents confusion for developers writing custom guardrails, aligning the prose with the example signature (def my_guardrail(output: MessageOutput, …)).

Checklist

  • Docs build locally (make docs) without warnings
  • No other occurrences of the error found via search
  • CI passes

Closes #.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant