diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-03-09 08:50:33 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-03-09 08:50:33 +0300 |
| commit | c2c90f6d2b766bbba30c8ea8087f799a6c21f525 (patch) | |
| tree | 75a60a98055b31e8341a83a3b6559e5810666e1d /agent/webagent.go | |
| parent | 94769225cfbcd4b0a30acab913915f45d6cb9f4b (diff) | |
Enha: pw agent
Diffstat (limited to 'agent/webagent.go')
| -rw-r--r-- | agent/webagent.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/webagent.go b/agent/webagent.go index ff6cd86..11e9014 100644 --- a/agent/webagent.go +++ b/agent/webagent.go @@ -17,8 +17,8 @@ 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(a.sysprompt, - fmt.Sprintf("request:\n%+v\ntool response:\n%v", args, string(rawOutput))) + msg, err := a.FormMsg( + fmt.Sprintf("%s\n\nrequest:\n%+v\ntool response:\n%v", a.sysprompt, 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()) |
