mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-14 18:17:29 +08:00
Optimize agent planning and subagent runtime
This commit is contained in:
@@ -38,10 +38,11 @@ func (al *AgentLoop) maybeAutoRoute(ctx context.Context, msg bus.InboundMessage)
|
||||
waitCtx, cancel := context.WithTimeout(ctx, time.Duration(waitTimeout)*time.Second)
|
||||
defer cancel()
|
||||
task, err := al.subagentRouter.DispatchTask(waitCtx, tools.RouterDispatchRequest{
|
||||
Task: taskText,
|
||||
AgentID: agentID,
|
||||
OriginChannel: msg.Channel,
|
||||
OriginChatID: msg.ChatID,
|
||||
Task: taskText,
|
||||
AgentID: agentID,
|
||||
NotifyMainPolicy: "internal_only",
|
||||
OriginChannel: msg.Channel,
|
||||
OriginChatID: msg.ChatID,
|
||||
})
|
||||
if err != nil {
|
||||
return "", true, err
|
||||
|
||||
Reference in New Issue
Block a user