summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-12 07:59:21 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-12 07:59:21 +0300
commite77dbb3160bb3999a98f9fc3f9aac62909cee4a4 (patch)
tree1b700db377e23de1e758b2cbf4caaeca1c1afeb9
parentbb57be95c6fa295310a6f6918367a127016e1110 (diff)
Fix: webagent call
-rw-r--r--agent/webagent.go5
-rw-r--r--config.example.toml2
2 files changed, 4 insertions, 3 deletions
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())
diff --git a/config.example.toml b/config.example.toml
index f74d986..2925fdb 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -61,4 +61,4 @@ StripThinkingFromAPI = true # Strip <think> blocks from messages before sending
ReasoningEffort = "medium"
# playwright tools
PlaywrightEnabled = false
-PlaywrightDebug = false
+PlaywrightDebug = false # when true opens in gui mode (headless=false)