mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
Add initiation method telemetry property (#15818)
This commit is contained in:
committed by
GitHub
parent
da85e3f8f2
commit
521dc7f26c
@@ -14,6 +14,7 @@ import {
|
||||
import {
|
||||
ActionStatus,
|
||||
ConversationInteractionInteraction,
|
||||
InitiationMethod,
|
||||
type StreamingLatency,
|
||||
} from './types.js';
|
||||
import {
|
||||
@@ -100,6 +101,7 @@ describe('telemetry', () => {
|
||||
traceId,
|
||||
streamingLatency,
|
||||
isAgentic: true,
|
||||
initiationMethod: InitiationMethod.COMMAND,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import { getCitations } from '../utils/generateContentResponseUtilities.js';
|
||||
import {
|
||||
ActionStatus,
|
||||
ConversationInteractionInteraction,
|
||||
InitiationMethod,
|
||||
type ConversationInteraction,
|
||||
type ConversationOffered,
|
||||
type StreamingLatency,
|
||||
@@ -96,6 +97,7 @@ export function createConversationOffered(
|
||||
traceId,
|
||||
streamingLatency,
|
||||
isAgentic: true,
|
||||
initiationMethod: InitiationMethod.COMMAND,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -255,6 +255,13 @@ export enum ActionStatus {
|
||||
ACTION_STATUS_EMPTY = 4,
|
||||
}
|
||||
|
||||
export enum InitiationMethod {
|
||||
INITIATION_METHOD_UNSPECIFIED = 0,
|
||||
TAB = 1,
|
||||
COMMAND = 2,
|
||||
AGENT = 3,
|
||||
}
|
||||
|
||||
export interface ConversationOffered {
|
||||
citationCount?: string;
|
||||
includedCode?: boolean;
|
||||
@@ -262,6 +269,7 @@ export interface ConversationOffered {
|
||||
traceId?: string;
|
||||
streamingLatency?: StreamingLatency;
|
||||
isAgentic?: boolean;
|
||||
initiationMethod?: InitiationMethod;
|
||||
}
|
||||
|
||||
export interface StreamingLatency {
|
||||
|
||||
Reference in New Issue
Block a user