Add description field (#59)

This commit is contained in:
Ettore Di Giacinto
2025-03-19 22:40:21 +01:00
committed by GitHub
parent f0bd184fbd
commit 8e694f70ec
3 changed files with 7 additions and 0 deletions

View File

@@ -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"`

View File

@@ -44,6 +44,11 @@
{{ end }}
</div>
<div class="mb-4">
<label for="description">Description</label>
<textarea name="description" id="description" placeholder="Description"></textarea>
</div>
<div class="mb-4">
<label for="identity_guidance">Identity Guidance</label>
<textarea name="identity_guidance" id="identity_guidance" placeholder="Identity Guidance"></textarea>

View File

@@ -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 || '';