feat(core): implement Stage 1 improvements for webfetch tool (#21313)

This commit is contained in:
Aishanee Shah
2026-03-12 16:13:00 -04:00
committed by GitHub
parent 4863816b81
commit 663d9c0537
3 changed files with 416 additions and 163 deletions
+7 -2
View File
@@ -2129,12 +2129,17 @@ export class RecoveryAttemptEvent extends BaseAgentEvent {
export const EVENT_WEB_FETCH_FALLBACK_ATTEMPT =
'gemini_cli.web_fetch_fallback_attempt';
export type WebFetchFallbackReason =
| 'private_ip'
| 'primary_failed'
| 'private_ip_skipped';
export class WebFetchFallbackAttemptEvent implements BaseTelemetryEvent {
'event.name': 'web_fetch_fallback_attempt';
'event.timestamp': string;
reason: 'private_ip' | 'primary_failed';
reason: WebFetchFallbackReason;
constructor(reason: 'private_ip' | 'primary_failed') {
constructor(reason: WebFetchFallbackReason) {
this['event.name'] = 'web_fetch_fallback_attempt';
this['event.timestamp'] = new Date().toISOString();
this.reason = reason;