Skip to content

Commit 26756ee

Browse files
authored
Merge pull request #692 from guardrails-ai/shreya/iteration-tree-print-fix
Fix `validated_output` rendering for guard.history.logs.tree
2 parents 24383b9 + 682f946 commit 26756ee

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)