From 6ce5dab38c349682f5537cc3e0d95f9ddb4f6b41 Mon Sep 17 00:00:00 2001 From: James Braza Date: Mon, 4 Dec 2023 14:33:22 -0500 Subject: [PATCH] Clarifying descriptions in `GuardrailsOutputParser` (#14228) Upstreaming knowledge from https://github.com/guardrails-ai/guardrails/discussions/473 to LangChain --- libs/langchain/langchain/output_parsers/rail_parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/langchain/langchain/output_parsers/rail_parser.py b/libs/langchain/langchain/output_parsers/rail_parser.py index 2f6c7b7f0a7..f0cabc13eb5 100644 --- a/libs/langchain/langchain/output_parsers/rail_parser.py +++ b/libs/langchain/langchain/output_parsers/rail_parser.py @@ -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: