@@ -422,10 +422,8 @@ def _call_sync(
422422 base_model = self .base_model ,
423423 full_schema_reask = full_schema_reask ,
424424 )
425- call , error_message = runner (
426- call_log = call_log , prompt_params = prompt_params
427- )
428- return ValidationOutcome [OT ].from_guard_history (call , error_message )
425+ call = runner (call_log = call_log , prompt_params = prompt_params )
426+ return ValidationOutcome [OT ].from_guard_history (call )
429427
430428 async def _call_async (
431429 self ,
@@ -483,10 +481,10 @@ async def _call_async(
483481 base_model = self .base_model ,
484482 full_schema_reask = full_schema_reask ,
485483 )
486- call , error_message = await runner .async_run (
484+ call = await runner .async_run (
487485 call_log = call_log , prompt_params = prompt_params
488486 )
489- return ValidationOutcome [OT ].from_guard_history (call , error_message )
487+ return ValidationOutcome [OT ].from_guard_history (call )
490488
491489 def __repr__ (self ):
492490 return f"Guard(RAIL={ self .rail } )"
@@ -662,9 +660,9 @@ def _sync_parse(
662660 base_model = self .base_model ,
663661 full_schema_reask = full_schema_reask ,
664662 )
665- call , error_message = runner (call_log = call_log , prompt_params = prompt_params )
663+ call = runner (call_log = call_log , prompt_params = prompt_params )
666664
667- return ValidationOutcome [OT ].from_guard_history (call , error_message )
665+ return ValidationOutcome [OT ].from_guard_history (call )
668666
669667 async def _async_parse (
670668 self ,
@@ -704,11 +702,11 @@ async def _async_parse(
704702 base_model = self .base_model ,
705703 full_schema_reask = full_schema_reask ,
706704 )
707- call , error_message = await runner .async_run (
705+ call = await runner .async_run (
708706 call_log = call_log , prompt_params = prompt_params
709707 )
710708
711- return ValidationOutcome [OT ].from_guard_history (call , error_message )
709+ return ValidationOutcome [OT ].from_guard_history (call )
712710
713711 def with_prompt_validation (
714712 self ,
0 commit comments