File size: 734 Bytes
f0634fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export type TelemetryPrimitive = string | number | boolean | null | undefined;

export type TelemetryProperties = Readonly<Record<string, TelemetryPrimitive>>;

export interface SessionTelemetryContext {
  readonly session_id: string;
}

export interface AgentTelemetryContext {
  readonly agent_id: string;
  readonly mode: 'agent' | 'plan';
  readonly provider_type?: string;
  readonly protocol?: string;
}

export interface TurnTelemetryContext {
  readonly turn_id?: number;
  readonly trace_id?: string;
  readonly thinking_effort?: string;
}

export interface TelemetryContextPatch
  extends Partial<SessionTelemetryContext>,
    Partial<AgentTelemetryContext>,
    Partial<TurnTelemetryContext> {
  readonly model?: string;
}