We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a30b72c commit ec9d5b9Copy full SHA for ec9d5b9
guardrails/guard.py
@@ -238,9 +238,10 @@ def __call__(
238
msg_history: Optional[List[Dict]] = None,
239
metadata: Optional[Dict] = None,
240
full_schema_reask: Optional[bool] = None,
241
+ stream: Optional[bool] = False,
242
*args,
243
**kwargs,
- ) -> ValidationOutcome[OT]:
244
+ ) -> Union[ValidationOutcome[OT], Iterable[str]]:
245
...
246
247
@overload
@@ -272,7 +273,7 @@ def __call__(
272
273
274
275
) -> Union[
- Union[ValidationOutcome[OT], Iterable], Awaitable[ValidationOutcome[OT]]
276
+ Union[ValidationOutcome[OT], Iterable[str]], Awaitable[ValidationOutcome[OT]]
277
]:
278
"""Call the LLM and validate the output. Pass an async LLM API to
279
return a coroutine.
0 commit comments