Skip to content

The agent engineering platform.

Clarifying descriptions in `GuardrailsOutputParser` (#14228)

James Braza6ce5dab38c34
diff --git a/libs/langchain/langchain/output_parsers/rail_parser.py b/libs/langchain/langchain/output_parsers/rail_parser.py
index 2f6c7b7f0a..f0cabc13eb 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: