Fix: webagent call
This commit is contained in:
@@ -17,8 +17,9 @@ func NewWebAgentB(client *AgentClient, sysprompt string) *WebAgentB {
|
|||||||
|
|
||||||
// Process applies the formatting function to raw output
|
// Process applies the formatting function to raw output
|
||||||
func (a *WebAgentB) Process(args map[string]string, rawOutput []byte) []byte {
|
func (a *WebAgentB) Process(args map[string]string, rawOutput []byte) []byte {
|
||||||
msg, err := a.FormMsg(
|
msg, err := a.FormFirstMsg(
|
||||||
fmt.Sprintf("%s\n\nrequest:\n%+v\ntool response:\n%v", a.sysprompt, args, string(rawOutput)))
|
a.sysprompt,
|
||||||
|
fmt.Sprintf("request:\n%+v\ntool response:\n%v", args, string(rawOutput)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
a.Log().Error("failed to process the request", "error", err)
|
a.Log().Error("failed to process the request", "error", err)
|
||||||
return []byte("failed to process the request; err: " + err.Error())
|
return []byte("failed to process the request; err: " + err.Error())
|
||||||
|
|||||||
@@ -61,4 +61,4 @@ StripThinkingFromAPI = true # Strip <think> blocks from messages before sending
|
|||||||
ReasoningEffort = "medium"
|
ReasoningEffort = "medium"
|
||||||
# playwright tools
|
# playwright tools
|
||||||
PlaywrightEnabled = false
|
PlaywrightEnabled = false
|
||||||
PlaywrightDebug = false
|
PlaywrightDebug = false # when true opens in gui mode (headless=false)
|
||||||
|
|||||||
Reference in New Issue
Block a user