delete unused bug and fix review issue
This commit is contained in:
parent
5b9e319360
commit
6c9589869e
3 changed files with 10 additions and 12 deletions
|
|
@ -365,9 +365,6 @@
|
|||
"edit_file": {
|
||||
"enabled": true
|
||||
},
|
||||
"exec_tool": {
|
||||
"enabled": true
|
||||
},
|
||||
"find_skills": {
|
||||
"enabled": true
|
||||
},
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ func registerSharedTools(
|
|||
}
|
||||
|
||||
// Web tools
|
||||
if cfg.Tools.IsToolEnabled("web_search") {
|
||||
if cfg.Tools.IsToolEnabled("web") {
|
||||
searchTool, err := tools.NewWebSearchTool(tools.WebSearchToolOptions{
|
||||
BraveAPIKey: cfg.Tools.Web.Brave.APIKey,
|
||||
BraveMaxResults: cfg.Tools.Web.Brave.MaxResults,
|
||||
|
|
@ -181,9 +181,10 @@ func registerSharedTools(
|
|||
}
|
||||
|
||||
// Spawn tool with allowlist checker
|
||||
if cfg.Tools.IsToolEnabled("spawn") {
|
||||
if cfg.Tools.IsToolEnabled("subagent") {
|
||||
subagentManager := tools.NewSubagentManager(provider, agent.Model, agent.Workspace, msgBus)
|
||||
subagentManager.SetLLMOptions(agent.MaxTokens, agent.Temperature)
|
||||
if cfg.Tools.IsToolEnabled("spawn") {
|
||||
spawnTool := tools.NewSpawnTool(subagentManager)
|
||||
currentAgentID := agentID
|
||||
spawnTool.SetAllowlistChecker(func(targetAgentID string) bool {
|
||||
|
|
@ -192,6 +193,7 @@ func registerSharedTools(
|
|||
agent.Tools.Register(spawnTool)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (al *AgentLoop) Run(ctx context.Context) error {
|
||||
|
|
|
|||
|
|
@ -610,7 +610,6 @@ type ToolsConfig struct {
|
|||
MCP MCPConfig `json:"mcp"`
|
||||
AppendFile ToolConfig `json:"append_file"`
|
||||
EditFile ToolConfig `json:"edit_file"`
|
||||
ExecTool ToolConfig `json:"exec_tool"`
|
||||
FindSkills ToolConfig `json:"find_skills"`
|
||||
I2C ToolConfig `json:"i2c"`
|
||||
InstallSkill ToolConfig `json:"install_skill"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue