tools: align parallel execution with runtime limits

This commit is contained in:
root
2026-02-23 04:46:21 +00:00
parent 86f9d8349e
commit 95e9be18b8
6 changed files with 621 additions and 55 deletions

View File

@@ -12,7 +12,6 @@ import (
"time"
"clawgo/pkg/logger"
)
const (
@@ -144,6 +143,10 @@ type WebFetchTool struct {
maxChars int
}
func (t *WebFetchTool) ParallelSafe() bool {
return true
}
func NewWebFetchTool(maxChars int) *WebFetchTool {
if maxChars <= 0 {
maxChars = 50000