From e77dbb3160bb3999a98f9fc3f9aac62909cee4a4 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 12 Mar 2026 07:59:21 +0300 Subject: Fix: webagent call --- agent/webagent.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'agent') diff --git a/agent/webagent.go b/agent/webagent.go index 11e9014..e8ca3a2 100644 --- a/agent/webagent.go +++ b/agent/webagent.go @@ -17,8 +17,9 @@ func NewWebAgentB(client *AgentClient, sysprompt string) *WebAgentB { // Process applies the formatting function to raw output func (a *WebAgentB) Process(args map[string]string, rawOutput []byte) []byte { - msg, err := a.FormMsg( - fmt.Sprintf("%s\n\nrequest:\n%+v\ntool response:\n%v", a.sysprompt, args, string(rawOutput))) + msg, err := a.FormFirstMsg( + a.sysprompt, + fmt.Sprintf("request:\n%+v\ntool response:\n%v", args, string(rawOutput))) if err != nil { a.Log().Error("failed to process the request", "error", err) return []byte("failed to process the request; err: " + err.Error()) -- cgit v1.2.3