@miradorlabs/web-grpc 3.51.0 → 4.0.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
|
|
|
@@ -3080,6 +3180,8 @@ export interface AISessionInsight {
|
|
|
3080
3180
|
evidenceRefs: AISessionEventRef[];
|
|
3081
3181
|
cause: string;
|
|
3082
3182
|
action: string;
|
|
3183
|
+
/** How much the problem cost the session, as the model judged it. */
|
|
3184
|
+
severity: AISessionInsightSeverity;
|
|
3083
3185
|
}
|
|
3084
3186
|
|
|
3085
3187
|
/**
|
|
@@ -3114,7 +3216,7 @@ export interface AISessionScoreComponent {
|
|
|
3114
3216
|
kind: AISessionScoreComponentKind;
|
|
3115
3217
|
/**
|
|
3116
3218
|
* False when the component had no input: outcome UNCLEAR, verification UNOBSERVED or NOT_APPLICABLE, or no prompt
|
|
3117
|
-
*
|
|
3219
|
+
* labels (rework spend and prompt clarity, not computed yet).
|
|
3118
3220
|
*/
|
|
3119
3221
|
available: boolean;
|
|
3120
3222
|
/** The formula's weight for the component (points out of 100). */
|
|
@@ -4531,7 +4633,7 @@ function createBaseAISessionSummary(): AISessionSummary {
|
|
|
4531
4633
|
complexity: 0,
|
|
4532
4634
|
sessionScore: undefined,
|
|
4533
4635
|
outcome: 0,
|
|
4534
|
-
|
|
4636
|
+
promptLabelSummary: undefined,
|
|
4535
4637
|
};
|
|
4536
4638
|
}
|
|
4537
4639
|
|
|
@@ -4654,8 +4756,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
4654
4756
|
if (message.outcome !== 0) {
|
|
4655
4757
|
writer.uint32(312).int32(message.outcome);
|
|
4656
4758
|
}
|
|
4657
|
-
if (message.
|
|
4658
|
-
|
|
4759
|
+
if (message.promptLabelSummary !== undefined) {
|
|
4760
|
+
AIPromptLabelSummary.encode(message.promptLabelSummary, writer.uint32(322).fork()).join();
|
|
4659
4761
|
}
|
|
4660
4762
|
return writer;
|
|
4661
4763
|
},
|
|
@@ -4990,7 +5092,7 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
4990
5092
|
break;
|
|
4991
5093
|
}
|
|
4992
5094
|
|
|
4993
|
-
message.
|
|
5095
|
+
message.promptLabelSummary = AIPromptLabelSummary.decode(reader, reader.uint32());
|
|
4994
5096
|
continue;
|
|
4995
5097
|
}
|
|
4996
5098
|
}
|
|
@@ -5154,10 +5256,10 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5154
5256
|
? globalThis.Number(object.session_score)
|
|
5155
5257
|
: undefined,
|
|
5156
5258
|
outcome: isSet(object.outcome) ? aISessionOutcomeFromJSON(object.outcome) : 0,
|
|
5157
|
-
|
|
5158
|
-
?
|
|
5159
|
-
: isSet(object.
|
|
5160
|
-
?
|
|
5259
|
+
promptLabelSummary: isSet(object.promptLabelSummary)
|
|
5260
|
+
? AIPromptLabelSummary.fromJSON(object.promptLabelSummary)
|
|
5261
|
+
: isSet(object.prompt_label_summary)
|
|
5262
|
+
? AIPromptLabelSummary.fromJSON(object.prompt_label_summary)
|
|
5161
5263
|
: undefined,
|
|
5162
5264
|
};
|
|
5163
5265
|
},
|
|
@@ -5281,8 +5383,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5281
5383
|
if (message.outcome !== 0) {
|
|
5282
5384
|
obj.outcome = aISessionOutcomeToJSON(message.outcome);
|
|
5283
5385
|
}
|
|
5284
|
-
if (message.
|
|
5285
|
-
obj.
|
|
5386
|
+
if (message.promptLabelSummary !== undefined) {
|
|
5387
|
+
obj.promptLabelSummary = AIPromptLabelSummary.toJSON(message.promptLabelSummary);
|
|
5286
5388
|
}
|
|
5287
5389
|
return obj;
|
|
5288
5390
|
},
|
|
@@ -5333,8 +5435,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5333
5435
|
message.complexity = object.complexity ?? 0;
|
|
5334
5436
|
message.sessionScore = object.sessionScore ?? undefined;
|
|
5335
5437
|
message.outcome = object.outcome ?? 0;
|
|
5336
|
-
message.
|
|
5337
|
-
?
|
|
5438
|
+
message.promptLabelSummary = (object.promptLabelSummary !== undefined && object.promptLabelSummary !== null)
|
|
5439
|
+
? AIPromptLabelSummary.fromPartial(object.promptLabelSummary)
|
|
5338
5440
|
: undefined;
|
|
5339
5441
|
return message;
|
|
5340
5442
|
},
|
|
@@ -6453,7 +6555,7 @@ function createBaseAISessionEvent(): AISessionEvent {
|
|
|
6453
6555
|
callCategory: "",
|
|
6454
6556
|
replyPhase: "",
|
|
6455
6557
|
subjectAgentId: "",
|
|
6456
|
-
|
|
6558
|
+
promptLabels: undefined,
|
|
6457
6559
|
};
|
|
6458
6560
|
}
|
|
6459
6561
|
|
|
@@ -6546,8 +6648,8 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
6546
6648
|
if (message.subjectAgentId !== "") {
|
|
6547
6649
|
writer.uint32(234).string(message.subjectAgentId);
|
|
6548
6650
|
}
|
|
6549
|
-
if (message.
|
|
6550
|
-
|
|
6651
|
+
if (message.promptLabels !== undefined) {
|
|
6652
|
+
AIPromptLabels.encode(message.promptLabels, writer.uint32(242).fork()).join();
|
|
6551
6653
|
}
|
|
6552
6654
|
return writer;
|
|
6553
6655
|
},
|
|
@@ -6802,7 +6904,7 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
6802
6904
|
break;
|
|
6803
6905
|
}
|
|
6804
6906
|
|
|
6805
|
-
message.
|
|
6907
|
+
message.promptLabels = AIPromptLabels.decode(reader, reader.uint32());
|
|
6806
6908
|
continue;
|
|
6807
6909
|
}
|
|
6808
6910
|
}
|
|
@@ -6918,10 +7020,10 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
6918
7020
|
: isSet(object.subject_agent_id)
|
|
6919
7021
|
? globalThis.String(object.subject_agent_id)
|
|
6920
7022
|
: "",
|
|
6921
|
-
|
|
6922
|
-
?
|
|
6923
|
-
: isSet(object.
|
|
6924
|
-
?
|
|
7023
|
+
promptLabels: isSet(object.promptLabels)
|
|
7024
|
+
? AIPromptLabels.fromJSON(object.promptLabels)
|
|
7025
|
+
: isSet(object.prompt_labels)
|
|
7026
|
+
? AIPromptLabels.fromJSON(object.prompt_labels)
|
|
6925
7027
|
: undefined,
|
|
6926
7028
|
};
|
|
6927
7029
|
},
|
|
@@ -7015,8 +7117,8 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
7015
7117
|
if (message.subjectAgentId !== "") {
|
|
7016
7118
|
obj.subjectAgentId = message.subjectAgentId;
|
|
7017
7119
|
}
|
|
7018
|
-
if (message.
|
|
7019
|
-
obj.
|
|
7120
|
+
if (message.promptLabels !== undefined) {
|
|
7121
|
+
obj.promptLabels = AIPromptLabels.toJSON(message.promptLabels);
|
|
7020
7122
|
}
|
|
7021
7123
|
return obj;
|
|
7022
7124
|
},
|
|
@@ -7057,8 +7159,8 @@ export const AISessionEvent: MessageFns<AISessionEvent> = {
|
|
|
7057
7159
|
message.callCategory = object.callCategory ?? "";
|
|
7058
7160
|
message.replyPhase = object.replyPhase ?? "";
|
|
7059
7161
|
message.subjectAgentId = object.subjectAgentId ?? "";
|
|
7060
|
-
message.
|
|
7061
|
-
?
|
|
7162
|
+
message.promptLabels = (object.promptLabels !== undefined && object.promptLabels !== null)
|
|
7163
|
+
? AIPromptLabels.fromPartial(object.promptLabels)
|
|
7062
7164
|
: undefined;
|
|
7063
7165
|
return message;
|
|
7064
7166
|
},
|
|
@@ -7173,17 +7275,17 @@ export const AIContentPart: MessageFns<AIContentPart> = {
|
|
|
7173
7275
|
},
|
|
7174
7276
|
};
|
|
7175
7277
|
|
|
7176
|
-
function
|
|
7278
|
+
function createBaseAIPromptLabels(): AIPromptLabels {
|
|
7177
7279
|
return { complexity: 0, clarity: 0, steering: 0, frustration: 0, sentiment: 0 };
|
|
7178
7280
|
}
|
|
7179
7281
|
|
|
7180
|
-
export const
|
|
7181
|
-
encode(message:
|
|
7282
|
+
export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
7283
|
+
encode(message: AIPromptLabels, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7182
7284
|
if (message.complexity !== 0) {
|
|
7183
7285
|
writer.uint32(8).int32(message.complexity);
|
|
7184
7286
|
}
|
|
7185
7287
|
if (message.clarity !== 0) {
|
|
7186
|
-
writer.uint32(16).
|
|
7288
|
+
writer.uint32(16).int32(message.clarity);
|
|
7187
7289
|
}
|
|
7188
7290
|
if (message.steering !== 0) {
|
|
7189
7291
|
writer.uint32(24).int32(message.steering);
|
|
@@ -7197,7 +7299,7 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7197
7299
|
return writer;
|
|
7198
7300
|
},
|
|
7199
7301
|
|
|
7200
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7302
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabels {
|
|
7201
7303
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7202
7304
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7203
7305
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7206,7 +7308,7 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7206
7308
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7207
7309
|
try {
|
|
7208
7310
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7209
|
-
const message =
|
|
7311
|
+
const message = createBaseAIPromptLabels();
|
|
7210
7312
|
while (reader.pos < end) {
|
|
7211
7313
|
const tag = reader.uint32();
|
|
7212
7314
|
switch (tag >>> 3) {
|
|
@@ -7223,7 +7325,7 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7223
7325
|
break;
|
|
7224
7326
|
}
|
|
7225
7327
|
|
|
7226
|
-
message.clarity = reader.
|
|
7328
|
+
message.clarity = reader.int32() as any;
|
|
7227
7329
|
continue;
|
|
7228
7330
|
}
|
|
7229
7331
|
case 3: {
|
|
@@ -7262,23 +7364,23 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7262
7364
|
}
|
|
7263
7365
|
},
|
|
7264
7366
|
|
|
7265
|
-
fromJSON(object: any):
|
|
7367
|
+
fromJSON(object: any): AIPromptLabels {
|
|
7266
7368
|
return {
|
|
7267
7369
|
complexity: isSet(object.complexity) ? aIPromptComplexityFromJSON(object.complexity) : 0,
|
|
7268
|
-
clarity: isSet(object.clarity) ?
|
|
7370
|
+
clarity: isSet(object.clarity) ? aIPromptClarityFromJSON(object.clarity) : 0,
|
|
7269
7371
|
steering: isSet(object.steering) ? aIPromptSteeringFromJSON(object.steering) : 0,
|
|
7270
7372
|
frustration: isSet(object.frustration) ? aIPromptFrustrationFromJSON(object.frustration) : 0,
|
|
7271
7373
|
sentiment: isSet(object.sentiment) ? aIPromptSentimentFromJSON(object.sentiment) : 0,
|
|
7272
7374
|
};
|
|
7273
7375
|
},
|
|
7274
7376
|
|
|
7275
|
-
toJSON(message:
|
|
7377
|
+
toJSON(message: AIPromptLabels): unknown {
|
|
7276
7378
|
const obj: any = {};
|
|
7277
7379
|
if (message.complexity !== 0) {
|
|
7278
7380
|
obj.complexity = aIPromptComplexityToJSON(message.complexity);
|
|
7279
7381
|
}
|
|
7280
7382
|
if (message.clarity !== 0) {
|
|
7281
|
-
obj.clarity =
|
|
7383
|
+
obj.clarity = aIPromptClarityToJSON(message.clarity);
|
|
7282
7384
|
}
|
|
7283
7385
|
if (message.steering !== 0) {
|
|
7284
7386
|
obj.steering = aIPromptSteeringToJSON(message.steering);
|
|
@@ -7292,11 +7394,11 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7292
7394
|
return obj;
|
|
7293
7395
|
},
|
|
7294
7396
|
|
|
7295
|
-
create<I extends Exact<DeepPartial<
|
|
7296
|
-
return
|
|
7397
|
+
create<I extends Exact<DeepPartial<AIPromptLabels>, I>>(base?: I): AIPromptLabels {
|
|
7398
|
+
return AIPromptLabels.fromPartial(base ?? ({} as any));
|
|
7297
7399
|
},
|
|
7298
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7299
|
-
const message =
|
|
7400
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabels>, I>>(object: I): AIPromptLabels {
|
|
7401
|
+
const message = createBaseAIPromptLabels();
|
|
7300
7402
|
message.complexity = object.complexity ?? 0;
|
|
7301
7403
|
message.clarity = object.clarity ?? 0;
|
|
7302
7404
|
message.steering = object.steering ?? 0;
|
|
@@ -7306,14 +7408,14 @@ export const AIPromptScore: MessageFns<AIPromptScore> = {
|
|
|
7306
7408
|
},
|
|
7307
7409
|
};
|
|
7308
7410
|
|
|
7309
|
-
function
|
|
7310
|
-
return {
|
|
7411
|
+
function createBaseAIPromptLabelSummary(): AIPromptLabelSummary {
|
|
7412
|
+
return { labelledPrompts: 0, steeringCounts: [], peakFrustration: 0, clearPrompts: 0 };
|
|
7311
7413
|
}
|
|
7312
7414
|
|
|
7313
|
-
export const
|
|
7314
|
-
encode(message:
|
|
7315
|
-
if (message.
|
|
7316
|
-
writer.uint32(8).uint64(message.
|
|
7415
|
+
export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
7416
|
+
encode(message: AIPromptLabelSummary, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7417
|
+
if (message.labelledPrompts !== 0) {
|
|
7418
|
+
writer.uint32(8).uint64(message.labelledPrompts);
|
|
7317
7419
|
}
|
|
7318
7420
|
for (const v of message.steeringCounts) {
|
|
7319
7421
|
AIPromptSteeringCount.encode(v!, writer.uint32(18).fork()).join();
|
|
@@ -7321,13 +7423,13 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7321
7423
|
if (message.peakFrustration !== 0) {
|
|
7322
7424
|
writer.uint32(24).int32(message.peakFrustration);
|
|
7323
7425
|
}
|
|
7324
|
-
if (message.
|
|
7325
|
-
writer.uint32(
|
|
7426
|
+
if (message.clearPrompts !== 0) {
|
|
7427
|
+
writer.uint32(32).uint64(message.clearPrompts);
|
|
7326
7428
|
}
|
|
7327
7429
|
return writer;
|
|
7328
7430
|
},
|
|
7329
7431
|
|
|
7330
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7432
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabelSummary {
|
|
7331
7433
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7332
7434
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7333
7435
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7336,7 +7438,7 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7336
7438
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7337
7439
|
try {
|
|
7338
7440
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7339
|
-
const message =
|
|
7441
|
+
const message = createBaseAIPromptLabelSummary();
|
|
7340
7442
|
while (reader.pos < end) {
|
|
7341
7443
|
const tag = reader.uint32();
|
|
7342
7444
|
switch (tag >>> 3) {
|
|
@@ -7345,7 +7447,7 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7345
7447
|
break;
|
|
7346
7448
|
}
|
|
7347
7449
|
|
|
7348
|
-
message.
|
|
7450
|
+
message.labelledPrompts = longToNumber(reader.uint64());
|
|
7349
7451
|
continue;
|
|
7350
7452
|
}
|
|
7351
7453
|
case 2: {
|
|
@@ -7365,11 +7467,11 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7365
7467
|
continue;
|
|
7366
7468
|
}
|
|
7367
7469
|
case 4: {
|
|
7368
|
-
if (tag !==
|
|
7470
|
+
if (tag !== 32) {
|
|
7369
7471
|
break;
|
|
7370
7472
|
}
|
|
7371
7473
|
|
|
7372
|
-
message.
|
|
7474
|
+
message.clearPrompts = longToNumber(reader.uint64());
|
|
7373
7475
|
continue;
|
|
7374
7476
|
}
|
|
7375
7477
|
}
|
|
@@ -7384,12 +7486,12 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7384
7486
|
}
|
|
7385
7487
|
},
|
|
7386
7488
|
|
|
7387
|
-
fromJSON(object: any):
|
|
7489
|
+
fromJSON(object: any): AIPromptLabelSummary {
|
|
7388
7490
|
return {
|
|
7389
|
-
|
|
7390
|
-
? globalThis.Number(object.
|
|
7391
|
-
: isSet(object.
|
|
7392
|
-
? globalThis.Number(object.
|
|
7491
|
+
labelledPrompts: isSet(object.labelledPrompts)
|
|
7492
|
+
? globalThis.Number(object.labelledPrompts)
|
|
7493
|
+
: isSet(object.labelled_prompts)
|
|
7494
|
+
? globalThis.Number(object.labelled_prompts)
|
|
7393
7495
|
: 0,
|
|
7394
7496
|
steeringCounts: globalThis.Array.isArray(object?.steeringCounts)
|
|
7395
7497
|
? object.steeringCounts.map((e: any) => AIPromptSteeringCount.fromJSON(e))
|
|
@@ -7401,18 +7503,18 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7401
7503
|
: isSet(object.peak_frustration)
|
|
7402
7504
|
? aIPromptFrustrationFromJSON(object.peak_frustration)
|
|
7403
7505
|
: 0,
|
|
7404
|
-
|
|
7405
|
-
? globalThis.Number(object.
|
|
7406
|
-
: isSet(object.
|
|
7407
|
-
? globalThis.Number(object.
|
|
7506
|
+
clearPrompts: isSet(object.clearPrompts)
|
|
7507
|
+
? globalThis.Number(object.clearPrompts)
|
|
7508
|
+
: isSet(object.clear_prompts)
|
|
7509
|
+
? globalThis.Number(object.clear_prompts)
|
|
7408
7510
|
: 0,
|
|
7409
7511
|
};
|
|
7410
7512
|
},
|
|
7411
7513
|
|
|
7412
|
-
toJSON(message:
|
|
7514
|
+
toJSON(message: AIPromptLabelSummary): unknown {
|
|
7413
7515
|
const obj: any = {};
|
|
7414
|
-
if (message.
|
|
7415
|
-
obj.
|
|
7516
|
+
if (message.labelledPrompts !== 0) {
|
|
7517
|
+
obj.labelledPrompts = Math.round(message.labelledPrompts);
|
|
7416
7518
|
}
|
|
7417
7519
|
if (message.steeringCounts?.length) {
|
|
7418
7520
|
obj.steeringCounts = message.steeringCounts.map((e) => AIPromptSteeringCount.toJSON(e));
|
|
@@ -7420,21 +7522,21 @@ export const AIPromptScoreSummary: MessageFns<AIPromptScoreSummary> = {
|
|
|
7420
7522
|
if (message.peakFrustration !== 0) {
|
|
7421
7523
|
obj.peakFrustration = aIPromptFrustrationToJSON(message.peakFrustration);
|
|
7422
7524
|
}
|
|
7423
|
-
if (message.
|
|
7424
|
-
obj.
|
|
7525
|
+
if (message.clearPrompts !== 0) {
|
|
7526
|
+
obj.clearPrompts = Math.round(message.clearPrompts);
|
|
7425
7527
|
}
|
|
7426
7528
|
return obj;
|
|
7427
7529
|
},
|
|
7428
7530
|
|
|
7429
|
-
create<I extends Exact<DeepPartial<
|
|
7430
|
-
return
|
|
7531
|
+
create<I extends Exact<DeepPartial<AIPromptLabelSummary>, I>>(base?: I): AIPromptLabelSummary {
|
|
7532
|
+
return AIPromptLabelSummary.fromPartial(base ?? ({} as any));
|
|
7431
7533
|
},
|
|
7432
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7433
|
-
const message =
|
|
7434
|
-
message.
|
|
7534
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabelSummary>, I>>(object: I): AIPromptLabelSummary {
|
|
7535
|
+
const message = createBaseAIPromptLabelSummary();
|
|
7536
|
+
message.labelledPrompts = object.labelledPrompts ?? 0;
|
|
7435
7537
|
message.steeringCounts = object.steeringCounts?.map((e) => AIPromptSteeringCount.fromPartial(e)) || [];
|
|
7436
7538
|
message.peakFrustration = object.peakFrustration ?? 0;
|
|
7437
|
-
message.
|
|
7539
|
+
message.clearPrompts = object.clearPrompts ?? 0;
|
|
7438
7540
|
return message;
|
|
7439
7541
|
},
|
|
7440
7542
|
};
|
|
@@ -7524,12 +7626,12 @@ export const AIPromptSteeringCount: MessageFns<AIPromptSteeringCount> = {
|
|
|
7524
7626
|
},
|
|
7525
7627
|
};
|
|
7526
7628
|
|
|
7527
|
-
function
|
|
7629
|
+
function createBaseGetPromptLabelTrendRequest(): GetPromptLabelTrendRequest {
|
|
7528
7630
|
return { organizationId: "", projectId: "", startDate: "", endDate: "", filter: undefined };
|
|
7529
7631
|
}
|
|
7530
7632
|
|
|
7531
|
-
export const
|
|
7532
|
-
encode(message:
|
|
7633
|
+
export const GetPromptLabelTrendRequest: MessageFns<GetPromptLabelTrendRequest> = {
|
|
7634
|
+
encode(message: GetPromptLabelTrendRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7533
7635
|
if (message.organizationId !== "") {
|
|
7534
7636
|
writer.uint32(10).string(message.organizationId);
|
|
7535
7637
|
}
|
|
@@ -7543,12 +7645,12 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7543
7645
|
writer.uint32(34).string(message.endDate);
|
|
7544
7646
|
}
|
|
7545
7647
|
if (message.filter !== undefined) {
|
|
7546
|
-
|
|
7648
|
+
PromptLabelTrendFilter.encode(message.filter, writer.uint32(42).fork()).join();
|
|
7547
7649
|
}
|
|
7548
7650
|
return writer;
|
|
7549
7651
|
},
|
|
7550
7652
|
|
|
7551
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7653
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetPromptLabelTrendRequest {
|
|
7552
7654
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7553
7655
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7554
7656
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7557,7 +7659,7 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7557
7659
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7558
7660
|
try {
|
|
7559
7661
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7560
|
-
const message =
|
|
7662
|
+
const message = createBaseGetPromptLabelTrendRequest();
|
|
7561
7663
|
while (reader.pos < end) {
|
|
7562
7664
|
const tag = reader.uint32();
|
|
7563
7665
|
switch (tag >>> 3) {
|
|
@@ -7598,7 +7700,7 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7598
7700
|
break;
|
|
7599
7701
|
}
|
|
7600
7702
|
|
|
7601
|
-
message.filter =
|
|
7703
|
+
message.filter = PromptLabelTrendFilter.decode(reader, reader.uint32());
|
|
7602
7704
|
continue;
|
|
7603
7705
|
}
|
|
7604
7706
|
}
|
|
@@ -7613,7 +7715,7 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7613
7715
|
}
|
|
7614
7716
|
},
|
|
7615
7717
|
|
|
7616
|
-
fromJSON(object: any):
|
|
7718
|
+
fromJSON(object: any): GetPromptLabelTrendRequest {
|
|
7617
7719
|
return {
|
|
7618
7720
|
organizationId: isSet(object.organizationId)
|
|
7619
7721
|
? globalThis.String(object.organizationId)
|
|
@@ -7635,11 +7737,11 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7635
7737
|
: isSet(object.end_date)
|
|
7636
7738
|
? globalThis.String(object.end_date)
|
|
7637
7739
|
: "",
|
|
7638
|
-
filter: isSet(object.filter) ?
|
|
7740
|
+
filter: isSet(object.filter) ? PromptLabelTrendFilter.fromJSON(object.filter) : undefined,
|
|
7639
7741
|
};
|
|
7640
7742
|
},
|
|
7641
7743
|
|
|
7642
|
-
toJSON(message:
|
|
7744
|
+
toJSON(message: GetPromptLabelTrendRequest): unknown {
|
|
7643
7745
|
const obj: any = {};
|
|
7644
7746
|
if (message.organizationId !== "") {
|
|
7645
7747
|
obj.organizationId = message.organizationId;
|
|
@@ -7654,33 +7756,33 @@ export const GetPromptScoreTrendRequest: MessageFns<GetPromptScoreTrendRequest>
|
|
|
7654
7756
|
obj.endDate = message.endDate;
|
|
7655
7757
|
}
|
|
7656
7758
|
if (message.filter !== undefined) {
|
|
7657
|
-
obj.filter =
|
|
7759
|
+
obj.filter = PromptLabelTrendFilter.toJSON(message.filter);
|
|
7658
7760
|
}
|
|
7659
7761
|
return obj;
|
|
7660
7762
|
},
|
|
7661
7763
|
|
|
7662
|
-
create<I extends Exact<DeepPartial<
|
|
7663
|
-
return
|
|
7764
|
+
create<I extends Exact<DeepPartial<GetPromptLabelTrendRequest>, I>>(base?: I): GetPromptLabelTrendRequest {
|
|
7765
|
+
return GetPromptLabelTrendRequest.fromPartial(base ?? ({} as any));
|
|
7664
7766
|
},
|
|
7665
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7666
|
-
const message =
|
|
7767
|
+
fromPartial<I extends Exact<DeepPartial<GetPromptLabelTrendRequest>, I>>(object: I): GetPromptLabelTrendRequest {
|
|
7768
|
+
const message = createBaseGetPromptLabelTrendRequest();
|
|
7667
7769
|
message.organizationId = object.organizationId ?? "";
|
|
7668
7770
|
message.projectId = object.projectId ?? "";
|
|
7669
7771
|
message.startDate = object.startDate ?? "";
|
|
7670
7772
|
message.endDate = object.endDate ?? "";
|
|
7671
7773
|
message.filter = (object.filter !== undefined && object.filter !== null)
|
|
7672
|
-
?
|
|
7774
|
+
? PromptLabelTrendFilter.fromPartial(object.filter)
|
|
7673
7775
|
: undefined;
|
|
7674
7776
|
return message;
|
|
7675
7777
|
},
|
|
7676
7778
|
};
|
|
7677
7779
|
|
|
7678
|
-
function
|
|
7780
|
+
function createBasePromptLabelTrendFilter(): PromptLabelTrendFilter {
|
|
7679
7781
|
return { principals: [], sourceSystems: [] };
|
|
7680
7782
|
}
|
|
7681
7783
|
|
|
7682
|
-
export const
|
|
7683
|
-
encode(message:
|
|
7784
|
+
export const PromptLabelTrendFilter: MessageFns<PromptLabelTrendFilter> = {
|
|
7785
|
+
encode(message: PromptLabelTrendFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7684
7786
|
for (const v of message.principals) {
|
|
7685
7787
|
DailyActivityPrincipal.encode(v!, writer.uint32(10).fork()).join();
|
|
7686
7788
|
}
|
|
@@ -7690,7 +7792,7 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7690
7792
|
return writer;
|
|
7691
7793
|
},
|
|
7692
7794
|
|
|
7693
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7795
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PromptLabelTrendFilter {
|
|
7694
7796
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7695
7797
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7696
7798
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7699,7 +7801,7 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7699
7801
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7700
7802
|
try {
|
|
7701
7803
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7702
|
-
const message =
|
|
7804
|
+
const message = createBasePromptLabelTrendFilter();
|
|
7703
7805
|
while (reader.pos < end) {
|
|
7704
7806
|
const tag = reader.uint32();
|
|
7705
7807
|
switch (tag >>> 3) {
|
|
@@ -7731,7 +7833,7 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7731
7833
|
}
|
|
7732
7834
|
},
|
|
7733
7835
|
|
|
7734
|
-
fromJSON(object: any):
|
|
7836
|
+
fromJSON(object: any): PromptLabelTrendFilter {
|
|
7735
7837
|
return {
|
|
7736
7838
|
principals: globalThis.Array.isArray(object?.principals)
|
|
7737
7839
|
? object.principals.map((e: any) => DailyActivityPrincipal.fromJSON(e))
|
|
@@ -7744,7 +7846,7 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7744
7846
|
};
|
|
7745
7847
|
},
|
|
7746
7848
|
|
|
7747
|
-
toJSON(message:
|
|
7849
|
+
toJSON(message: PromptLabelTrendFilter): unknown {
|
|
7748
7850
|
const obj: any = {};
|
|
7749
7851
|
if (message.principals?.length) {
|
|
7750
7852
|
obj.principals = message.principals.map((e) => DailyActivityPrincipal.toJSON(e));
|
|
@@ -7755,33 +7857,33 @@ export const PromptScoreTrendFilter: MessageFns<PromptScoreTrendFilter> = {
|
|
|
7755
7857
|
return obj;
|
|
7756
7858
|
},
|
|
7757
7859
|
|
|
7758
|
-
create<I extends Exact<DeepPartial<
|
|
7759
|
-
return
|
|
7860
|
+
create<I extends Exact<DeepPartial<PromptLabelTrendFilter>, I>>(base?: I): PromptLabelTrendFilter {
|
|
7861
|
+
return PromptLabelTrendFilter.fromPartial(base ?? ({} as any));
|
|
7760
7862
|
},
|
|
7761
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7762
|
-
const message =
|
|
7863
|
+
fromPartial<I extends Exact<DeepPartial<PromptLabelTrendFilter>, I>>(object: I): PromptLabelTrendFilter {
|
|
7864
|
+
const message = createBasePromptLabelTrendFilter();
|
|
7763
7865
|
message.principals = object.principals?.map((e) => DailyActivityPrincipal.fromPartial(e)) || [];
|
|
7764
7866
|
message.sourceSystems = object.sourceSystems?.map((e) => e) || [];
|
|
7765
7867
|
return message;
|
|
7766
7868
|
},
|
|
7767
7869
|
};
|
|
7768
7870
|
|
|
7769
|
-
function
|
|
7871
|
+
function createBaseGetPromptLabelTrendResponse(): GetPromptLabelTrendResponse {
|
|
7770
7872
|
return { status: undefined, weeks: [] };
|
|
7771
7873
|
}
|
|
7772
7874
|
|
|
7773
|
-
export const
|
|
7774
|
-
encode(message:
|
|
7875
|
+
export const GetPromptLabelTrendResponse: MessageFns<GetPromptLabelTrendResponse> = {
|
|
7876
|
+
encode(message: GetPromptLabelTrendResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7775
7877
|
if (message.status !== undefined) {
|
|
7776
7878
|
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
7777
7879
|
}
|
|
7778
7880
|
for (const v of message.weeks) {
|
|
7779
|
-
|
|
7881
|
+
AIPromptLabelWeek.encode(v!, writer.uint32(18).fork()).join();
|
|
7780
7882
|
}
|
|
7781
7883
|
return writer;
|
|
7782
7884
|
},
|
|
7783
7885
|
|
|
7784
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7886
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetPromptLabelTrendResponse {
|
|
7785
7887
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7786
7888
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7787
7889
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7790,7 +7892,7 @@ export const GetPromptScoreTrendResponse: MessageFns<GetPromptScoreTrendResponse
|
|
|
7790
7892
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7791
7893
|
try {
|
|
7792
7894
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7793
|
-
const message =
|
|
7895
|
+
const message = createBaseGetPromptLabelTrendResponse();
|
|
7794
7896
|
while (reader.pos < end) {
|
|
7795
7897
|
const tag = reader.uint32();
|
|
7796
7898
|
switch (tag >>> 3) {
|
|
@@ -7807,7 +7909,7 @@ export const GetPromptScoreTrendResponse: MessageFns<GetPromptScoreTrendResponse
|
|
|
7807
7909
|
break;
|
|
7808
7910
|
}
|
|
7809
7911
|
|
|
7810
|
-
message.weeks.push(
|
|
7912
|
+
message.weeks.push(AIPromptLabelWeek.decode(reader, reader.uint32()));
|
|
7811
7913
|
continue;
|
|
7812
7914
|
}
|
|
7813
7915
|
}
|
|
@@ -7822,51 +7924,51 @@ export const GetPromptScoreTrendResponse: MessageFns<GetPromptScoreTrendResponse
|
|
|
7822
7924
|
}
|
|
7823
7925
|
},
|
|
7824
7926
|
|
|
7825
|
-
fromJSON(object: any):
|
|
7927
|
+
fromJSON(object: any): GetPromptLabelTrendResponse {
|
|
7826
7928
|
return {
|
|
7827
7929
|
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
7828
|
-
weeks: globalThis.Array.isArray(object?.weeks) ? object.weeks.map((e: any) =>
|
|
7930
|
+
weeks: globalThis.Array.isArray(object?.weeks) ? object.weeks.map((e: any) => AIPromptLabelWeek.fromJSON(e)) : [],
|
|
7829
7931
|
};
|
|
7830
7932
|
},
|
|
7831
7933
|
|
|
7832
|
-
toJSON(message:
|
|
7934
|
+
toJSON(message: GetPromptLabelTrendResponse): unknown {
|
|
7833
7935
|
const obj: any = {};
|
|
7834
7936
|
if (message.status !== undefined) {
|
|
7835
7937
|
obj.status = ResponseStatus.toJSON(message.status);
|
|
7836
7938
|
}
|
|
7837
7939
|
if (message.weeks?.length) {
|
|
7838
|
-
obj.weeks = message.weeks.map((e) =>
|
|
7940
|
+
obj.weeks = message.weeks.map((e) => AIPromptLabelWeek.toJSON(e));
|
|
7839
7941
|
}
|
|
7840
7942
|
return obj;
|
|
7841
7943
|
},
|
|
7842
7944
|
|
|
7843
|
-
create<I extends Exact<DeepPartial<
|
|
7844
|
-
return
|
|
7945
|
+
create<I extends Exact<DeepPartial<GetPromptLabelTrendResponse>, I>>(base?: I): GetPromptLabelTrendResponse {
|
|
7946
|
+
return GetPromptLabelTrendResponse.fromPartial(base ?? ({} as any));
|
|
7845
7947
|
},
|
|
7846
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7847
|
-
const message =
|
|
7948
|
+
fromPartial<I extends Exact<DeepPartial<GetPromptLabelTrendResponse>, I>>(object: I): GetPromptLabelTrendResponse {
|
|
7949
|
+
const message = createBaseGetPromptLabelTrendResponse();
|
|
7848
7950
|
message.status = (object.status !== undefined && object.status !== null)
|
|
7849
7951
|
? ResponseStatus.fromPartial(object.status)
|
|
7850
7952
|
: undefined;
|
|
7851
|
-
message.weeks = object.weeks?.map((e) =>
|
|
7953
|
+
message.weeks = object.weeks?.map((e) => AIPromptLabelWeek.fromPartial(e)) || [];
|
|
7852
7954
|
return message;
|
|
7853
7955
|
},
|
|
7854
7956
|
};
|
|
7855
7957
|
|
|
7856
|
-
function
|
|
7857
|
-
return { weekStart: "",
|
|
7958
|
+
function createBaseAIPromptLabelWeek(): AIPromptLabelWeek {
|
|
7959
|
+
return { weekStart: "", labelledPrompts: 0, clearPrompts: 0, corrections: 0, frustratedPrompts: 0 };
|
|
7858
7960
|
}
|
|
7859
7961
|
|
|
7860
|
-
export const
|
|
7861
|
-
encode(message:
|
|
7962
|
+
export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
7963
|
+
encode(message: AIPromptLabelWeek, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7862
7964
|
if (message.weekStart !== "") {
|
|
7863
7965
|
writer.uint32(10).string(message.weekStart);
|
|
7864
7966
|
}
|
|
7865
|
-
if (message.
|
|
7866
|
-
writer.uint32(16).uint64(message.
|
|
7967
|
+
if (message.labelledPrompts !== 0) {
|
|
7968
|
+
writer.uint32(16).uint64(message.labelledPrompts);
|
|
7867
7969
|
}
|
|
7868
|
-
if (message.
|
|
7869
|
-
writer.uint32(24).uint64(message.
|
|
7970
|
+
if (message.clearPrompts !== 0) {
|
|
7971
|
+
writer.uint32(24).uint64(message.clearPrompts);
|
|
7870
7972
|
}
|
|
7871
7973
|
if (message.corrections !== 0) {
|
|
7872
7974
|
writer.uint32(32).uint64(message.corrections);
|
|
@@ -7877,7 +7979,7 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7877
7979
|
return writer;
|
|
7878
7980
|
},
|
|
7879
7981
|
|
|
7880
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7982
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabelWeek {
|
|
7881
7983
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7882
7984
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
7883
7985
|
if (previousRecursionDepth >= 100) {
|
|
@@ -7886,7 +7988,7 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7886
7988
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
7887
7989
|
try {
|
|
7888
7990
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7889
|
-
const message =
|
|
7991
|
+
const message = createBaseAIPromptLabelWeek();
|
|
7890
7992
|
while (reader.pos < end) {
|
|
7891
7993
|
const tag = reader.uint32();
|
|
7892
7994
|
switch (tag >>> 3) {
|
|
@@ -7903,7 +8005,7 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7903
8005
|
break;
|
|
7904
8006
|
}
|
|
7905
8007
|
|
|
7906
|
-
message.
|
|
8008
|
+
message.labelledPrompts = longToNumber(reader.uint64());
|
|
7907
8009
|
continue;
|
|
7908
8010
|
}
|
|
7909
8011
|
case 3: {
|
|
@@ -7911,7 +8013,7 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7911
8013
|
break;
|
|
7912
8014
|
}
|
|
7913
8015
|
|
|
7914
|
-
message.
|
|
8016
|
+
message.clearPrompts = longToNumber(reader.uint64());
|
|
7915
8017
|
continue;
|
|
7916
8018
|
}
|
|
7917
8019
|
case 4: {
|
|
@@ -7942,22 +8044,22 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7942
8044
|
}
|
|
7943
8045
|
},
|
|
7944
8046
|
|
|
7945
|
-
fromJSON(object: any):
|
|
8047
|
+
fromJSON(object: any): AIPromptLabelWeek {
|
|
7946
8048
|
return {
|
|
7947
8049
|
weekStart: isSet(object.weekStart)
|
|
7948
8050
|
? globalThis.String(object.weekStart)
|
|
7949
8051
|
: isSet(object.week_start)
|
|
7950
8052
|
? globalThis.String(object.week_start)
|
|
7951
8053
|
: "",
|
|
7952
|
-
|
|
7953
|
-
? globalThis.Number(object.
|
|
7954
|
-
: isSet(object.
|
|
7955
|
-
? globalThis.Number(object.
|
|
8054
|
+
labelledPrompts: isSet(object.labelledPrompts)
|
|
8055
|
+
? globalThis.Number(object.labelledPrompts)
|
|
8056
|
+
: isSet(object.labelled_prompts)
|
|
8057
|
+
? globalThis.Number(object.labelled_prompts)
|
|
7956
8058
|
: 0,
|
|
7957
|
-
|
|
7958
|
-
? globalThis.Number(object.
|
|
7959
|
-
: isSet(object.
|
|
7960
|
-
? globalThis.Number(object.
|
|
8059
|
+
clearPrompts: isSet(object.clearPrompts)
|
|
8060
|
+
? globalThis.Number(object.clearPrompts)
|
|
8061
|
+
: isSet(object.clear_prompts)
|
|
8062
|
+
? globalThis.Number(object.clear_prompts)
|
|
7961
8063
|
: 0,
|
|
7962
8064
|
corrections: isSet(object.corrections) ? globalThis.Number(object.corrections) : 0,
|
|
7963
8065
|
frustratedPrompts: isSet(object.frustratedPrompts)
|
|
@@ -7968,16 +8070,16 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7968
8070
|
};
|
|
7969
8071
|
},
|
|
7970
8072
|
|
|
7971
|
-
toJSON(message:
|
|
8073
|
+
toJSON(message: AIPromptLabelWeek): unknown {
|
|
7972
8074
|
const obj: any = {};
|
|
7973
8075
|
if (message.weekStart !== "") {
|
|
7974
8076
|
obj.weekStart = message.weekStart;
|
|
7975
8077
|
}
|
|
7976
|
-
if (message.
|
|
7977
|
-
obj.
|
|
8078
|
+
if (message.labelledPrompts !== 0) {
|
|
8079
|
+
obj.labelledPrompts = Math.round(message.labelledPrompts);
|
|
7978
8080
|
}
|
|
7979
|
-
if (message.
|
|
7980
|
-
obj.
|
|
8081
|
+
if (message.clearPrompts !== 0) {
|
|
8082
|
+
obj.clearPrompts = Math.round(message.clearPrompts);
|
|
7981
8083
|
}
|
|
7982
8084
|
if (message.corrections !== 0) {
|
|
7983
8085
|
obj.corrections = Math.round(message.corrections);
|
|
@@ -7988,14 +8090,14 @@ export const AIPromptScoreWeek: MessageFns<AIPromptScoreWeek> = {
|
|
|
7988
8090
|
return obj;
|
|
7989
8091
|
},
|
|
7990
8092
|
|
|
7991
|
-
create<I extends Exact<DeepPartial<
|
|
7992
|
-
return
|
|
8093
|
+
create<I extends Exact<DeepPartial<AIPromptLabelWeek>, I>>(base?: I): AIPromptLabelWeek {
|
|
8094
|
+
return AIPromptLabelWeek.fromPartial(base ?? ({} as any));
|
|
7993
8095
|
},
|
|
7994
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7995
|
-
const message =
|
|
8096
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabelWeek>, I>>(object: I): AIPromptLabelWeek {
|
|
8097
|
+
const message = createBaseAIPromptLabelWeek();
|
|
7996
8098
|
message.weekStart = object.weekStart ?? "";
|
|
7997
|
-
message.
|
|
7998
|
-
message.
|
|
8099
|
+
message.labelledPrompts = object.labelledPrompts ?? 0;
|
|
8100
|
+
message.clearPrompts = object.clearPrompts ?? 0;
|
|
7999
8101
|
message.corrections = object.corrections ?? 0;
|
|
8000
8102
|
message.frustratedPrompts = object.frustratedPrompts ?? 0;
|
|
8001
8103
|
return message;
|
|
@@ -20125,7 +20227,7 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
20125
20227
|
};
|
|
20126
20228
|
|
|
20127
20229
|
function createBaseAISessionInsight(): AISessionInsight {
|
|
20128
|
-
return { category: 0, actionType: 0, evidenceRefs: [], cause: "", action: "" };
|
|
20230
|
+
return { category: 0, actionType: 0, evidenceRefs: [], cause: "", action: "", severity: 0 };
|
|
20129
20231
|
}
|
|
20130
20232
|
|
|
20131
20233
|
export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
@@ -20145,6 +20247,9 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20145
20247
|
if (message.action !== "") {
|
|
20146
20248
|
writer.uint32(42).string(message.action);
|
|
20147
20249
|
}
|
|
20250
|
+
if (message.severity !== 0) {
|
|
20251
|
+
writer.uint32(48).int32(message.severity);
|
|
20252
|
+
}
|
|
20148
20253
|
return writer;
|
|
20149
20254
|
},
|
|
20150
20255
|
|
|
@@ -20201,6 +20306,14 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20201
20306
|
message.action = reader.string();
|
|
20202
20307
|
continue;
|
|
20203
20308
|
}
|
|
20309
|
+
case 6: {
|
|
20310
|
+
if (tag !== 48) {
|
|
20311
|
+
break;
|
|
20312
|
+
}
|
|
20313
|
+
|
|
20314
|
+
message.severity = reader.int32() as any;
|
|
20315
|
+
continue;
|
|
20316
|
+
}
|
|
20204
20317
|
}
|
|
20205
20318
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20206
20319
|
break;
|
|
@@ -20228,6 +20341,7 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20228
20341
|
: [],
|
|
20229
20342
|
cause: isSet(object.cause) ? globalThis.String(object.cause) : "",
|
|
20230
20343
|
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
20344
|
+
severity: isSet(object.severity) ? aISessionInsightSeverityFromJSON(object.severity) : 0,
|
|
20231
20345
|
};
|
|
20232
20346
|
},
|
|
20233
20347
|
|
|
@@ -20248,6 +20362,9 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20248
20362
|
if (message.action !== "") {
|
|
20249
20363
|
obj.action = message.action;
|
|
20250
20364
|
}
|
|
20365
|
+
if (message.severity !== 0) {
|
|
20366
|
+
obj.severity = aISessionInsightSeverityToJSON(message.severity);
|
|
20367
|
+
}
|
|
20251
20368
|
return obj;
|
|
20252
20369
|
},
|
|
20253
20370
|
|
|
@@ -20261,6 +20378,7 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
20261
20378
|
message.evidenceRefs = object.evidenceRefs?.map((e) => AISessionEventRef.fromPartial(e)) || [];
|
|
20262
20379
|
message.cause = object.cause ?? "";
|
|
20263
20380
|
message.action = object.action ?? "";
|
|
20381
|
+
message.severity = object.severity ?? 0;
|
|
20264
20382
|
return message;
|
|
20265
20383
|
},
|
|
20266
20384
|
};
|
|
@@ -26705,10 +26823,10 @@ export interface AIGatewayService {
|
|
|
26705
26823
|
metadata?: Metadata,
|
|
26706
26824
|
): Promise<GetSessionScoreTrendResponse>;
|
|
26707
26825
|
/**
|
|
26708
|
-
* A project's
|
|
26709
|
-
* time): counts only, the
|
|
26826
|
+
* A project's labelled prompts, or one person's (their principals), per ISO week (UTC, by each prompt's own event
|
|
26827
|
+
* time): counts only, the shares derived only when a week has labelled prompts. Mirrors ai.api.v1.
|
|
26710
26828
|
*/
|
|
26711
|
-
|
|
26829
|
+
GetPromptLabelTrend(request: GetPromptLabelTrendRequest, metadata?: Metadata): Promise<GetPromptLabelTrendResponse>;
|
|
26712
26830
|
/**
|
|
26713
26831
|
* Per-seat entitlement usage board: every entitlement owner's latest observed funding facility and
|
|
26714
26832
|
* per-harness usage % windows. Stream-first (first frame = full snapshot), seat-scoped. Mirrors
|
|
@@ -26757,7 +26875,7 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
26757
26875
|
this.GetSessionUsageTrend = this.GetSessionUsageTrend.bind(this);
|
|
26758
26876
|
this.GetSessionAnalysis = this.GetSessionAnalysis.bind(this);
|
|
26759
26877
|
this.GetSessionScoreTrend = this.GetSessionScoreTrend.bind(this);
|
|
26760
|
-
this.
|
|
26878
|
+
this.GetPromptLabelTrend = this.GetPromptLabelTrend.bind(this);
|
|
26761
26879
|
this.StreamEntitlements = this.StreamEntitlements.bind(this);
|
|
26762
26880
|
this.ListRelayHeartbeats = this.ListRelayHeartbeats.bind(this);
|
|
26763
26881
|
}
|
|
@@ -26935,10 +27053,10 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
26935
27053
|
return promise.then((data) => GetSessionScoreTrendResponse.decode(new BinaryReader(data)));
|
|
26936
27054
|
}
|
|
26937
27055
|
|
|
26938
|
-
|
|
26939
|
-
const data =
|
|
26940
|
-
const promise = this.rpc.request(this.service, "
|
|
26941
|
-
return promise.then((data) =>
|
|
27056
|
+
GetPromptLabelTrend(request: GetPromptLabelTrendRequest, metadata?: Metadata): Promise<GetPromptLabelTrendResponse> {
|
|
27057
|
+
const data = GetPromptLabelTrendRequest.encode(request).finish();
|
|
27058
|
+
const promise = this.rpc.request(this.service, "GetPromptLabelTrend", data, metadata);
|
|
27059
|
+
return promise.then((data) => GetPromptLabelTrendResponse.decode(new BinaryReader(data)));
|
|
26942
27060
|
}
|
|
26943
27061
|
|
|
26944
27062
|
StreamEntitlements(request: StreamEntitlementsRequest, metadata?: Metadata): Observable<EntitlementsSnapshot> {
|