This commit is contained in:
lpf
2026-02-13 17:09:09 +08:00
parent 5bc67ed358
commit ff27e05f71
39 changed files with 3052 additions and 912 deletions

View File

@@ -10,6 +10,8 @@ import (
"regexp"
"strings"
"time"
"clawgo/pkg/logger"
)
const (
@@ -265,12 +267,12 @@ func (t *WebFetchTool) Execute(ctx context.Context, args map[string]interface{})
}
result := map[string]interface{}{
"url": urlStr,
"status": resp.StatusCode,
"extractor": extractor,
"truncated": truncated,
"length": len(text),
"text": text,
"url": urlStr,
"status": resp.StatusCode,
"extractor": extractor,
"truncated": truncated,
logger.FieldFetchedContentLength: len(text),
"text": text,
}
resultJSON, _ := json.MarshalIndent(result, "", " ")