@miradorlabs/web-grpc 3.51.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -218,7 +218,7 @@ export function aISessionEventTypeToJSON(object: AISessionEventType): string {
|
|
|
218
218
|
|
|
219
219
|
/** AIPromptComplexity is how much a prompt asks for, as a model judged it (MIR-469); mirrors ai.api.v1. */
|
|
220
220
|
export enum AIPromptComplexity {
|
|
221
|
-
/** AI_PROMPT_COMPLEXITY_UNSPECIFIED - not
|
|
221
|
+
/** AI_PROMPT_COMPLEXITY_UNSPECIFIED - not labelled */
|
|
222
222
|
AI_PROMPT_COMPLEXITY_UNSPECIFIED = 0,
|
|
223
223
|
AI_PROMPT_COMPLEXITY_SIMPLE = 1,
|
|
224
224
|
AI_PROMPT_COMPLEXITY_MODERATE = 2,
|
|
@@ -263,9 +263,59 @@ export function aIPromptComplexityToJSON(object: AIPromptComplexity): string {
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
+
/** AIPromptClarity is whether a prompt gave the agent enough to act on; mirrors ai.api.v1. */
|
|
267
|
+
export enum AIPromptClarity {
|
|
268
|
+
/** AI_PROMPT_CLARITY_UNSPECIFIED - not labelled */
|
|
269
|
+
AI_PROMPT_CLARITY_UNSPECIFIED = 0,
|
|
270
|
+
/** AI_PROMPT_CLARITY_UNCLEAR - no actionable goal, or key context missing */
|
|
271
|
+
AI_PROMPT_CLARITY_UNCLEAR = 1,
|
|
272
|
+
/** AI_PROMPT_CLARITY_PARTIAL - the goal is clear, but scope or done is vague */
|
|
273
|
+
AI_PROMPT_CLARITY_PARTIAL = 2,
|
|
274
|
+
/** AI_PROMPT_CLARITY_CLEAR - the agent knows what to do and what done looks like */
|
|
275
|
+
AI_PROMPT_CLARITY_CLEAR = 3,
|
|
276
|
+
UNRECOGNIZED = -1,
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export function aIPromptClarityFromJSON(object: any): AIPromptClarity {
|
|
280
|
+
switch (object) {
|
|
281
|
+
case 0:
|
|
282
|
+
case "AI_PROMPT_CLARITY_UNSPECIFIED":
|
|
283
|
+
return AIPromptClarity.AI_PROMPT_CLARITY_UNSPECIFIED;
|
|
284
|
+
case 1:
|
|
285
|
+
case "AI_PROMPT_CLARITY_UNCLEAR":
|
|
286
|
+
return AIPromptClarity.AI_PROMPT_CLARITY_UNCLEAR;
|
|
287
|
+
case 2:
|
|
288
|
+
case "AI_PROMPT_CLARITY_PARTIAL":
|
|
289
|
+
return AIPromptClarity.AI_PROMPT_CLARITY_PARTIAL;
|
|
290
|
+
case 3:
|
|
291
|
+
case "AI_PROMPT_CLARITY_CLEAR":
|
|
292
|
+
return AIPromptClarity.AI_PROMPT_CLARITY_CLEAR;
|
|
293
|
+
case -1:
|
|
294
|
+
case "UNRECOGNIZED":
|
|
295
|
+
default:
|
|
296
|
+
return AIPromptClarity.UNRECOGNIZED;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export function aIPromptClarityToJSON(object: AIPromptClarity): string {
|
|
301
|
+
switch (object) {
|
|
302
|
+
case AIPromptClarity.AI_PROMPT_CLARITY_UNSPECIFIED:
|
|
303
|
+
return "AI_PROMPT_CLARITY_UNSPECIFIED";
|
|
304
|
+
case AIPromptClarity.AI_PROMPT_CLARITY_UNCLEAR:
|
|
305
|
+
return "AI_PROMPT_CLARITY_UNCLEAR";
|
|
306
|
+
case AIPromptClarity.AI_PROMPT_CLARITY_PARTIAL:
|
|
307
|
+
return "AI_PROMPT_CLARITY_PARTIAL";
|
|
308
|
+
case AIPromptClarity.AI_PROMPT_CLARITY_CLEAR:
|
|
309
|
+
return "AI_PROMPT_CLARITY_CLEAR";
|
|
310
|
+
case AIPromptClarity.UNRECOGNIZED:
|
|
311
|
+
default:
|
|
312
|
+
return "UNRECOGNIZED";
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
266
316
|
/** AIPromptSteering is what a prompt does in its session. */
|
|
267
317
|
export enum AIPromptSteering {
|
|
268
|
-
/** AI_PROMPT_STEERING_UNSPECIFIED - not
|
|
318
|
+
/** AI_PROMPT_STEERING_UNSPECIFIED - not labelled */
|
|
269
319
|
AI_PROMPT_STEERING_UNSPECIFIED = 0,
|
|
270
320
|
AI_PROMPT_STEERING_NEW_TASK = 1,
|
|
271
321
|
AI_PROMPT_STEERING_FOLLOW_UP = 2,
|
|
@@ -324,10 +374,10 @@ export function aIPromptSteeringToJSON(object: AIPromptSteering): string {
|
|
|
324
374
|
|
|
325
375
|
/**
|
|
326
376
|
* AIPromptFrustration is how much frustration with the agent a prompt shows. The numbers rise with severity and a new
|
|
327
|
-
* level is only ever appended above the most severe one. NONE is a
|
|
377
|
+
* level is only ever appended above the most severe one. NONE is a label, not "not labelled".
|
|
328
378
|
*/
|
|
329
379
|
export enum AIPromptFrustration {
|
|
330
|
-
/** AI_PROMPT_FRUSTRATION_UNSPECIFIED - not
|
|
380
|
+
/** AI_PROMPT_FRUSTRATION_UNSPECIFIED - not labelled */
|
|
331
381
|
AI_PROMPT_FRUSTRATION_UNSPECIFIED = 0,
|
|
332
382
|
AI_PROMPT_FRUSTRATION_NONE = 1,
|
|
333
383
|
AI_PROMPT_FRUSTRATION_MILD = 2,
|
|
@@ -374,7 +424,7 @@ export function aIPromptFrustrationToJSON(object: AIPromptFrustration): string {
|
|
|
374
424
|
|
|
375
425
|
/** AIPromptSentiment is a prompt's overall tone. */
|
|
376
426
|
export enum AIPromptSentiment {
|
|
377
|
-
/** AI_PROMPT_SENTIMENT_UNSPECIFIED - not
|
|
427
|
+
/** AI_PROMPT_SENTIMENT_UNSPECIFIED - not labelled */
|
|
378
428
|
AI_PROMPT_SENTIMENT_UNSPECIFIED = 0,
|
|
379
429
|
AI_PROMPT_SENTIMENT_NEGATIVE = 1,
|
|
380
430
|
AI_PROMPT_SENTIMENT_NEUTRAL = 2,
|
|
@@ -774,7 +824,7 @@ export function aISessionVerificationToJSON(object: AISessionVerification): stri
|
|
|
774
824
|
|
|
775
825
|
/**
|
|
776
826
|
* AISessionInsightCategory is the kind of problem an insight names. Stored per insight in
|
|
777
|
-
* ai_session_insights.Insights
|
|
827
|
+
* ai_session_insights.Insights.Category; retired values stay, deprecated.
|
|
778
828
|
*/
|
|
779
829
|
export enum AISessionInsightCategory {
|
|
780
830
|
/** AI_SESSION_INSIGHT_CATEGORY_UNSPECIFIED - never stored */
|
|
@@ -861,7 +911,7 @@ export function aISessionInsightCategoryToJSON(object: AISessionInsightCategory)
|
|
|
861
911
|
/**
|
|
862
912
|
* AISessionInsightActionType is the kind of change an insight recommends: an insight always recommends one, and a
|
|
863
913
|
* session with nothing to change has no insights. Stored per insight in
|
|
864
|
-
* ai_session_insights.Insights
|
|
914
|
+
* ai_session_insights.Insights.ActionType; retired values stay, deprecated.
|
|
865
915
|
*/
|
|
866
916
|
export enum AISessionInsightActionType {
|
|
867
917
|
/** AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED - never stored */
|
|
@@ -927,6 +977,56 @@ export function aISessionInsightActionTypeToJSON(object: AISessionInsightActionT
|
|
|
927
977
|
}
|
|
928
978
|
}
|
|
929
979
|
|
|
980
|
+
/** AISessionInsightSeverity is how much an insight's problem cost its session; mirrors ai.api.v1. */
|
|
981
|
+
export enum AISessionInsightSeverity {
|
|
982
|
+
/** AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED - never stored */
|
|
983
|
+
AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED = 0,
|
|
984
|
+
/** AI_SESSION_INSIGHT_SEVERITY_LOW - a small detour the person caught quickly */
|
|
985
|
+
AI_SESSION_INSIGHT_SEVERITY_LOW = 1,
|
|
986
|
+
/** AI_SESSION_INSIGHT_SEVERITY_MEDIUM - real time or rework lost, but the session recovered */
|
|
987
|
+
AI_SESSION_INSIGHT_SEVERITY_MEDIUM = 2,
|
|
988
|
+
/** AI_SESSION_INSIGHT_SEVERITY_HIGH - it derailed the session: much of its time or spend, or the outcome */
|
|
989
|
+
AI_SESSION_INSIGHT_SEVERITY_HIGH = 3,
|
|
990
|
+
UNRECOGNIZED = -1,
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
export function aISessionInsightSeverityFromJSON(object: any): AISessionInsightSeverity {
|
|
994
|
+
switch (object) {
|
|
995
|
+
case 0:
|
|
996
|
+
case "AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED":
|
|
997
|
+
return AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED;
|
|
998
|
+
case 1:
|
|
999
|
+
case "AI_SESSION_INSIGHT_SEVERITY_LOW":
|
|
1000
|
+
return AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_LOW;
|
|
1001
|
+
case 2:
|
|
1002
|
+
case "AI_SESSION_INSIGHT_SEVERITY_MEDIUM":
|
|
1003
|
+
return AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_MEDIUM;
|
|
1004
|
+
case 3:
|
|
1005
|
+
case "AI_SESSION_INSIGHT_SEVERITY_HIGH":
|
|
1006
|
+
return AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_HIGH;
|
|
1007
|
+
case -1:
|
|
1008
|
+
case "UNRECOGNIZED":
|
|
1009
|
+
default:
|
|
1010
|
+
return AISessionInsightSeverity.UNRECOGNIZED;
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
export function aISessionInsightSeverityToJSON(object: AISessionInsightSeverity): string {
|
|
1015
|
+
switch (object) {
|
|
1016
|
+
case AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED:
|
|
1017
|
+
return "AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED";
|
|
1018
|
+
case AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_LOW:
|
|
1019
|
+
return "AI_SESSION_INSIGHT_SEVERITY_LOW";
|
|
1020
|
+
case AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_MEDIUM:
|
|
1021
|
+
return "AI_SESSION_INSIGHT_SEVERITY_MEDIUM";
|
|
1022
|
+
case AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_HIGH:
|
|
1023
|
+
return "AI_SESSION_INSIGHT_SEVERITY_HIGH";
|
|
1024
|
+
case AISessionInsightSeverity.UNRECOGNIZED:
|
|
1025
|
+
default:
|
|
1026
|
+
return "UNRECOGNIZED";
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
930
1030
|
/** AISessionScoreComponentKind names one part of a session score's formula (AISessionScore). */
|
|
931
1031
|
export enum AISessionScoreComponentKind {
|
|
932
1032
|
AI_SESSION_SCORE_COMPONENT_KIND_UNSPECIFIED = 0,
|
|
@@ -934,9 +1034,9 @@ export enum AISessionScoreComponentKind {
|
|
|
934
1034
|
AI_SESSION_SCORE_COMPONENT_KIND_STEERING_LOAD = 2,
|
|
935
1035
|
AI_SESSION_SCORE_COMPONENT_KIND_AGENT_RELIABILITY = 3,
|
|
936
1036
|
AI_SESSION_SCORE_COMPONENT_KIND_VERIFICATION = 4,
|
|
937
|
-
/** AI_SESSION_SCORE_COMPONENT_KIND_REWORK_SPEND - 1 minus the share of the session's spend after its first correction (MIR-469 prompt
|
|
1037
|
+
/** AI_SESSION_SCORE_COMPONENT_KIND_REWORK_SPEND - 1 minus the share of the session's spend after its first correction (MIR-469 prompt labels). */
|
|
938
1038
|
AI_SESSION_SCORE_COMPONENT_KIND_REWORK_SPEND = 5,
|
|
939
|
-
/** AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY - The
|
|
1039
|
+
/** AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY - The share of the session's labelled prompts that are clear (MIR-469 prompt labels). */
|
|
940
1040
|
AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY = 6,
|
|
941
1041
|
UNRECOGNIZED = -1,
|
|
942
1042
|
}
|
|
@@ -1897,10 +1997,10 @@ export interface AISessionSummary {
|
|
|
1897
1997
|
/** The outcome its latest grades give when they were read from the current session_version; UNSPECIFIED otherwise. */
|
|
1898
1998
|
outcome: AISessionOutcome;
|
|
1899
1999
|
/**
|
|
1900
|
-
* The session's prompt
|
|
1901
|
-
* StreamSessions. Absent when no prompt is
|
|
2000
|
+
* The session's prompt labels rolled up (MIR-469), on StreamSessionSummary only, never on ListSessions or
|
|
2001
|
+
* StreamSessions. Absent when no prompt is labelled or the labels could not be read: not available, never zero.
|
|
1902
2002
|
*/
|
|
1903
|
-
|
|
2003
|
+
promptLabelSummary: AIPromptLabelSummary | undefined;
|
|
1904
2004
|
}
|
|
1905
2005
|
|
|
1906
2006
|
export interface StreamSessionsRequest {
|
|
@@ -2057,11 +2157,11 @@ export interface AISessionEvent {
|
|
|
2057
2157
|
*/
|
|
2058
2158
|
subjectAgentId: string;
|
|
2059
2159
|
/**
|
|
2060
|
-
* A model's latest
|
|
2061
|
-
* (not yet, withheld, injected, or from a harness or time without a recorded origin) or the
|
|
2062
|
-
* not available, never zero. A
|
|
2160
|
+
* A model's latest labels for this prompt (MIR-469), on a message · user event only. Absent when it is not labelled
|
|
2161
|
+
* (not yet, withheld, injected, or from a harness or time without a recorded origin) or the labels could not be read:
|
|
2162
|
+
* not available, never zero. A label written after the live tail sent the event shows on the next read.
|
|
2063
2163
|
*/
|
|
2064
|
-
|
|
2164
|
+
promptLabels: AIPromptLabels | undefined;
|
|
2065
2165
|
}
|
|
2066
2166
|
|
|
2067
2167
|
export interface AIContentPart {
|
|
@@ -2070,29 +2170,28 @@ export interface AIContentPart {
|
|
|
2070
2170
|
content: string;
|
|
2071
2171
|
}
|
|
2072
2172
|
|
|
2073
|
-
/**
|
|
2074
|
-
export interface
|
|
2173
|
+
/** AIPromptLabels is a model's labels for one prompt, from its latest labelling; a labelled prompt has all five. */
|
|
2174
|
+
export interface AIPromptLabels {
|
|
2075
2175
|
complexity: AIPromptComplexity;
|
|
2076
|
-
|
|
2077
|
-
clarity: number;
|
|
2176
|
+
clarity: AIPromptClarity;
|
|
2078
2177
|
steering: AIPromptSteering;
|
|
2079
2178
|
frustration: AIPromptFrustration;
|
|
2080
2179
|
sentiment: AIPromptSentiment;
|
|
2081
2180
|
}
|
|
2082
2181
|
|
|
2083
|
-
/**
|
|
2084
|
-
export interface
|
|
2085
|
-
/** At least 1: the summary is absent when no prompt is
|
|
2086
|
-
|
|
2182
|
+
/** AIPromptLabelSummary rolls up one session's labelled prompts, each at its latest labelling. */
|
|
2183
|
+
export interface AIPromptLabelSummary {
|
|
2184
|
+
/** At least 1: the summary is absent when no prompt is labelled. */
|
|
2185
|
+
labelledPrompts: number;
|
|
2087
2186
|
/**
|
|
2088
|
-
* One row per steering value with at least one prompt, in enum order, adding up to
|
|
2089
|
-
* correction has no CORRECTION row.
|
|
2187
|
+
* One row per steering value with at least one prompt, in enum order, adding up to labelled_prompts; a session with
|
|
2188
|
+
* no correction has no CORRECTION row.
|
|
2090
2189
|
*/
|
|
2091
2190
|
steeringCounts: AIPromptSteeringCount[];
|
|
2092
|
-
/** The most severe frustration among the
|
|
2191
|
+
/** The most severe frustration among the labelled prompts. */
|
|
2093
2192
|
peakFrustration: AIPromptFrustration;
|
|
2094
|
-
/**
|
|
2095
|
-
|
|
2193
|
+
/** Labelled prompts whose clarity is CLEAR; share of clear prompts = clear_prompts / labelled_prompts. */
|
|
2194
|
+
clearPrompts: number;
|
|
2096
2195
|
}
|
|
2097
2196
|
|
|
2098
2197
|
export interface AIPromptSteeringCount {
|
|
@@ -2100,7 +2199,7 @@ export interface AIPromptSteeringCount {
|
|
|
2100
2199
|
prompts: number;
|
|
2101
2200
|
}
|
|
2102
2201
|
|
|
2103
|
-
export interface
|
|
2202
|
+
export interface GetPromptLabelTrendRequest {
|
|
2104
2203
|
organizationId: string;
|
|
2105
2204
|
projectId: string;
|
|
2106
2205
|
/**
|
|
@@ -2109,43 +2208,44 @@ export interface GetPromptScoreTrendRequest {
|
|
|
2109
2208
|
*/
|
|
2110
2209
|
startDate: string;
|
|
2111
2210
|
endDate: string;
|
|
2112
|
-
filter:
|
|
2211
|
+
filter: PromptLabelTrendFilter | undefined;
|
|
2113
2212
|
}
|
|
2114
2213
|
|
|
2115
2214
|
/**
|
|
2116
|
-
*
|
|
2215
|
+
* PromptLabelTrendFilter: fields AND, a repeated field matches any of its values, an unset or empty field does not
|
|
2117
2216
|
* filter. A prompt belongs to the user id, else the api key, of its own event, matched as DailyActivityRequest.Filter
|
|
2118
2217
|
* matches principals; a person is the principals ListPrincipals gives for them. An empty list reads the whole project,
|
|
2119
2218
|
* so do not query a person with no principals. Each list holds at most 500 entries.
|
|
2120
2219
|
*/
|
|
2121
|
-
export interface
|
|
2220
|
+
export interface PromptLabelTrendFilter {
|
|
2122
2221
|
principals: DailyActivityPrincipal[];
|
|
2123
2222
|
sourceSystems: string[];
|
|
2124
2223
|
}
|
|
2125
2224
|
|
|
2126
|
-
export interface
|
|
2225
|
+
export interface GetPromptLabelTrendResponse {
|
|
2127
2226
|
status:
|
|
2128
2227
|
| ResponseStatus
|
|
2129
2228
|
| undefined;
|
|
2130
2229
|
/**
|
|
2131
|
-
* One row per ISO week that overlaps the window, oldest first; a week with no
|
|
2132
|
-
*
|
|
2230
|
+
* One row per ISO week that overlaps the window, oldest first; a week with no labelled prompt has zero counts and no
|
|
2231
|
+
* share.
|
|
2133
2232
|
*/
|
|
2134
|
-
weeks:
|
|
2233
|
+
weeks: AIPromptLabelWeek[];
|
|
2135
2234
|
}
|
|
2136
2235
|
|
|
2137
2236
|
/**
|
|
2138
|
-
*
|
|
2139
|
-
* frustration rate = frustrated_prompts /
|
|
2237
|
+
* AIPromptLabelWeek: share of clear prompts = clear_prompts / labelled_prompts, correction rate = corrections /
|
|
2238
|
+
* labelled_prompts, frustration rate = frustrated_prompts / labelled_prompts, each only when labelled_prompts > 0.
|
|
2140
2239
|
*/
|
|
2141
|
-
export interface
|
|
2240
|
+
export interface AIPromptLabelWeek {
|
|
2142
2241
|
/** The week's Monday, YYYY-MM-DD. */
|
|
2143
2242
|
weekStart: string;
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2243
|
+
labelledPrompts: number;
|
|
2244
|
+
/** Labelled prompts whose clarity is CLEAR. */
|
|
2245
|
+
clearPrompts: number;
|
|
2246
|
+
/** Labelled prompts whose steering is CORRECTION. */
|
|
2147
2247
|
corrections: number;
|
|
2148
|
-
/**
|
|
2248
|
+
/** Labelled prompts with MILD or more severe frustration. */
|
|
2149
2249
|
frustratedPrompts: number;
|
|
2150
2250
|
}
|
|
2151
2251
|
|
|
@@ -2904,6 +3004,117 @@ export interface ModelActivityGroup {
|
|
|
2904
3004
|
modelNames: string[];
|
|
2905
3005
|
}
|
|
2906
3006
|
|
|
3007
|
+
export interface ListModelReasoningRequest {
|
|
3008
|
+
organizationId: string;
|
|
3009
|
+
projectId: string;
|
|
3010
|
+
/** Folds stored model names (recorded and served) into keys, as ModelActivityRequest.groups. */
|
|
3011
|
+
groups: ModelActivityGroup[];
|
|
3012
|
+
/**
|
|
3013
|
+
* Folds stored effort spellings into keys by the same rules, at most 64 groups of at most 64 spellings each; ''
|
|
3014
|
+
* cannot be listed and is always its own key.
|
|
3015
|
+
*/
|
|
3016
|
+
effortGroups: EffortGroup[];
|
|
3017
|
+
/**
|
|
3018
|
+
* The half-open range [start_time, end_time) of event time, at most 113 days: up to 17 ISO weeks, and a baseline
|
|
3019
|
+
* for every week shown needs the 4 weeks before them requested too.
|
|
3020
|
+
*/
|
|
3021
|
+
startTime: Date | undefined;
|
|
3022
|
+
endTime: Date | undefined;
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
export interface EffortGroup {
|
|
3026
|
+
key: string;
|
|
3027
|
+
effortNames: string[];
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
export interface ListModelReasoningResponse {
|
|
3031
|
+
status:
|
|
3032
|
+
| ResponseStatus
|
|
3033
|
+
| undefined;
|
|
3034
|
+
/** Calls descending, then model_key, then effort_key ascending. */
|
|
3035
|
+
models: ModelReasoning[];
|
|
3036
|
+
coverage: ReasoningCoverage | undefined;
|
|
3037
|
+
servedModels: ReasoningServedModels | undefined;
|
|
3038
|
+
windowStart: Date | undefined;
|
|
3039
|
+
windowEnd: Date | undefined;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
/**
|
|
3043
|
+
* One (model, effort) pair: counted calls report a thinking count (zero included); percentiles are exact, the
|
|
3044
|
+
* smallest value whose cumulative count reaches ceil(level × n) (the lower middle value for an even n); a
|
|
3045
|
+
* percentile is absent when its count is 0.
|
|
3046
|
+
*/
|
|
3047
|
+
export interface ModelReasoning {
|
|
3048
|
+
modelKey: string;
|
|
3049
|
+
/** '' when the calls reported no effort. */
|
|
3050
|
+
effortKey: string;
|
|
3051
|
+
calls: number;
|
|
3052
|
+
countedCalls: number;
|
|
3053
|
+
zeroThinkingCalls: number;
|
|
3054
|
+
medianPerCall?: number | undefined;
|
|
3055
|
+
p90PerCall?: number | undefined;
|
|
3056
|
+
countedTurns: number;
|
|
3057
|
+
medianPerTurn?:
|
|
3058
|
+
| number
|
|
3059
|
+
| undefined;
|
|
3060
|
+
/**
|
|
3061
|
+
* Every ISO week (Monday 00:00 UTC) the range overlaps, oldest first, empty weeks included; the first can be
|
|
3062
|
+
* partial when start_time is mid-week, and the latest when end_time is.
|
|
3063
|
+
*/
|
|
3064
|
+
weeks: ModelReasoningWeek[];
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* One ISO week of a pair. median_per_call is the value at 1-based rank ceil(n / 2) of its n counted calls (the
|
|
3069
|
+
* lower middle for an even n); median_ci_low and median_ci_high are the nominal ~84% distribution-free rank interval
|
|
3070
|
+
* of the median (z = 1.405), the values at ranks floor(n/2 − 1.405·√n/2) and ceil(n/2 + 1.405·√n/2) + 1 clamped to
|
|
3071
|
+
* [1, n]: sample values, never interpolated. Coverage is nominal, not exact for a finite sample; non-overlap is a
|
|
3072
|
+
* heuristic, not a fixed-level test. All three are absent when counted_calls is 0.
|
|
3073
|
+
*/
|
|
3074
|
+
export interface ModelReasoningWeek {
|
|
3075
|
+
weekStart: Date | undefined;
|
|
3076
|
+
countedCalls: number;
|
|
3077
|
+
medianPerCall?: number | undefined;
|
|
3078
|
+
medianCiLow?: number | undefined;
|
|
3079
|
+
medianCiHigh?:
|
|
3080
|
+
| number
|
|
3081
|
+
| undefined;
|
|
3082
|
+
/** The four prior ISO weeks' counted calls pooled into one sample; present only when all four lie inside the range. */
|
|
3083
|
+
baseline?: ModelReasoningBaseline | undefined;
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
/**
|
|
3087
|
+
* The pooled sample of a week's four prior ISO weeks, by the same median and interval rules; a prior week with no
|
|
3088
|
+
* counted call adds nothing. The median and bounds are absent when counted_calls is 0.
|
|
3089
|
+
*/
|
|
3090
|
+
export interface ModelReasoningBaseline {
|
|
3091
|
+
countedCalls: number;
|
|
3092
|
+
median?: number | undefined;
|
|
3093
|
+
ciLow?: number | undefined;
|
|
3094
|
+
ciHigh?: number | undefined;
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
export interface ReasoningCoverage {
|
|
3098
|
+
calls: number;
|
|
3099
|
+
countedCalls: number;
|
|
3100
|
+
/** Sources with a counted call, ascending. */
|
|
3101
|
+
sourceSystems: string[];
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
export interface ReasoningServedModels {
|
|
3105
|
+
servedCalls: number;
|
|
3106
|
+
/** Recorded and served models folding to different keys: an observed mismatch, a lower bound on substitution. */
|
|
3107
|
+
modelMismatchCalls: number;
|
|
3108
|
+
/** Calls descending, then label ascending; '' is the calls that reported none. */
|
|
3109
|
+
serviceTiers: LabelCount[];
|
|
3110
|
+
inferenceGeos: LabelCount[];
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
export interface LabelCount {
|
|
3114
|
+
label: string;
|
|
3115
|
+
calls: number;
|
|
3116
|
+
}
|
|
3117
|
+
|
|
2907
3118
|
export interface ModelActivityResponse {
|
|
2908
3119
|
status: ResponseStatus | undefined;
|
|
2909
3120
|
models: ModelActivity[];
|
|
@@ -3080,6 +3291,8 @@ export interface AISessionInsight {
|
|
|
3080
3291
|
evidenceRefs: AISessionEventRef[];
|
|
3081
3292
|
cause: string;
|
|
3082
3293
|
action: string;
|
|
3294
|
+
/** How much the problem cost the session, as the model judged it. */
|
|
3295
|
+
severity: AISessionInsightSeverity;
|
|
3083
3296
|
}
|
|
3084
3297
|
|
|
3085
3298
|
/**
|
|
@@ -3114,7 +3327,7 @@ export interface AISessionScoreComponent {
|
|
|
3114
3327
|
kind: AISessionScoreComponentKind;
|
|
3115
3328
|
/**
|
|
3116
3329
|
* False when the component had no input: outcome UNCLEAR, verification UNOBSERVED or NOT_APPLICABLE, or no prompt
|
|
3117
|
-
*
|
|
3330
|
+
* labels (rework spend and prompt clarity, not computed yet).
|
|
3118
3331
|
*/
|
|
3119
3332
|
available: boolean;
|
|
3120
3333
|
/** The formula's weight for the component (points out of 100). */
|
|
@@ -4531,7 +4744,7 @@ function createBaseAISessionSummary(): AISessionSummary {
|
|
|
4531
4744
|
complexity: 0,
|
|
4532
4745
|
sessionScore: undefined,
|
|
4533
4746
|
outcome: 0,
|
|
4534
|
-
|
|
4747
|
+
promptLabelSummary: undefined,
|
|
4535
4748
|
};
|
|
4536
4749
|
}
|
|
4537
4750
|
|
|
@@ -4654,8 +4867,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
4654
4867
|
if (message.outcome !== 0) {
|
|
4655
4868
|
writer.uint32(312).int32(message.outcome);
|
|
4656
4869
|
}
|
|
4657
|
-
if (message.
|
|
4658
|
-
|
|
4870
|
+
if (message.promptLabelSummary !== undefined) {
|
|
4871
|
+
AIPromptLabelSummary.encode(message.promptLabelSummary, writer.uint32(322).fork()).join();
|
|
4659
4872
|
}
|
|
4660
4873
|
return writer;
|
|
4661
4874
|
},
|
|
@@ -4990,7 +5203,7 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
4990
5203
|
break;
|
|
4991
5204
|
}
|
|
4992
5205
|
|
|
4993
|
-
message.
|
|
5206
|
+
message.promptLabelSummary = AIPromptLabelSummary.decode(reader, reader.uint32());
|
|
4994
5207
|
continue;
|
|
4995
5208
|
}
|
|
4996
5209
|
}
|
|
@@ -5154,10 +5367,10 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5154
5367
|
? globalThis.Number(object.session_score)
|
|
5155
5368
|
: undefined,
|
|
5156
5369
|
outcome: isSet(object.outcome) ? aISessionOutcomeFromJSON(object.outcome) : 0,
|
|
5157
|
-
|
|
5158
|
-
?
|
|
5159
|
-
: isSet(object.
|
|
5160
|
-
?
|
|
5370
|
+
promptLabelSummary: isSet(object.promptLabelSummary)
|
|
5371
|
+
? AIPromptLabelSummary.fromJSON(object.promptLabelSummary)
|
|
5372
|
+
: isSet(object.prompt_label_summary)
|
|
5373
|
+
? AIPromptLabelSummary.fromJSON(object.prompt_label_summary)
|
|
5161
5374
|
: undefined,
|
|
5162
5375
|
};
|
|
5163
5376
|
},
|
|
@@ -5281,8 +5494,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5281
5494
|
if (message.outcome !== 0) {
|
|
5282
5495
|
obj.outcome = aISessionOutcomeToJSON(message.outcome);
|
|
5283
5496
|
}
|
|
5284
|
-
if (message.
|
|
5285
|
-
obj.
|
|
5497
|
+
if (message.promptLabelSummary !== undefined) {
|
|
5498
|
+
obj.promptLabelSummary = AIPromptLabelSummary.toJSON(message.promptLabelSummary);
|
|
5286
5499
|
}
|
|
5287
5500
|
return obj;
|
|
5288
5501
|
},
|
|
@@ -5333,8 +5546,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5333
5546
|
message.complexity = object.complexity ?? 0;
|
|
5334
5547
|
message.sessionScore = object.sessionScore ?? undefined;
|
|
5335
5548
|
message.outcome = object.outcome ?? 0;
|
|
5336
|
-
message.
|
|
5337
|
-
?
|
|
5549
|
+
message.promptLabelSummary = (object.promptLabelSummary !== undefined && object.promptLabelSummary !== null)
|
|
5550
|
+
? AIPromptLabelSummary.fromPartial(object.promptLabelSummary)
|
|
5338
5551
|
: undefined;
|
|
5339
5552
|
return message;
|
|
5340
5553
|
},
|
|
@@ -6453,7 +6666,7 @@ function createBaseAISessionEvent(): AISessionEvent {
|
|
|
6453
6666
|
callCategory: "",
|
|
6454
6667
|
replyPhase: "",
|
|
6455
6668
|
subjectAgentId: "",
|
|
6456
|
-
|
|
6669
|
+
promptLabels: undefined,
|
|
6457
6670
|
};
|
|
6458
6671
|
}
|
|
6459
6672
|
|
|
@@ -6546,8 +6759,8 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
6546
6759
|
if (message.subjectAgentId !== "") {
|
|
6547
6760
|
writer.uint32(234).string(message.subjectAgentId);
|
|
6548
6761
|
}
|
|
6549
|
-
if (message.
|
|
6550
|
-
|
|
6762
|
+
if (message.promptLabels !== undefined) {
|
|
6763
|
+
AIPromptLabels.encode(message.promptLabels, writer.uint32(242).fork()).join();
|
|
6551
6764
|
}
|
|
6552
6765
|
return writer;
|
|
6553
6766
|
},
|
|
@@ -6802,7 +7015,7 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
6802
7015
|
break;
|
|
6803
7016
|
}
|
|
6804
7017
|
|
|
6805
|
-
message.
|
|
7018
|
+
message.promptLabels = AIPromptLabels.decode(reader, reader.uint32());
|
|
6806
7019
|
continue;
|
|
6807
7020
|
}
|
|
6808
7021
|
}
|
|
@@ -6918,10 +7131,10 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
6918
7131
|
: isSet(object.subject_agent_id)
|
|
6919
7132
|
? globalThis.String(object.subject_agent_id)
|
|
6920
7133
|
: "",
|
|
6921
|
-
|
|
6922
|
-
?
|
|
6923
|
-
: isSet(object.
|
|
6924
|
-
?
|
|
7134
|
+
promptLabels: isSet(object.promptLabels)
|
|
7135
|
+
? AIPromptLabels.fromJSON(object.promptLabels)
|
|
7136
|
+
: isSet(object.prompt_labels)
|
|
7137
|
+
? AIPromptLabels.fromJSON(object.prompt_labels)
|
|
6925
7138
|
: undefined,
|
|
6926
7139
|
};
|
|
6927
7140
|
},
|
|
@@ -7015,8 +7228,8 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
7015
7228
|
if (message.subjectAgentId !== "") {
|
|
7016
7229
|
obj.subjectAgentId = message.subjectAgentId;
|
|
7017
7230
|
}
|
|
7018
|
-
if (message.
|
|
7019
|
-
obj.
|
|
7231
|
+
if (message.promptLabels !== undefined) {
|
|
7232
|
+
obj.promptLabels = AIPromptLabels.toJSON(message.promptLabels);
|
|
7020
7233
|
}
|
|
7021
7234
|
return obj;
|
|
7022
7235
|
},
|
|
@@ -7057,8 +7270,8 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
7057
7270
|
message.callCategory = object.callCategory ?? "";
|
|
7058
7271
|
message.replyPhase = object.replyPhase ?? "";
|
|
7059
7272
|
message.subjectAgentId = object.subjectAgentId ?? "";
|
|
7060
|
-
message.
|
|
7061
|
-
?
|
|
7273
|
+
message.promptLabels = (object.promptLabels !== undefined && object.promptLabels !== null)
|
|
7274
|
+
? AIPromptLabels.fromPartial(object.promptLabels)
|
|
7062
7275
|
: undefined;
|
|
7063
7276
|
return message;
|
|
7064
7277
|
},
|
|
@@ -7173,17 +7386,17 @@ export const AIContentPart: MessageFns<AIContentPart> = {
|
|
|
7173
7386
|
},
|
|
7174
7387
|
};
|
|
7175
7388
|
|
|
7176
|
-
function
|
|
7389
|
+
function createBaseAIPromptLabels(): AIPromptLabels {
|
|
7177
7390
|
return { complexity: 0, clarity: 0, steering: 0, frustration: 0, sentiment: 0 };
|
|
7178
7391
|
}
|
|
7179
7392
|
|
|
7180
|
-
export const
|
|
7181
|
-
encode(message:
|
|
7393
|
+
export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
7394
|
+
encode(message: AIPromptLabels, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7182
7395
|
if (message.complexity !== 0) {
|
|
7183
7396
|
writer.uint32(8).int32(message.complexity);
|
|
7184
7397
|
}
|
|
7185
7398
|
if (message.clarity !== 0) {
|
|
7186
|
-
writer.uint32(16).
|
|
7399
|
+
writer.uint32(16).int32(message.clarity);
|
|
7187
7400
|
}
|
|
7188
7401
|
if (message.steering !== 0) {
|
|
7189
7402
|
writer.uint32(24).int32(message.steering);
|
|
@@ -7197,7 +7410,7 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7197
7410
|
return writer;
|
|
7198
7411
|
},
|
|
7199
7412
|
|
|
7200
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7413
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabels {
|
|
7201
7414
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7202
7415
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7203
7416
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7206,7 +7419,7 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7206
7419
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7207
7420
|
try {
|
|
7208
7421
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7209
|
-
const message =
|
|
7422
|
+
const message = createBaseAIPromptLabels();
|
|
7210
7423
|
while (reader.pos < end) {
|
|
7211
7424
|
const tag = reader.uint32();
|
|
7212
7425
|
switch (tag >>> 3) {
|
|
@@ -7223,7 +7436,7 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7223
7436
|
break;
|
|
7224
7437
|
}
|
|
7225
7438
|
|
|
7226
|
-
message.clarity = reader.
|
|
7439
|
+
message.clarity = reader.int32() as any;
|
|
7227
7440
|
continue;
|
|
7228
7441
|
}
|
|
7229
7442
|
case 3: {
|
|
@@ -7262,23 +7475,23 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7262
7475
|
}
|
|
7263
7476
|
},
|
|
7264
7477
|
|
|
7265
|
-
fromJSON(object: any):
|
|
7478
|
+
fromJSON(object: any): AIPromptLabels {
|
|
7266
7479
|
return {
|
|
7267
7480
|
complexity: isSet(object.complexity) ? aIPromptComplexityFromJSON(object.complexity) : 0,
|
|
7268
|
-
clarity: isSet(object.clarity) ?
|
|
7481
|
+
clarity: isSet(object.clarity) ? aIPromptClarityFromJSON(object.clarity) : 0,
|
|
7269
7482
|
steering: isSet(object.steering) ? aIPromptSteeringFromJSON(object.steering) : 0,
|
|
7270
7483
|
frustration: isSet(object.frustration) ? aIPromptFrustrationFromJSON(object.frustration) : 0,
|
|
7271
7484
|
sentiment: isSet(object.sentiment) ? aIPromptSentimentFromJSON(object.sentiment) : 0,
|
|
7272
7485
|
};
|
|
7273
7486
|
},
|
|
7274
7487
|
|
|
7275
|
-
toJSON(message:
|
|
7488
|
+
toJSON(message: AIPromptLabels): unknown {
|
|
7276
7489
|
const obj: any = {};
|
|
7277
7490
|
if (message.complexity !== 0) {
|
|
7278
7491
|
obj.complexity = aIPromptComplexityToJSON(message.complexity);
|
|
7279
7492
|
}
|
|
7280
7493
|
if (message.clarity !== 0) {
|
|
7281
|
-
obj.clarity =
|
|
7494
|
+
obj.clarity = aIPromptClarityToJSON(message.clarity);
|
|
7282
7495
|
}
|
|
7283
7496
|
if (message.steering !== 0) {
|
|
7284
7497
|
obj.steering = aIPromptSteeringToJSON(message.steering);
|
|
@@ -7292,11 +7505,11 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7292
7505
|
return obj;
|
|
7293
7506
|
},
|
|
7294
7507
|
|
|
7295
|
-
create<I extends Exact<DeepPartial<
|
|
7296
|
-
return
|
|
7508
|
+
create<I extends Exact<DeepPartial<AIPromptLabels>, I>>(base?: I): AIPromptLabels {
|
|
7509
|
+
return AIPromptLabels.fromPartial(base ?? ({} as any));
|
|
7297
7510
|
},
|
|
7298
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7299
|
-
const message =
|
|
7511
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabels>, I>>(object: I): AIPromptLabels {
|
|
7512
|
+
const message = createBaseAIPromptLabels();
|
|
7300
7513
|
message.complexity = object.complexity ?? 0;
|
|
7301
7514
|
message.clarity = object.clarity ?? 0;
|
|
7302
7515
|
message.steering = object.steering ?? 0;
|
|
@@ -7306,14 +7519,14 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7306
7519
|
},
|
|
7307
7520
|
};
|
|
7308
7521
|
|
|
7309
|
-
function
|
|
7310
|
-
return {
|
|
7522
|
+
function createBaseAIPromptLabelSummary(): AIPromptLabelSummary {
|
|
7523
|
+
return { labelledPrompts: 0, steeringCounts: [], peakFrustration: 0, clearPrompts: 0 };
|
|
7311
7524
|
}
|
|
7312
7525
|
|
|
7313
|
-
export const
|
|
7314
|
-
encode(message:
|
|
7315
|
-
if (message.
|
|
7316
|
-
writer.uint32(8).uint64(message.
|
|
7526
|
+
export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
7527
|
+
encode(message: AIPromptLabelSummary, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7528
|
+
if (message.labelledPrompts !== 0) {
|
|
7529
|
+
writer.uint32(8).uint64(message.labelledPrompts);
|
|
7317
7530
|
}
|
|
7318
7531
|
for (const v of message.steeringCounts) {
|
|
7319
7532
|
AIPromptSteeringCount.encode(v!, writer.uint32(18).fork()).join();
|
|
@@ -7321,13 +7534,13 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7321
7534
|
if (message.peakFrustration !== 0) {
|
|
7322
7535
|
writer.uint32(24).int32(message.peakFrustration);
|
|
7323
7536
|
}
|
|
7324
|
-
if (message.
|
|
7325
|
-
writer.uint32(
|
|
7537
|
+
if (message.clearPrompts !== 0) {
|
|
7538
|
+
writer.uint32(32).uint64(message.clearPrompts);
|
|
7326
7539
|
}
|
|
7327
7540
|
return writer;
|
|
7328
7541
|
},
|
|
7329
7542
|
|
|
7330
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7543
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabelSummary {
|
|
7331
7544
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7332
7545
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7333
7546
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7336,7 +7549,7 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7336
7549
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7337
7550
|
try {
|
|
7338
7551
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7339
|
-
const message =
|
|
7552
|
+
const message = createBaseAIPromptLabelSummary();
|
|
7340
7553
|
while (reader.pos < end) {
|
|
7341
7554
|
const tag = reader.uint32();
|
|
7342
7555
|
switch (tag >>> 3) {
|
|
@@ -7345,7 +7558,7 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7345
7558
|
break;
|
|
7346
7559
|
}
|
|
7347
7560
|
|
|
7348
|
-
message.
|
|
7561
|
+
message.labelledPrompts = longToNumber(reader.uint64());
|
|
7349
7562
|
continue;
|
|
7350
7563
|
}
|
|
7351
7564
|
case 2: {
|
|
@@ -7365,11 +7578,11 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7365
7578
|
continue;
|
|
7366
7579
|
}
|
|
7367
7580
|
case 4: {
|
|
7368
|
-
if (tag !==
|
|
7581
|
+
if (tag !== 32) {
|
|
7369
7582
|
break;
|
|
7370
7583
|
}
|
|
7371
7584
|
|
|
7372
|
-
message.
|
|
7585
|
+
message.clearPrompts = longToNumber(reader.uint64());
|
|
7373
7586
|
continue;
|
|
7374
7587
|
}
|
|
7375
7588
|
}
|
|
@@ -7384,12 +7597,12 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7384
7597
|
}
|
|
7385
7598
|
},
|
|
7386
7599
|
|
|
7387
|
-
fromJSON(object: any):
|
|
7600
|
+
fromJSON(object: any): AIPromptLabelSummary {
|
|
7388
7601
|
return {
|
|
7389
|
-
|
|
7390
|
-
? globalThis.Number(object.
|
|
7391
|
-
: isSet(object.
|
|
7392
|
-
? globalThis.Number(object.
|
|
7602
|
+
labelledPrompts: isSet(object.labelledPrompts)
|
|
7603
|
+
? globalThis.Number(object.labelledPrompts)
|
|
7604
|
+
: isSet(object.labelled_prompts)
|
|
7605
|
+
? globalThis.Number(object.labelled_prompts)
|
|
7393
7606
|
: 0,
|
|
7394
7607
|
steeringCounts: globalThis.Array.isArray(object?.steeringCounts)
|
|
7395
7608
|
? object.steeringCounts.map((e: any) => AIPromptSteeringCount.fromJSON(e))
|
|
@@ -7401,18 +7614,18 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7401
7614
|
: isSet(object.peak_frustration)
|
|
7402
7615
|
? aIPromptFrustrationFromJSON(object.peak_frustration)
|
|
7403
7616
|
: 0,
|
|
7404
|
-
|
|
7405
|
-
? globalThis.Number(object.
|
|
7406
|
-
: isSet(object.
|
|
7407
|
-
? globalThis.Number(object.
|
|
7617
|
+
clearPrompts: isSet(object.clearPrompts)
|
|
7618
|
+
? globalThis.Number(object.clearPrompts)
|
|
7619
|
+
: isSet(object.clear_prompts)
|
|
7620
|
+
? globalThis.Number(object.clear_prompts)
|
|
7408
7621
|
: 0,
|
|
7409
7622
|
};
|
|
7410
7623
|
},
|
|
7411
7624
|
|
|
7412
|
-
toJSON(message:
|
|
7625
|
+
toJSON(message: AIPromptLabelSummary): unknown {
|
|
7413
7626
|
const obj: any = {};
|
|
7414
|
-
if (message.
|
|
7415
|
-
obj.
|
|
7627
|
+
if (message.labelledPrompts !== 0) {
|
|
7628
|
+
obj.labelledPrompts = Math.round(message.labelledPrompts);
|
|
7416
7629
|
}
|
|
7417
7630
|
if (message.steeringCounts?.length) {
|
|
7418
7631
|
obj.steeringCounts = message.steeringCounts.map((e) => AIPromptSteeringCount.toJSON(e));
|
|
@@ -7420,21 +7633,21 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7420
7633
|
if (message.peakFrustration !== 0) {
|
|
7421
7634
|
obj.peakFrustration = aIPromptFrustrationToJSON(message.peakFrustration);
|
|
7422
7635
|
}
|
|
7423
|
-
if (message.
|
|
7424
|
-
obj.
|
|
7636
|
+
if (message.clearPrompts !== 0) {
|
|
7637
|
+
obj.clearPrompts = Math.round(message.clearPrompts);
|
|
7425
7638
|
}
|
|
7426
7639
|
return obj;
|
|
7427
7640
|
},
|
|
7428
7641
|
|
|
7429
|
-
create<I extends Exact<DeepPartial<
|
|
7430
|
-
return
|
|
7642
|
+
create<I extends Exact<DeepPartial<AIPromptLabelSummary>, I>>(base?: I): AIPromptLabelSummary {
|
|
7643
|
+
return AIPromptLabelSummary.fromPartial(base ?? ({} as any));
|
|
7431
7644
|
},
|
|
7432
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7433
|
-
const message =
|
|
7434
|
-
message.
|
|
7645
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabelSummary>, I>>(object: I): AIPromptLabelSummary {
|
|
7646
|
+
const message = createBaseAIPromptLabelSummary();
|
|
7647
|
+
message.labelledPrompts = object.labelledPrompts ?? 0;
|
|
7435
7648
|
message.steeringCounts = object.steeringCounts?.map((e) => AIPromptSteeringCount.fromPartial(e)) || [];
|
|
7436
7649
|
message.peakFrustration = object.peakFrustration ?? 0;
|
|
7437
|
-
message.
|
|
7650
|
+
message.clearPrompts = object.clearPrompts ?? 0;
|
|
7438
7651
|
return message;
|
|
7439
7652
|
},
|
|
7440
7653
|
};
|
|
@@ -7524,12 +7737,12 @@ export const AIPromptSteeringCount: MessageFns<AIPromptSteeringCount> = {
|
|
|
7524
7737
|
},
|
|
7525
7738
|
};
|
|
7526
7739
|
|
|
7527
|
-
function
|
|
7740
|
+
function createBaseGetPromptLabelTrendRequest(): GetPromptLabelTrendRequest {
|
|
7528
7741
|
return { organizationId: "", projectId: "", startDate: "", endDate: "", filter: undefined };
|
|
7529
7742
|
}
|
|
7530
7743
|
|
|
7531
|
-
export const
|
|
7532
|
-
encode(message:
|
|
7744
|
+
export const GetPromptLabelTrendRequest: MessageFns<GetPromptLabelTrendRequest> = {
|
|
7745
|
+
encode(message: GetPromptLabelTrendRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7533
7746
|
if (message.organizationId !== "") {
|
|
7534
7747
|
writer.uint32(10).string(message.organizationId);
|
|
7535
7748
|
}
|
|
@@ -7543,12 +7756,12 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7543
7756
|
writer.uint32(34).string(message.endDate);
|
|
7544
7757
|
}
|
|
7545
7758
|
if (message.filter !== undefined) {
|
|
7546
|
-
|
|
7759
|
+
PromptLabelTrendFilter.encode(message.filter, writer.uint32(42).fork()).join();
|
|
7547
7760
|
}
|
|
7548
7761
|
return writer;
|
|
7549
7762
|
},
|
|
7550
7763
|
|
|
7551
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7764
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetPromptLabelTrendRequest {
|
|
7552
7765
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7553
7766
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7554
7767
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7557,7 +7770,7 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7557
7770
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7558
7771
|
try {
|
|
7559
7772
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7560
|
-
const message =
|
|
7773
|
+
const message = createBaseGetPromptLabelTrendRequest();
|
|
7561
7774
|
while (reader.pos < end) {
|
|
7562
7775
|
const tag = reader.uint32();
|
|
7563
7776
|
switch (tag >>> 3) {
|
|
@@ -7598,7 +7811,7 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7598
7811
|
break;
|
|
7599
7812
|
}
|
|
7600
7813
|
|
|
7601
|
-
message.filter =
|
|
7814
|
+
message.filter = PromptLabelTrendFilter.decode(reader, reader.uint32());
|
|
7602
7815
|
continue;
|
|
7603
7816
|
}
|
|
7604
7817
|
}
|
|
@@ -7613,7 +7826,7 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7613
7826
|
}
|
|
7614
7827
|
},
|
|
7615
7828
|
|
|
7616
|
-
fromJSON(object: any):
|
|
7829
|
+
fromJSON(object: any): GetPromptLabelTrendRequest {
|
|
7617
7830
|
return {
|
|
7618
7831
|
organizationId: isSet(object.organizationId)
|
|
7619
7832
|
? globalThis.String(object.organizationId)
|
|
@@ -7635,11 +7848,11 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7635
7848
|
: isSet(object.end_date)
|
|
7636
7849
|
? globalThis.String(object.end_date)
|
|
7637
7850
|
: "",
|
|
7638
|
-
filter: isSet(object.filter) ?
|
|
7851
|
+
filter: isSet(object.filter) ? PromptLabelTrendFilter.fromJSON(object.filter) : undefined,
|
|
7639
7852
|
};
|
|
7640
7853
|
},
|
|
7641
7854
|
|
|
7642
|
-
toJSON(message:
|
|
7855
|
+
toJSON(message: GetPromptLabelTrendRequest): unknown {
|
|
7643
7856
|
const obj: any = {};
|
|
7644
7857
|
if (message.organizationId !== "") {
|
|
7645
7858
|
obj.organizationId = message.organizationId;
|
|
@@ -7654,33 +7867,33 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7654
7867
|
obj.endDate = message.endDate;
|
|
7655
7868
|
}
|
|
7656
7869
|
if (message.filter !== undefined) {
|
|
7657
|
-
obj.filter =
|
|
7870
|
+
obj.filter = PromptLabelTrendFilter.toJSON(message.filter);
|
|
7658
7871
|
}
|
|
7659
7872
|
return obj;
|
|
7660
7873
|
},
|
|
7661
7874
|
|
|
7662
|
-
create<I extends Exact<DeepPartial<
|
|
7663
|
-
return
|
|
7875
|
+
create<I extends Exact<DeepPartial<GetPromptLabelTrendRequest>, I>>(base?: I): GetPromptLabelTrendRequest {
|
|
7876
|
+
return GetPromptLabelTrendRequest.fromPartial(base ?? ({} as any));
|
|
7664
7877
|
},
|
|
7665
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7666
|
-
const message =
|
|
7878
|
+
fromPartial<I extends Exact<DeepPartial<GetPromptLabelTrendRequest>, I>>(object: I): GetPromptLabelTrendRequest {
|
|
7879
|
+
const message = createBaseGetPromptLabelTrendRequest();
|
|
7667
7880
|
message.organizationId = object.organizationId ?? "";
|
|
7668
7881
|
message.projectId = object.projectId ?? "";
|
|
7669
7882
|
message.startDate = object.startDate ?? "";
|
|
7670
7883
|
message.endDate = object.endDate ?? "";
|
|
7671
7884
|
message.filter = (object.filter !== undefined && object.filter !== null)
|
|
7672
|
-
?
|
|
7885
|
+
? PromptLabelTrendFilter.fromPartial(object.filter)
|
|
7673
7886
|
: undefined;
|
|
7674
7887
|
return message;
|
|
7675
7888
|
},
|
|
7676
7889
|
};
|
|
7677
7890
|
|
|
7678
|
-
function
|
|
7891
|
+
function createBasePromptLabelTrendFilter(): PromptLabelTrendFilter {
|
|
7679
7892
|
return { principals: [], sourceSystems: [] };
|
|
7680
7893
|
}
|
|
7681
7894
|
|
|
7682
|
-
export const
|
|
7683
|
-
encode(message:
|
|
7895
|
+
export const PromptLabelTrendFilter: MessageFns<PromptLabelTrendFilter> = {
|
|
7896
|
+
encode(message: PromptLabelTrendFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7684
7897
|
for (const v of message.principals) {
|
|
7685
7898
|
DailyActivityPrincipal.encode(v!, writer.uint32(10).fork()).join();
|
|
7686
7899
|
}
|
|
@@ -7690,7 +7903,7 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7690
7903
|
return writer;
|
|
7691
7904
|
},
|
|
7692
7905
|
|
|
7693
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7906
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PromptLabelTrendFilter {
|
|
7694
7907
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7695
7908
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7696
7909
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7699,7 +7912,7 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7699
7912
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7700
7913
|
try {
|
|
7701
7914
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7702
|
-
const message =
|
|
7915
|
+
const message = createBasePromptLabelTrendFilter();
|
|
7703
7916
|
while (reader.pos < end) {
|
|
7704
7917
|
const tag = reader.uint32();
|
|
7705
7918
|
switch (tag >>> 3) {
|
|
@@ -7731,7 +7944,7 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7731
7944
|
}
|
|
7732
7945
|
},
|
|
7733
7946
|
|
|
7734
|
-
fromJSON(object: any):
|
|
7947
|
+
fromJSON(object: any): PromptLabelTrendFilter {
|
|
7735
7948
|
return {
|
|
7736
7949
|
principals: globalThis.Array.isArray(object?.principals)
|
|
7737
7950
|
? object.principals.map((e: any) => DailyActivityPrincipal.fromJSON(e))
|
|
@@ -7744,7 +7957,7 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7744
7957
|
};
|
|
7745
7958
|
},
|
|
7746
7959
|
|
|
7747
|
-
toJSON(message:
|
|
7960
|
+
toJSON(message: PromptLabelTrendFilter): unknown {
|
|
7748
7961
|
const obj: any = {};
|
|
7749
7962
|
if (message.principals?.length) {
|
|
7750
7963
|
obj.principals = message.principals.map((e) => DailyActivityPrincipal.toJSON(e));
|
|
@@ -7755,33 +7968,33 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7755
7968
|
return obj;
|
|
7756
7969
|
},
|
|
7757
7970
|
|
|
7758
|
-
create<I extends Exact<DeepPartial<
|
|
7759
|
-
return
|
|
7971
|
+
create<I extends Exact<DeepPartial<PromptLabelTrendFilter>, I>>(base?: I): PromptLabelTrendFilter {
|
|
7972
|
+
return PromptLabelTrendFilter.fromPartial(base ?? ({} as any));
|
|
7760
7973
|
},
|
|
7761
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7762
|
-
const message =
|
|
7974
|
+
fromPartial<I extends Exact<DeepPartial<PromptLabelTrendFilter>, I>>(object: I): PromptLabelTrendFilter {
|
|
7975
|
+
const message = createBasePromptLabelTrendFilter();
|
|
7763
7976
|
message.principals = object.principals?.map((e) => DailyActivityPrincipal.fromPartial(e)) || [];
|
|
7764
7977
|
message.sourceSystems = object.sourceSystems?.map((e) => e) || [];
|
|
7765
7978
|
return message;
|
|
7766
7979
|
},
|
|
7767
7980
|
};
|
|
7768
7981
|
|
|
7769
|
-
function
|
|
7982
|
+
function createBaseGetPromptLabelTrendResponse(): GetPromptLabelTrendResponse {
|
|
7770
7983
|
return { status: undefined, weeks: [] };
|
|
7771
7984
|
}
|
|
7772
7985
|
|
|
7773
|
-
export const
|
|
7774
|
-
encode(message:
|
|
7986
|
+
export const GetPromptLabelTrendResponse: MessageFns<GetPromptLabelTrendResponse> = {
|
|
7987
|
+
encode(message: GetPromptLabelTrendResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7775
7988
|
if (message.status !== undefined) {
|
|
7776
7989
|
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
7777
7990
|
}
|
|
7778
7991
|
for (const v of message.weeks) {
|
|
7779
|
-
|
|
7992
|
+
AIPromptLabelWeek.encode(v!, writer.uint32(18).fork()).join();
|
|
7780
7993
|
}
|
|
7781
7994
|
return writer;
|
|
7782
7995
|
},
|
|
7783
7996
|
|
|
7784
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7997
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetPromptLabelTrendResponse {
|
|
7785
7998
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7786
7999
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7787
8000
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7790,7 +8003,7 @@ export const GetPromptScoreTrendResponse: MessageFns<GetPromptScoreTrendResponse
|
|
|
7790
8003
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7791
8004
|
try {
|
|
7792
8005
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7793
|
-
const message =
|
|
8006
|
+
const message = createBaseGetPromptLabelTrendResponse();
|
|
7794
8007
|
while (reader.pos < end) {
|
|
7795
8008
|
const tag = reader.uint32();
|
|
7796
8009
|
switch (tag >>> 3) {
|
|
@@ -7807,7 +8020,7 @@ export const GetPromptScoreTrendResponse: MessageFns<GetPromptScoreTrendResponse
|
|
|
7807
8020
|
break;
|
|
7808
8021
|
}
|
|
7809
8022
|
|
|
7810
|
-
message.weeks.push(
|
|
8023
|
+
message.weeks.push(AIPromptLabelWeek.decode(reader, reader.uint32()));
|
|
7811
8024
|
continue;
|
|
7812
8025
|
}
|
|
7813
8026
|
}
|
|
@@ -7822,51 +8035,51 @@ export const GetPromptScoreTrendResponse: MessageFns<GetPromptScoreTrendResponse
|
|
|
7822
8035
|
}
|
|
7823
8036
|
},
|
|
7824
8037
|
|
|
7825
|
-
fromJSON(object: any):
|
|
8038
|
+
fromJSON(object: any): GetPromptLabelTrendResponse {
|
|
7826
8039
|
return {
|
|
7827
8040
|
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
7828
|
-
weeks: globalThis.Array.isArray(object?.weeks) ? object.weeks.map((e: any) =>
|
|
8041
|
+
weeks: globalThis.Array.isArray(object?.weeks) ? object.weeks.map((e: any) => AIPromptLabelWeek.fromJSON(e)) : [],
|
|
7829
8042
|
};
|
|
7830
8043
|
},
|
|
7831
8044
|
|
|
7832
|
-
toJSON(message:
|
|
8045
|
+
toJSON(message: GetPromptLabelTrendResponse): unknown {
|
|
7833
8046
|
const obj: any = {};
|
|
7834
8047
|
if (message.status !== undefined) {
|
|
7835
8048
|
obj.status = ResponseStatus.toJSON(message.status);
|
|
7836
8049
|
}
|
|
7837
8050
|
if (message.weeks?.length) {
|
|
7838
|
-
obj.weeks = message.weeks.map((e) =>
|
|
8051
|
+
obj.weeks = message.weeks.map((e) => AIPromptLabelWeek.toJSON(e));
|
|
7839
8052
|
}
|
|
7840
8053
|
return obj;
|
|
7841
8054
|
},
|
|
7842
8055
|
|
|
7843
|
-
create<I extends Exact<DeepPartial<
|
|
7844
|
-
return
|
|
8056
|
+
create<I extends Exact<DeepPartial<GetPromptLabelTrendResponse>, I>>(base?: I): GetPromptLabelTrendResponse {
|
|
8057
|
+
return GetPromptLabelTrendResponse.fromPartial(base ?? ({} as any));
|
|
7845
8058
|
},
|
|
7846
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7847
|
-
const message =
|
|
8059
|
+
fromPartial<I extends Exact<DeepPartial<GetPromptLabelTrendResponse>, I>>(object: I): GetPromptLabelTrendResponse {
|
|
8060
|
+
const message = createBaseGetPromptLabelTrendResponse();
|
|
7848
8061
|
message.status = (object.status !== undefined && object.status !== null)
|
|
7849
8062
|
? ResponseStatus.fromPartial(object.status)
|
|
7850
8063
|
: undefined;
|
|
7851
|
-
message.weeks = object.weeks?.map((e) =>
|
|
8064
|
+
message.weeks = object.weeks?.map((e) => AIPromptLabelWeek.fromPartial(e)) || [];
|
|
7852
8065
|
return message;
|
|
7853
8066
|
},
|
|
7854
8067
|
};
|
|
7855
8068
|
|
|
7856
|
-
function
|
|
7857
|
-
return { weekStart: "",
|
|
8069
|
+
function createBaseAIPromptLabelWeek(): AIPromptLabelWeek {
|
|
8070
|
+
return { weekStart: "", labelledPrompts: 0, clearPrompts: 0, corrections: 0, frustratedPrompts: 0 };
|
|
7858
8071
|
}
|
|
7859
8072
|
|
|
7860
|
-
export const
|
|
7861
|
-
encode(message:
|
|
8073
|
+
export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
8074
|
+
encode(message: AIPromptLabelWeek, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7862
8075
|
if (message.weekStart !== "") {
|
|
7863
8076
|
writer.uint32(10).string(message.weekStart);
|
|
7864
8077
|
}
|
|
7865
|
-
if (message.
|
|
7866
|
-
writer.uint32(16).uint64(message.
|
|
8078
|
+
if (message.labelledPrompts !== 0) {
|
|
8079
|
+
writer.uint32(16).uint64(message.labelledPrompts);
|
|
7867
8080
|
}
|
|
7868
|
-
if (message.
|
|
7869
|
-
writer.uint32(24).uint64(message.
|
|
8081
|
+
if (message.clearPrompts !== 0) {
|
|
8082
|
+
writer.uint32(24).uint64(message.clearPrompts);
|
|
7870
8083
|
}
|
|
7871
8084
|
if (message.corrections !== 0) {
|
|
7872
8085
|
writer.uint32(32).uint64(message.corrections);
|
|
@@ -7877,7 +8090,7 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7877
8090
|
return writer;
|
|
7878
8091
|
},
|
|
7879
8092
|
|
|
7880
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
8093
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabelWeek {
|
|
7881
8094
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7882
8095
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7883
8096
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7886,7 +8099,7 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7886
8099
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7887
8100
|
try {
|
|
7888
8101
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7889
|
-
const message =
|
|
8102
|
+
const message = createBaseAIPromptLabelWeek();
|
|
7890
8103
|
while (reader.pos < end) {
|
|
7891
8104
|
const tag = reader.uint32();
|
|
7892
8105
|
switch (tag >>> 3) {
|
|
@@ -7903,7 +8116,7 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7903
8116
|
break;
|
|
7904
8117
|
}
|
|
7905
8118
|
|
|
7906
|
-
message.
|
|
8119
|
+
message.labelledPrompts = longToNumber(reader.uint64());
|
|
7907
8120
|
continue;
|
|
7908
8121
|
}
|
|
7909
8122
|
case 3: {
|
|
@@ -7911,7 +8124,7 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7911
8124
|
break;
|
|
7912
8125
|
}
|
|
7913
8126
|
|
|
7914
|
-
message.
|
|
8127
|
+
message.clearPrompts = longToNumber(reader.uint64());
|
|
7915
8128
|
continue;
|
|
7916
8129
|
}
|
|
7917
8130
|
case 4: {
|
|
@@ -7942,22 +8155,22 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7942
8155
|
}
|
|
7943
8156
|
},
|
|
7944
8157
|
|
|
7945
|
-
fromJSON(object: any):
|
|
8158
|
+
fromJSON(object: any): AIPromptLabelWeek {
|
|
7946
8159
|
return {
|
|
7947
8160
|
weekStart: isSet(object.weekStart)
|
|
7948
8161
|
? globalThis.String(object.weekStart)
|
|
7949
8162
|
: isSet(object.week_start)
|
|
7950
8163
|
? globalThis.String(object.week_start)
|
|
7951
8164
|
: "",
|
|
7952
|
-
|
|
7953
|
-
? globalThis.Number(object.
|
|
7954
|
-
: isSet(object.
|
|
7955
|
-
? globalThis.Number(object.
|
|
8165
|
+
labelledPrompts: isSet(object.labelledPrompts)
|
|
8166
|
+
? globalThis.Number(object.labelledPrompts)
|
|
8167
|
+
: isSet(object.labelled_prompts)
|
|
8168
|
+
? globalThis.Number(object.labelled_prompts)
|
|
7956
8169
|
: 0,
|
|
7957
|
-
|
|
7958
|
-
? globalThis.Number(object.
|
|
7959
|
-
: isSet(object.
|
|
7960
|
-
? globalThis.Number(object.
|
|
8170
|
+
clearPrompts: isSet(object.clearPrompts)
|
|
8171
|
+
? globalThis.Number(object.clearPrompts)
|
|
8172
|
+
: isSet(object.clear_prompts)
|
|
8173
|
+
? globalThis.Number(object.clear_prompts)
|
|
7961
8174
|
: 0,
|
|
7962
8175
|
corrections: isSet(object.corrections) ? globalThis.Number(object.corrections) : 0,
|
|
7963
8176
|
frustratedPrompts: isSet(object.frustratedPrompts)
|
|
@@ -7968,16 +8181,16 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7968
8181
|
};
|
|
7969
8182
|
},
|
|
7970
8183
|
|
|
7971
|
-
toJSON(message:
|
|
8184
|
+
toJSON(message: AIPromptLabelWeek): unknown {
|
|
7972
8185
|
const obj: any = {};
|
|
7973
8186
|
if (message.weekStart !== "") {
|
|
7974
8187
|
obj.weekStart = message.weekStart;
|
|
7975
8188
|
}
|
|
7976
|
-
if (message.
|
|
7977
|
-
obj.
|
|
8189
|
+
if (message.labelledPrompts !== 0) {
|
|
8190
|
+
obj.labelledPrompts = Math.round(message.labelledPrompts);
|
|
7978
8191
|
}
|
|
7979
|
-
if (message.
|
|
7980
|
-
obj.
|
|
8192
|
+
if (message.clearPrompts !== 0) {
|
|
8193
|
+
obj.clearPrompts = Math.round(message.clearPrompts);
|
|
7981
8194
|
}
|
|
7982
8195
|
if (message.corrections !== 0) {
|
|
7983
8196
|
obj.corrections = Math.round(message.corrections);
|
|
@@ -7988,14 +8201,14 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7988
8201
|
return obj;
|
|
7989
8202
|
},
|
|
7990
8203
|
|
|
7991
|
-
create<I extends Exact<DeepPartial<
|
|
7992
|
-
return
|
|
8204
|
+
create<I extends Exact<DeepPartial<AIPromptLabelWeek>, I>>(base?: I): AIPromptLabelWeek {
|
|
8205
|
+
return AIPromptLabelWeek.fromPartial(base ?? ({} as any));
|
|
7993
8206
|
},
|
|
7994
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7995
|
-
const message =
|
|
8207
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabelWeek>, I>>(object: I): AIPromptLabelWeek {
|
|
8208
|
+
const message = createBaseAIPromptLabelWeek();
|
|
7996
8209
|
message.weekStart = object.weekStart ?? "";
|
|
7997
|
-
message.
|
|
7998
|
-
message.
|
|
8210
|
+
message.labelledPrompts = object.labelledPrompts ?? 0;
|
|
8211
|
+
message.clearPrompts = object.clearPrompts ?? 0;
|
|
7999
8212
|
message.corrections = object.corrections ?? 0;
|
|
8000
8213
|
message.frustratedPrompts = object.frustratedPrompts ?? 0;
|
|
8001
8214
|
return message;
|
|
@@ -18118,28 +18331,34 @@ export const ModelActivityGroup: MessageFns<ModelActivityGroup> = {
|
|
|
18118
18331
|
},
|
|
18119
18332
|
};
|
|
18120
18333
|
|
|
18121
|
-
function
|
|
18122
|
-
return {
|
|
18334
|
+
function createBaseListModelReasoningRequest(): ListModelReasoningRequest {
|
|
18335
|
+
return { organizationId: "", projectId: "", groups: [], effortGroups: [], startTime: undefined, endTime: undefined };
|
|
18123
18336
|
}
|
|
18124
18337
|
|
|
18125
|
-
export const
|
|
18126
|
-
encode(message:
|
|
18127
|
-
if (message.
|
|
18128
|
-
|
|
18338
|
+
export const ListModelReasoningRequest: MessageFns<ListModelReasoningRequest> = {
|
|
18339
|
+
encode(message: ListModelReasoningRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
18340
|
+
if (message.organizationId !== "") {
|
|
18341
|
+
writer.uint32(10).string(message.organizationId);
|
|
18129
18342
|
}
|
|
18130
|
-
|
|
18131
|
-
|
|
18343
|
+
if (message.projectId !== "") {
|
|
18344
|
+
writer.uint32(18).string(message.projectId);
|
|
18132
18345
|
}
|
|
18133
|
-
|
|
18134
|
-
|
|
18346
|
+
for (const v of message.groups) {
|
|
18347
|
+
ModelActivityGroup.encode(v!, writer.uint32(26).fork()).join();
|
|
18135
18348
|
}
|
|
18136
|
-
|
|
18137
|
-
|
|
18349
|
+
for (const v of message.effortGroups) {
|
|
18350
|
+
EffortGroup.encode(v!, writer.uint32(34).fork()).join();
|
|
18351
|
+
}
|
|
18352
|
+
if (message.startTime !== undefined) {
|
|
18353
|
+
Timestamp.encode(toTimestamp(message.startTime), writer.uint32(42).fork()).join();
|
|
18354
|
+
}
|
|
18355
|
+
if (message.endTime !== undefined) {
|
|
18356
|
+
Timestamp.encode(toTimestamp(message.endTime), writer.uint32(50).fork()).join();
|
|
18138
18357
|
}
|
|
18139
18358
|
return writer;
|
|
18140
18359
|
},
|
|
18141
18360
|
|
|
18142
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
18361
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListModelReasoningRequest {
|
|
18143
18362
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18144
18363
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
18145
18364
|
if (previousRecursionDepth >= 100) {
|
|
@@ -18148,7 +18367,7 @@ export const ModelActivityResponse: MessageFns<ModelActivityResponse> = {
|
|
|
18148
18367
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
18149
18368
|
try {
|
|
18150
18369
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
18151
|
-
const message =
|
|
18370
|
+
const message = createBaseListModelReasoningRequest();
|
|
18152
18371
|
while (reader.pos < end) {
|
|
18153
18372
|
const tag = reader.uint32();
|
|
18154
18373
|
switch (tag >>> 3) {
|
|
@@ -18157,7 +18376,7 @@ export const ModelActivityResponse: MessageFns<ModelActivityResponse> = {
|
|
|
18157
18376
|
break;
|
|
18158
18377
|
}
|
|
18159
18378
|
|
|
18160
|
-
message.
|
|
18379
|
+
message.organizationId = reader.string();
|
|
18161
18380
|
continue;
|
|
18162
18381
|
}
|
|
18163
18382
|
case 2: {
|
|
@@ -18165,7 +18384,7 @@ export const ModelActivityResponse: MessageFns<ModelActivityResponse> = {
|
|
|
18165
18384
|
break;
|
|
18166
18385
|
}
|
|
18167
18386
|
|
|
18168
|
-
message.
|
|
18387
|
+
message.projectId = reader.string();
|
|
18169
18388
|
continue;
|
|
18170
18389
|
}
|
|
18171
18390
|
case 3: {
|
|
@@ -18173,7 +18392,7 @@ export const ModelActivityResponse: MessageFns<ModelActivityResponse> = {
|
|
|
18173
18392
|
break;
|
|
18174
18393
|
}
|
|
18175
18394
|
|
|
18176
|
-
message.
|
|
18395
|
+
message.groups.push(ModelActivityGroup.decode(reader, reader.uint32()));
|
|
18177
18396
|
continue;
|
|
18178
18397
|
}
|
|
18179
18398
|
case 4: {
|
|
@@ -18181,7 +18400,23 @@ export const ModelActivityResponse: MessageFns<ModelActivityResponse> = {
|
|
|
18181
18400
|
break;
|
|
18182
18401
|
}
|
|
18183
18402
|
|
|
18184
|
-
message.
|
|
18403
|
+
message.effortGroups.push(EffortGroup.decode(reader, reader.uint32()));
|
|
18404
|
+
continue;
|
|
18405
|
+
}
|
|
18406
|
+
case 5: {
|
|
18407
|
+
if (tag !== 42) {
|
|
18408
|
+
break;
|
|
18409
|
+
}
|
|
18410
|
+
|
|
18411
|
+
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
18412
|
+
continue;
|
|
18413
|
+
}
|
|
18414
|
+
case 6: {
|
|
18415
|
+
if (tag !== 50) {
|
|
18416
|
+
break;
|
|
18417
|
+
}
|
|
18418
|
+
|
|
18419
|
+
message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
18185
18420
|
continue;
|
|
18186
18421
|
}
|
|
18187
18422
|
}
|
|
@@ -18196,106 +18431,1410 @@ export const ModelActivityResponse: MessageFns<ModelActivityResponse> = {
|
|
|
18196
18431
|
}
|
|
18197
18432
|
},
|
|
18198
18433
|
|
|
18199
|
-
fromJSON(object: any):
|
|
18434
|
+
fromJSON(object: any): ListModelReasoningRequest {
|
|
18200
18435
|
return {
|
|
18201
|
-
|
|
18202
|
-
|
|
18203
|
-
|
|
18204
|
-
?
|
|
18205
|
-
:
|
|
18206
|
-
|
|
18436
|
+
organizationId: isSet(object.organizationId)
|
|
18437
|
+
? globalThis.String(object.organizationId)
|
|
18438
|
+
: isSet(object.organization_id)
|
|
18439
|
+
? globalThis.String(object.organization_id)
|
|
18440
|
+
: "",
|
|
18441
|
+
projectId: isSet(object.projectId)
|
|
18442
|
+
? globalThis.String(object.projectId)
|
|
18443
|
+
: isSet(object.project_id)
|
|
18444
|
+
? globalThis.String(object.project_id)
|
|
18445
|
+
: "",
|
|
18446
|
+
groups: globalThis.Array.isArray(object?.groups)
|
|
18447
|
+
? object.groups.map((e: any) => ModelActivityGroup.fromJSON(e))
|
|
18448
|
+
: [],
|
|
18449
|
+
effortGroups: globalThis.Array.isArray(object?.effortGroups)
|
|
18450
|
+
? object.effortGroups.map((e: any) => EffortGroup.fromJSON(e))
|
|
18451
|
+
: globalThis.Array.isArray(object?.effort_groups)
|
|
18452
|
+
? object.effort_groups.map((e: any) => EffortGroup.fromJSON(e))
|
|
18453
|
+
: [],
|
|
18454
|
+
startTime: isSet(object.startTime)
|
|
18455
|
+
? fromJsonTimestamp(object.startTime)
|
|
18456
|
+
: isSet(object.start_time)
|
|
18457
|
+
? fromJsonTimestamp(object.start_time)
|
|
18207
18458
|
: undefined,
|
|
18208
|
-
|
|
18209
|
-
? fromJsonTimestamp(object.
|
|
18210
|
-
: isSet(object.
|
|
18211
|
-
? fromJsonTimestamp(object.
|
|
18459
|
+
endTime: isSet(object.endTime)
|
|
18460
|
+
? fromJsonTimestamp(object.endTime)
|
|
18461
|
+
: isSet(object.end_time)
|
|
18462
|
+
? fromJsonTimestamp(object.end_time)
|
|
18212
18463
|
: undefined,
|
|
18213
18464
|
};
|
|
18214
18465
|
},
|
|
18215
18466
|
|
|
18216
|
-
toJSON(message:
|
|
18467
|
+
toJSON(message: ListModelReasoningRequest): unknown {
|
|
18217
18468
|
const obj: any = {};
|
|
18218
|
-
if (message.
|
|
18219
|
-
obj.
|
|
18469
|
+
if (message.organizationId !== "") {
|
|
18470
|
+
obj.organizationId = message.organizationId;
|
|
18220
18471
|
}
|
|
18221
|
-
if (message.
|
|
18222
|
-
obj.
|
|
18472
|
+
if (message.projectId !== "") {
|
|
18473
|
+
obj.projectId = message.projectId;
|
|
18223
18474
|
}
|
|
18224
|
-
if (message.
|
|
18225
|
-
obj.
|
|
18475
|
+
if (message.groups?.length) {
|
|
18476
|
+
obj.groups = message.groups.map((e) => ModelActivityGroup.toJSON(e));
|
|
18226
18477
|
}
|
|
18227
|
-
if (message.
|
|
18228
|
-
obj.
|
|
18478
|
+
if (message.effortGroups?.length) {
|
|
18479
|
+
obj.effortGroups = message.effortGroups.map((e) => EffortGroup.toJSON(e));
|
|
18480
|
+
}
|
|
18481
|
+
if (message.startTime !== undefined) {
|
|
18482
|
+
obj.startTime = message.startTime.toISOString();
|
|
18483
|
+
}
|
|
18484
|
+
if (message.endTime !== undefined) {
|
|
18485
|
+
obj.endTime = message.endTime.toISOString();
|
|
18229
18486
|
}
|
|
18230
18487
|
return obj;
|
|
18231
18488
|
},
|
|
18232
18489
|
|
|
18233
|
-
create<I extends Exact<DeepPartial<
|
|
18234
|
-
return
|
|
18490
|
+
create<I extends Exact<DeepPartial<ListModelReasoningRequest>, I>>(base?: I): ListModelReasoningRequest {
|
|
18491
|
+
return ListModelReasoningRequest.fromPartial(base ?? ({} as any));
|
|
18235
18492
|
},
|
|
18236
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
18237
|
-
const message =
|
|
18238
|
-
message.
|
|
18239
|
-
|
|
18240
|
-
|
|
18241
|
-
message.
|
|
18242
|
-
message.
|
|
18243
|
-
message.
|
|
18493
|
+
fromPartial<I extends Exact<DeepPartial<ListModelReasoningRequest>, I>>(object: I): ListModelReasoningRequest {
|
|
18494
|
+
const message = createBaseListModelReasoningRequest();
|
|
18495
|
+
message.organizationId = object.organizationId ?? "";
|
|
18496
|
+
message.projectId = object.projectId ?? "";
|
|
18497
|
+
message.groups = object.groups?.map((e) => ModelActivityGroup.fromPartial(e)) || [];
|
|
18498
|
+
message.effortGroups = object.effortGroups?.map((e) => EffortGroup.fromPartial(e)) || [];
|
|
18499
|
+
message.startTime = object.startTime ?? undefined;
|
|
18500
|
+
message.endTime = object.endTime ?? undefined;
|
|
18244
18501
|
return message;
|
|
18245
18502
|
},
|
|
18246
18503
|
};
|
|
18247
18504
|
|
|
18248
|
-
function
|
|
18249
|
-
return {
|
|
18250
|
-
key: "",
|
|
18251
|
-
modelCalls: 0,
|
|
18252
|
-
failedCalls: 0,
|
|
18253
|
-
inputTokens: 0,
|
|
18254
|
-
outputTokens: 0,
|
|
18255
|
-
cacheReadTokens: 0,
|
|
18256
|
-
cacheWriteTokens: 0,
|
|
18257
|
-
costUsd: 0,
|
|
18258
|
-
subscriptionCostUsd: 0,
|
|
18259
|
-
sessions: 0,
|
|
18260
|
-
toolCalls: 0,
|
|
18261
|
-
compactions: 0,
|
|
18262
|
-
subagentRuns: 0,
|
|
18263
|
-
ttftMsSum: 0,
|
|
18264
|
-
ttftCalls: 0,
|
|
18265
|
-
providers: [],
|
|
18266
|
-
principals: [],
|
|
18267
|
-
settledCalls: undefined,
|
|
18268
|
-
};
|
|
18505
|
+
function createBaseEffortGroup(): EffortGroup {
|
|
18506
|
+
return { key: "", effortNames: [] };
|
|
18269
18507
|
}
|
|
18270
18508
|
|
|
18271
|
-
export const
|
|
18272
|
-
encode(message:
|
|
18509
|
+
export const EffortGroup: MessageFns<EffortGroup> = {
|
|
18510
|
+
encode(message: EffortGroup, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
18273
18511
|
if (message.key !== "") {
|
|
18274
18512
|
writer.uint32(10).string(message.key);
|
|
18275
18513
|
}
|
|
18276
|
-
|
|
18277
|
-
writer.uint32(
|
|
18278
|
-
}
|
|
18279
|
-
if (message.failedCalls !== 0) {
|
|
18280
|
-
writer.uint32(24).uint64(message.failedCalls);
|
|
18281
|
-
}
|
|
18282
|
-
if (message.inputTokens !== 0) {
|
|
18283
|
-
writer.uint32(32).uint64(message.inputTokens);
|
|
18284
|
-
}
|
|
18285
|
-
if (message.outputTokens !== 0) {
|
|
18286
|
-
writer.uint32(40).uint64(message.outputTokens);
|
|
18287
|
-
}
|
|
18288
|
-
if (message.cacheReadTokens !== 0) {
|
|
18289
|
-
writer.uint32(48).uint64(message.cacheReadTokens);
|
|
18290
|
-
}
|
|
18291
|
-
if (message.cacheWriteTokens !== 0) {
|
|
18292
|
-
writer.uint32(56).uint64(message.cacheWriteTokens);
|
|
18514
|
+
for (const v of message.effortNames) {
|
|
18515
|
+
writer.uint32(18).string(v!);
|
|
18293
18516
|
}
|
|
18294
|
-
|
|
18295
|
-
|
|
18517
|
+
return writer;
|
|
18518
|
+
},
|
|
18519
|
+
|
|
18520
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EffortGroup {
|
|
18521
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18522
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
18523
|
+
if (previousRecursionDepth >= 100) {
|
|
18524
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
18296
18525
|
}
|
|
18297
|
-
|
|
18298
|
-
|
|
18526
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
18527
|
+
try {
|
|
18528
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
18529
|
+
const message = createBaseEffortGroup();
|
|
18530
|
+
while (reader.pos < end) {
|
|
18531
|
+
const tag = reader.uint32();
|
|
18532
|
+
switch (tag >>> 3) {
|
|
18533
|
+
case 1: {
|
|
18534
|
+
if (tag !== 10) {
|
|
18535
|
+
break;
|
|
18536
|
+
}
|
|
18537
|
+
|
|
18538
|
+
message.key = reader.string();
|
|
18539
|
+
continue;
|
|
18540
|
+
}
|
|
18541
|
+
case 2: {
|
|
18542
|
+
if (tag !== 18) {
|
|
18543
|
+
break;
|
|
18544
|
+
}
|
|
18545
|
+
|
|
18546
|
+
message.effortNames.push(reader.string());
|
|
18547
|
+
continue;
|
|
18548
|
+
}
|
|
18549
|
+
}
|
|
18550
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18551
|
+
break;
|
|
18552
|
+
}
|
|
18553
|
+
reader.skip(tag & 7);
|
|
18554
|
+
}
|
|
18555
|
+
return message;
|
|
18556
|
+
} finally {
|
|
18557
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
18558
|
+
}
|
|
18559
|
+
},
|
|
18560
|
+
|
|
18561
|
+
fromJSON(object: any): EffortGroup {
|
|
18562
|
+
return {
|
|
18563
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
18564
|
+
effortNames: globalThis.Array.isArray(object?.effortNames)
|
|
18565
|
+
? object.effortNames.map((e: any) => globalThis.String(e))
|
|
18566
|
+
: globalThis.Array.isArray(object?.effort_names)
|
|
18567
|
+
? object.effort_names.map((e: any) => globalThis.String(e))
|
|
18568
|
+
: [],
|
|
18569
|
+
};
|
|
18570
|
+
},
|
|
18571
|
+
|
|
18572
|
+
toJSON(message: EffortGroup): unknown {
|
|
18573
|
+
const obj: any = {};
|
|
18574
|
+
if (message.key !== "") {
|
|
18575
|
+
obj.key = message.key;
|
|
18576
|
+
}
|
|
18577
|
+
if (message.effortNames?.length) {
|
|
18578
|
+
obj.effortNames = message.effortNames;
|
|
18579
|
+
}
|
|
18580
|
+
return obj;
|
|
18581
|
+
},
|
|
18582
|
+
|
|
18583
|
+
create<I extends Exact<DeepPartial<EffortGroup>, I>>(base?: I): EffortGroup {
|
|
18584
|
+
return EffortGroup.fromPartial(base ?? ({} as any));
|
|
18585
|
+
},
|
|
18586
|
+
fromPartial<I extends Exact<DeepPartial<EffortGroup>, I>>(object: I): EffortGroup {
|
|
18587
|
+
const message = createBaseEffortGroup();
|
|
18588
|
+
message.key = object.key ?? "";
|
|
18589
|
+
message.effortNames = object.effortNames?.map((e) => e) || [];
|
|
18590
|
+
return message;
|
|
18591
|
+
},
|
|
18592
|
+
};
|
|
18593
|
+
|
|
18594
|
+
function createBaseListModelReasoningResponse(): ListModelReasoningResponse {
|
|
18595
|
+
return {
|
|
18596
|
+
status: undefined,
|
|
18597
|
+
models: [],
|
|
18598
|
+
coverage: undefined,
|
|
18599
|
+
servedModels: undefined,
|
|
18600
|
+
windowStart: undefined,
|
|
18601
|
+
windowEnd: undefined,
|
|
18602
|
+
};
|
|
18603
|
+
}
|
|
18604
|
+
|
|
18605
|
+
export const ListModelReasoningResponse: MessageFns<ListModelReasoningResponse> = {
|
|
18606
|
+
encode(message: ListModelReasoningResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
18607
|
+
if (message.status !== undefined) {
|
|
18608
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
18609
|
+
}
|
|
18610
|
+
for (const v of message.models) {
|
|
18611
|
+
ModelReasoning.encode(v!, writer.uint32(18).fork()).join();
|
|
18612
|
+
}
|
|
18613
|
+
if (message.coverage !== undefined) {
|
|
18614
|
+
ReasoningCoverage.encode(message.coverage, writer.uint32(26).fork()).join();
|
|
18615
|
+
}
|
|
18616
|
+
if (message.servedModels !== undefined) {
|
|
18617
|
+
ReasoningServedModels.encode(message.servedModels, writer.uint32(34).fork()).join();
|
|
18618
|
+
}
|
|
18619
|
+
if (message.windowStart !== undefined) {
|
|
18620
|
+
Timestamp.encode(toTimestamp(message.windowStart), writer.uint32(42).fork()).join();
|
|
18621
|
+
}
|
|
18622
|
+
if (message.windowEnd !== undefined) {
|
|
18623
|
+
Timestamp.encode(toTimestamp(message.windowEnd), writer.uint32(50).fork()).join();
|
|
18624
|
+
}
|
|
18625
|
+
return writer;
|
|
18626
|
+
},
|
|
18627
|
+
|
|
18628
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListModelReasoningResponse {
|
|
18629
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18630
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
18631
|
+
if (previousRecursionDepth >= 100) {
|
|
18632
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
18633
|
+
}
|
|
18634
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
18635
|
+
try {
|
|
18636
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
18637
|
+
const message = createBaseListModelReasoningResponse();
|
|
18638
|
+
while (reader.pos < end) {
|
|
18639
|
+
const tag = reader.uint32();
|
|
18640
|
+
switch (tag >>> 3) {
|
|
18641
|
+
case 1: {
|
|
18642
|
+
if (tag !== 10) {
|
|
18643
|
+
break;
|
|
18644
|
+
}
|
|
18645
|
+
|
|
18646
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
18647
|
+
continue;
|
|
18648
|
+
}
|
|
18649
|
+
case 2: {
|
|
18650
|
+
if (tag !== 18) {
|
|
18651
|
+
break;
|
|
18652
|
+
}
|
|
18653
|
+
|
|
18654
|
+
message.models.push(ModelReasoning.decode(reader, reader.uint32()));
|
|
18655
|
+
continue;
|
|
18656
|
+
}
|
|
18657
|
+
case 3: {
|
|
18658
|
+
if (tag !== 26) {
|
|
18659
|
+
break;
|
|
18660
|
+
}
|
|
18661
|
+
|
|
18662
|
+
message.coverage = ReasoningCoverage.decode(reader, reader.uint32());
|
|
18663
|
+
continue;
|
|
18664
|
+
}
|
|
18665
|
+
case 4: {
|
|
18666
|
+
if (tag !== 34) {
|
|
18667
|
+
break;
|
|
18668
|
+
}
|
|
18669
|
+
|
|
18670
|
+
message.servedModels = ReasoningServedModels.decode(reader, reader.uint32());
|
|
18671
|
+
continue;
|
|
18672
|
+
}
|
|
18673
|
+
case 5: {
|
|
18674
|
+
if (tag !== 42) {
|
|
18675
|
+
break;
|
|
18676
|
+
}
|
|
18677
|
+
|
|
18678
|
+
message.windowStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
18679
|
+
continue;
|
|
18680
|
+
}
|
|
18681
|
+
case 6: {
|
|
18682
|
+
if (tag !== 50) {
|
|
18683
|
+
break;
|
|
18684
|
+
}
|
|
18685
|
+
|
|
18686
|
+
message.windowEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
18687
|
+
continue;
|
|
18688
|
+
}
|
|
18689
|
+
}
|
|
18690
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18691
|
+
break;
|
|
18692
|
+
}
|
|
18693
|
+
reader.skip(tag & 7);
|
|
18694
|
+
}
|
|
18695
|
+
return message;
|
|
18696
|
+
} finally {
|
|
18697
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
18698
|
+
}
|
|
18699
|
+
},
|
|
18700
|
+
|
|
18701
|
+
fromJSON(object: any): ListModelReasoningResponse {
|
|
18702
|
+
return {
|
|
18703
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
18704
|
+
models: globalThis.Array.isArray(object?.models) ? object.models.map((e: any) => ModelReasoning.fromJSON(e)) : [],
|
|
18705
|
+
coverage: isSet(object.coverage) ? ReasoningCoverage.fromJSON(object.coverage) : undefined,
|
|
18706
|
+
servedModels: isSet(object.servedModels)
|
|
18707
|
+
? ReasoningServedModels.fromJSON(object.servedModels)
|
|
18708
|
+
: isSet(object.served_models)
|
|
18709
|
+
? ReasoningServedModels.fromJSON(object.served_models)
|
|
18710
|
+
: undefined,
|
|
18711
|
+
windowStart: isSet(object.windowStart)
|
|
18712
|
+
? fromJsonTimestamp(object.windowStart)
|
|
18713
|
+
: isSet(object.window_start)
|
|
18714
|
+
? fromJsonTimestamp(object.window_start)
|
|
18715
|
+
: undefined,
|
|
18716
|
+
windowEnd: isSet(object.windowEnd)
|
|
18717
|
+
? fromJsonTimestamp(object.windowEnd)
|
|
18718
|
+
: isSet(object.window_end)
|
|
18719
|
+
? fromJsonTimestamp(object.window_end)
|
|
18720
|
+
: undefined,
|
|
18721
|
+
};
|
|
18722
|
+
},
|
|
18723
|
+
|
|
18724
|
+
toJSON(message: ListModelReasoningResponse): unknown {
|
|
18725
|
+
const obj: any = {};
|
|
18726
|
+
if (message.status !== undefined) {
|
|
18727
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
18728
|
+
}
|
|
18729
|
+
if (message.models?.length) {
|
|
18730
|
+
obj.models = message.models.map((e) => ModelReasoning.toJSON(e));
|
|
18731
|
+
}
|
|
18732
|
+
if (message.coverage !== undefined) {
|
|
18733
|
+
obj.coverage = ReasoningCoverage.toJSON(message.coverage);
|
|
18734
|
+
}
|
|
18735
|
+
if (message.servedModels !== undefined) {
|
|
18736
|
+
obj.servedModels = ReasoningServedModels.toJSON(message.servedModels);
|
|
18737
|
+
}
|
|
18738
|
+
if (message.windowStart !== undefined) {
|
|
18739
|
+
obj.windowStart = message.windowStart.toISOString();
|
|
18740
|
+
}
|
|
18741
|
+
if (message.windowEnd !== undefined) {
|
|
18742
|
+
obj.windowEnd = message.windowEnd.toISOString();
|
|
18743
|
+
}
|
|
18744
|
+
return obj;
|
|
18745
|
+
},
|
|
18746
|
+
|
|
18747
|
+
create<I extends Exact<DeepPartial<ListModelReasoningResponse>, I>>(base?: I): ListModelReasoningResponse {
|
|
18748
|
+
return ListModelReasoningResponse.fromPartial(base ?? ({} as any));
|
|
18749
|
+
},
|
|
18750
|
+
fromPartial<I extends Exact<DeepPartial<ListModelReasoningResponse>, I>>(object: I): ListModelReasoningResponse {
|
|
18751
|
+
const message = createBaseListModelReasoningResponse();
|
|
18752
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
18753
|
+
? ResponseStatus.fromPartial(object.status)
|
|
18754
|
+
: undefined;
|
|
18755
|
+
message.models = object.models?.map((e) => ModelReasoning.fromPartial(e)) || [];
|
|
18756
|
+
message.coverage = (object.coverage !== undefined && object.coverage !== null)
|
|
18757
|
+
? ReasoningCoverage.fromPartial(object.coverage)
|
|
18758
|
+
: undefined;
|
|
18759
|
+
message.servedModels = (object.servedModels !== undefined && object.servedModels !== null)
|
|
18760
|
+
? ReasoningServedModels.fromPartial(object.servedModels)
|
|
18761
|
+
: undefined;
|
|
18762
|
+
message.windowStart = object.windowStart ?? undefined;
|
|
18763
|
+
message.windowEnd = object.windowEnd ?? undefined;
|
|
18764
|
+
return message;
|
|
18765
|
+
},
|
|
18766
|
+
};
|
|
18767
|
+
|
|
18768
|
+
function createBaseModelReasoning(): ModelReasoning {
|
|
18769
|
+
return {
|
|
18770
|
+
modelKey: "",
|
|
18771
|
+
effortKey: "",
|
|
18772
|
+
calls: 0,
|
|
18773
|
+
countedCalls: 0,
|
|
18774
|
+
zeroThinkingCalls: 0,
|
|
18775
|
+
medianPerCall: undefined,
|
|
18776
|
+
p90PerCall: undefined,
|
|
18777
|
+
countedTurns: 0,
|
|
18778
|
+
medianPerTurn: undefined,
|
|
18779
|
+
weeks: [],
|
|
18780
|
+
};
|
|
18781
|
+
}
|
|
18782
|
+
|
|
18783
|
+
export const ModelReasoning: MessageFns<ModelReasoning> = {
|
|
18784
|
+
encode(message: ModelReasoning, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
18785
|
+
if (message.modelKey !== "") {
|
|
18786
|
+
writer.uint32(10).string(message.modelKey);
|
|
18787
|
+
}
|
|
18788
|
+
if (message.effortKey !== "") {
|
|
18789
|
+
writer.uint32(18).string(message.effortKey);
|
|
18790
|
+
}
|
|
18791
|
+
if (message.calls !== 0) {
|
|
18792
|
+
writer.uint32(24).uint64(message.calls);
|
|
18793
|
+
}
|
|
18794
|
+
if (message.countedCalls !== 0) {
|
|
18795
|
+
writer.uint32(32).uint64(message.countedCalls);
|
|
18796
|
+
}
|
|
18797
|
+
if (message.zeroThinkingCalls !== 0) {
|
|
18798
|
+
writer.uint32(40).uint64(message.zeroThinkingCalls);
|
|
18799
|
+
}
|
|
18800
|
+
if (message.medianPerCall !== undefined) {
|
|
18801
|
+
writer.uint32(48).uint64(message.medianPerCall);
|
|
18802
|
+
}
|
|
18803
|
+
if (message.p90PerCall !== undefined) {
|
|
18804
|
+
writer.uint32(56).uint64(message.p90PerCall);
|
|
18805
|
+
}
|
|
18806
|
+
if (message.countedTurns !== 0) {
|
|
18807
|
+
writer.uint32(64).uint64(message.countedTurns);
|
|
18808
|
+
}
|
|
18809
|
+
if (message.medianPerTurn !== undefined) {
|
|
18810
|
+
writer.uint32(72).uint64(message.medianPerTurn);
|
|
18811
|
+
}
|
|
18812
|
+
for (const v of message.weeks) {
|
|
18813
|
+
ModelReasoningWeek.encode(v!, writer.uint32(82).fork()).join();
|
|
18814
|
+
}
|
|
18815
|
+
return writer;
|
|
18816
|
+
},
|
|
18817
|
+
|
|
18818
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ModelReasoning {
|
|
18819
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18820
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
18821
|
+
if (previousRecursionDepth >= 100) {
|
|
18822
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
18823
|
+
}
|
|
18824
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
18825
|
+
try {
|
|
18826
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
18827
|
+
const message = createBaseModelReasoning();
|
|
18828
|
+
while (reader.pos < end) {
|
|
18829
|
+
const tag = reader.uint32();
|
|
18830
|
+
switch (tag >>> 3) {
|
|
18831
|
+
case 1: {
|
|
18832
|
+
if (tag !== 10) {
|
|
18833
|
+
break;
|
|
18834
|
+
}
|
|
18835
|
+
|
|
18836
|
+
message.modelKey = reader.string();
|
|
18837
|
+
continue;
|
|
18838
|
+
}
|
|
18839
|
+
case 2: {
|
|
18840
|
+
if (tag !== 18) {
|
|
18841
|
+
break;
|
|
18842
|
+
}
|
|
18843
|
+
|
|
18844
|
+
message.effortKey = reader.string();
|
|
18845
|
+
continue;
|
|
18846
|
+
}
|
|
18847
|
+
case 3: {
|
|
18848
|
+
if (tag !== 24) {
|
|
18849
|
+
break;
|
|
18850
|
+
}
|
|
18851
|
+
|
|
18852
|
+
message.calls = longToNumber(reader.uint64());
|
|
18853
|
+
continue;
|
|
18854
|
+
}
|
|
18855
|
+
case 4: {
|
|
18856
|
+
if (tag !== 32) {
|
|
18857
|
+
break;
|
|
18858
|
+
}
|
|
18859
|
+
|
|
18860
|
+
message.countedCalls = longToNumber(reader.uint64());
|
|
18861
|
+
continue;
|
|
18862
|
+
}
|
|
18863
|
+
case 5: {
|
|
18864
|
+
if (tag !== 40) {
|
|
18865
|
+
break;
|
|
18866
|
+
}
|
|
18867
|
+
|
|
18868
|
+
message.zeroThinkingCalls = longToNumber(reader.uint64());
|
|
18869
|
+
continue;
|
|
18870
|
+
}
|
|
18871
|
+
case 6: {
|
|
18872
|
+
if (tag !== 48) {
|
|
18873
|
+
break;
|
|
18874
|
+
}
|
|
18875
|
+
|
|
18876
|
+
message.medianPerCall = longToNumber(reader.uint64());
|
|
18877
|
+
continue;
|
|
18878
|
+
}
|
|
18879
|
+
case 7: {
|
|
18880
|
+
if (tag !== 56) {
|
|
18881
|
+
break;
|
|
18882
|
+
}
|
|
18883
|
+
|
|
18884
|
+
message.p90PerCall = longToNumber(reader.uint64());
|
|
18885
|
+
continue;
|
|
18886
|
+
}
|
|
18887
|
+
case 8: {
|
|
18888
|
+
if (tag !== 64) {
|
|
18889
|
+
break;
|
|
18890
|
+
}
|
|
18891
|
+
|
|
18892
|
+
message.countedTurns = longToNumber(reader.uint64());
|
|
18893
|
+
continue;
|
|
18894
|
+
}
|
|
18895
|
+
case 9: {
|
|
18896
|
+
if (tag !== 72) {
|
|
18897
|
+
break;
|
|
18898
|
+
}
|
|
18899
|
+
|
|
18900
|
+
message.medianPerTurn = longToNumber(reader.uint64());
|
|
18901
|
+
continue;
|
|
18902
|
+
}
|
|
18903
|
+
case 10: {
|
|
18904
|
+
if (tag !== 82) {
|
|
18905
|
+
break;
|
|
18906
|
+
}
|
|
18907
|
+
|
|
18908
|
+
message.weeks.push(ModelReasoningWeek.decode(reader, reader.uint32()));
|
|
18909
|
+
continue;
|
|
18910
|
+
}
|
|
18911
|
+
}
|
|
18912
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18913
|
+
break;
|
|
18914
|
+
}
|
|
18915
|
+
reader.skip(tag & 7);
|
|
18916
|
+
}
|
|
18917
|
+
return message;
|
|
18918
|
+
} finally {
|
|
18919
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
18920
|
+
}
|
|
18921
|
+
},
|
|
18922
|
+
|
|
18923
|
+
fromJSON(object: any): ModelReasoning {
|
|
18924
|
+
return {
|
|
18925
|
+
modelKey: isSet(object.modelKey)
|
|
18926
|
+
? globalThis.String(object.modelKey)
|
|
18927
|
+
: isSet(object.model_key)
|
|
18928
|
+
? globalThis.String(object.model_key)
|
|
18929
|
+
: "",
|
|
18930
|
+
effortKey: isSet(object.effortKey)
|
|
18931
|
+
? globalThis.String(object.effortKey)
|
|
18932
|
+
: isSet(object.effort_key)
|
|
18933
|
+
? globalThis.String(object.effort_key)
|
|
18934
|
+
: "",
|
|
18935
|
+
calls: isSet(object.calls) ? globalThis.Number(object.calls) : 0,
|
|
18936
|
+
countedCalls: isSet(object.countedCalls)
|
|
18937
|
+
? globalThis.Number(object.countedCalls)
|
|
18938
|
+
: isSet(object.counted_calls)
|
|
18939
|
+
? globalThis.Number(object.counted_calls)
|
|
18940
|
+
: 0,
|
|
18941
|
+
zeroThinkingCalls: isSet(object.zeroThinkingCalls)
|
|
18942
|
+
? globalThis.Number(object.zeroThinkingCalls)
|
|
18943
|
+
: isSet(object.zero_thinking_calls)
|
|
18944
|
+
? globalThis.Number(object.zero_thinking_calls)
|
|
18945
|
+
: 0,
|
|
18946
|
+
medianPerCall: isSet(object.medianPerCall)
|
|
18947
|
+
? globalThis.Number(object.medianPerCall)
|
|
18948
|
+
: isSet(object.median_per_call)
|
|
18949
|
+
? globalThis.Number(object.median_per_call)
|
|
18950
|
+
: undefined,
|
|
18951
|
+
p90PerCall: isSet(object.p90PerCall)
|
|
18952
|
+
? globalThis.Number(object.p90PerCall)
|
|
18953
|
+
: isSet(object.p90_per_call)
|
|
18954
|
+
? globalThis.Number(object.p90_per_call)
|
|
18955
|
+
: undefined,
|
|
18956
|
+
countedTurns: isSet(object.countedTurns)
|
|
18957
|
+
? globalThis.Number(object.countedTurns)
|
|
18958
|
+
: isSet(object.counted_turns)
|
|
18959
|
+
? globalThis.Number(object.counted_turns)
|
|
18960
|
+
: 0,
|
|
18961
|
+
medianPerTurn: isSet(object.medianPerTurn)
|
|
18962
|
+
? globalThis.Number(object.medianPerTurn)
|
|
18963
|
+
: isSet(object.median_per_turn)
|
|
18964
|
+
? globalThis.Number(object.median_per_turn)
|
|
18965
|
+
: undefined,
|
|
18966
|
+
weeks: globalThis.Array.isArray(object?.weeks)
|
|
18967
|
+
? object.weeks.map((e: any) => ModelReasoningWeek.fromJSON(e))
|
|
18968
|
+
: [],
|
|
18969
|
+
};
|
|
18970
|
+
},
|
|
18971
|
+
|
|
18972
|
+
toJSON(message: ModelReasoning): unknown {
|
|
18973
|
+
const obj: any = {};
|
|
18974
|
+
if (message.modelKey !== "") {
|
|
18975
|
+
obj.modelKey = message.modelKey;
|
|
18976
|
+
}
|
|
18977
|
+
if (message.effortKey !== "") {
|
|
18978
|
+
obj.effortKey = message.effortKey;
|
|
18979
|
+
}
|
|
18980
|
+
if (message.calls !== 0) {
|
|
18981
|
+
obj.calls = Math.round(message.calls);
|
|
18982
|
+
}
|
|
18983
|
+
if (message.countedCalls !== 0) {
|
|
18984
|
+
obj.countedCalls = Math.round(message.countedCalls);
|
|
18985
|
+
}
|
|
18986
|
+
if (message.zeroThinkingCalls !== 0) {
|
|
18987
|
+
obj.zeroThinkingCalls = Math.round(message.zeroThinkingCalls);
|
|
18988
|
+
}
|
|
18989
|
+
if (message.medianPerCall !== undefined) {
|
|
18990
|
+
obj.medianPerCall = Math.round(message.medianPerCall);
|
|
18991
|
+
}
|
|
18992
|
+
if (message.p90PerCall !== undefined) {
|
|
18993
|
+
obj.p90PerCall = Math.round(message.p90PerCall);
|
|
18994
|
+
}
|
|
18995
|
+
if (message.countedTurns !== 0) {
|
|
18996
|
+
obj.countedTurns = Math.round(message.countedTurns);
|
|
18997
|
+
}
|
|
18998
|
+
if (message.medianPerTurn !== undefined) {
|
|
18999
|
+
obj.medianPerTurn = Math.round(message.medianPerTurn);
|
|
19000
|
+
}
|
|
19001
|
+
if (message.weeks?.length) {
|
|
19002
|
+
obj.weeks = message.weeks.map((e) => ModelReasoningWeek.toJSON(e));
|
|
19003
|
+
}
|
|
19004
|
+
return obj;
|
|
19005
|
+
},
|
|
19006
|
+
|
|
19007
|
+
create<I extends Exact<DeepPartial<ModelReasoning>, I>>(base?: I): ModelReasoning {
|
|
19008
|
+
return ModelReasoning.fromPartial(base ?? ({} as any));
|
|
19009
|
+
},
|
|
19010
|
+
fromPartial<I extends Exact<DeepPartial<ModelReasoning>, I>>(object: I): ModelReasoning {
|
|
19011
|
+
const message = createBaseModelReasoning();
|
|
19012
|
+
message.modelKey = object.modelKey ?? "";
|
|
19013
|
+
message.effortKey = object.effortKey ?? "";
|
|
19014
|
+
message.calls = object.calls ?? 0;
|
|
19015
|
+
message.countedCalls = object.countedCalls ?? 0;
|
|
19016
|
+
message.zeroThinkingCalls = object.zeroThinkingCalls ?? 0;
|
|
19017
|
+
message.medianPerCall = object.medianPerCall ?? undefined;
|
|
19018
|
+
message.p90PerCall = object.p90PerCall ?? undefined;
|
|
19019
|
+
message.countedTurns = object.countedTurns ?? 0;
|
|
19020
|
+
message.medianPerTurn = object.medianPerTurn ?? undefined;
|
|
19021
|
+
message.weeks = object.weeks?.map((e) => ModelReasoningWeek.fromPartial(e)) || [];
|
|
19022
|
+
return message;
|
|
19023
|
+
},
|
|
19024
|
+
};
|
|
19025
|
+
|
|
19026
|
+
function createBaseModelReasoningWeek(): ModelReasoningWeek {
|
|
19027
|
+
return {
|
|
19028
|
+
weekStart: undefined,
|
|
19029
|
+
countedCalls: 0,
|
|
19030
|
+
medianPerCall: undefined,
|
|
19031
|
+
medianCiLow: undefined,
|
|
19032
|
+
medianCiHigh: undefined,
|
|
19033
|
+
baseline: undefined,
|
|
19034
|
+
};
|
|
19035
|
+
}
|
|
19036
|
+
|
|
19037
|
+
export const ModelReasoningWeek: MessageFns<ModelReasoningWeek> = {
|
|
19038
|
+
encode(message: ModelReasoningWeek, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19039
|
+
if (message.weekStart !== undefined) {
|
|
19040
|
+
Timestamp.encode(toTimestamp(message.weekStart), writer.uint32(10).fork()).join();
|
|
19041
|
+
}
|
|
19042
|
+
if (message.countedCalls !== 0) {
|
|
19043
|
+
writer.uint32(16).uint64(message.countedCalls);
|
|
19044
|
+
}
|
|
19045
|
+
if (message.medianPerCall !== undefined) {
|
|
19046
|
+
writer.uint32(24).uint64(message.medianPerCall);
|
|
19047
|
+
}
|
|
19048
|
+
if (message.medianCiLow !== undefined) {
|
|
19049
|
+
writer.uint32(32).uint64(message.medianCiLow);
|
|
19050
|
+
}
|
|
19051
|
+
if (message.medianCiHigh !== undefined) {
|
|
19052
|
+
writer.uint32(40).uint64(message.medianCiHigh);
|
|
19053
|
+
}
|
|
19054
|
+
if (message.baseline !== undefined) {
|
|
19055
|
+
ModelReasoningBaseline.encode(message.baseline, writer.uint32(50).fork()).join();
|
|
19056
|
+
}
|
|
19057
|
+
return writer;
|
|
19058
|
+
},
|
|
19059
|
+
|
|
19060
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ModelReasoningWeek {
|
|
19061
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19062
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
19063
|
+
if (previousRecursionDepth >= 100) {
|
|
19064
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
19065
|
+
}
|
|
19066
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
19067
|
+
try {
|
|
19068
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19069
|
+
const message = createBaseModelReasoningWeek();
|
|
19070
|
+
while (reader.pos < end) {
|
|
19071
|
+
const tag = reader.uint32();
|
|
19072
|
+
switch (tag >>> 3) {
|
|
19073
|
+
case 1: {
|
|
19074
|
+
if (tag !== 10) {
|
|
19075
|
+
break;
|
|
19076
|
+
}
|
|
19077
|
+
|
|
19078
|
+
message.weekStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
19079
|
+
continue;
|
|
19080
|
+
}
|
|
19081
|
+
case 2: {
|
|
19082
|
+
if (tag !== 16) {
|
|
19083
|
+
break;
|
|
19084
|
+
}
|
|
19085
|
+
|
|
19086
|
+
message.countedCalls = longToNumber(reader.uint64());
|
|
19087
|
+
continue;
|
|
19088
|
+
}
|
|
19089
|
+
case 3: {
|
|
19090
|
+
if (tag !== 24) {
|
|
19091
|
+
break;
|
|
19092
|
+
}
|
|
19093
|
+
|
|
19094
|
+
message.medianPerCall = longToNumber(reader.uint64());
|
|
19095
|
+
continue;
|
|
19096
|
+
}
|
|
19097
|
+
case 4: {
|
|
19098
|
+
if (tag !== 32) {
|
|
19099
|
+
break;
|
|
19100
|
+
}
|
|
19101
|
+
|
|
19102
|
+
message.medianCiLow = longToNumber(reader.uint64());
|
|
19103
|
+
continue;
|
|
19104
|
+
}
|
|
19105
|
+
case 5: {
|
|
19106
|
+
if (tag !== 40) {
|
|
19107
|
+
break;
|
|
19108
|
+
}
|
|
19109
|
+
|
|
19110
|
+
message.medianCiHigh = longToNumber(reader.uint64());
|
|
19111
|
+
continue;
|
|
19112
|
+
}
|
|
19113
|
+
case 6: {
|
|
19114
|
+
if (tag !== 50) {
|
|
19115
|
+
break;
|
|
19116
|
+
}
|
|
19117
|
+
|
|
19118
|
+
message.baseline = ModelReasoningBaseline.decode(reader, reader.uint32());
|
|
19119
|
+
continue;
|
|
19120
|
+
}
|
|
19121
|
+
}
|
|
19122
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
19123
|
+
break;
|
|
19124
|
+
}
|
|
19125
|
+
reader.skip(tag & 7);
|
|
19126
|
+
}
|
|
19127
|
+
return message;
|
|
19128
|
+
} finally {
|
|
19129
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
19130
|
+
}
|
|
19131
|
+
},
|
|
19132
|
+
|
|
19133
|
+
fromJSON(object: any): ModelReasoningWeek {
|
|
19134
|
+
return {
|
|
19135
|
+
weekStart: isSet(object.weekStart)
|
|
19136
|
+
? fromJsonTimestamp(object.weekStart)
|
|
19137
|
+
: isSet(object.week_start)
|
|
19138
|
+
? fromJsonTimestamp(object.week_start)
|
|
19139
|
+
: undefined,
|
|
19140
|
+
countedCalls: isSet(object.countedCalls)
|
|
19141
|
+
? globalThis.Number(object.countedCalls)
|
|
19142
|
+
: isSet(object.counted_calls)
|
|
19143
|
+
? globalThis.Number(object.counted_calls)
|
|
19144
|
+
: 0,
|
|
19145
|
+
medianPerCall: isSet(object.medianPerCall)
|
|
19146
|
+
? globalThis.Number(object.medianPerCall)
|
|
19147
|
+
: isSet(object.median_per_call)
|
|
19148
|
+
? globalThis.Number(object.median_per_call)
|
|
19149
|
+
: undefined,
|
|
19150
|
+
medianCiLow: isSet(object.medianCiLow)
|
|
19151
|
+
? globalThis.Number(object.medianCiLow)
|
|
19152
|
+
: isSet(object.median_ci_low)
|
|
19153
|
+
? globalThis.Number(object.median_ci_low)
|
|
19154
|
+
: undefined,
|
|
19155
|
+
medianCiHigh: isSet(object.medianCiHigh)
|
|
19156
|
+
? globalThis.Number(object.medianCiHigh)
|
|
19157
|
+
: isSet(object.median_ci_high)
|
|
19158
|
+
? globalThis.Number(object.median_ci_high)
|
|
19159
|
+
: undefined,
|
|
19160
|
+
baseline: isSet(object.baseline) ? ModelReasoningBaseline.fromJSON(object.baseline) : undefined,
|
|
19161
|
+
};
|
|
19162
|
+
},
|
|
19163
|
+
|
|
19164
|
+
toJSON(message: ModelReasoningWeek): unknown {
|
|
19165
|
+
const obj: any = {};
|
|
19166
|
+
if (message.weekStart !== undefined) {
|
|
19167
|
+
obj.weekStart = message.weekStart.toISOString();
|
|
19168
|
+
}
|
|
19169
|
+
if (message.countedCalls !== 0) {
|
|
19170
|
+
obj.countedCalls = Math.round(message.countedCalls);
|
|
19171
|
+
}
|
|
19172
|
+
if (message.medianPerCall !== undefined) {
|
|
19173
|
+
obj.medianPerCall = Math.round(message.medianPerCall);
|
|
19174
|
+
}
|
|
19175
|
+
if (message.medianCiLow !== undefined) {
|
|
19176
|
+
obj.medianCiLow = Math.round(message.medianCiLow);
|
|
19177
|
+
}
|
|
19178
|
+
if (message.medianCiHigh !== undefined) {
|
|
19179
|
+
obj.medianCiHigh = Math.round(message.medianCiHigh);
|
|
19180
|
+
}
|
|
19181
|
+
if (message.baseline !== undefined) {
|
|
19182
|
+
obj.baseline = ModelReasoningBaseline.toJSON(message.baseline);
|
|
19183
|
+
}
|
|
19184
|
+
return obj;
|
|
19185
|
+
},
|
|
19186
|
+
|
|
19187
|
+
create<I extends Exact<DeepPartial<ModelReasoningWeek>, I>>(base?: I): ModelReasoningWeek {
|
|
19188
|
+
return ModelReasoningWeek.fromPartial(base ?? ({} as any));
|
|
19189
|
+
},
|
|
19190
|
+
fromPartial<I extends Exact<DeepPartial<ModelReasoningWeek>, I>>(object: I): ModelReasoningWeek {
|
|
19191
|
+
const message = createBaseModelReasoningWeek();
|
|
19192
|
+
message.weekStart = object.weekStart ?? undefined;
|
|
19193
|
+
message.countedCalls = object.countedCalls ?? 0;
|
|
19194
|
+
message.medianPerCall = object.medianPerCall ?? undefined;
|
|
19195
|
+
message.medianCiLow = object.medianCiLow ?? undefined;
|
|
19196
|
+
message.medianCiHigh = object.medianCiHigh ?? undefined;
|
|
19197
|
+
message.baseline = (object.baseline !== undefined && object.baseline !== null)
|
|
19198
|
+
? ModelReasoningBaseline.fromPartial(object.baseline)
|
|
19199
|
+
: undefined;
|
|
19200
|
+
return message;
|
|
19201
|
+
},
|
|
19202
|
+
};
|
|
19203
|
+
|
|
19204
|
+
function createBaseModelReasoningBaseline(): ModelReasoningBaseline {
|
|
19205
|
+
return { countedCalls: 0, median: undefined, ciLow: undefined, ciHigh: undefined };
|
|
19206
|
+
}
|
|
19207
|
+
|
|
19208
|
+
export const ModelReasoningBaseline: MessageFns<ModelReasoningBaseline> = {
|
|
19209
|
+
encode(message: ModelReasoningBaseline, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19210
|
+
if (message.countedCalls !== 0) {
|
|
19211
|
+
writer.uint32(8).uint64(message.countedCalls);
|
|
19212
|
+
}
|
|
19213
|
+
if (message.median !== undefined) {
|
|
19214
|
+
writer.uint32(16).uint64(message.median);
|
|
19215
|
+
}
|
|
19216
|
+
if (message.ciLow !== undefined) {
|
|
19217
|
+
writer.uint32(24).uint64(message.ciLow);
|
|
19218
|
+
}
|
|
19219
|
+
if (message.ciHigh !== undefined) {
|
|
19220
|
+
writer.uint32(32).uint64(message.ciHigh);
|
|
19221
|
+
}
|
|
19222
|
+
return writer;
|
|
19223
|
+
},
|
|
19224
|
+
|
|
19225
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ModelReasoningBaseline {
|
|
19226
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19227
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
19228
|
+
if (previousRecursionDepth >= 100) {
|
|
19229
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
19230
|
+
}
|
|
19231
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
19232
|
+
try {
|
|
19233
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19234
|
+
const message = createBaseModelReasoningBaseline();
|
|
19235
|
+
while (reader.pos < end) {
|
|
19236
|
+
const tag = reader.uint32();
|
|
19237
|
+
switch (tag >>> 3) {
|
|
19238
|
+
case 1: {
|
|
19239
|
+
if (tag !== 8) {
|
|
19240
|
+
break;
|
|
19241
|
+
}
|
|
19242
|
+
|
|
19243
|
+
message.countedCalls = longToNumber(reader.uint64());
|
|
19244
|
+
continue;
|
|
19245
|
+
}
|
|
19246
|
+
case 2: {
|
|
19247
|
+
if (tag !== 16) {
|
|
19248
|
+
break;
|
|
19249
|
+
}
|
|
19250
|
+
|
|
19251
|
+
message.median = longToNumber(reader.uint64());
|
|
19252
|
+
continue;
|
|
19253
|
+
}
|
|
19254
|
+
case 3: {
|
|
19255
|
+
if (tag !== 24) {
|
|
19256
|
+
break;
|
|
19257
|
+
}
|
|
19258
|
+
|
|
19259
|
+
message.ciLow = longToNumber(reader.uint64());
|
|
19260
|
+
continue;
|
|
19261
|
+
}
|
|
19262
|
+
case 4: {
|
|
19263
|
+
if (tag !== 32) {
|
|
19264
|
+
break;
|
|
19265
|
+
}
|
|
19266
|
+
|
|
19267
|
+
message.ciHigh = longToNumber(reader.uint64());
|
|
19268
|
+
continue;
|
|
19269
|
+
}
|
|
19270
|
+
}
|
|
19271
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
19272
|
+
break;
|
|
19273
|
+
}
|
|
19274
|
+
reader.skip(tag & 7);
|
|
19275
|
+
}
|
|
19276
|
+
return message;
|
|
19277
|
+
} finally {
|
|
19278
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
19279
|
+
}
|
|
19280
|
+
},
|
|
19281
|
+
|
|
19282
|
+
fromJSON(object: any): ModelReasoningBaseline {
|
|
19283
|
+
return {
|
|
19284
|
+
countedCalls: isSet(object.countedCalls)
|
|
19285
|
+
? globalThis.Number(object.countedCalls)
|
|
19286
|
+
: isSet(object.counted_calls)
|
|
19287
|
+
? globalThis.Number(object.counted_calls)
|
|
19288
|
+
: 0,
|
|
19289
|
+
median: isSet(object.median) ? globalThis.Number(object.median) : undefined,
|
|
19290
|
+
ciLow: isSet(object.ciLow)
|
|
19291
|
+
? globalThis.Number(object.ciLow)
|
|
19292
|
+
: isSet(object.ci_low)
|
|
19293
|
+
? globalThis.Number(object.ci_low)
|
|
19294
|
+
: undefined,
|
|
19295
|
+
ciHigh: isSet(object.ciHigh)
|
|
19296
|
+
? globalThis.Number(object.ciHigh)
|
|
19297
|
+
: isSet(object.ci_high)
|
|
19298
|
+
? globalThis.Number(object.ci_high)
|
|
19299
|
+
: undefined,
|
|
19300
|
+
};
|
|
19301
|
+
},
|
|
19302
|
+
|
|
19303
|
+
toJSON(message: ModelReasoningBaseline): unknown {
|
|
19304
|
+
const obj: any = {};
|
|
19305
|
+
if (message.countedCalls !== 0) {
|
|
19306
|
+
obj.countedCalls = Math.round(message.countedCalls);
|
|
19307
|
+
}
|
|
19308
|
+
if (message.median !== undefined) {
|
|
19309
|
+
obj.median = Math.round(message.median);
|
|
19310
|
+
}
|
|
19311
|
+
if (message.ciLow !== undefined) {
|
|
19312
|
+
obj.ciLow = Math.round(message.ciLow);
|
|
19313
|
+
}
|
|
19314
|
+
if (message.ciHigh !== undefined) {
|
|
19315
|
+
obj.ciHigh = Math.round(message.ciHigh);
|
|
19316
|
+
}
|
|
19317
|
+
return obj;
|
|
19318
|
+
},
|
|
19319
|
+
|
|
19320
|
+
create<I extends Exact<DeepPartial<ModelReasoningBaseline>, I>>(base?: I): ModelReasoningBaseline {
|
|
19321
|
+
return ModelReasoningBaseline.fromPartial(base ?? ({} as any));
|
|
19322
|
+
},
|
|
19323
|
+
fromPartial<I extends Exact<DeepPartial<ModelReasoningBaseline>, I>>(object: I): ModelReasoningBaseline {
|
|
19324
|
+
const message = createBaseModelReasoningBaseline();
|
|
19325
|
+
message.countedCalls = object.countedCalls ?? 0;
|
|
19326
|
+
message.median = object.median ?? undefined;
|
|
19327
|
+
message.ciLow = object.ciLow ?? undefined;
|
|
19328
|
+
message.ciHigh = object.ciHigh ?? undefined;
|
|
19329
|
+
return message;
|
|
19330
|
+
},
|
|
19331
|
+
};
|
|
19332
|
+
|
|
19333
|
+
function createBaseReasoningCoverage(): ReasoningCoverage {
|
|
19334
|
+
return { calls: 0, countedCalls: 0, sourceSystems: [] };
|
|
19335
|
+
}
|
|
19336
|
+
|
|
19337
|
+
export const ReasoningCoverage: MessageFns<ReasoningCoverage> = {
|
|
19338
|
+
encode(message: ReasoningCoverage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19339
|
+
if (message.calls !== 0) {
|
|
19340
|
+
writer.uint32(8).uint64(message.calls);
|
|
19341
|
+
}
|
|
19342
|
+
if (message.countedCalls !== 0) {
|
|
19343
|
+
writer.uint32(16).uint64(message.countedCalls);
|
|
19344
|
+
}
|
|
19345
|
+
for (const v of message.sourceSystems) {
|
|
19346
|
+
writer.uint32(26).string(v!);
|
|
19347
|
+
}
|
|
19348
|
+
return writer;
|
|
19349
|
+
},
|
|
19350
|
+
|
|
19351
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ReasoningCoverage {
|
|
19352
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19353
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
19354
|
+
if (previousRecursionDepth >= 100) {
|
|
19355
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
19356
|
+
}
|
|
19357
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
19358
|
+
try {
|
|
19359
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19360
|
+
const message = createBaseReasoningCoverage();
|
|
19361
|
+
while (reader.pos < end) {
|
|
19362
|
+
const tag = reader.uint32();
|
|
19363
|
+
switch (tag >>> 3) {
|
|
19364
|
+
case 1: {
|
|
19365
|
+
if (tag !== 8) {
|
|
19366
|
+
break;
|
|
19367
|
+
}
|
|
19368
|
+
|
|
19369
|
+
message.calls = longToNumber(reader.uint64());
|
|
19370
|
+
continue;
|
|
19371
|
+
}
|
|
19372
|
+
case 2: {
|
|
19373
|
+
if (tag !== 16) {
|
|
19374
|
+
break;
|
|
19375
|
+
}
|
|
19376
|
+
|
|
19377
|
+
message.countedCalls = longToNumber(reader.uint64());
|
|
19378
|
+
continue;
|
|
19379
|
+
}
|
|
19380
|
+
case 3: {
|
|
19381
|
+
if (tag !== 26) {
|
|
19382
|
+
break;
|
|
19383
|
+
}
|
|
19384
|
+
|
|
19385
|
+
message.sourceSystems.push(reader.string());
|
|
19386
|
+
continue;
|
|
19387
|
+
}
|
|
19388
|
+
}
|
|
19389
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
19390
|
+
break;
|
|
19391
|
+
}
|
|
19392
|
+
reader.skip(tag & 7);
|
|
19393
|
+
}
|
|
19394
|
+
return message;
|
|
19395
|
+
} finally {
|
|
19396
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
19397
|
+
}
|
|
19398
|
+
},
|
|
19399
|
+
|
|
19400
|
+
fromJSON(object: any): ReasoningCoverage {
|
|
19401
|
+
return {
|
|
19402
|
+
calls: isSet(object.calls) ? globalThis.Number(object.calls) : 0,
|
|
19403
|
+
countedCalls: isSet(object.countedCalls)
|
|
19404
|
+
? globalThis.Number(object.countedCalls)
|
|
19405
|
+
: isSet(object.counted_calls)
|
|
19406
|
+
? globalThis.Number(object.counted_calls)
|
|
19407
|
+
: 0,
|
|
19408
|
+
sourceSystems: globalThis.Array.isArray(object?.sourceSystems)
|
|
19409
|
+
? object.sourceSystems.map((e: any) => globalThis.String(e))
|
|
19410
|
+
: globalThis.Array.isArray(object?.source_systems)
|
|
19411
|
+
? object.source_systems.map((e: any) => globalThis.String(e))
|
|
19412
|
+
: [],
|
|
19413
|
+
};
|
|
19414
|
+
},
|
|
19415
|
+
|
|
19416
|
+
toJSON(message: ReasoningCoverage): unknown {
|
|
19417
|
+
const obj: any = {};
|
|
19418
|
+
if (message.calls !== 0) {
|
|
19419
|
+
obj.calls = Math.round(message.calls);
|
|
19420
|
+
}
|
|
19421
|
+
if (message.countedCalls !== 0) {
|
|
19422
|
+
obj.countedCalls = Math.round(message.countedCalls);
|
|
19423
|
+
}
|
|
19424
|
+
if (message.sourceSystems?.length) {
|
|
19425
|
+
obj.sourceSystems = message.sourceSystems;
|
|
19426
|
+
}
|
|
19427
|
+
return obj;
|
|
19428
|
+
},
|
|
19429
|
+
|
|
19430
|
+
create<I extends Exact<DeepPartial<ReasoningCoverage>, I>>(base?: I): ReasoningCoverage {
|
|
19431
|
+
return ReasoningCoverage.fromPartial(base ?? ({} as any));
|
|
19432
|
+
},
|
|
19433
|
+
fromPartial<I extends Exact<DeepPartial<ReasoningCoverage>, I>>(object: I): ReasoningCoverage {
|
|
19434
|
+
const message = createBaseReasoningCoverage();
|
|
19435
|
+
message.calls = object.calls ?? 0;
|
|
19436
|
+
message.countedCalls = object.countedCalls ?? 0;
|
|
19437
|
+
message.sourceSystems = object.sourceSystems?.map((e) => e) || [];
|
|
19438
|
+
return message;
|
|
19439
|
+
},
|
|
19440
|
+
};
|
|
19441
|
+
|
|
19442
|
+
function createBaseReasoningServedModels(): ReasoningServedModels {
|
|
19443
|
+
return { servedCalls: 0, modelMismatchCalls: 0, serviceTiers: [], inferenceGeos: [] };
|
|
19444
|
+
}
|
|
19445
|
+
|
|
19446
|
+
export const ReasoningServedModels: MessageFns<ReasoningServedModels> = {
|
|
19447
|
+
encode(message: ReasoningServedModels, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19448
|
+
if (message.servedCalls !== 0) {
|
|
19449
|
+
writer.uint32(8).uint64(message.servedCalls);
|
|
19450
|
+
}
|
|
19451
|
+
if (message.modelMismatchCalls !== 0) {
|
|
19452
|
+
writer.uint32(16).uint64(message.modelMismatchCalls);
|
|
19453
|
+
}
|
|
19454
|
+
for (const v of message.serviceTiers) {
|
|
19455
|
+
LabelCount.encode(v!, writer.uint32(26).fork()).join();
|
|
19456
|
+
}
|
|
19457
|
+
for (const v of message.inferenceGeos) {
|
|
19458
|
+
LabelCount.encode(v!, writer.uint32(34).fork()).join();
|
|
19459
|
+
}
|
|
19460
|
+
return writer;
|
|
19461
|
+
},
|
|
19462
|
+
|
|
19463
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ReasoningServedModels {
|
|
19464
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19465
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
19466
|
+
if (previousRecursionDepth >= 100) {
|
|
19467
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
19468
|
+
}
|
|
19469
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
19470
|
+
try {
|
|
19471
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19472
|
+
const message = createBaseReasoningServedModels();
|
|
19473
|
+
while (reader.pos < end) {
|
|
19474
|
+
const tag = reader.uint32();
|
|
19475
|
+
switch (tag >>> 3) {
|
|
19476
|
+
case 1: {
|
|
19477
|
+
if (tag !== 8) {
|
|
19478
|
+
break;
|
|
19479
|
+
}
|
|
19480
|
+
|
|
19481
|
+
message.servedCalls = longToNumber(reader.uint64());
|
|
19482
|
+
continue;
|
|
19483
|
+
}
|
|
19484
|
+
case 2: {
|
|
19485
|
+
if (tag !== 16) {
|
|
19486
|
+
break;
|
|
19487
|
+
}
|
|
19488
|
+
|
|
19489
|
+
message.modelMismatchCalls = longToNumber(reader.uint64());
|
|
19490
|
+
continue;
|
|
19491
|
+
}
|
|
19492
|
+
case 3: {
|
|
19493
|
+
if (tag !== 26) {
|
|
19494
|
+
break;
|
|
19495
|
+
}
|
|
19496
|
+
|
|
19497
|
+
message.serviceTiers.push(LabelCount.decode(reader, reader.uint32()));
|
|
19498
|
+
continue;
|
|
19499
|
+
}
|
|
19500
|
+
case 4: {
|
|
19501
|
+
if (tag !== 34) {
|
|
19502
|
+
break;
|
|
19503
|
+
}
|
|
19504
|
+
|
|
19505
|
+
message.inferenceGeos.push(LabelCount.decode(reader, reader.uint32()));
|
|
19506
|
+
continue;
|
|
19507
|
+
}
|
|
19508
|
+
}
|
|
19509
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
19510
|
+
break;
|
|
19511
|
+
}
|
|
19512
|
+
reader.skip(tag & 7);
|
|
19513
|
+
}
|
|
19514
|
+
return message;
|
|
19515
|
+
} finally {
|
|
19516
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
19517
|
+
}
|
|
19518
|
+
},
|
|
19519
|
+
|
|
19520
|
+
fromJSON(object: any): ReasoningServedModels {
|
|
19521
|
+
return {
|
|
19522
|
+
servedCalls: isSet(object.servedCalls)
|
|
19523
|
+
? globalThis.Number(object.servedCalls)
|
|
19524
|
+
: isSet(object.served_calls)
|
|
19525
|
+
? globalThis.Number(object.served_calls)
|
|
19526
|
+
: 0,
|
|
19527
|
+
modelMismatchCalls: isSet(object.modelMismatchCalls)
|
|
19528
|
+
? globalThis.Number(object.modelMismatchCalls)
|
|
19529
|
+
: isSet(object.model_mismatch_calls)
|
|
19530
|
+
? globalThis.Number(object.model_mismatch_calls)
|
|
19531
|
+
: 0,
|
|
19532
|
+
serviceTiers: globalThis.Array.isArray(object?.serviceTiers)
|
|
19533
|
+
? object.serviceTiers.map((e: any) => LabelCount.fromJSON(e))
|
|
19534
|
+
: globalThis.Array.isArray(object?.service_tiers)
|
|
19535
|
+
? object.service_tiers.map((e: any) => LabelCount.fromJSON(e))
|
|
19536
|
+
: [],
|
|
19537
|
+
inferenceGeos: globalThis.Array.isArray(object?.inferenceGeos)
|
|
19538
|
+
? object.inferenceGeos.map((e: any) => LabelCount.fromJSON(e))
|
|
19539
|
+
: globalThis.Array.isArray(object?.inference_geos)
|
|
19540
|
+
? object.inference_geos.map((e: any) => LabelCount.fromJSON(e))
|
|
19541
|
+
: [],
|
|
19542
|
+
};
|
|
19543
|
+
},
|
|
19544
|
+
|
|
19545
|
+
toJSON(message: ReasoningServedModels): unknown {
|
|
19546
|
+
const obj: any = {};
|
|
19547
|
+
if (message.servedCalls !== 0) {
|
|
19548
|
+
obj.servedCalls = Math.round(message.servedCalls);
|
|
19549
|
+
}
|
|
19550
|
+
if (message.modelMismatchCalls !== 0) {
|
|
19551
|
+
obj.modelMismatchCalls = Math.round(message.modelMismatchCalls);
|
|
19552
|
+
}
|
|
19553
|
+
if (message.serviceTiers?.length) {
|
|
19554
|
+
obj.serviceTiers = message.serviceTiers.map((e) => LabelCount.toJSON(e));
|
|
19555
|
+
}
|
|
19556
|
+
if (message.inferenceGeos?.length) {
|
|
19557
|
+
obj.inferenceGeos = message.inferenceGeos.map((e) => LabelCount.toJSON(e));
|
|
19558
|
+
}
|
|
19559
|
+
return obj;
|
|
19560
|
+
},
|
|
19561
|
+
|
|
19562
|
+
create<I extends Exact<DeepPartial<ReasoningServedModels>, I>>(base?: I): ReasoningServedModels {
|
|
19563
|
+
return ReasoningServedModels.fromPartial(base ?? ({} as any));
|
|
19564
|
+
},
|
|
19565
|
+
fromPartial<I extends Exact<DeepPartial<ReasoningServedModels>, I>>(object: I): ReasoningServedModels {
|
|
19566
|
+
const message = createBaseReasoningServedModels();
|
|
19567
|
+
message.servedCalls = object.servedCalls ?? 0;
|
|
19568
|
+
message.modelMismatchCalls = object.modelMismatchCalls ?? 0;
|
|
19569
|
+
message.serviceTiers = object.serviceTiers?.map((e) => LabelCount.fromPartial(e)) || [];
|
|
19570
|
+
message.inferenceGeos = object.inferenceGeos?.map((e) => LabelCount.fromPartial(e)) || [];
|
|
19571
|
+
return message;
|
|
19572
|
+
},
|
|
19573
|
+
};
|
|
19574
|
+
|
|
19575
|
+
function createBaseLabelCount(): LabelCount {
|
|
19576
|
+
return { label: "", calls: 0 };
|
|
19577
|
+
}
|
|
19578
|
+
|
|
19579
|
+
export const LabelCount: MessageFns<LabelCount> = {
|
|
19580
|
+
encode(message: LabelCount, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19581
|
+
if (message.label !== "") {
|
|
19582
|
+
writer.uint32(10).string(message.label);
|
|
19583
|
+
}
|
|
19584
|
+
if (message.calls !== 0) {
|
|
19585
|
+
writer.uint32(16).uint64(message.calls);
|
|
19586
|
+
}
|
|
19587
|
+
return writer;
|
|
19588
|
+
},
|
|
19589
|
+
|
|
19590
|
+
decode(input: BinaryReader | Uint8Array, length?: number): LabelCount {
|
|
19591
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19592
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
19593
|
+
if (previousRecursionDepth >= 100) {
|
|
19594
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
19595
|
+
}
|
|
19596
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
19597
|
+
try {
|
|
19598
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19599
|
+
const message = createBaseLabelCount();
|
|
19600
|
+
while (reader.pos < end) {
|
|
19601
|
+
const tag = reader.uint32();
|
|
19602
|
+
switch (tag >>> 3) {
|
|
19603
|
+
case 1: {
|
|
19604
|
+
if (tag !== 10) {
|
|
19605
|
+
break;
|
|
19606
|
+
}
|
|
19607
|
+
|
|
19608
|
+
message.label = reader.string();
|
|
19609
|
+
continue;
|
|
19610
|
+
}
|
|
19611
|
+
case 2: {
|
|
19612
|
+
if (tag !== 16) {
|
|
19613
|
+
break;
|
|
19614
|
+
}
|
|
19615
|
+
|
|
19616
|
+
message.calls = longToNumber(reader.uint64());
|
|
19617
|
+
continue;
|
|
19618
|
+
}
|
|
19619
|
+
}
|
|
19620
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
19621
|
+
break;
|
|
19622
|
+
}
|
|
19623
|
+
reader.skip(tag & 7);
|
|
19624
|
+
}
|
|
19625
|
+
return message;
|
|
19626
|
+
} finally {
|
|
19627
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
19628
|
+
}
|
|
19629
|
+
},
|
|
19630
|
+
|
|
19631
|
+
fromJSON(object: any): LabelCount {
|
|
19632
|
+
return {
|
|
19633
|
+
label: isSet(object.label) ? globalThis.String(object.label) : "",
|
|
19634
|
+
calls: isSet(object.calls) ? globalThis.Number(object.calls) : 0,
|
|
19635
|
+
};
|
|
19636
|
+
},
|
|
19637
|
+
|
|
19638
|
+
toJSON(message: LabelCount): unknown {
|
|
19639
|
+
const obj: any = {};
|
|
19640
|
+
if (message.label !== "") {
|
|
19641
|
+
obj.label = message.label;
|
|
19642
|
+
}
|
|
19643
|
+
if (message.calls !== 0) {
|
|
19644
|
+
obj.calls = Math.round(message.calls);
|
|
19645
|
+
}
|
|
19646
|
+
return obj;
|
|
19647
|
+
},
|
|
19648
|
+
|
|
19649
|
+
create<I extends Exact<DeepPartial<LabelCount>, I>>(base?: I): LabelCount {
|
|
19650
|
+
return LabelCount.fromPartial(base ?? ({} as any));
|
|
19651
|
+
},
|
|
19652
|
+
fromPartial<I extends Exact<DeepPartial<LabelCount>, I>>(object: I): LabelCount {
|
|
19653
|
+
const message = createBaseLabelCount();
|
|
19654
|
+
message.label = object.label ?? "";
|
|
19655
|
+
message.calls = object.calls ?? 0;
|
|
19656
|
+
return message;
|
|
19657
|
+
},
|
|
19658
|
+
};
|
|
19659
|
+
|
|
19660
|
+
function createBaseModelActivityResponse(): ModelActivityResponse {
|
|
19661
|
+
return { status: undefined, models: [], windowStart: undefined, windowEnd: undefined };
|
|
19662
|
+
}
|
|
19663
|
+
|
|
19664
|
+
export const ModelActivityResponse: MessageFns<ModelActivityResponse> = {
|
|
19665
|
+
encode(message: ModelActivityResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19666
|
+
if (message.status !== undefined) {
|
|
19667
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
19668
|
+
}
|
|
19669
|
+
for (const v of message.models) {
|
|
19670
|
+
ModelActivity.encode(v!, writer.uint32(18).fork()).join();
|
|
19671
|
+
}
|
|
19672
|
+
if (message.windowStart !== undefined) {
|
|
19673
|
+
Timestamp.encode(toTimestamp(message.windowStart), writer.uint32(26).fork()).join();
|
|
19674
|
+
}
|
|
19675
|
+
if (message.windowEnd !== undefined) {
|
|
19676
|
+
Timestamp.encode(toTimestamp(message.windowEnd), writer.uint32(34).fork()).join();
|
|
19677
|
+
}
|
|
19678
|
+
return writer;
|
|
19679
|
+
},
|
|
19680
|
+
|
|
19681
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ModelActivityResponse {
|
|
19682
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19683
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
19684
|
+
if (previousRecursionDepth >= 100) {
|
|
19685
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
19686
|
+
}
|
|
19687
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
19688
|
+
try {
|
|
19689
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19690
|
+
const message = createBaseModelActivityResponse();
|
|
19691
|
+
while (reader.pos < end) {
|
|
19692
|
+
const tag = reader.uint32();
|
|
19693
|
+
switch (tag >>> 3) {
|
|
19694
|
+
case 1: {
|
|
19695
|
+
if (tag !== 10) {
|
|
19696
|
+
break;
|
|
19697
|
+
}
|
|
19698
|
+
|
|
19699
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
19700
|
+
continue;
|
|
19701
|
+
}
|
|
19702
|
+
case 2: {
|
|
19703
|
+
if (tag !== 18) {
|
|
19704
|
+
break;
|
|
19705
|
+
}
|
|
19706
|
+
|
|
19707
|
+
message.models.push(ModelActivity.decode(reader, reader.uint32()));
|
|
19708
|
+
continue;
|
|
19709
|
+
}
|
|
19710
|
+
case 3: {
|
|
19711
|
+
if (tag !== 26) {
|
|
19712
|
+
break;
|
|
19713
|
+
}
|
|
19714
|
+
|
|
19715
|
+
message.windowStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
19716
|
+
continue;
|
|
19717
|
+
}
|
|
19718
|
+
case 4: {
|
|
19719
|
+
if (tag !== 34) {
|
|
19720
|
+
break;
|
|
19721
|
+
}
|
|
19722
|
+
|
|
19723
|
+
message.windowEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
19724
|
+
continue;
|
|
19725
|
+
}
|
|
19726
|
+
}
|
|
19727
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
19728
|
+
break;
|
|
19729
|
+
}
|
|
19730
|
+
reader.skip(tag & 7);
|
|
19731
|
+
}
|
|
19732
|
+
return message;
|
|
19733
|
+
} finally {
|
|
19734
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
19735
|
+
}
|
|
19736
|
+
},
|
|
19737
|
+
|
|
19738
|
+
fromJSON(object: any): ModelActivityResponse {
|
|
19739
|
+
return {
|
|
19740
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
19741
|
+
models: globalThis.Array.isArray(object?.models) ? object.models.map((e: any) => ModelActivity.fromJSON(e)) : [],
|
|
19742
|
+
windowStart: isSet(object.windowStart)
|
|
19743
|
+
? fromJsonTimestamp(object.windowStart)
|
|
19744
|
+
: isSet(object.window_start)
|
|
19745
|
+
? fromJsonTimestamp(object.window_start)
|
|
19746
|
+
: undefined,
|
|
19747
|
+
windowEnd: isSet(object.windowEnd)
|
|
19748
|
+
? fromJsonTimestamp(object.windowEnd)
|
|
19749
|
+
: isSet(object.window_end)
|
|
19750
|
+
? fromJsonTimestamp(object.window_end)
|
|
19751
|
+
: undefined,
|
|
19752
|
+
};
|
|
19753
|
+
},
|
|
19754
|
+
|
|
19755
|
+
toJSON(message: ModelActivityResponse): unknown {
|
|
19756
|
+
const obj: any = {};
|
|
19757
|
+
if (message.status !== undefined) {
|
|
19758
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
19759
|
+
}
|
|
19760
|
+
if (message.models?.length) {
|
|
19761
|
+
obj.models = message.models.map((e) => ModelActivity.toJSON(e));
|
|
19762
|
+
}
|
|
19763
|
+
if (message.windowStart !== undefined) {
|
|
19764
|
+
obj.windowStart = message.windowStart.toISOString();
|
|
19765
|
+
}
|
|
19766
|
+
if (message.windowEnd !== undefined) {
|
|
19767
|
+
obj.windowEnd = message.windowEnd.toISOString();
|
|
19768
|
+
}
|
|
19769
|
+
return obj;
|
|
19770
|
+
},
|
|
19771
|
+
|
|
19772
|
+
create<I extends Exact<DeepPartial<ModelActivityResponse>, I>>(base?: I): ModelActivityResponse {
|
|
19773
|
+
return ModelActivityResponse.fromPartial(base ?? ({} as any));
|
|
19774
|
+
},
|
|
19775
|
+
fromPartial<I extends Exact<DeepPartial<ModelActivityResponse>, I>>(object: I): ModelActivityResponse {
|
|
19776
|
+
const message = createBaseModelActivityResponse();
|
|
19777
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
19778
|
+
? ResponseStatus.fromPartial(object.status)
|
|
19779
|
+
: undefined;
|
|
19780
|
+
message.models = object.models?.map((e) => ModelActivity.fromPartial(e)) || [];
|
|
19781
|
+
message.windowStart = object.windowStart ?? undefined;
|
|
19782
|
+
message.windowEnd = object.windowEnd ?? undefined;
|
|
19783
|
+
return message;
|
|
19784
|
+
},
|
|
19785
|
+
};
|
|
19786
|
+
|
|
19787
|
+
function createBaseModelActivity(): ModelActivity {
|
|
19788
|
+
return {
|
|
19789
|
+
key: "",
|
|
19790
|
+
modelCalls: 0,
|
|
19791
|
+
failedCalls: 0,
|
|
19792
|
+
inputTokens: 0,
|
|
19793
|
+
outputTokens: 0,
|
|
19794
|
+
cacheReadTokens: 0,
|
|
19795
|
+
cacheWriteTokens: 0,
|
|
19796
|
+
costUsd: 0,
|
|
19797
|
+
subscriptionCostUsd: 0,
|
|
19798
|
+
sessions: 0,
|
|
19799
|
+
toolCalls: 0,
|
|
19800
|
+
compactions: 0,
|
|
19801
|
+
subagentRuns: 0,
|
|
19802
|
+
ttftMsSum: 0,
|
|
19803
|
+
ttftCalls: 0,
|
|
19804
|
+
providers: [],
|
|
19805
|
+
principals: [],
|
|
19806
|
+
settledCalls: undefined,
|
|
19807
|
+
};
|
|
19808
|
+
}
|
|
19809
|
+
|
|
19810
|
+
export const ModelActivity: MessageFns<ModelActivity> = {
|
|
19811
|
+
encode(message: ModelActivity, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19812
|
+
if (message.key !== "") {
|
|
19813
|
+
writer.uint32(10).string(message.key);
|
|
19814
|
+
}
|
|
19815
|
+
if (message.modelCalls !== 0) {
|
|
19816
|
+
writer.uint32(16).uint64(message.modelCalls);
|
|
19817
|
+
}
|
|
19818
|
+
if (message.failedCalls !== 0) {
|
|
19819
|
+
writer.uint32(24).uint64(message.failedCalls);
|
|
19820
|
+
}
|
|
19821
|
+
if (message.inputTokens !== 0) {
|
|
19822
|
+
writer.uint32(32).uint64(message.inputTokens);
|
|
19823
|
+
}
|
|
19824
|
+
if (message.outputTokens !== 0) {
|
|
19825
|
+
writer.uint32(40).uint64(message.outputTokens);
|
|
19826
|
+
}
|
|
19827
|
+
if (message.cacheReadTokens !== 0) {
|
|
19828
|
+
writer.uint32(48).uint64(message.cacheReadTokens);
|
|
19829
|
+
}
|
|
19830
|
+
if (message.cacheWriteTokens !== 0) {
|
|
19831
|
+
writer.uint32(56).uint64(message.cacheWriteTokens);
|
|
19832
|
+
}
|
|
19833
|
+
if (message.costUsd !== 0) {
|
|
19834
|
+
writer.uint32(65).double(message.costUsd);
|
|
19835
|
+
}
|
|
19836
|
+
if (message.subscriptionCostUsd !== 0) {
|
|
19837
|
+
writer.uint32(73).double(message.subscriptionCostUsd);
|
|
18299
19838
|
}
|
|
18300
19839
|
if (message.sessions !== 0) {
|
|
18301
19840
|
writer.uint32(80).uint64(message.sessions);
|
|
@@ -20125,7 +21664,7 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
20125
21664
|
};
|
|
20126
21665
|
|
|
20127
21666
|
function createBaseAISessionInsight(): AISessionInsight {
|
|
20128
|
-
return { category: 0, actionType: 0, evidenceRefs: [], cause: "", action: "" };
|
|
21667
|
+
return { category: 0, actionType: 0, evidenceRefs: [], cause: "", action: "", severity: 0 };
|
|
20129
21668
|
}
|
|
20130
21669
|
|
|
20131
21670
|
export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
@@ -20145,6 +21684,9 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20145
21684
|
if (message.action !== "") {
|
|
20146
21685
|
writer.uint32(42).string(message.action);
|
|
20147
21686
|
}
|
|
21687
|
+
if (message.severity !== 0) {
|
|
21688
|
+
writer.uint32(48).int32(message.severity);
|
|
21689
|
+
}
|
|
20148
21690
|
return writer;
|
|
20149
21691
|
},
|
|
20150
21692
|
|
|
@@ -20201,6 +21743,14 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20201
21743
|
message.action = reader.string();
|
|
20202
21744
|
continue;
|
|
20203
21745
|
}
|
|
21746
|
+
case 6: {
|
|
21747
|
+
if (tag !== 48) {
|
|
21748
|
+
break;
|
|
21749
|
+
}
|
|
21750
|
+
|
|
21751
|
+
message.severity = reader.int32() as any;
|
|
21752
|
+
continue;
|
|
21753
|
+
}
|
|
20204
21754
|
}
|
|
20205
21755
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20206
21756
|
break;
|
|
@@ -20228,6 +21778,7 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20228
21778
|
: [],
|
|
20229
21779
|
cause: isSet(object.cause) ? globalThis.String(object.cause) : "",
|
|
20230
21780
|
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
21781
|
+
severity: isSet(object.severity) ? aISessionInsightSeverityFromJSON(object.severity) : 0,
|
|
20231
21782
|
};
|
|
20232
21783
|
},
|
|
20233
21784
|
|
|
@@ -20248,6 +21799,9 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20248
21799
|
if (message.action !== "") {
|
|
20249
21800
|
obj.action = message.action;
|
|
20250
21801
|
}
|
|
21802
|
+
if (message.severity !== 0) {
|
|
21803
|
+
obj.severity = aISessionInsightSeverityToJSON(message.severity);
|
|
21804
|
+
}
|
|
20251
21805
|
return obj;
|
|
20252
21806
|
},
|
|
20253
21807
|
|
|
@@ -20261,6 +21815,7 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20261
21815
|
message.evidenceRefs = object.evidenceRefs?.map((e) => AISessionEventRef.fromPartial(e)) || [];
|
|
20262
21816
|
message.cause = object.cause ?? "";
|
|
20263
21817
|
message.action = object.action ?? "";
|
|
21818
|
+
message.severity = object.severity ?? 0;
|
|
20264
21819
|
return message;
|
|
20265
21820
|
},
|
|
20266
21821
|
};
|
|
@@ -26686,6 +28241,12 @@ export interface AIGatewayService {
|
|
|
26686
28241
|
* costliest first. Mirrors telemetry.api.v1.
|
|
26687
28242
|
*/
|
|
26688
28243
|
ListModelActivity(request: ModelActivityRequest, metadata?: Metadata): Promise<ModelActivityResponse>;
|
|
28244
|
+
/**
|
|
28245
|
+
* How much each model thought per call over a time range, one row per (model, effort) after groups fold stored
|
|
28246
|
+
* spellings: counted calls, exact medians and p90 per call and per turn, and each overlapped ISO week's median;
|
|
28247
|
+
* with coverage and what served the calls. Counts only. Mirrors ai.api.v1.
|
|
28248
|
+
*/
|
|
28249
|
+
ListModelReasoning(request: ListModelReasoningRequest, metadata?: Metadata): Promise<ListModelReasoningResponse>;
|
|
26689
28250
|
/**
|
|
26690
28251
|
* One session's model calls and git activity on one epoch-aligned time grid: per bucket, each model's
|
|
26691
28252
|
* calls, tokens and cost, and each git action's count. Mirrors telemetry.api.v1.
|
|
@@ -26705,10 +28266,10 @@ export interface AIGatewayService {
|
|
|
26705
28266
|
metadata?: Metadata,
|
|
26706
28267
|
): Promise<GetSessionScoreTrendResponse>;
|
|
26707
28268
|
/**
|
|
26708
|
-
* A project's
|
|
26709
|
-
* time): counts only, the
|
|
28269
|
+
* A project's labelled prompts, or one person's (their principals), per ISO week (UTC, by each prompt's own event
|
|
28270
|
+
* time): counts only, the shares derived only when a week has labelled prompts. Mirrors ai.api.v1.
|
|
26710
28271
|
*/
|
|
26711
|
-
|
|
28272
|
+
GetPromptLabelTrend(request: GetPromptLabelTrendRequest, metadata?: Metadata): Promise<GetPromptLabelTrendResponse>;
|
|
26712
28273
|
/**
|
|
26713
28274
|
* Per-seat entitlement usage board: every entitlement owner's latest observed funding facility and
|
|
26714
28275
|
* per-harness usage % windows. Stream-first (first frame = full snapshot), seat-scoped. Mirrors
|
|
@@ -26754,10 +28315,11 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
26754
28315
|
this.ListModelPriceHistory = this.ListModelPriceHistory.bind(this);
|
|
26755
28316
|
this.ListResourceRankings = this.ListResourceRankings.bind(this);
|
|
26756
28317
|
this.ListModelActivity = this.ListModelActivity.bind(this);
|
|
28318
|
+
this.ListModelReasoning = this.ListModelReasoning.bind(this);
|
|
26757
28319
|
this.GetSessionUsageTrend = this.GetSessionUsageTrend.bind(this);
|
|
26758
28320
|
this.GetSessionAnalysis = this.GetSessionAnalysis.bind(this);
|
|
26759
28321
|
this.GetSessionScoreTrend = this.GetSessionScoreTrend.bind(this);
|
|
26760
|
-
this.
|
|
28322
|
+
this.GetPromptLabelTrend = this.GetPromptLabelTrend.bind(this);
|
|
26761
28323
|
this.StreamEntitlements = this.StreamEntitlements.bind(this);
|
|
26762
28324
|
this.ListRelayHeartbeats = this.ListRelayHeartbeats.bind(this);
|
|
26763
28325
|
}
|
|
@@ -26914,6 +28476,12 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
26914
28476
|
return promise.then((data) => ModelActivityResponse.decode(new BinaryReader(data)));
|
|
26915
28477
|
}
|
|
26916
28478
|
|
|
28479
|
+
ListModelReasoning(request: ListModelReasoningRequest, metadata?: Metadata): Promise<ListModelReasoningResponse> {
|
|
28480
|
+
const data = ListModelReasoningRequest.encode(request).finish();
|
|
28481
|
+
const promise = this.rpc.request(this.service, "ListModelReasoning", data, metadata);
|
|
28482
|
+
return promise.then((data) => ListModelReasoningResponse.decode(new BinaryReader(data)));
|
|
28483
|
+
}
|
|
28484
|
+
|
|
26917
28485
|
GetSessionUsageTrend(request: SessionUsageTrendRequest, metadata?: Metadata): Promise<SessionUsageTrendResponse> {
|
|
26918
28486
|
const data = SessionUsageTrendRequest.encode(request).finish();
|
|
26919
28487
|
const promise = this.rpc.request(this.service, "GetSessionUsageTrend", data, metadata);
|
|
@@ -26935,10 +28503,10 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
26935
28503
|
return promise.then((data) => GetSessionScoreTrendResponse.decode(new BinaryReader(data)));
|
|
26936
28504
|
}
|
|
26937
28505
|
|
|
26938
|
-
|
|
26939
|
-
const data =
|
|
26940
|
-
const promise = this.rpc.request(this.service, "
|
|
26941
|
-
return promise.then((data) =>
|
|
28506
|
+
GetPromptLabelTrend(request: GetPromptLabelTrendRequest, metadata?: Metadata): Promise<GetPromptLabelTrendResponse> {
|
|
28507
|
+
const data = GetPromptLabelTrendRequest.encode(request).finish();
|
|
28508
|
+
const promise = this.rpc.request(this.service, "GetPromptLabelTrend", data, metadata);
|
|
28509
|
+
return promise.then((data) => GetPromptLabelTrendResponse.decode(new BinaryReader(data)));
|
|
26942
28510
|
}
|
|
26943
28511
|
|
|
26944
28512
|
StreamEntitlements(request: StreamEntitlementsRequest, metadata?: Metadata): Observable<EntitlementsSnapshot> {
|