Skip to content
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

Clarifying descriptions in GuardrailsOutputParser #14228

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libs/langchain/langchain/output_parsers/rail_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ class GuardrailsOutputParser(BaseOutputParser):
guard: Any
"""The Guardrails object."""
api: Optional[Callable]
"""The API to use for the Guardrails object."""
"""The LLM API passed to Guardrails during parsing. An example is `openai.completions.create`.""" # noqa: E501
args: Any
"""The arguments to pass to the API."""
"""Positional arguments to pass to the above LLM API callable."""
kwargs: Any
"""The keyword arguments to pass to the API."""
"""Keyword arguments to pass to the above LLM API callable."""

@property
def _type(self) -> str:
Expand Down
Loading