Skip to content

Commit

Permalink
guard: Allow calling parse with preconfigured num_reasks (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic authored Nov 3, 2023
1 parent faa8a50 commit 6fe2d00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guardrails/guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def parse(
llm_output: str,
metadata: Optional[Dict] = None,
llm_api: None = None,
num_reasks: int = 1,
num_reasks: Optional[int] = None,
prompt_params: Optional[Dict] = None,
full_schema_reask: Optional[bool] = None,
*args,
Expand All @@ -458,7 +458,7 @@ def parse(
llm_output: str,
metadata: Optional[Dict] = None,
llm_api: Callable[[Any], Awaitable[Any]] = ...,
num_reasks: int = 1,
num_reasks: Optional[int] = None,
prompt_params: Optional[Dict] = None,
full_schema_reask: Optional[bool] = None,
*args,
Expand All @@ -472,7 +472,7 @@ def parse(
llm_output: str,
metadata: Optional[Dict] = None,
llm_api: Optional[Callable] = None,
num_reasks: int = 1,
num_reasks: Optional[int] = None,
prompt_params: Optional[Dict] = None,
full_schema_reask: Optional[bool] = None,
*args,
Expand All @@ -485,7 +485,7 @@ def parse(
llm_output: str,
metadata: Optional[Dict] = None,
llm_api: Optional[Callable] = None,
num_reasks: int = 1,
num_reasks: Optional[int] = None,
prompt_params: Optional[Dict] = None,
full_schema_reask: Optional[bool] = None,
*args,
Expand Down

0 comments on commit 6fe2d00

Please sign in to comment.