feat: Enhance Agent Editor and Chat History Management
- Added support for internal message handling in the AgentChatHistoryCodec, allowing messages marked as internal to be excluded from user display. - Updated the AgentChatWidget to skip rendering internal messages, improving user experience by reducing clutter. - Introduced a comprehensive bot profile management system in the AgentEditor, enabling users to create, save, load, and manage bot profiles with detailed configurations. - Enhanced the UI for the AgentEditor, including a new tabbed interface for better organization of settings, prompts, and profiles, along with improved metrics and chat history viewing capabilities. - Implemented JSON support for bot profile management, allowing for easy export and import of profiles, streamlining user workflows.
This commit is contained in:
@@ -337,8 +337,9 @@ absl::StatusOr<ChatMessage> ConversationalAgentService::SendMessage(
|
||||
"The tool returned the following data:\n",
|
||||
tool_output, "\n\n",
|
||||
"Please provide a text_response field in your JSON to summarize this information for the user.");
|
||||
history_.push_back(
|
||||
CreateMessage(ChatMessage::Sender::kUser, marked_output));
|
||||
auto tool_result_msg = CreateMessage(ChatMessage::Sender::kUser, marked_output);
|
||||
tool_result_msg.is_internal = true; // Don't show this to the human user
|
||||
history_.push_back(tool_result_msg);
|
||||
}
|
||||
executed_tool = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user