From 8e694f70ec8f7ecc56b3c69ce0f8cb94f81efb08 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 19 Mar 2025 22:40:21 +0100 Subject: [PATCH] Add description field (#59) --- core/state/config.go | 1 + webui/views/partials/agent-form.html | 5 +++++ webui/views/settings.html | 1 + 3 files changed, 7 insertions(+) diff --git a/core/state/config.go b/core/state/config.go index 1101346..a93c752 100644 --- a/core/state/config.go +++ b/core/state/config.go @@ -33,6 +33,7 @@ type AgentConfig struct { PromptBlocks []PromptBlocksConfig `json:"promptblocks" form:"promptblocks"` MCPServers []agent.MCPServer `json:"mcp_servers" form:"mcp_servers"` + Description string `json:"description" form:"description"` // This is what needs to be part of ActionsConfig Model string `json:"model" form:"model"` MultimodalModel string `json:"multimodal_model" form:"multimodal_model"` diff --git a/webui/views/partials/agent-form.html b/webui/views/partials/agent-form.html index df675b9..ec7ff45 100644 --- a/webui/views/partials/agent-form.html +++ b/webui/views/partials/agent-form.html @@ -44,6 +44,11 @@ {{ end }} +
+ + +
+
diff --git a/webui/views/settings.html b/webui/views/settings.html index 0b9258f..f80fdd2 100644 --- a/webui/views/settings.html +++ b/webui/views/settings.html @@ -341,6 +341,7 @@ document.getElementById('long_term_memory').checked = config.long_term_memory || false; document.getElementById('summary_long_term_memory').checked = config.summary_long_term_memory || false; document.getElementById('identity_guidance').value = config.identity_guidance || ''; + document.getElementById('description').value = config.description || ''; document.getElementById('periodic_runs').value = config.periodic_runs || ''; document.getElementById('model').value = config.model || ''; document.getElementById('multimodal_model').value = config.multimodal_model || '';