Skip to content

docs: update GuardrailFunctionOutput docstrings for clarity #1152

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

mshsheikh
Copy link
Contributor

This PR refines the inline documentation for the GuardrailFunctionOutput class:

  • Updates the class summary to “Encapsulates the result of a guardrail’s validation step.”
  • Enhances the output_info field docstring to emphasize metadata and diagnostic examples (e.g., passed/failed rules, metrics).
  • Clarifies the tripwire_triggered field docstring to explicitly describe the hard-stop behavior.

✓ Purely informational edits.
✓ No changes to type signatures or logic.
These improvements boost developer readability, auto-generated documentation, and tooling support without impacting runtime behavior.

This PR refines the inline documentation for the `GuardrailFunctionOutput` class:
- Updates the class summary to “Encapsulates the result of a guardrail’s validation step.”
- Enhances the `output_info` field docstring to emphasize metadata and diagnostic examples (e.g., passed/failed rules, metrics).
- Clarifies the `tripwire_triggered` field docstring to explicitly describe the hard-stop behavior.

✓ Purely informational edits.
✓ No changes to type signatures or logic.
These improvements boost developer readability, auto-generated documentation, and tooling support without impacting runtime behavior.
@seratch seratch added the documentation Improvements or additions to documentation label Jul 16, 2025
@seratch
Copy link
Member

seratch commented Jul 16, 2025

Thanks for sending this! However, this does not show significant difference to me.

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.

2 participants