From 3a1d859359b462fc9a9f1c001d6681a8d886f2b6 Mon Sep 17 00:00:00 2001 From: "A.J. Shulman" Date: Thu, 29 Aug 2024 21:01:29 -0400 Subject: added loop summary and updated type for RAG tool output --- src/client/views/nodes/ChatBox/ChatBox.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/client/views/nodes/ChatBox/ChatBox.tsx') diff --git a/src/client/views/nodes/ChatBox/ChatBox.tsx b/src/client/views/nodes/ChatBox/ChatBox.tsx index ffede6901..345bfd8d1 100644 --- a/src/client/views/nodes/ChatBox/ChatBox.tsx +++ b/src/client/views/nodes/ChatBox/ChatBox.tsx @@ -445,7 +445,11 @@ export class ChatBox extends ViewBoxAnnotatableComponent() { get formattedHistory(): string { let history = '\n'; for (const message of this.history) { - history += `<${message.role}>${message.content.map(content => content.text).join(' ')}\n`; + history += `<${message.role}>${message.content.map(content => content.text).join(' ')}`; + if (message.loop_summary) { + history += `${message.loop_summary}`; + } + history += `\n`; } history += ''; return history; -- cgit v1.2.3-70-g09d2