fix: permitir robots sin llm.primary.provider + command_prefix vacio
- internal/config/loader.go: skip validacion de LLM provider cuando agent.type es "robot" — los robots no usan LLM - agents/test-bot/config.yaml: usar command_prefix: "" para que acepte comandos sin prefijo ! (feature del issue 0033) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,7 @@ matrix:
|
||||
admin: []
|
||||
|
||||
filters:
|
||||
command_prefix: "!"
|
||||
command_prefix: "" # sin prefijo — todo mensaje es un posible comando
|
||||
mention_respond: false
|
||||
dm_respond: false
|
||||
ignore_bots: true
|
||||
|
||||
@@ -94,7 +94,7 @@ func validate(cfg *AgentConfig) error {
|
||||
if cfg.Matrix.UserID == "" {
|
||||
return fmt.Errorf("matrix.user_id is required")
|
||||
}
|
||||
if cfg.LLM.Primary.Provider == "" {
|
||||
if cfg.Agent.Type != "robot" && cfg.LLM.Primary.Provider == "" {
|
||||
return fmt.Errorf("llm.primary.provider is required")
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user