mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-04 14:13:29 +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
|
guard: Any
|
||||||
"""The Guardrails object."""
|
"""The Guardrails object."""
|
||||||
api: Optional[Callable]
|
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
|
args: Any
|
||||||
"""The arguments to pass to the API."""
|
"""Positional arguments to pass to the above LLM API callable."""
|
||||||
kwargs: Any
|
kwargs: Any
|
||||||
"""The keyword arguments to pass to the API."""
|
"""Keyword arguments to pass to the above LLM API callable."""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _type(self) -> str:
|
def _type(self) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user