Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions pkg/tools/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,13 +652,7 @@ func (t *WebFetchTool) Execute(ctx context.Context, args map[string]any) *ToolRe
resultJSON, _ := json.MarshalIndent(result, "", " ")

return &ToolResult{
ForLLM: fmt.Sprintf(
"Fetched %d bytes from %s (extractor: %s, truncated: %v)",
len(text),
urlStr,
extractor,
truncated,
),
ForLLM: text,
ForUser: string(resultJSON),
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will break existing unit tests that assert WebFetchTool.ForLLM contains a summary string (see pkg/tools/web_test.go:40-43). Update the test expectations (and any other callers) to validate that ForLLM now contains the extracted text content instead of metadata, or include the needed metadata in ForLLM if the summary is still required by contract.

Copilot uses AI. Check for mistakes.
}
}
Expand Down
Loading