File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1442,9 +1442,7 @@ def _call_server(
14421442 error_message = r .to_dict ().get (
14431443 "error_message"
14441444 ),
1445- fix_value = r .to_dict ().get (
1446- "fix_value"
1447- ),
1445+ fix_value = r .to_dict ().get ("fix_value" ),
14481446 )
14491447 ],
14501448 )
@@ -1461,6 +1459,14 @@ def _call_server(
14611459 if self .history .length == 0 :
14621460 self .history .push (call_log )
14631461
1464- return ValidationOutcome [OT ].from_guard_history (call_log )
1462+ # Our interfaces are too different for this to work right now.
1463+ # Once we move towards shared interfaces for both the open source
1464+ # and the api we can re-enable this.
1465+ # return ValidationOutcome[OT].from_guard_history(call_log)
1466+ return ValidationOutcome [OT ](
1467+ raw_llm_output = validation_output .raw_llm_response , # type: ignore
1468+ validated_output = cast (OT , validation_output .validated_output ),
1469+ validation_passed = validation_output .result ,
1470+ )
14651471 else :
14661472 raise ValueError ("Guard does not have an api client!" )
You can’t perform that action at this time.
0 commit comments