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 e167a6d commit 7898e76Copy full SHA for 7898e76
guardrails/guard.py
@@ -1183,15 +1183,14 @@ def _stream_server_call(
1183
validation_passed=(validation_output.validation_passed is True),
1184
)
1185
1186
- # TODO reenable this when sever supports multi-node history
1187
if os.environ.get("GUARD_HISTORY_ENABLED", "true").lower() == "true":
1188
if validation_output:
1189
guard_history = self._api_client.get_history(
1190
self.name, validation_output.call_id
1191
1192
- self.history.extend(
1193
- [Call.from_interface(call) for call in guard_history]
1194
- )
+ self.history.extend(
+ [Call.from_interface(call) for call in guard_history]
+ )
1195
else:
1196
raise ValueError("Guard does not have an api client!")
1197
0 commit comments