Skip to content

Commit de7132c

Browse files
authored
Merge pull request #145 from rgbkrk/pass-custom-render
ensure ToolCalled retains custom render
2 parents 9a4722a + f038bc0 commit de7132c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chatlab/views/tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def append_arguments(self, arguments: str):
110110
def apply_result(self, result: str):
111111
"""Replaces the existing display with a new one that shows the result of the tool being called."""
112112
tc = ToolCalled(
113-
id=self.id, name=self.name, arguments=self.arguments, result=result, display_id=self.display_id
113+
id=self.id, name=self.name, arguments=self.arguments, result=result, display_id=self.display_id,
114+
custom_render=self.custom_render
114115
)
115116
tc.update()
116117
return tc

0 commit comments

Comments
 (0)