mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 19:44:30 -07:00
feat(core): implement Stage 1 improvements for webfetch tool (#21313)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user