@miradorlabs/web-grpc 4.6.0 → 4.12.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.
- package/google/api/field_behavior.ts +1 -1
- package/google/protobuf/descriptor.ts +1 -1
- package/google/protobuf/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +1 -1
- package/proto/gateway/common/v1/attribute_value.ts +1 -1
- package/proto/gateway/common/v1/status.ts +1 -1
- package/proto/gateway/common/v1/types.ts +1 -1
- package/proto/gateway/web/v1/account_gateway.ts +1 -1
- package/proto/gateway/web/v1/admin_gateway.ts +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +79 -366
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +7 -7
- package/proto/gateway/web/v1/ai_gateway_pb.js +25 -739
- package/proto/gateway/web/v1/attribute_value.ts +1 -1
- package/proto/gateway/web/v1/beta_gateway.ts +1 -1
- package/proto/gateway/web/v1/chain_gateway.ts +1 -1
- package/proto/gateway/web/v1/claude_enterprise_gateway.ts +1 -1
- package/proto/gateway/web/v1/common.ts +1 -1
- package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/github_connector.ts +1 -1
- package/proto/gateway/web/v1/integration_gateway.ts +1 -1
- package/proto/gateway/web/v1/log_gateway.ts +1 -1
- package/proto/gateway/web/v1/market_gateway.ts +1 -1
- package/proto/gateway/web/v1/metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/notification_gateway.ts +1 -1
- package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
- package/proto/gateway/web/v1/plan_gateway.ts +1 -1
- package/proto/gateway/web/v1/policy_gateway.ts +1 -1
- package/proto/gateway/web/v1/reference_gateway.ts +1 -1
- package/proto/gateway/web/v1/rule_gateway.ts +1 -1
- package/proto/gateway/web/v1/slo_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.18.
|
|
3
|
+
// protoc-gen-ts_proto v2.18.4
|
|
4
4
|
// protoc v3.21.12
|
|
5
5
|
// source: proto/gateway/web/v1/ai_gateway.proto
|
|
6
6
|
|
|
@@ -2234,6 +2234,49 @@ export function trackerSyncErrorToJSON(object: TrackerSyncError): string {
|
|
|
2234
2234
|
}
|
|
2235
2235
|
}
|
|
2236
2236
|
|
|
2237
|
+
/**
|
|
2238
|
+
* AIAgentKind is whose run made a model call: the session's main thread or a subagent run inside it. Mirrors
|
|
2239
|
+
* ai.api.v1.
|
|
2240
|
+
*/
|
|
2241
|
+
export enum AIAgentKind {
|
|
2242
|
+
AI_AGENT_KIND_UNSPECIFIED = 0,
|
|
2243
|
+
AI_AGENT_KIND_MAIN = 1,
|
|
2244
|
+
AI_AGENT_KIND_SUBAGENT = 2,
|
|
2245
|
+
UNRECOGNIZED = -1,
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
export function aIAgentKindFromJSON(object: any): AIAgentKind {
|
|
2249
|
+
switch (object) {
|
|
2250
|
+
case 0:
|
|
2251
|
+
case "AI_AGENT_KIND_UNSPECIFIED":
|
|
2252
|
+
return AIAgentKind.AI_AGENT_KIND_UNSPECIFIED;
|
|
2253
|
+
case 1:
|
|
2254
|
+
case "AI_AGENT_KIND_MAIN":
|
|
2255
|
+
return AIAgentKind.AI_AGENT_KIND_MAIN;
|
|
2256
|
+
case 2:
|
|
2257
|
+
case "AI_AGENT_KIND_SUBAGENT":
|
|
2258
|
+
return AIAgentKind.AI_AGENT_KIND_SUBAGENT;
|
|
2259
|
+
case -1:
|
|
2260
|
+
case "UNRECOGNIZED":
|
|
2261
|
+
default:
|
|
2262
|
+
return AIAgentKind.UNRECOGNIZED;
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
export function aIAgentKindToJSON(object: AIAgentKind): string {
|
|
2267
|
+
switch (object) {
|
|
2268
|
+
case AIAgentKind.AI_AGENT_KIND_UNSPECIFIED:
|
|
2269
|
+
return "AI_AGENT_KIND_UNSPECIFIED";
|
|
2270
|
+
case AIAgentKind.AI_AGENT_KIND_MAIN:
|
|
2271
|
+
return "AI_AGENT_KIND_MAIN";
|
|
2272
|
+
case AIAgentKind.AI_AGENT_KIND_SUBAGENT:
|
|
2273
|
+
return "AI_AGENT_KIND_SUBAGENT";
|
|
2274
|
+
case AIAgentKind.UNRECOGNIZED:
|
|
2275
|
+
default:
|
|
2276
|
+
return "UNRECOGNIZED";
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2237
2280
|
export interface ListSessionsRequest {
|
|
2238
2281
|
organizationId: string;
|
|
2239
2282
|
projectId: string;
|
|
@@ -3429,10 +3472,7 @@ export interface ListModelReasoningRequest {
|
|
|
3429
3472
|
* cannot be listed and is always its own key.
|
|
3430
3473
|
*/
|
|
3431
3474
|
effortGroups: EffortGroup[];
|
|
3432
|
-
/**
|
|
3433
|
-
* The half-open range [start_time, end_time) of event time, at most 113 days: up to 17 ISO weeks, and a baseline
|
|
3434
|
-
* for every week shown needs the 4 weeks before them requested too.
|
|
3435
|
-
*/
|
|
3475
|
+
/** The half-open range [start_time, end_time) of event time, at most 113 days. */
|
|
3436
3476
|
startTime: Date | undefined;
|
|
3437
3477
|
endTime: Date | undefined;
|
|
3438
3478
|
}
|
|
@@ -3446,7 +3486,10 @@ export interface ListModelReasoningResponse {
|
|
|
3446
3486
|
status:
|
|
3447
3487
|
| ResponseStatus
|
|
3448
3488
|
| undefined;
|
|
3449
|
-
/**
|
|
3489
|
+
/**
|
|
3490
|
+
* One per (model_key, effort_key, agent_kind): calls descending, then model_key, effort_key and agent_kind
|
|
3491
|
+
* ascending (MAIN before SUBAGENT).
|
|
3492
|
+
*/
|
|
3450
3493
|
models: ModelReasoning[];
|
|
3451
3494
|
coverage: ReasoningCoverage | undefined;
|
|
3452
3495
|
servedModels: ReasoningServedModels | undefined;
|
|
@@ -3455,7 +3498,7 @@ export interface ListModelReasoningResponse {
|
|
|
3455
3498
|
}
|
|
3456
3499
|
|
|
3457
3500
|
/**
|
|
3458
|
-
* One (model, effort)
|
|
3501
|
+
* One (model, effort, agent kind): counted calls report a thinking count (zero included); percentiles are exact, the
|
|
3459
3502
|
* smallest value whose cumulative count reaches ceil(level × n) (the lower middle value for an even n); a
|
|
3460
3503
|
* percentile is absent when its count is 0.
|
|
3461
3504
|
*/
|
|
@@ -3467,48 +3510,22 @@ export interface ModelReasoning {
|
|
|
3467
3510
|
countedCalls: number;
|
|
3468
3511
|
zeroThinkingCalls: number;
|
|
3469
3512
|
medianPerCall?: number | undefined;
|
|
3470
|
-
p90PerCall?:
|
|
3513
|
+
p90PerCall?:
|
|
3514
|
+
| number
|
|
3515
|
+
| undefined;
|
|
3516
|
+
/** A turn with counted calls of both agent kinds counts in both rows, each summing only its own kind's calls. */
|
|
3471
3517
|
countedTurns: number;
|
|
3472
3518
|
medianPerTurn?:
|
|
3473
3519
|
| number
|
|
3474
3520
|
| undefined;
|
|
3475
3521
|
/**
|
|
3476
|
-
*
|
|
3477
|
-
*
|
|
3522
|
+
* SUBAGENT when the source marked the calls a subagent's, else MAIN: a source that does not report subagents
|
|
3523
|
+
* reports every call as MAIN. Never UNSPECIFIED.
|
|
3478
3524
|
*/
|
|
3479
|
-
|
|
3480
|
-
}
|
|
3481
|
-
|
|
3482
|
-
/**
|
|
3483
|
-
* 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
|
|
3484
|
-
* lower middle for an even n); median_ci_low and median_ci_high are the nominal ~84% distribution-free rank interval
|
|
3485
|
-
* 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
|
|
3486
|
-
* [1, n]: sample values, never interpolated. Coverage is nominal, not exact for a finite sample; non-overlap is a
|
|
3487
|
-
* heuristic, not a fixed-level test. All three are absent when counted_calls is 0.
|
|
3488
|
-
*/
|
|
3489
|
-
export interface ModelReasoningWeek {
|
|
3490
|
-
weekStart: Date | undefined;
|
|
3491
|
-
countedCalls: number;
|
|
3492
|
-
medianPerCall?: number | undefined;
|
|
3493
|
-
medianCiLow?: number | undefined;
|
|
3494
|
-
medianCiHigh?:
|
|
3495
|
-
| number
|
|
3496
|
-
| undefined;
|
|
3497
|
-
/** The four prior ISO weeks' counted calls pooled into one sample; present only when all four lie inside the range. */
|
|
3498
|
-
baseline?: ModelReasoningBaseline | undefined;
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
|
-
/**
|
|
3502
|
-
* The pooled sample of a week's four prior ISO weeks, by the same median and interval rules; a prior week with no
|
|
3503
|
-
* counted call adds nothing. The median and bounds are absent when counted_calls is 0.
|
|
3504
|
-
*/
|
|
3505
|
-
export interface ModelReasoningBaseline {
|
|
3506
|
-
countedCalls: number;
|
|
3507
|
-
median?: number | undefined;
|
|
3508
|
-
ciLow?: number | undefined;
|
|
3509
|
-
ciHigh?: number | undefined;
|
|
3525
|
+
agentKind: AIAgentKind;
|
|
3510
3526
|
}
|
|
3511
3527
|
|
|
3528
|
+
/** Every call of the range, both agent kinds; calls and counted_calls are the sums over every row. */
|
|
3512
3529
|
export interface ReasoningCoverage {
|
|
3513
3530
|
calls: number;
|
|
3514
3531
|
countedCalls: number;
|
|
@@ -3516,6 +3533,7 @@ export interface ReasoningCoverage {
|
|
|
3516
3533
|
sourceSystems: string[];
|
|
3517
3534
|
}
|
|
3518
3535
|
|
|
3536
|
+
/** What the providers say served the range's calls, both agent kinds. */
|
|
3519
3537
|
export interface ReasoningServedModels {
|
|
3520
3538
|
servedCalls: number;
|
|
3521
3539
|
/** Recorded and served models folding to different keys: an observed mismatch, a lower bound on substitution. */
|
|
@@ -19607,7 +19625,7 @@ function createBaseModelReasoning(): ModelReasoning {
|
|
|
19607
19625
|
p90PerCall: undefined,
|
|
19608
19626
|
countedTurns: 0,
|
|
19609
19627
|
medianPerTurn: undefined,
|
|
19610
|
-
|
|
19628
|
+
agentKind: 0,
|
|
19611
19629
|
};
|
|
19612
19630
|
}
|
|
19613
19631
|
|
|
@@ -19640,8 +19658,8 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
|
|
|
19640
19658
|
if (message.medianPerTurn !== undefined) {
|
|
19641
19659
|
writer.uint32(72).uint64(message.medianPerTurn);
|
|
19642
19660
|
}
|
|
19643
|
-
|
|
19644
|
-
|
|
19661
|
+
if (message.agentKind !== 0) {
|
|
19662
|
+
writer.uint32(80).int32(message.agentKind);
|
|
19645
19663
|
}
|
|
19646
19664
|
return writer;
|
|
19647
19665
|
},
|
|
@@ -19732,11 +19750,11 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
|
|
|
19732
19750
|
continue;
|
|
19733
19751
|
}
|
|
19734
19752
|
case 10: {
|
|
19735
|
-
if (tag !==
|
|
19753
|
+
if (tag !== 80) {
|
|
19736
19754
|
break;
|
|
19737
19755
|
}
|
|
19738
19756
|
|
|
19739
|
-
message.
|
|
19757
|
+
message.agentKind = reader.int32() as any;
|
|
19740
19758
|
continue;
|
|
19741
19759
|
}
|
|
19742
19760
|
}
|
|
@@ -19794,9 +19812,11 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
|
|
|
19794
19812
|
: isSet(object.median_per_turn)
|
|
19795
19813
|
? globalThis.Number(object.median_per_turn)
|
|
19796
19814
|
: undefined,
|
|
19797
|
-
|
|
19798
|
-
? object.
|
|
19799
|
-
:
|
|
19815
|
+
agentKind: isSet(object.agentKind)
|
|
19816
|
+
? aIAgentKindFromJSON(object.agentKind)
|
|
19817
|
+
: isSet(object.agent_kind)
|
|
19818
|
+
? aIAgentKindFromJSON(object.agent_kind)
|
|
19819
|
+
: 0,
|
|
19800
19820
|
};
|
|
19801
19821
|
},
|
|
19802
19822
|
|
|
@@ -19829,8 +19849,8 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
|
|
|
19829
19849
|
if (message.medianPerTurn !== undefined) {
|
|
19830
19850
|
obj.medianPerTurn = Math.round(message.medianPerTurn);
|
|
19831
19851
|
}
|
|
19832
|
-
if (message.
|
|
19833
|
-
obj.
|
|
19852
|
+
if (message.agentKind !== 0) {
|
|
19853
|
+
obj.agentKind = aIAgentKindToJSON(message.agentKind);
|
|
19834
19854
|
}
|
|
19835
19855
|
return obj;
|
|
19836
19856
|
},
|
|
@@ -19849,314 +19869,7 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
|
|
|
19849
19869
|
message.p90PerCall = object.p90PerCall ?? undefined;
|
|
19850
19870
|
message.countedTurns = object.countedTurns ?? 0;
|
|
19851
19871
|
message.medianPerTurn = object.medianPerTurn ?? undefined;
|
|
19852
|
-
message.
|
|
19853
|
-
return message;
|
|
19854
|
-
},
|
|
19855
|
-
};
|
|
19856
|
-
|
|
19857
|
-
function createBaseModelReasoningWeek(): ModelReasoningWeek {
|
|
19858
|
-
return {
|
|
19859
|
-
weekStart: undefined,
|
|
19860
|
-
countedCalls: 0,
|
|
19861
|
-
medianPerCall: undefined,
|
|
19862
|
-
medianCiLow: undefined,
|
|
19863
|
-
medianCiHigh: undefined,
|
|
19864
|
-
baseline: undefined,
|
|
19865
|
-
};
|
|
19866
|
-
}
|
|
19867
|
-
|
|
19868
|
-
export const ModelReasoningWeek: MessageFns<ModelReasoningWeek> = {
|
|
19869
|
-
encode(message: ModelReasoningWeek, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19870
|
-
if (message.weekStart !== undefined) {
|
|
19871
|
-
Timestamp.encode(toTimestamp(message.weekStart), writer.uint32(10).fork()).join();
|
|
19872
|
-
}
|
|
19873
|
-
if (message.countedCalls !== 0) {
|
|
19874
|
-
writer.uint32(16).uint64(message.countedCalls);
|
|
19875
|
-
}
|
|
19876
|
-
if (message.medianPerCall !== undefined) {
|
|
19877
|
-
writer.uint32(24).uint64(message.medianPerCall);
|
|
19878
|
-
}
|
|
19879
|
-
if (message.medianCiLow !== undefined) {
|
|
19880
|
-
writer.uint32(32).uint64(message.medianCiLow);
|
|
19881
|
-
}
|
|
19882
|
-
if (message.medianCiHigh !== undefined) {
|
|
19883
|
-
writer.uint32(40).uint64(message.medianCiHigh);
|
|
19884
|
-
}
|
|
19885
|
-
if (message.baseline !== undefined) {
|
|
19886
|
-
ModelReasoningBaseline.encode(message.baseline, writer.uint32(50).fork()).join();
|
|
19887
|
-
}
|
|
19888
|
-
return writer;
|
|
19889
|
-
},
|
|
19890
|
-
|
|
19891
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ModelReasoningWeek {
|
|
19892
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19893
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
19894
|
-
if (previousRecursionDepth >= 100) {
|
|
19895
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
19896
|
-
}
|
|
19897
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
19898
|
-
try {
|
|
19899
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19900
|
-
const message = createBaseModelReasoningWeek();
|
|
19901
|
-
while (reader.pos < end) {
|
|
19902
|
-
const tag = reader.uint32();
|
|
19903
|
-
switch (tag >>> 3) {
|
|
19904
|
-
case 1: {
|
|
19905
|
-
if (tag !== 10) {
|
|
19906
|
-
break;
|
|
19907
|
-
}
|
|
19908
|
-
|
|
19909
|
-
message.weekStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
19910
|
-
continue;
|
|
19911
|
-
}
|
|
19912
|
-
case 2: {
|
|
19913
|
-
if (tag !== 16) {
|
|
19914
|
-
break;
|
|
19915
|
-
}
|
|
19916
|
-
|
|
19917
|
-
message.countedCalls = longToNumber(reader.uint64());
|
|
19918
|
-
continue;
|
|
19919
|
-
}
|
|
19920
|
-
case 3: {
|
|
19921
|
-
if (tag !== 24) {
|
|
19922
|
-
break;
|
|
19923
|
-
}
|
|
19924
|
-
|
|
19925
|
-
message.medianPerCall = longToNumber(reader.uint64());
|
|
19926
|
-
continue;
|
|
19927
|
-
}
|
|
19928
|
-
case 4: {
|
|
19929
|
-
if (tag !== 32) {
|
|
19930
|
-
break;
|
|
19931
|
-
}
|
|
19932
|
-
|
|
19933
|
-
message.medianCiLow = longToNumber(reader.uint64());
|
|
19934
|
-
continue;
|
|
19935
|
-
}
|
|
19936
|
-
case 5: {
|
|
19937
|
-
if (tag !== 40) {
|
|
19938
|
-
break;
|
|
19939
|
-
}
|
|
19940
|
-
|
|
19941
|
-
message.medianCiHigh = longToNumber(reader.uint64());
|
|
19942
|
-
continue;
|
|
19943
|
-
}
|
|
19944
|
-
case 6: {
|
|
19945
|
-
if (tag !== 50) {
|
|
19946
|
-
break;
|
|
19947
|
-
}
|
|
19948
|
-
|
|
19949
|
-
message.baseline = ModelReasoningBaseline.decode(reader, reader.uint32());
|
|
19950
|
-
continue;
|
|
19951
|
-
}
|
|
19952
|
-
}
|
|
19953
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
19954
|
-
break;
|
|
19955
|
-
}
|
|
19956
|
-
reader.skip(tag & 7);
|
|
19957
|
-
}
|
|
19958
|
-
return message;
|
|
19959
|
-
} finally {
|
|
19960
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
19961
|
-
}
|
|
19962
|
-
},
|
|
19963
|
-
|
|
19964
|
-
fromJSON(object: any): ModelReasoningWeek {
|
|
19965
|
-
return {
|
|
19966
|
-
weekStart: isSet(object.weekStart)
|
|
19967
|
-
? fromJsonTimestamp(object.weekStart)
|
|
19968
|
-
: isSet(object.week_start)
|
|
19969
|
-
? fromJsonTimestamp(object.week_start)
|
|
19970
|
-
: undefined,
|
|
19971
|
-
countedCalls: isSet(object.countedCalls)
|
|
19972
|
-
? globalThis.Number(object.countedCalls)
|
|
19973
|
-
: isSet(object.counted_calls)
|
|
19974
|
-
? globalThis.Number(object.counted_calls)
|
|
19975
|
-
: 0,
|
|
19976
|
-
medianPerCall: isSet(object.medianPerCall)
|
|
19977
|
-
? globalThis.Number(object.medianPerCall)
|
|
19978
|
-
: isSet(object.median_per_call)
|
|
19979
|
-
? globalThis.Number(object.median_per_call)
|
|
19980
|
-
: undefined,
|
|
19981
|
-
medianCiLow: isSet(object.medianCiLow)
|
|
19982
|
-
? globalThis.Number(object.medianCiLow)
|
|
19983
|
-
: isSet(object.median_ci_low)
|
|
19984
|
-
? globalThis.Number(object.median_ci_low)
|
|
19985
|
-
: undefined,
|
|
19986
|
-
medianCiHigh: isSet(object.medianCiHigh)
|
|
19987
|
-
? globalThis.Number(object.medianCiHigh)
|
|
19988
|
-
: isSet(object.median_ci_high)
|
|
19989
|
-
? globalThis.Number(object.median_ci_high)
|
|
19990
|
-
: undefined,
|
|
19991
|
-
baseline: isSet(object.baseline) ? ModelReasoningBaseline.fromJSON(object.baseline) : undefined,
|
|
19992
|
-
};
|
|
19993
|
-
},
|
|
19994
|
-
|
|
19995
|
-
toJSON(message: ModelReasoningWeek): unknown {
|
|
19996
|
-
const obj: any = {};
|
|
19997
|
-
if (message.weekStart !== undefined) {
|
|
19998
|
-
obj.weekStart = message.weekStart.toISOString();
|
|
19999
|
-
}
|
|
20000
|
-
if (message.countedCalls !== 0) {
|
|
20001
|
-
obj.countedCalls = Math.round(message.countedCalls);
|
|
20002
|
-
}
|
|
20003
|
-
if (message.medianPerCall !== undefined) {
|
|
20004
|
-
obj.medianPerCall = Math.round(message.medianPerCall);
|
|
20005
|
-
}
|
|
20006
|
-
if (message.medianCiLow !== undefined) {
|
|
20007
|
-
obj.medianCiLow = Math.round(message.medianCiLow);
|
|
20008
|
-
}
|
|
20009
|
-
if (message.medianCiHigh !== undefined) {
|
|
20010
|
-
obj.medianCiHigh = Math.round(message.medianCiHigh);
|
|
20011
|
-
}
|
|
20012
|
-
if (message.baseline !== undefined) {
|
|
20013
|
-
obj.baseline = ModelReasoningBaseline.toJSON(message.baseline);
|
|
20014
|
-
}
|
|
20015
|
-
return obj;
|
|
20016
|
-
},
|
|
20017
|
-
|
|
20018
|
-
create<I extends Exact<DeepPartial<ModelReasoningWeek>, I>>(base?: I): ModelReasoningWeek {
|
|
20019
|
-
return ModelReasoningWeek.fromPartial(base ?? ({} as any));
|
|
20020
|
-
},
|
|
20021
|
-
fromPartial<I extends Exact<DeepPartial<ModelReasoningWeek>, I>>(object: I): ModelReasoningWeek {
|
|
20022
|
-
const message = createBaseModelReasoningWeek();
|
|
20023
|
-
message.weekStart = object.weekStart ?? undefined;
|
|
20024
|
-
message.countedCalls = object.countedCalls ?? 0;
|
|
20025
|
-
message.medianPerCall = object.medianPerCall ?? undefined;
|
|
20026
|
-
message.medianCiLow = object.medianCiLow ?? undefined;
|
|
20027
|
-
message.medianCiHigh = object.medianCiHigh ?? undefined;
|
|
20028
|
-
message.baseline = (object.baseline !== undefined && object.baseline !== null)
|
|
20029
|
-
? ModelReasoningBaseline.fromPartial(object.baseline)
|
|
20030
|
-
: undefined;
|
|
20031
|
-
return message;
|
|
20032
|
-
},
|
|
20033
|
-
};
|
|
20034
|
-
|
|
20035
|
-
function createBaseModelReasoningBaseline(): ModelReasoningBaseline {
|
|
20036
|
-
return { countedCalls: 0, median: undefined, ciLow: undefined, ciHigh: undefined };
|
|
20037
|
-
}
|
|
20038
|
-
|
|
20039
|
-
export const ModelReasoningBaseline: MessageFns<ModelReasoningBaseline> = {
|
|
20040
|
-
encode(message: ModelReasoningBaseline, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
20041
|
-
if (message.countedCalls !== 0) {
|
|
20042
|
-
writer.uint32(8).uint64(message.countedCalls);
|
|
20043
|
-
}
|
|
20044
|
-
if (message.median !== undefined) {
|
|
20045
|
-
writer.uint32(16).uint64(message.median);
|
|
20046
|
-
}
|
|
20047
|
-
if (message.ciLow !== undefined) {
|
|
20048
|
-
writer.uint32(24).uint64(message.ciLow);
|
|
20049
|
-
}
|
|
20050
|
-
if (message.ciHigh !== undefined) {
|
|
20051
|
-
writer.uint32(32).uint64(message.ciHigh);
|
|
20052
|
-
}
|
|
20053
|
-
return writer;
|
|
20054
|
-
},
|
|
20055
|
-
|
|
20056
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ModelReasoningBaseline {
|
|
20057
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
20058
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
20059
|
-
if (previousRecursionDepth >= 100) {
|
|
20060
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
20061
|
-
}
|
|
20062
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
20063
|
-
try {
|
|
20064
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
20065
|
-
const message = createBaseModelReasoningBaseline();
|
|
20066
|
-
while (reader.pos < end) {
|
|
20067
|
-
const tag = reader.uint32();
|
|
20068
|
-
switch (tag >>> 3) {
|
|
20069
|
-
case 1: {
|
|
20070
|
-
if (tag !== 8) {
|
|
20071
|
-
break;
|
|
20072
|
-
}
|
|
20073
|
-
|
|
20074
|
-
message.countedCalls = longToNumber(reader.uint64());
|
|
20075
|
-
continue;
|
|
20076
|
-
}
|
|
20077
|
-
case 2: {
|
|
20078
|
-
if (tag !== 16) {
|
|
20079
|
-
break;
|
|
20080
|
-
}
|
|
20081
|
-
|
|
20082
|
-
message.median = longToNumber(reader.uint64());
|
|
20083
|
-
continue;
|
|
20084
|
-
}
|
|
20085
|
-
case 3: {
|
|
20086
|
-
if (tag !== 24) {
|
|
20087
|
-
break;
|
|
20088
|
-
}
|
|
20089
|
-
|
|
20090
|
-
message.ciLow = longToNumber(reader.uint64());
|
|
20091
|
-
continue;
|
|
20092
|
-
}
|
|
20093
|
-
case 4: {
|
|
20094
|
-
if (tag !== 32) {
|
|
20095
|
-
break;
|
|
20096
|
-
}
|
|
20097
|
-
|
|
20098
|
-
message.ciHigh = longToNumber(reader.uint64());
|
|
20099
|
-
continue;
|
|
20100
|
-
}
|
|
20101
|
-
}
|
|
20102
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
20103
|
-
break;
|
|
20104
|
-
}
|
|
20105
|
-
reader.skip(tag & 7);
|
|
20106
|
-
}
|
|
20107
|
-
return message;
|
|
20108
|
-
} finally {
|
|
20109
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
20110
|
-
}
|
|
20111
|
-
},
|
|
20112
|
-
|
|
20113
|
-
fromJSON(object: any): ModelReasoningBaseline {
|
|
20114
|
-
return {
|
|
20115
|
-
countedCalls: isSet(object.countedCalls)
|
|
20116
|
-
? globalThis.Number(object.countedCalls)
|
|
20117
|
-
: isSet(object.counted_calls)
|
|
20118
|
-
? globalThis.Number(object.counted_calls)
|
|
20119
|
-
: 0,
|
|
20120
|
-
median: isSet(object.median) ? globalThis.Number(object.median) : undefined,
|
|
20121
|
-
ciLow: isSet(object.ciLow)
|
|
20122
|
-
? globalThis.Number(object.ciLow)
|
|
20123
|
-
: isSet(object.ci_low)
|
|
20124
|
-
? globalThis.Number(object.ci_low)
|
|
20125
|
-
: undefined,
|
|
20126
|
-
ciHigh: isSet(object.ciHigh)
|
|
20127
|
-
? globalThis.Number(object.ciHigh)
|
|
20128
|
-
: isSet(object.ci_high)
|
|
20129
|
-
? globalThis.Number(object.ci_high)
|
|
20130
|
-
: undefined,
|
|
20131
|
-
};
|
|
20132
|
-
},
|
|
20133
|
-
|
|
20134
|
-
toJSON(message: ModelReasoningBaseline): unknown {
|
|
20135
|
-
const obj: any = {};
|
|
20136
|
-
if (message.countedCalls !== 0) {
|
|
20137
|
-
obj.countedCalls = Math.round(message.countedCalls);
|
|
20138
|
-
}
|
|
20139
|
-
if (message.median !== undefined) {
|
|
20140
|
-
obj.median = Math.round(message.median);
|
|
20141
|
-
}
|
|
20142
|
-
if (message.ciLow !== undefined) {
|
|
20143
|
-
obj.ciLow = Math.round(message.ciLow);
|
|
20144
|
-
}
|
|
20145
|
-
if (message.ciHigh !== undefined) {
|
|
20146
|
-
obj.ciHigh = Math.round(message.ciHigh);
|
|
20147
|
-
}
|
|
20148
|
-
return obj;
|
|
20149
|
-
},
|
|
20150
|
-
|
|
20151
|
-
create<I extends Exact<DeepPartial<ModelReasoningBaseline>, I>>(base?: I): ModelReasoningBaseline {
|
|
20152
|
-
return ModelReasoningBaseline.fromPartial(base ?? ({} as any));
|
|
20153
|
-
},
|
|
20154
|
-
fromPartial<I extends Exact<DeepPartial<ModelReasoningBaseline>, I>>(object: I): ModelReasoningBaseline {
|
|
20155
|
-
const message = createBaseModelReasoningBaseline();
|
|
20156
|
-
message.countedCalls = object.countedCalls ?? 0;
|
|
20157
|
-
message.median = object.median ?? undefined;
|
|
20158
|
-
message.ciLow = object.ciLow ?? undefined;
|
|
20159
|
-
message.ciHigh = object.ciHigh ?? undefined;
|
|
19872
|
+
message.agentKind = object.agentKind ?? 0;
|
|
20160
19873
|
return message;
|
|
20161
19874
|
},
|
|
20162
19875
|
};
|
|
@@ -33094,16 +32807,16 @@ export interface AIGatewayService {
|
|
|
33094
32807
|
*/
|
|
33095
32808
|
ListModelActivity(request: ModelActivityRequest, metadata?: Metadata): Promise<ModelActivityResponse>;
|
|
33096
32809
|
/**
|
|
33097
|
-
* How much each model thought per call over a time range, one row per (model, effort) after groups
|
|
33098
|
-
* spellings: counted calls
|
|
33099
|
-
*
|
|
32810
|
+
* How much each model thought per call over a time range, one row per (model, effort, agent kind) after groups
|
|
32811
|
+
* fold stored spellings: counted calls and exact medians and p90 per call and per turn; with coverage and what
|
|
32812
|
+
* served the calls. Counts only. Mirrors ai.api.v1.
|
|
33100
32813
|
*/
|
|
33101
32814
|
ListModelReasoning(request: ListModelReasoningRequest, metadata?: Metadata): Promise<ListModelReasoningResponse>;
|
|
33102
32815
|
/**
|
|
33103
|
-
* The Across Terma reasoning trend for the 12 closed ISO weeks
|
|
33104
|
-
* the median change of the contributing organizations against their own
|
|
33105
|
-
* teams below range, rounded, with the contributing organizations as a band.
|
|
33106
|
-
* the caller organization's data carries. Mirrors ai.api.v1.
|
|
32816
|
+
* The Across Terma reasoning trend for the 12 closed ISO weeks, judged on main-thread calls only: per global model
|
|
32817
|
+
* and effort key and computed week, the median change of the contributing organizations against their own
|
|
32818
|
+
* baselines and the mean share of their teams below range, rounded, with the contributing organizations as a band.
|
|
32819
|
+
* Aggregates only; pairs limited to keys the caller organization's data carries. Mirrors ai.api.v1.
|
|
33107
32820
|
*/
|
|
33108
32821
|
ListModelReasoningTrend(
|
|
33109
32822
|
request: ListModelReasoningTrendRequest,
|
|
@@ -1141,9 +1141,9 @@ listModelActivity: {
|
|
|
1141
1141
|
responseSerialize: serialize_gateway_web_v1_ModelActivityResponse,
|
|
1142
1142
|
responseDeserialize: deserialize_gateway_web_v1_ModelActivityResponse,
|
|
1143
1143
|
},
|
|
1144
|
-
// How much each model thought per call over a time range, one row per (model, effort) after groups
|
|
1145
|
-
// spellings: counted calls
|
|
1146
|
-
//
|
|
1144
|
+
// How much each model thought per call over a time range, one row per (model, effort, agent kind) after groups
|
|
1145
|
+
// fold stored spellings: counted calls and exact medians and p90 per call and per turn; with coverage and what
|
|
1146
|
+
// served the calls. Counts only. Mirrors ai.api.v1.
|
|
1147
1147
|
listModelReasoning: {
|
|
1148
1148
|
path: '/gateway.web.v1.AIGatewayService/ListModelReasoning',
|
|
1149
1149
|
requestStream: false,
|
|
@@ -1155,10 +1155,10 @@ listModelReasoning: {
|
|
|
1155
1155
|
responseSerialize: serialize_gateway_web_v1_ListModelReasoningResponse,
|
|
1156
1156
|
responseDeserialize: deserialize_gateway_web_v1_ListModelReasoningResponse,
|
|
1157
1157
|
},
|
|
1158
|
-
// The Across Terma reasoning trend for the 12 closed ISO weeks
|
|
1159
|
-
// the median change of the contributing organizations against their own
|
|
1160
|
-
// teams below range, rounded, with the contributing organizations as a band.
|
|
1161
|
-
// the caller organization's data carries. Mirrors ai.api.v1.
|
|
1158
|
+
// The Across Terma reasoning trend for the 12 closed ISO weeks, judged on main-thread calls only: per global model
|
|
1159
|
+
// and effort key and computed week, the median change of the contributing organizations against their own
|
|
1160
|
+
// baselines and the mean share of their teams below range, rounded, with the contributing organizations as a band.
|
|
1161
|
+
// Aggregates only; pairs limited to keys the caller organization's data carries. Mirrors ai.api.v1.
|
|
1162
1162
|
listModelReasoningTrend: {
|
|
1163
1163
|
path: '/gateway.web.v1.AIGatewayService/ListModelReasoningTrend',
|
|
1164
1164
|
requestStream: false,
|