mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-01 04:29:09 +00:00
Clarifying descriptions in GuardrailsOutputParser
(#14228)
Upstreaming knowledge from https://github.com/guardrails-ai/guardrails/discussions/473 to LangChain
This commit is contained in:
parent
50aee687c6
commit
6ce5dab38c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user