Skip to content

Commit 682f946

Browse files
committed
update tree for guard logs
1 parent 24383b9 commit 682f946

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

guardrails/classes/history/iteration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ def create_msg_history_table(
215215
self.raw_output or "", title="Raw LLM Output", style="on #F5F5DC"
216216
),
217217
Panel(
218-
pretty_repr(self.validation_response),
218+
self.validation_response
219+
if isinstance(self.validation_response, str)
220+
else pretty_repr(self.validation_response),
219221
title="Validated Output",
220222
style="on #F0FFF0",
221223
),

0 commit comments

Comments
 (0)