Clarifying descriptions in GuardrailsOutputParser (#14228)

Upstreaming knowledge from
https://github.com/guardrails-ai/guardrails/discussions/473 to LangChain
This commit is contained in:
James Braza 2023-12-04 14:33:22 -05:00 committed by GitHub
parent 50aee687c6
commit 6ce5dab38c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: