From aaed40c6a87e9afb2662505fa299c6424d068002 Mon Sep 17 00:00:00 2001 From: agustin-anastasia Date: Tue, 10 Mar 2026 12:22:12 -0300 Subject: [PATCH 1/2] fix(import-agent): Fix when importing agent regarding user messages --- cogsol/management/commands/importagent.py | 6 ++++++ cogsol/management/commands/startagent.py | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/cogsol/management/commands/importagent.py b/cogsol/management/commands/importagent.py index 17c7736..ee72b9a 100644 --- a/cogsol/management/commands/importagent.py +++ b/cogsol/management/commands/importagent.py @@ -362,6 +362,9 @@ class {class_name}(BaseAgent): max_msg_length = {assistant.get("max_msg_length") or 0} max_consecutive_tool_calls = {assistant.get("max_consecutive_tool_calls") or 0} temperature = {assistant.get("temperature") or 0.0} + initial_message = {assistant.get("initial_message")!r} + forced_termination_message = {assistant.get("end_message")!r} + no_information_message = {assistant.get("not_info_message")!r} class Meta: name = {class_name!r} @@ -559,6 +562,9 @@ def _tool_name_for_id(tool_id: int) -> str | None: "max_responses": assistant.get("max_responses"), "max_msg_length": assistant.get("max_msg_length"), "max_consecutive_tool_calls": assistant.get("max_consecutive_tool_calls"), + "initial_message": assistant.get("initial_message"), + "forced_termination_message": assistant.get("end_message"), + "no_information_message": assistant.get("not_info_message"), "streaming": assistant.get("streaming_available"), "realtime": assistant.get("realtime_available"), "tools": [n for n in (_tool_name_for_id(sid) for sid in tools_ids) if n], diff --git a/cogsol/management/commands/startagent.py b/cogsol/management/commands/startagent.py index ad57b3c..963bceb 100644 --- a/cogsol/management/commands/startagent.py +++ b/cogsol/management/commands/startagent.py @@ -20,7 +20,10 @@ class {class_name}(BaseAgent): max_msg_length = 2048 max_consecutive_tool_calls = 3 temperature = 0.3 - + # initial_message = "Hi! how can I help you?" + # forced_termination_message = "We need to end this chat." + # no_information_message = "I don't have that information." + class Meta: name = "{class_name}" chat_name = "{class_name}" From 1140a6956a09ae822eb8810d66db5e6a9ab9e50e Mon Sep 17 00:00:00 2001 From: agustin-anastasia Date: Fri, 13 Mar 2026 13:26:48 -0300 Subject: [PATCH 2/2] fixed for check errors --- cogsol/management/commands/startagent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogsol/management/commands/startagent.py b/cogsol/management/commands/startagent.py index 963bceb..9d2129a 100644 --- a/cogsol/management/commands/startagent.py +++ b/cogsol/management/commands/startagent.py @@ -23,7 +23,7 @@ class {class_name}(BaseAgent): # initial_message = "Hi! how can I help you?" # forced_termination_message = "We need to end this chat." # no_information_message = "I don't have that information." - + class Meta: name = "{class_name}" chat_name = "{class_name}"