mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-29 11:07:29 +08:00
Slim subagent runtime surface and remove legacy interfaces
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@@ -62,9 +63,10 @@ func TestValidateSubagentsRejectsAbsolutePromptFile(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
cfg := DefaultConfig()
|
||||
absolutePrompt := filepath.Join(t.TempDir(), "AGENT.md")
|
||||
cfg.Agents.Subagents["coder"] = SubagentConfig{
|
||||
Enabled: true,
|
||||
SystemPromptFile: "/tmp/AGENT.md",
|
||||
SystemPromptFile: absolutePrompt,
|
||||
Runtime: SubagentRuntimeConfig{
|
||||
Provider: "openai",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user