Ask a question to get started
Enter to sendā¢Shift+Enter new line
Create a GuardrailsOutputParser from a rail file.
from_rail( cls, rail_file: str, num_reasks: int = 1, api: Optional[Callable] = None, *args: Any = (), **kwargs: Any = {} ) -> GuardrailsOutputParser
rail_file
str
a rail file.
num_reasks
int
1
number of times to re-ask the question.
api
Optional[Callable]
None
the API to use for the Guardrails object.
*args
Any
()
The arguments to pass to the API
**kwargs
{}
The keyword arguments to pass to the API.