@miradorlabs/web-grpc 4.23.0 → 4.24.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 +495 -752
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +4 -4
- package/proto/gateway/web/v1/ai_gateway_pb.js +830 -778
- 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/desktop_auth_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
|
@@ -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.
|
|
3
|
+
// protoc-gen-ts_proto v2.20.0
|
|
4
4
|
// protoc v3.21.12
|
|
5
5
|
// source: proto/gateway/web/v1/ai_gateway.proto
|
|
6
6
|
|
|
@@ -599,229 +599,6 @@ export function aISessionComplexityToJSON(object: AISessionComplexity): string {
|
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
/**
|
|
603
|
-
* AISessionOutcome is whether a session delivered what was asked, as a model graded it (MIR-495). ClickHouse stores
|
|
604
|
-
* the number (ai_session_scores.Outcome); a retired value stays here, deprecated and never renumbered.
|
|
605
|
-
*/
|
|
606
|
-
export enum AISessionOutcome {
|
|
607
|
-
/** AI_SESSION_OUTCOME_UNSPECIFIED - not graded yet */
|
|
608
|
-
AI_SESSION_OUTCOME_UNSPECIFIED = 0,
|
|
609
|
-
AI_SESSION_OUTCOME_DELIVERED = 1,
|
|
610
|
-
AI_SESSION_OUTCOME_PARTIAL = 2,
|
|
611
|
-
AI_SESSION_OUTCOME_ABANDONED = 3,
|
|
612
|
-
/** AI_SESSION_OUTCOME_UNCLEAR - the session does not show whether the work was delivered */
|
|
613
|
-
AI_SESSION_OUTCOME_UNCLEAR = 4,
|
|
614
|
-
UNRECOGNIZED = -1,
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
export function aISessionOutcomeFromJSON(object: any): AISessionOutcome {
|
|
618
|
-
switch (object) {
|
|
619
|
-
case 0:
|
|
620
|
-
case "AI_SESSION_OUTCOME_UNSPECIFIED":
|
|
621
|
-
return AISessionOutcome.AI_SESSION_OUTCOME_UNSPECIFIED;
|
|
622
|
-
case 1:
|
|
623
|
-
case "AI_SESSION_OUTCOME_DELIVERED":
|
|
624
|
-
return AISessionOutcome.AI_SESSION_OUTCOME_DELIVERED;
|
|
625
|
-
case 2:
|
|
626
|
-
case "AI_SESSION_OUTCOME_PARTIAL":
|
|
627
|
-
return AISessionOutcome.AI_SESSION_OUTCOME_PARTIAL;
|
|
628
|
-
case 3:
|
|
629
|
-
case "AI_SESSION_OUTCOME_ABANDONED":
|
|
630
|
-
return AISessionOutcome.AI_SESSION_OUTCOME_ABANDONED;
|
|
631
|
-
case 4:
|
|
632
|
-
case "AI_SESSION_OUTCOME_UNCLEAR":
|
|
633
|
-
return AISessionOutcome.AI_SESSION_OUTCOME_UNCLEAR;
|
|
634
|
-
case -1:
|
|
635
|
-
case "UNRECOGNIZED":
|
|
636
|
-
default:
|
|
637
|
-
return AISessionOutcome.UNRECOGNIZED;
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
export function aISessionOutcomeToJSON(object: AISessionOutcome): string {
|
|
642
|
-
switch (object) {
|
|
643
|
-
case AISessionOutcome.AI_SESSION_OUTCOME_UNSPECIFIED:
|
|
644
|
-
return "AI_SESSION_OUTCOME_UNSPECIFIED";
|
|
645
|
-
case AISessionOutcome.AI_SESSION_OUTCOME_DELIVERED:
|
|
646
|
-
return "AI_SESSION_OUTCOME_DELIVERED";
|
|
647
|
-
case AISessionOutcome.AI_SESSION_OUTCOME_PARTIAL:
|
|
648
|
-
return "AI_SESSION_OUTCOME_PARTIAL";
|
|
649
|
-
case AISessionOutcome.AI_SESSION_OUTCOME_ABANDONED:
|
|
650
|
-
return "AI_SESSION_OUTCOME_ABANDONED";
|
|
651
|
-
case AISessionOutcome.AI_SESSION_OUTCOME_UNCLEAR:
|
|
652
|
-
return "AI_SESSION_OUTCOME_UNCLEAR";
|
|
653
|
-
case AISessionOutcome.UNRECOGNIZED:
|
|
654
|
-
default:
|
|
655
|
-
return "UNRECOGNIZED";
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* AISessionSteeringLoad is how much the person had to correct or redirect the agent. Stored as
|
|
661
|
-
* ai_session_scores.SteeringLoad; retired values stay, deprecated.
|
|
662
|
-
*/
|
|
663
|
-
export enum AISessionSteeringLoad {
|
|
664
|
-
/** AI_SESSION_STEERING_LOAD_UNSPECIFIED - not graded */
|
|
665
|
-
AI_SESSION_STEERING_LOAD_UNSPECIFIED = 0,
|
|
666
|
-
AI_SESSION_STEERING_LOAD_NONE = 1,
|
|
667
|
-
AI_SESSION_STEERING_LOAD_LIGHT = 2,
|
|
668
|
-
AI_SESSION_STEERING_LOAD_HEAVY = 3,
|
|
669
|
-
UNRECOGNIZED = -1,
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
export function aISessionSteeringLoadFromJSON(object: any): AISessionSteeringLoad {
|
|
673
|
-
switch (object) {
|
|
674
|
-
case 0:
|
|
675
|
-
case "AI_SESSION_STEERING_LOAD_UNSPECIFIED":
|
|
676
|
-
return AISessionSteeringLoad.AI_SESSION_STEERING_LOAD_UNSPECIFIED;
|
|
677
|
-
case 1:
|
|
678
|
-
case "AI_SESSION_STEERING_LOAD_NONE":
|
|
679
|
-
return AISessionSteeringLoad.AI_SESSION_STEERING_LOAD_NONE;
|
|
680
|
-
case 2:
|
|
681
|
-
case "AI_SESSION_STEERING_LOAD_LIGHT":
|
|
682
|
-
return AISessionSteeringLoad.AI_SESSION_STEERING_LOAD_LIGHT;
|
|
683
|
-
case 3:
|
|
684
|
-
case "AI_SESSION_STEERING_LOAD_HEAVY":
|
|
685
|
-
return AISessionSteeringLoad.AI_SESSION_STEERING_LOAD_HEAVY;
|
|
686
|
-
case -1:
|
|
687
|
-
case "UNRECOGNIZED":
|
|
688
|
-
default:
|
|
689
|
-
return AISessionSteeringLoad.UNRECOGNIZED;
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
export function aISessionSteeringLoadToJSON(object: AISessionSteeringLoad): string {
|
|
694
|
-
switch (object) {
|
|
695
|
-
case AISessionSteeringLoad.AI_SESSION_STEERING_LOAD_UNSPECIFIED:
|
|
696
|
-
return "AI_SESSION_STEERING_LOAD_UNSPECIFIED";
|
|
697
|
-
case AISessionSteeringLoad.AI_SESSION_STEERING_LOAD_NONE:
|
|
698
|
-
return "AI_SESSION_STEERING_LOAD_NONE";
|
|
699
|
-
case AISessionSteeringLoad.AI_SESSION_STEERING_LOAD_LIGHT:
|
|
700
|
-
return "AI_SESSION_STEERING_LOAD_LIGHT";
|
|
701
|
-
case AISessionSteeringLoad.AI_SESSION_STEERING_LOAD_HEAVY:
|
|
702
|
-
return "AI_SESSION_STEERING_LOAD_HEAVY";
|
|
703
|
-
case AISessionSteeringLoad.UNRECOGNIZED:
|
|
704
|
-
default:
|
|
705
|
-
return "UNRECOGNIZED";
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* AISessionAgentReliability is how well the agent kept to what it was asked and allowed to do. Stored as
|
|
711
|
-
* ai_session_scores.AgentReliability; retired values stay, deprecated.
|
|
712
|
-
*/
|
|
713
|
-
export enum AISessionAgentReliability {
|
|
714
|
-
/** AI_SESSION_AGENT_RELIABILITY_UNSPECIFIED - not graded */
|
|
715
|
-
AI_SESSION_AGENT_RELIABILITY_UNSPECIFIED = 0,
|
|
716
|
-
AI_SESSION_AGENT_RELIABILITY_CLEAN = 1,
|
|
717
|
-
AI_SESSION_AGENT_RELIABILITY_MINOR_ISSUES = 2,
|
|
718
|
-
/** AI_SESSION_AGENT_RELIABILITY_CONSTRAINT_VIOLATION - did something the person had ruled out */
|
|
719
|
-
AI_SESSION_AGENT_RELIABILITY_CONSTRAINT_VIOLATION = 3,
|
|
720
|
-
AI_SESSION_AGENT_RELIABILITY_MAJOR_FAILURE = 4,
|
|
721
|
-
UNRECOGNIZED = -1,
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
export function aISessionAgentReliabilityFromJSON(object: any): AISessionAgentReliability {
|
|
725
|
-
switch (object) {
|
|
726
|
-
case 0:
|
|
727
|
-
case "AI_SESSION_AGENT_RELIABILITY_UNSPECIFIED":
|
|
728
|
-
return AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_UNSPECIFIED;
|
|
729
|
-
case 1:
|
|
730
|
-
case "AI_SESSION_AGENT_RELIABILITY_CLEAN":
|
|
731
|
-
return AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_CLEAN;
|
|
732
|
-
case 2:
|
|
733
|
-
case "AI_SESSION_AGENT_RELIABILITY_MINOR_ISSUES":
|
|
734
|
-
return AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_MINOR_ISSUES;
|
|
735
|
-
case 3:
|
|
736
|
-
case "AI_SESSION_AGENT_RELIABILITY_CONSTRAINT_VIOLATION":
|
|
737
|
-
return AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_CONSTRAINT_VIOLATION;
|
|
738
|
-
case 4:
|
|
739
|
-
case "AI_SESSION_AGENT_RELIABILITY_MAJOR_FAILURE":
|
|
740
|
-
return AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_MAJOR_FAILURE;
|
|
741
|
-
case -1:
|
|
742
|
-
case "UNRECOGNIZED":
|
|
743
|
-
default:
|
|
744
|
-
return AISessionAgentReliability.UNRECOGNIZED;
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
export function aISessionAgentReliabilityToJSON(object: AISessionAgentReliability): string {
|
|
749
|
-
switch (object) {
|
|
750
|
-
case AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_UNSPECIFIED:
|
|
751
|
-
return "AI_SESSION_AGENT_RELIABILITY_UNSPECIFIED";
|
|
752
|
-
case AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_CLEAN:
|
|
753
|
-
return "AI_SESSION_AGENT_RELIABILITY_CLEAN";
|
|
754
|
-
case AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_MINOR_ISSUES:
|
|
755
|
-
return "AI_SESSION_AGENT_RELIABILITY_MINOR_ISSUES";
|
|
756
|
-
case AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_CONSTRAINT_VIOLATION:
|
|
757
|
-
return "AI_SESSION_AGENT_RELIABILITY_CONSTRAINT_VIOLATION";
|
|
758
|
-
case AISessionAgentReliability.AI_SESSION_AGENT_RELIABILITY_MAJOR_FAILURE:
|
|
759
|
-
return "AI_SESSION_AGENT_RELIABILITY_MAJOR_FAILURE";
|
|
760
|
-
case AISessionAgentReliability.UNRECOGNIZED:
|
|
761
|
-
default:
|
|
762
|
-
return "UNRECOGNIZED";
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* AISessionVerification is whether the agent's work was checked (tests run, output inspected). Stored as
|
|
768
|
-
* ai_session_scores.Verification; retired values stay, deprecated.
|
|
769
|
-
*/
|
|
770
|
-
export enum AISessionVerification {
|
|
771
|
-
/** AI_SESSION_VERIFICATION_UNSPECIFIED - not graded */
|
|
772
|
-
AI_SESSION_VERIFICATION_UNSPECIFIED = 0,
|
|
773
|
-
AI_SESSION_VERIFICATION_VERIFIED = 1,
|
|
774
|
-
/** AI_SESSION_VERIFICATION_CLAIMED_ONLY - the agent said it worked without showing it */
|
|
775
|
-
AI_SESSION_VERIFICATION_CLAIMED_ONLY = 2,
|
|
776
|
-
/** AI_SESSION_VERIFICATION_NOT_APPLICABLE - nothing to verify (a question, a review) */
|
|
777
|
-
AI_SESSION_VERIFICATION_NOT_APPLICABLE = 3,
|
|
778
|
-
/** AI_SESSION_VERIFICATION_UNOBSERVED - something to verify, but the session does not show whether it was */
|
|
779
|
-
AI_SESSION_VERIFICATION_UNOBSERVED = 4,
|
|
780
|
-
UNRECOGNIZED = -1,
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
export function aISessionVerificationFromJSON(object: any): AISessionVerification {
|
|
784
|
-
switch (object) {
|
|
785
|
-
case 0:
|
|
786
|
-
case "AI_SESSION_VERIFICATION_UNSPECIFIED":
|
|
787
|
-
return AISessionVerification.AI_SESSION_VERIFICATION_UNSPECIFIED;
|
|
788
|
-
case 1:
|
|
789
|
-
case "AI_SESSION_VERIFICATION_VERIFIED":
|
|
790
|
-
return AISessionVerification.AI_SESSION_VERIFICATION_VERIFIED;
|
|
791
|
-
case 2:
|
|
792
|
-
case "AI_SESSION_VERIFICATION_CLAIMED_ONLY":
|
|
793
|
-
return AISessionVerification.AI_SESSION_VERIFICATION_CLAIMED_ONLY;
|
|
794
|
-
case 3:
|
|
795
|
-
case "AI_SESSION_VERIFICATION_NOT_APPLICABLE":
|
|
796
|
-
return AISessionVerification.AI_SESSION_VERIFICATION_NOT_APPLICABLE;
|
|
797
|
-
case 4:
|
|
798
|
-
case "AI_SESSION_VERIFICATION_UNOBSERVED":
|
|
799
|
-
return AISessionVerification.AI_SESSION_VERIFICATION_UNOBSERVED;
|
|
800
|
-
case -1:
|
|
801
|
-
case "UNRECOGNIZED":
|
|
802
|
-
default:
|
|
803
|
-
return AISessionVerification.UNRECOGNIZED;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
export function aISessionVerificationToJSON(object: AISessionVerification): string {
|
|
808
|
-
switch (object) {
|
|
809
|
-
case AISessionVerification.AI_SESSION_VERIFICATION_UNSPECIFIED:
|
|
810
|
-
return "AI_SESSION_VERIFICATION_UNSPECIFIED";
|
|
811
|
-
case AISessionVerification.AI_SESSION_VERIFICATION_VERIFIED:
|
|
812
|
-
return "AI_SESSION_VERIFICATION_VERIFIED";
|
|
813
|
-
case AISessionVerification.AI_SESSION_VERIFICATION_CLAIMED_ONLY:
|
|
814
|
-
return "AI_SESSION_VERIFICATION_CLAIMED_ONLY";
|
|
815
|
-
case AISessionVerification.AI_SESSION_VERIFICATION_NOT_APPLICABLE:
|
|
816
|
-
return "AI_SESSION_VERIFICATION_NOT_APPLICABLE";
|
|
817
|
-
case AISessionVerification.AI_SESSION_VERIFICATION_UNOBSERVED:
|
|
818
|
-
return "AI_SESSION_VERIFICATION_UNOBSERVED";
|
|
819
|
-
case AISessionVerification.UNRECOGNIZED:
|
|
820
|
-
default:
|
|
821
|
-
return "UNRECOGNIZED";
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
|
|
825
602
|
/**
|
|
826
603
|
* AISessionInsightCategory is the kind of problem an insight names. Stored per insight in
|
|
827
604
|
* ai_session_insights.Insights.Category; retired values stay, deprecated.
|
|
@@ -1027,72 +804,6 @@ export function aISessionInsightSeverityToJSON(object: AISessionInsightSeverity)
|
|
|
1027
804
|
}
|
|
1028
805
|
}
|
|
1029
806
|
|
|
1030
|
-
/** AISessionScoreComponentKind names one part of a session score's formula (AISessionScore). */
|
|
1031
|
-
export enum AISessionScoreComponentKind {
|
|
1032
|
-
AI_SESSION_SCORE_COMPONENT_KIND_UNSPECIFIED = 0,
|
|
1033
|
-
AI_SESSION_SCORE_COMPONENT_KIND_OUTCOME = 1,
|
|
1034
|
-
AI_SESSION_SCORE_COMPONENT_KIND_STEERING_LOAD = 2,
|
|
1035
|
-
AI_SESSION_SCORE_COMPONENT_KIND_AGENT_RELIABILITY = 3,
|
|
1036
|
-
AI_SESSION_SCORE_COMPONENT_KIND_VERIFICATION = 4,
|
|
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). */
|
|
1038
|
-
AI_SESSION_SCORE_COMPONENT_KIND_REWORK_SPEND = 5,
|
|
1039
|
-
/** AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY - The share of the session's labelled prompts that are clear (MIR-469 prompt labels). */
|
|
1040
|
-
AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY = 6,
|
|
1041
|
-
UNRECOGNIZED = -1,
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
export function aISessionScoreComponentKindFromJSON(object: any): AISessionScoreComponentKind {
|
|
1045
|
-
switch (object) {
|
|
1046
|
-
case 0:
|
|
1047
|
-
case "AI_SESSION_SCORE_COMPONENT_KIND_UNSPECIFIED":
|
|
1048
|
-
return AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_UNSPECIFIED;
|
|
1049
|
-
case 1:
|
|
1050
|
-
case "AI_SESSION_SCORE_COMPONENT_KIND_OUTCOME":
|
|
1051
|
-
return AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_OUTCOME;
|
|
1052
|
-
case 2:
|
|
1053
|
-
case "AI_SESSION_SCORE_COMPONENT_KIND_STEERING_LOAD":
|
|
1054
|
-
return AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_STEERING_LOAD;
|
|
1055
|
-
case 3:
|
|
1056
|
-
case "AI_SESSION_SCORE_COMPONENT_KIND_AGENT_RELIABILITY":
|
|
1057
|
-
return AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_AGENT_RELIABILITY;
|
|
1058
|
-
case 4:
|
|
1059
|
-
case "AI_SESSION_SCORE_COMPONENT_KIND_VERIFICATION":
|
|
1060
|
-
return AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_VERIFICATION;
|
|
1061
|
-
case 5:
|
|
1062
|
-
case "AI_SESSION_SCORE_COMPONENT_KIND_REWORK_SPEND":
|
|
1063
|
-
return AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_REWORK_SPEND;
|
|
1064
|
-
case 6:
|
|
1065
|
-
case "AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY":
|
|
1066
|
-
return AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY;
|
|
1067
|
-
case -1:
|
|
1068
|
-
case "UNRECOGNIZED":
|
|
1069
|
-
default:
|
|
1070
|
-
return AISessionScoreComponentKind.UNRECOGNIZED;
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
export function aISessionScoreComponentKindToJSON(object: AISessionScoreComponentKind): string {
|
|
1075
|
-
switch (object) {
|
|
1076
|
-
case AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_UNSPECIFIED:
|
|
1077
|
-
return "AI_SESSION_SCORE_COMPONENT_KIND_UNSPECIFIED";
|
|
1078
|
-
case AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_OUTCOME:
|
|
1079
|
-
return "AI_SESSION_SCORE_COMPONENT_KIND_OUTCOME";
|
|
1080
|
-
case AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_STEERING_LOAD:
|
|
1081
|
-
return "AI_SESSION_SCORE_COMPONENT_KIND_STEERING_LOAD";
|
|
1082
|
-
case AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_AGENT_RELIABILITY:
|
|
1083
|
-
return "AI_SESSION_SCORE_COMPONENT_KIND_AGENT_RELIABILITY";
|
|
1084
|
-
case AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_VERIFICATION:
|
|
1085
|
-
return "AI_SESSION_SCORE_COMPONENT_KIND_VERIFICATION";
|
|
1086
|
-
case AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_REWORK_SPEND:
|
|
1087
|
-
return "AI_SESSION_SCORE_COMPONENT_KIND_REWORK_SPEND";
|
|
1088
|
-
case AISessionScoreComponentKind.AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY:
|
|
1089
|
-
return "AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY";
|
|
1090
|
-
case AISessionScoreComponentKind.UNRECOGNIZED:
|
|
1091
|
-
default:
|
|
1092
|
-
return "UNRECOGNIZED";
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
807
|
export enum AIGitAction {
|
|
1097
808
|
AI_GIT_ACTION_UNSPECIFIED = 0,
|
|
1098
809
|
AI_GIT_ACTION_BRANCH_CREATE = 1,
|
|
@@ -2664,15 +2375,12 @@ export interface AISessionSummary {
|
|
|
2664
2375
|
/** The session's size from the same label; UNSPECIFIED when it has no label. */
|
|
2665
2376
|
complexity: AISessionComplexity;
|
|
2666
2377
|
/**
|
|
2667
|
-
* The session's score (0-100, AISessionScore)
|
|
2668
|
-
*
|
|
2669
|
-
* the breakdown and the formula version.
|
|
2378
|
+
* The session's score (0-100, AISessionScore) from its latest grading; absent when it is not scored: not graded
|
|
2379
|
+
* yet, or graded from an older session_version. GetSessionAnalysis has the breakdown.
|
|
2670
2380
|
*/
|
|
2671
2381
|
sessionScore?:
|
|
2672
2382
|
| number
|
|
2673
2383
|
| undefined;
|
|
2674
|
-
/** The outcome its latest grades give when they were read from the current session_version; UNSPECIFIED otherwise. */
|
|
2675
|
-
outcome: AISessionOutcome;
|
|
2676
2384
|
/**
|
|
2677
2385
|
* The session's prompt labels rolled up (MIR-469), on StreamSessionSummary only, never on ListSessions or
|
|
2678
2386
|
* StreamSessions. Absent when no prompt is labelled or the labels could not be read: not available, never zero.
|
|
@@ -3958,13 +3666,9 @@ export interface GetSessionAnalysisResponse {
|
|
|
3958
3666
|
status:
|
|
3959
3667
|
| ResponseStatus
|
|
3960
3668
|
| undefined;
|
|
3961
|
-
/** The session's latest rubric grades (ai_session_scores). */
|
|
3962
|
-
grades:
|
|
3963
|
-
| AISessionGrades
|
|
3964
|
-
| undefined;
|
|
3965
3669
|
/**
|
|
3966
|
-
* The score
|
|
3967
|
-
*
|
|
3670
|
+
* The session's latest score against the scorer's rubric (ai_session_scores); absent until the scorer has graded
|
|
3671
|
+
* it. It may describe an older session_version: compare its input_session_version.
|
|
3968
3672
|
*/
|
|
3969
3673
|
score:
|
|
3970
3674
|
| AISessionScore
|
|
@@ -3980,21 +3684,6 @@ export interface GetSessionAnalysisResponse {
|
|
|
3980
3684
|
sessionVersion?: number | undefined;
|
|
3981
3685
|
}
|
|
3982
3686
|
|
|
3983
|
-
/** AISessionGrades is the rubric a model graded the session on. scored_at with version is its identity. */
|
|
3984
|
-
export interface AISessionGrades {
|
|
3985
|
-
outcome: AISessionOutcome;
|
|
3986
|
-
steeringLoad: AISessionSteeringLoad;
|
|
3987
|
-
agentReliability: AISessionAgentReliability;
|
|
3988
|
-
verification: AISessionVerification;
|
|
3989
|
-
/** The model that graded it and the scoring task's version. */
|
|
3990
|
-
model: string;
|
|
3991
|
-
version: string;
|
|
3992
|
-
/** The session_version (AISessionSummary.session_version) the grading read. */
|
|
3993
|
-
inputSessionVersion: number;
|
|
3994
|
-
/** When the scoring run selected the session. */
|
|
3995
|
-
scoredAt: Date | undefined;
|
|
3996
|
-
}
|
|
3997
|
-
|
|
3998
3687
|
/** AISessionInsights is what a model found to change in the session. analyzed_at with version is its identity. */
|
|
3999
3688
|
export interface AISessionInsights {
|
|
4000
3689
|
/** Zero to three insights in the model's order; empty is a session with nothing to change. */
|
|
@@ -4055,40 +3744,60 @@ export interface AISessionEventRef {
|
|
|
4055
3744
|
}
|
|
4056
3745
|
|
|
4057
3746
|
/**
|
|
4058
|
-
* AISessionScore is
|
|
4059
|
-
*
|
|
4060
|
-
*
|
|
4061
|
-
*
|
|
3747
|
+
* AISessionScore is how well the person used AI in the session, graded against the scorer's rubric: one result per
|
|
3748
|
+
* rubric criterion and a summary. score is the sum of the results' contributions (weight x
|
|
3749
|
+
* value) rounded half away from zero, computed on every read from the stored weights and values, so a later rubric
|
|
3750
|
+
* edit never changes it. A coaching view for the person, never a ranking of people.
|
|
4062
3751
|
*/
|
|
4063
3752
|
export interface AISessionScore {
|
|
4064
|
-
/**
|
|
4065
|
-
formulaVersion: string;
|
|
3753
|
+
/** 0-100. */
|
|
4066
3754
|
score: number;
|
|
4067
|
-
/**
|
|
4068
|
-
|
|
4069
|
-
/**
|
|
3755
|
+
/** The rubric's version and content hash, as the scorer recorded it. */
|
|
3756
|
+
rubricVersion: string;
|
|
3757
|
+
/** Every rubric criterion's result, in rubric order. */
|
|
3758
|
+
results: AISessionRubricResult[];
|
|
3759
|
+
summary:
|
|
3760
|
+
| AISessionScoreSummary
|
|
3761
|
+
| undefined;
|
|
3762
|
+
/** The model that graded it and the scorer's version. */
|
|
3763
|
+
model: string;
|
|
4070
3764
|
scoreVersion: string;
|
|
3765
|
+
/** The session_version (AISessionSummary.session_version) the grading read. */
|
|
4071
3766
|
inputSessionVersion: number;
|
|
3767
|
+
/** When the scoring run selected the session. */
|
|
4072
3768
|
scoredAt: Date | undefined;
|
|
4073
3769
|
}
|
|
4074
3770
|
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
/**
|
|
3771
|
+
/**
|
|
3772
|
+
* AISessionRubricResult is one rubric criterion as graded. criterion_key, name and weight are the criterion as the
|
|
3773
|
+
* rubric defined it when the session was graded; grade is a label from the rubric's scale and value its value.
|
|
3774
|
+
* assessment and improvement are model-written text about this session alone (at most 400 runes each), returned only
|
|
3775
|
+
* to readers of the session's project; they never name a person by design, which the model is told and nothing checks.
|
|
3776
|
+
*/
|
|
3777
|
+
export interface AISessionRubricResult {
|
|
3778
|
+
criterionKey: string;
|
|
3779
|
+
name: string;
|
|
3780
|
+
/** Points out of 100. */
|
|
4085
3781
|
weight: number;
|
|
4086
|
-
|
|
4087
|
-
value
|
|
4088
|
-
|
|
4089
|
-
| undefined;
|
|
3782
|
+
grade: string;
|
|
3783
|
+
/** The grade's value, 0-1. */
|
|
3784
|
+
value: number;
|
|
4090
3785
|
/** weight x value: the points it added. */
|
|
4091
3786
|
contribution: number;
|
|
3787
|
+
/** What the person did for this criterion. */
|
|
3788
|
+
assessment: string;
|
|
3789
|
+
/** One action to take next time, or, on the top grade, the habit to keep. */
|
|
3790
|
+
improvement: string;
|
|
3791
|
+
/** The session's events the grade cites, in the model's order. */
|
|
3792
|
+
evidenceRefs: AISessionEventRef[];
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3795
|
+
/** AISessionScoreSummary is the model's summary of the grading (at most 300 runes each). */
|
|
3796
|
+
export interface AISessionScoreSummary {
|
|
3797
|
+
/** The person's best concrete behaviour in the session. */
|
|
3798
|
+
wentWell: string;
|
|
3799
|
+
/** The single most valuable action for next time, from the weakest criterion. */
|
|
3800
|
+
doNext: string;
|
|
4092
3801
|
}
|
|
4093
3802
|
|
|
4094
3803
|
export interface GetSessionScoreTrendRequest {
|
|
@@ -4118,33 +3827,39 @@ export interface GetSessionScoreTrendResponse {
|
|
|
4118
3827
|
status:
|
|
4119
3828
|
| ResponseStatus
|
|
4120
3829
|
| undefined;
|
|
4121
|
-
/** The formula the scores use
|
|
3830
|
+
/** The formula the scores use: "score-v2", the stored weights times values, summed and rounded. */
|
|
4122
3831
|
formulaVersion: string;
|
|
4123
3832
|
/** One row per requested week, oldest first; a week with no graded session is present with zero counts. */
|
|
4124
3833
|
weeks: AISessionScoreWeek[];
|
|
4125
3834
|
}
|
|
4126
3835
|
|
|
4127
3836
|
/**
|
|
4128
|
-
* AISessionScoreWeek rolls up the
|
|
4129
|
-
* each, counted only when
|
|
4130
|
-
* Directional: a view of how sessions went, never a performance assessment
|
|
3837
|
+
* AISessionScoreWeek rolls up the scored sessions whose last activity fell in one ISO week (UTC), one latest grading
|
|
3838
|
+
* each, counted only when it was read from the session's current session_version.
|
|
3839
|
+
* Directional: a view of how the person's sessions went, never a performance assessment or a ranking of people.
|
|
4131
3840
|
*/
|
|
4132
3841
|
export interface AISessionScoreWeek {
|
|
4133
3842
|
/** The week's Monday, YYYY-MM-DD. */
|
|
4134
3843
|
weekStart: string;
|
|
4135
|
-
/** Sessions with
|
|
3844
|
+
/** Sessions with a score read from their current session_version. */
|
|
4136
3845
|
gradedSessions: number;
|
|
4137
|
-
|
|
4138
|
-
/** The mean score of the scored sessions; absent when none is scored. */
|
|
3846
|
+
/** Their mean score; absent when none is graded. */
|
|
4139
3847
|
meanScore?:
|
|
4140
3848
|
| number
|
|
4141
3849
|
| undefined;
|
|
4142
|
-
/**
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
3850
|
+
/** The mean grade value per rubric criterion key, over the week's sessions graded on it, by key; empty when none. */
|
|
3851
|
+
criterionMeans: AISessionCriterionMean[];
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
/** AISessionCriterionMean is one rubric criterion's mean over a week's graded sessions. */
|
|
3855
|
+
export interface AISessionCriterionMean {
|
|
3856
|
+
criterionKey: string;
|
|
3857
|
+
/** The criterion's display name, as the week's newest grading of it named it. */
|
|
3858
|
+
name: string;
|
|
3859
|
+
/** The sessions graded on this criterion. */
|
|
3860
|
+
sessions: number;
|
|
3861
|
+
/** Their mean grade value, 0-1. */
|
|
3862
|
+
meanValue: number;
|
|
4148
3863
|
}
|
|
4149
3864
|
|
|
4150
3865
|
/** AISessionRef is a session's identity: two sources can issue the same session_id. */
|
|
@@ -5970,7 +5685,6 @@ function createBaseAISessionSummary(): AISessionSummary {
|
|
|
5970
5685
|
workType: 0,
|
|
5971
5686
|
complexity: 0,
|
|
5972
5687
|
sessionScore: undefined,
|
|
5973
|
-
outcome: 0,
|
|
5974
5688
|
promptLabelSummary: undefined,
|
|
5975
5689
|
};
|
|
5976
5690
|
}
|
|
@@ -6091,11 +5805,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6091
5805
|
if (message.sessionScore !== undefined) {
|
|
6092
5806
|
writer.uint32(304).int32(message.sessionScore);
|
|
6093
5807
|
}
|
|
6094
|
-
if (message.outcome !== 0) {
|
|
6095
|
-
writer.uint32(312).int32(message.outcome);
|
|
6096
|
-
}
|
|
6097
5808
|
if (message.promptLabelSummary !== undefined) {
|
|
6098
|
-
AIPromptLabelSummary.encode(message.promptLabelSummary, writer.uint32(
|
|
5809
|
+
AIPromptLabelSummary.encode(message.promptLabelSummary, writer.uint32(314).fork()).join();
|
|
6099
5810
|
}
|
|
6100
5811
|
return writer;
|
|
6101
5812
|
},
|
|
@@ -6418,15 +6129,7 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6418
6129
|
continue;
|
|
6419
6130
|
}
|
|
6420
6131
|
case 39: {
|
|
6421
|
-
if (tag !==
|
|
6422
|
-
break;
|
|
6423
|
-
}
|
|
6424
|
-
|
|
6425
|
-
message.outcome = reader.int32() as any;
|
|
6426
|
-
continue;
|
|
6427
|
-
}
|
|
6428
|
-
case 40: {
|
|
6429
|
-
if (tag !== 322) {
|
|
6132
|
+
if (tag !== 314) {
|
|
6430
6133
|
break;
|
|
6431
6134
|
}
|
|
6432
6135
|
|
|
@@ -6593,7 +6296,6 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6593
6296
|
: isSet(object.session_score)
|
|
6594
6297
|
? globalThis.Number(object.session_score)
|
|
6595
6298
|
: undefined,
|
|
6596
|
-
outcome: isSet(object.outcome) ? aISessionOutcomeFromJSON(object.outcome) : 0,
|
|
6597
6299
|
promptLabelSummary: isSet(object.promptLabelSummary)
|
|
6598
6300
|
? AIPromptLabelSummary.fromJSON(object.promptLabelSummary)
|
|
6599
6301
|
: isSet(object.prompt_label_summary)
|
|
@@ -6718,9 +6420,6 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6718
6420
|
if (message.sessionScore !== undefined) {
|
|
6719
6421
|
obj.sessionScore = Math.round(message.sessionScore);
|
|
6720
6422
|
}
|
|
6721
|
-
if (message.outcome !== 0) {
|
|
6722
|
-
obj.outcome = aISessionOutcomeToJSON(message.outcome);
|
|
6723
|
-
}
|
|
6724
6423
|
if (message.promptLabelSummary !== undefined) {
|
|
6725
6424
|
obj.promptLabelSummary = AIPromptLabelSummary.toJSON(message.promptLabelSummary);
|
|
6726
6425
|
}
|
|
@@ -6772,7 +6471,6 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6772
6471
|
message.workType = object.workType ?? 0;
|
|
6773
6472
|
message.complexity = object.complexity ?? 0;
|
|
6774
6473
|
message.sessionScore = object.sessionScore ?? undefined;
|
|
6775
|
-
message.outcome = object.outcome ?? 0;
|
|
6776
6474
|
message.promptLabelSummary = (object.promptLabelSummary !== undefined && object.promptLabelSummary !== null)
|
|
6777
6475
|
? AIPromptLabelSummary.fromPartial(object.promptLabelSummary)
|
|
6778
6476
|
: undefined;
|
|
@@ -23033,7 +22731,7 @@ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> =
|
|
|
23033
22731
|
};
|
|
23034
22732
|
|
|
23035
22733
|
function createBaseGetSessionAnalysisResponse(): GetSessionAnalysisResponse {
|
|
23036
|
-
return { status: undefined,
|
|
22734
|
+
return { status: undefined, score: undefined, insights: undefined, sessionVersion: undefined };
|
|
23037
22735
|
}
|
|
23038
22736
|
|
|
23039
22737
|
export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse> = {
|
|
@@ -23041,17 +22739,14 @@ export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse>
|
|
|
23041
22739
|
if (message.status !== undefined) {
|
|
23042
22740
|
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
23043
22741
|
}
|
|
23044
|
-
if (message.grades !== undefined) {
|
|
23045
|
-
AISessionGrades.encode(message.grades, writer.uint32(18).fork()).join();
|
|
23046
|
-
}
|
|
23047
22742
|
if (message.score !== undefined) {
|
|
23048
|
-
AISessionScore.encode(message.score, writer.uint32(
|
|
22743
|
+
AISessionScore.encode(message.score, writer.uint32(18).fork()).join();
|
|
23049
22744
|
}
|
|
23050
22745
|
if (message.insights !== undefined) {
|
|
23051
|
-
AISessionInsights.encode(message.insights, writer.uint32(
|
|
22746
|
+
AISessionInsights.encode(message.insights, writer.uint32(26).fork()).join();
|
|
23052
22747
|
}
|
|
23053
22748
|
if (message.sessionVersion !== undefined) {
|
|
23054
|
-
writer.uint32(
|
|
22749
|
+
writer.uint32(32).uint64(message.sessionVersion);
|
|
23055
22750
|
}
|
|
23056
22751
|
return writer;
|
|
23057
22752
|
},
|
|
@@ -23082,7 +22777,7 @@ export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse>
|
|
|
23082
22777
|
break;
|
|
23083
22778
|
}
|
|
23084
22779
|
|
|
23085
|
-
message.
|
|
22780
|
+
message.score = AISessionScore.decode(reader, reader.uint32());
|
|
23086
22781
|
continue;
|
|
23087
22782
|
}
|
|
23088
22783
|
case 3: {
|
|
@@ -23090,19 +22785,11 @@ export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse>
|
|
|
23090
22785
|
break;
|
|
23091
22786
|
}
|
|
23092
22787
|
|
|
23093
|
-
message.score = AISessionScore.decode(reader, reader.uint32());
|
|
23094
|
-
continue;
|
|
23095
|
-
}
|
|
23096
|
-
case 4: {
|
|
23097
|
-
if (tag !== 34) {
|
|
23098
|
-
break;
|
|
23099
|
-
}
|
|
23100
|
-
|
|
23101
22788
|
message.insights = AISessionInsights.decode(reader, reader.uint32());
|
|
23102
22789
|
continue;
|
|
23103
22790
|
}
|
|
23104
|
-
case
|
|
23105
|
-
if (tag !==
|
|
22791
|
+
case 4: {
|
|
22792
|
+
if (tag !== 32) {
|
|
23106
22793
|
break;
|
|
23107
22794
|
}
|
|
23108
22795
|
|
|
@@ -23124,7 +22811,6 @@ export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse>
|
|
|
23124
22811
|
fromJSON(object: any): GetSessionAnalysisResponse {
|
|
23125
22812
|
return {
|
|
23126
22813
|
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
23127
|
-
grades: isSet(object.grades) ? AISessionGrades.fromJSON(object.grades) : undefined,
|
|
23128
22814
|
score: isSet(object.score) ? AISessionScore.fromJSON(object.score) : undefined,
|
|
23129
22815
|
insights: isSet(object.insights) ? AISessionInsights.fromJSON(object.insights) : undefined,
|
|
23130
22816
|
sessionVersion: isSet(object.sessionVersion)
|
|
@@ -23140,9 +22826,6 @@ export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse>
|
|
|
23140
22826
|
if (message.status !== undefined) {
|
|
23141
22827
|
obj.status = ResponseStatus.toJSON(message.status);
|
|
23142
22828
|
}
|
|
23143
|
-
if (message.grades !== undefined) {
|
|
23144
|
-
obj.grades = AISessionGrades.toJSON(message.grades);
|
|
23145
|
-
}
|
|
23146
22829
|
if (message.score !== undefined) {
|
|
23147
22830
|
obj.score = AISessionScore.toJSON(message.score);
|
|
23148
22831
|
}
|
|
@@ -23163,9 +22846,6 @@ export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse>
|
|
|
23163
22846
|
message.status = (object.status !== undefined && object.status !== null)
|
|
23164
22847
|
? ResponseStatus.fromPartial(object.status)
|
|
23165
22848
|
: undefined;
|
|
23166
|
-
message.grades = (object.grades !== undefined && object.grades !== null)
|
|
23167
|
-
? AISessionGrades.fromPartial(object.grades)
|
|
23168
|
-
: undefined;
|
|
23169
22849
|
message.score = (object.score !== undefined && object.score !== null)
|
|
23170
22850
|
? AISessionScore.fromPartial(object.score)
|
|
23171
22851
|
: undefined;
|
|
@@ -23177,212 +22857,6 @@ export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse>
|
|
|
23177
22857
|
},
|
|
23178
22858
|
};
|
|
23179
22859
|
|
|
23180
|
-
function createBaseAISessionGrades(): AISessionGrades {
|
|
23181
|
-
return {
|
|
23182
|
-
outcome: 0,
|
|
23183
|
-
steeringLoad: 0,
|
|
23184
|
-
agentReliability: 0,
|
|
23185
|
-
verification: 0,
|
|
23186
|
-
model: "",
|
|
23187
|
-
version: "",
|
|
23188
|
-
inputSessionVersion: 0,
|
|
23189
|
-
scoredAt: undefined,
|
|
23190
|
-
};
|
|
23191
|
-
}
|
|
23192
|
-
|
|
23193
|
-
export const AISessionGrades: MessageFns<AISessionGrades> = {
|
|
23194
|
-
encode(message: AISessionGrades, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23195
|
-
if (message.outcome !== 0) {
|
|
23196
|
-
writer.uint32(8).int32(message.outcome);
|
|
23197
|
-
}
|
|
23198
|
-
if (message.steeringLoad !== 0) {
|
|
23199
|
-
writer.uint32(16).int32(message.steeringLoad);
|
|
23200
|
-
}
|
|
23201
|
-
if (message.agentReliability !== 0) {
|
|
23202
|
-
writer.uint32(24).int32(message.agentReliability);
|
|
23203
|
-
}
|
|
23204
|
-
if (message.verification !== 0) {
|
|
23205
|
-
writer.uint32(32).int32(message.verification);
|
|
23206
|
-
}
|
|
23207
|
-
if (message.model !== "") {
|
|
23208
|
-
writer.uint32(42).string(message.model);
|
|
23209
|
-
}
|
|
23210
|
-
if (message.version !== "") {
|
|
23211
|
-
writer.uint32(50).string(message.version);
|
|
23212
|
-
}
|
|
23213
|
-
if (message.inputSessionVersion !== 0) {
|
|
23214
|
-
writer.uint32(56).uint64(message.inputSessionVersion);
|
|
23215
|
-
}
|
|
23216
|
-
if (message.scoredAt !== undefined) {
|
|
23217
|
-
Timestamp.encode(toTimestamp(message.scoredAt), writer.uint32(66).fork()).join();
|
|
23218
|
-
}
|
|
23219
|
-
return writer;
|
|
23220
|
-
},
|
|
23221
|
-
|
|
23222
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AISessionGrades {
|
|
23223
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23224
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
23225
|
-
if (previousRecursionDepth >= 100) {
|
|
23226
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
23227
|
-
}
|
|
23228
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
23229
|
-
try {
|
|
23230
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23231
|
-
const message = createBaseAISessionGrades();
|
|
23232
|
-
while (reader.pos < end) {
|
|
23233
|
-
const tag = reader.uint32();
|
|
23234
|
-
switch (tag >>> 3) {
|
|
23235
|
-
case 1: {
|
|
23236
|
-
if (tag !== 8) {
|
|
23237
|
-
break;
|
|
23238
|
-
}
|
|
23239
|
-
|
|
23240
|
-
message.outcome = reader.int32() as any;
|
|
23241
|
-
continue;
|
|
23242
|
-
}
|
|
23243
|
-
case 2: {
|
|
23244
|
-
if (tag !== 16) {
|
|
23245
|
-
break;
|
|
23246
|
-
}
|
|
23247
|
-
|
|
23248
|
-
message.steeringLoad = reader.int32() as any;
|
|
23249
|
-
continue;
|
|
23250
|
-
}
|
|
23251
|
-
case 3: {
|
|
23252
|
-
if (tag !== 24) {
|
|
23253
|
-
break;
|
|
23254
|
-
}
|
|
23255
|
-
|
|
23256
|
-
message.agentReliability = reader.int32() as any;
|
|
23257
|
-
continue;
|
|
23258
|
-
}
|
|
23259
|
-
case 4: {
|
|
23260
|
-
if (tag !== 32) {
|
|
23261
|
-
break;
|
|
23262
|
-
}
|
|
23263
|
-
|
|
23264
|
-
message.verification = reader.int32() as any;
|
|
23265
|
-
continue;
|
|
23266
|
-
}
|
|
23267
|
-
case 5: {
|
|
23268
|
-
if (tag !== 42) {
|
|
23269
|
-
break;
|
|
23270
|
-
}
|
|
23271
|
-
|
|
23272
|
-
message.model = reader.string();
|
|
23273
|
-
continue;
|
|
23274
|
-
}
|
|
23275
|
-
case 6: {
|
|
23276
|
-
if (tag !== 50) {
|
|
23277
|
-
break;
|
|
23278
|
-
}
|
|
23279
|
-
|
|
23280
|
-
message.version = reader.string();
|
|
23281
|
-
continue;
|
|
23282
|
-
}
|
|
23283
|
-
case 7: {
|
|
23284
|
-
if (tag !== 56) {
|
|
23285
|
-
break;
|
|
23286
|
-
}
|
|
23287
|
-
|
|
23288
|
-
message.inputSessionVersion = longToNumber(reader.uint64());
|
|
23289
|
-
continue;
|
|
23290
|
-
}
|
|
23291
|
-
case 8: {
|
|
23292
|
-
if (tag !== 66) {
|
|
23293
|
-
break;
|
|
23294
|
-
}
|
|
23295
|
-
|
|
23296
|
-
message.scoredAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
23297
|
-
continue;
|
|
23298
|
-
}
|
|
23299
|
-
}
|
|
23300
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
23301
|
-
break;
|
|
23302
|
-
}
|
|
23303
|
-
reader.skip(tag & 7);
|
|
23304
|
-
}
|
|
23305
|
-
return message;
|
|
23306
|
-
} finally {
|
|
23307
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
23308
|
-
}
|
|
23309
|
-
},
|
|
23310
|
-
|
|
23311
|
-
fromJSON(object: any): AISessionGrades {
|
|
23312
|
-
return {
|
|
23313
|
-
outcome: isSet(object.outcome) ? aISessionOutcomeFromJSON(object.outcome) : 0,
|
|
23314
|
-
steeringLoad: isSet(object.steeringLoad)
|
|
23315
|
-
? aISessionSteeringLoadFromJSON(object.steeringLoad)
|
|
23316
|
-
: isSet(object.steering_load)
|
|
23317
|
-
? aISessionSteeringLoadFromJSON(object.steering_load)
|
|
23318
|
-
: 0,
|
|
23319
|
-
agentReliability: isSet(object.agentReliability)
|
|
23320
|
-
? aISessionAgentReliabilityFromJSON(object.agentReliability)
|
|
23321
|
-
: isSet(object.agent_reliability)
|
|
23322
|
-
? aISessionAgentReliabilityFromJSON(object.agent_reliability)
|
|
23323
|
-
: 0,
|
|
23324
|
-
verification: isSet(object.verification) ? aISessionVerificationFromJSON(object.verification) : 0,
|
|
23325
|
-
model: isSet(object.model) ? globalThis.String(object.model) : "",
|
|
23326
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
23327
|
-
inputSessionVersion: isSet(object.inputSessionVersion)
|
|
23328
|
-
? globalThis.Number(object.inputSessionVersion)
|
|
23329
|
-
: isSet(object.input_session_version)
|
|
23330
|
-
? globalThis.Number(object.input_session_version)
|
|
23331
|
-
: 0,
|
|
23332
|
-
scoredAt: isSet(object.scoredAt)
|
|
23333
|
-
? fromJsonTimestamp(object.scoredAt)
|
|
23334
|
-
: isSet(object.scored_at)
|
|
23335
|
-
? fromJsonTimestamp(object.scored_at)
|
|
23336
|
-
: undefined,
|
|
23337
|
-
};
|
|
23338
|
-
},
|
|
23339
|
-
|
|
23340
|
-
toJSON(message: AISessionGrades): unknown {
|
|
23341
|
-
const obj: any = {};
|
|
23342
|
-
if (message.outcome !== 0) {
|
|
23343
|
-
obj.outcome = aISessionOutcomeToJSON(message.outcome);
|
|
23344
|
-
}
|
|
23345
|
-
if (message.steeringLoad !== 0) {
|
|
23346
|
-
obj.steeringLoad = aISessionSteeringLoadToJSON(message.steeringLoad);
|
|
23347
|
-
}
|
|
23348
|
-
if (message.agentReliability !== 0) {
|
|
23349
|
-
obj.agentReliability = aISessionAgentReliabilityToJSON(message.agentReliability);
|
|
23350
|
-
}
|
|
23351
|
-
if (message.verification !== 0) {
|
|
23352
|
-
obj.verification = aISessionVerificationToJSON(message.verification);
|
|
23353
|
-
}
|
|
23354
|
-
if (message.model !== "") {
|
|
23355
|
-
obj.model = message.model;
|
|
23356
|
-
}
|
|
23357
|
-
if (message.version !== "") {
|
|
23358
|
-
obj.version = message.version;
|
|
23359
|
-
}
|
|
23360
|
-
if (message.inputSessionVersion !== 0) {
|
|
23361
|
-
obj.inputSessionVersion = Math.round(message.inputSessionVersion);
|
|
23362
|
-
}
|
|
23363
|
-
if (message.scoredAt !== undefined) {
|
|
23364
|
-
obj.scoredAt = message.scoredAt.toISOString();
|
|
23365
|
-
}
|
|
23366
|
-
return obj;
|
|
23367
|
-
},
|
|
23368
|
-
|
|
23369
|
-
create<I extends Exact<DeepPartial<AISessionGrades>, I>>(base?: I): AISessionGrades {
|
|
23370
|
-
return AISessionGrades.fromPartial(base ?? ({} as any));
|
|
23371
|
-
},
|
|
23372
|
-
fromPartial<I extends Exact<DeepPartial<AISessionGrades>, I>>(object: I): AISessionGrades {
|
|
23373
|
-
const message = createBaseAISessionGrades();
|
|
23374
|
-
message.outcome = object.outcome ?? 0;
|
|
23375
|
-
message.steeringLoad = object.steeringLoad ?? 0;
|
|
23376
|
-
message.agentReliability = object.agentReliability ?? 0;
|
|
23377
|
-
message.verification = object.verification ?? 0;
|
|
23378
|
-
message.model = object.model ?? "";
|
|
23379
|
-
message.version = object.version ?? "";
|
|
23380
|
-
message.inputSessionVersion = object.inputSessionVersion ?? 0;
|
|
23381
|
-
message.scoredAt = object.scoredAt ?? undefined;
|
|
23382
|
-
return message;
|
|
23383
|
-
},
|
|
23384
|
-
};
|
|
23385
|
-
|
|
23386
22860
|
function createBaseAISessionInsights(): AISessionInsights {
|
|
23387
22861
|
return { insights: [], model: "", version: "", inputSessionVersion: 0, analyzedAt: undefined };
|
|
23388
22862
|
}
|
|
@@ -24040,9 +23514,11 @@ export const AISessionEventRef: MessageFns<AISessionEventRef> = {
|
|
|
24040
23514
|
|
|
24041
23515
|
function createBaseAISessionScore(): AISessionScore {
|
|
24042
23516
|
return {
|
|
24043
|
-
formulaVersion: "",
|
|
24044
23517
|
score: 0,
|
|
24045
|
-
|
|
23518
|
+
rubricVersion: "",
|
|
23519
|
+
results: [],
|
|
23520
|
+
summary: undefined,
|
|
23521
|
+
model: "",
|
|
24046
23522
|
scoreVersion: "",
|
|
24047
23523
|
inputSessionVersion: 0,
|
|
24048
23524
|
scoredAt: undefined,
|
|
@@ -24051,23 +23527,29 @@ function createBaseAISessionScore(): AISessionScore {
|
|
|
24051
23527
|
|
|
24052
23528
|
export const AISessionScore: MessageFns<AISessionScore> = {
|
|
24053
23529
|
encode(message: AISessionScore, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
24054
|
-
if (message.formulaVersion !== "") {
|
|
24055
|
-
writer.uint32(10).string(message.formulaVersion);
|
|
24056
|
-
}
|
|
24057
23530
|
if (message.score !== 0) {
|
|
24058
|
-
writer.uint32(
|
|
23531
|
+
writer.uint32(8).int32(message.score);
|
|
23532
|
+
}
|
|
23533
|
+
if (message.rubricVersion !== "") {
|
|
23534
|
+
writer.uint32(18).string(message.rubricVersion);
|
|
23535
|
+
}
|
|
23536
|
+
for (const v of message.results) {
|
|
23537
|
+
AISessionRubricResult.encode(v!, writer.uint32(26).fork()).join();
|
|
24059
23538
|
}
|
|
24060
|
-
|
|
24061
|
-
|
|
23539
|
+
if (message.summary !== undefined) {
|
|
23540
|
+
AISessionScoreSummary.encode(message.summary, writer.uint32(34).fork()).join();
|
|
23541
|
+
}
|
|
23542
|
+
if (message.model !== "") {
|
|
23543
|
+
writer.uint32(42).string(message.model);
|
|
24062
23544
|
}
|
|
24063
23545
|
if (message.scoreVersion !== "") {
|
|
24064
|
-
writer.uint32(
|
|
23546
|
+
writer.uint32(50).string(message.scoreVersion);
|
|
24065
23547
|
}
|
|
24066
23548
|
if (message.inputSessionVersion !== 0) {
|
|
24067
|
-
writer.uint32(
|
|
23549
|
+
writer.uint32(56).uint64(message.inputSessionVersion);
|
|
24068
23550
|
}
|
|
24069
23551
|
if (message.scoredAt !== undefined) {
|
|
24070
|
-
Timestamp.encode(toTimestamp(message.scoredAt), writer.uint32(
|
|
23552
|
+
Timestamp.encode(toTimestamp(message.scoredAt), writer.uint32(66).fork()).join();
|
|
24071
23553
|
}
|
|
24072
23554
|
return writer;
|
|
24073
23555
|
},
|
|
@@ -24086,19 +23568,19 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24086
23568
|
const tag = reader.uint32();
|
|
24087
23569
|
switch (tag >>> 3) {
|
|
24088
23570
|
case 1: {
|
|
24089
|
-
if (tag !==
|
|
23571
|
+
if (tag !== 8) {
|
|
24090
23572
|
break;
|
|
24091
23573
|
}
|
|
24092
23574
|
|
|
24093
|
-
message.
|
|
23575
|
+
message.score = reader.int32();
|
|
24094
23576
|
continue;
|
|
24095
23577
|
}
|
|
24096
23578
|
case 2: {
|
|
24097
|
-
if (tag !==
|
|
23579
|
+
if (tag !== 18) {
|
|
24098
23580
|
break;
|
|
24099
23581
|
}
|
|
24100
23582
|
|
|
24101
|
-
message.
|
|
23583
|
+
message.rubricVersion = reader.string();
|
|
24102
23584
|
continue;
|
|
24103
23585
|
}
|
|
24104
23586
|
case 3: {
|
|
@@ -24106,7 +23588,7 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24106
23588
|
break;
|
|
24107
23589
|
}
|
|
24108
23590
|
|
|
24109
|
-
message.
|
|
23591
|
+
message.results.push(AISessionRubricResult.decode(reader, reader.uint32()));
|
|
24110
23592
|
continue;
|
|
24111
23593
|
}
|
|
24112
23594
|
case 4: {
|
|
@@ -24114,15 +23596,15 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24114
23596
|
break;
|
|
24115
23597
|
}
|
|
24116
23598
|
|
|
24117
|
-
message.
|
|
23599
|
+
message.summary = AISessionScoreSummary.decode(reader, reader.uint32());
|
|
24118
23600
|
continue;
|
|
24119
23601
|
}
|
|
24120
23602
|
case 5: {
|
|
24121
|
-
if (tag !==
|
|
23603
|
+
if (tag !== 42) {
|
|
24122
23604
|
break;
|
|
24123
23605
|
}
|
|
24124
23606
|
|
|
24125
|
-
message.
|
|
23607
|
+
message.model = reader.string();
|
|
24126
23608
|
continue;
|
|
24127
23609
|
}
|
|
24128
23610
|
case 6: {
|
|
@@ -24130,6 +23612,22 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24130
23612
|
break;
|
|
24131
23613
|
}
|
|
24132
23614
|
|
|
23615
|
+
message.scoreVersion = reader.string();
|
|
23616
|
+
continue;
|
|
23617
|
+
}
|
|
23618
|
+
case 7: {
|
|
23619
|
+
if (tag !== 56) {
|
|
23620
|
+
break;
|
|
23621
|
+
}
|
|
23622
|
+
|
|
23623
|
+
message.inputSessionVersion = longToNumber(reader.uint64());
|
|
23624
|
+
continue;
|
|
23625
|
+
}
|
|
23626
|
+
case 8: {
|
|
23627
|
+
if (tag !== 66) {
|
|
23628
|
+
break;
|
|
23629
|
+
}
|
|
23630
|
+
|
|
24133
23631
|
message.scoredAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
24134
23632
|
continue;
|
|
24135
23633
|
}
|
|
@@ -24147,15 +23645,17 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24147
23645
|
|
|
24148
23646
|
fromJSON(object: any): AISessionScore {
|
|
24149
23647
|
return {
|
|
24150
|
-
formulaVersion: isSet(object.formulaVersion)
|
|
24151
|
-
? globalThis.String(object.formulaVersion)
|
|
24152
|
-
: isSet(object.formula_version)
|
|
24153
|
-
? globalThis.String(object.formula_version)
|
|
24154
|
-
: "",
|
|
24155
23648
|
score: isSet(object.score) ? globalThis.Number(object.score) : 0,
|
|
24156
|
-
|
|
24157
|
-
?
|
|
23649
|
+
rubricVersion: isSet(object.rubricVersion)
|
|
23650
|
+
? globalThis.String(object.rubricVersion)
|
|
23651
|
+
: isSet(object.rubric_version)
|
|
23652
|
+
? globalThis.String(object.rubric_version)
|
|
23653
|
+
: "",
|
|
23654
|
+
results: globalThis.Array.isArray(object?.results)
|
|
23655
|
+
? object.results.map((e: any) => AISessionRubricResult.fromJSON(e))
|
|
24158
23656
|
: [],
|
|
23657
|
+
summary: isSet(object.summary) ? AISessionScoreSummary.fromJSON(object.summary) : undefined,
|
|
23658
|
+
model: isSet(object.model) ? globalThis.String(object.model) : "",
|
|
24159
23659
|
scoreVersion: isSet(object.scoreVersion)
|
|
24160
23660
|
? globalThis.String(object.scoreVersion)
|
|
24161
23661
|
: isSet(object.score_version)
|
|
@@ -24176,14 +23676,20 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24176
23676
|
|
|
24177
23677
|
toJSON(message: AISessionScore): unknown {
|
|
24178
23678
|
const obj: any = {};
|
|
24179
|
-
if (message.formulaVersion !== "") {
|
|
24180
|
-
obj.formulaVersion = message.formulaVersion;
|
|
24181
|
-
}
|
|
24182
23679
|
if (message.score !== 0) {
|
|
24183
23680
|
obj.score = Math.round(message.score);
|
|
24184
23681
|
}
|
|
24185
|
-
if (message.
|
|
24186
|
-
obj.
|
|
23682
|
+
if (message.rubricVersion !== "") {
|
|
23683
|
+
obj.rubricVersion = message.rubricVersion;
|
|
23684
|
+
}
|
|
23685
|
+
if (message.results?.length) {
|
|
23686
|
+
obj.results = message.results.map((e) => AISessionRubricResult.toJSON(e));
|
|
23687
|
+
}
|
|
23688
|
+
if (message.summary !== undefined) {
|
|
23689
|
+
obj.summary = AISessionScoreSummary.toJSON(message.summary);
|
|
23690
|
+
}
|
|
23691
|
+
if (message.model !== "") {
|
|
23692
|
+
obj.model = message.model;
|
|
24187
23693
|
}
|
|
24188
23694
|
if (message.scoreVersion !== "") {
|
|
24189
23695
|
obj.scoreVersion = message.scoreVersion;
|
|
@@ -24202,9 +23708,13 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24202
23708
|
},
|
|
24203
23709
|
fromPartial<I extends Exact<DeepPartial<AISessionScore>, I>>(object: I): AISessionScore {
|
|
24204
23710
|
const message = createBaseAISessionScore();
|
|
24205
|
-
message.formulaVersion = object.formulaVersion ?? "";
|
|
24206
23711
|
message.score = object.score ?? 0;
|
|
24207
|
-
message.
|
|
23712
|
+
message.rubricVersion = object.rubricVersion ?? "";
|
|
23713
|
+
message.results = object.results?.map((e) => AISessionRubricResult.fromPartial(e)) || [];
|
|
23714
|
+
message.summary = (object.summary !== undefined && object.summary !== null)
|
|
23715
|
+
? AISessionScoreSummary.fromPartial(object.summary)
|
|
23716
|
+
: undefined;
|
|
23717
|
+
message.model = object.model ?? "";
|
|
24208
23718
|
message.scoreVersion = object.scoreVersion ?? "";
|
|
24209
23719
|
message.inputSessionVersion = object.inputSessionVersion ?? 0;
|
|
24210
23720
|
message.scoredAt = object.scoredAt ?? undefined;
|
|
@@ -24212,34 +23722,53 @@ export const AISessionScore: MessageFns<AISessionScore> = {
|
|
|
24212
23722
|
},
|
|
24213
23723
|
};
|
|
24214
23724
|
|
|
24215
|
-
function
|
|
24216
|
-
return {
|
|
23725
|
+
function createBaseAISessionRubricResult(): AISessionRubricResult {
|
|
23726
|
+
return {
|
|
23727
|
+
criterionKey: "",
|
|
23728
|
+
name: "",
|
|
23729
|
+
weight: 0,
|
|
23730
|
+
grade: "",
|
|
23731
|
+
value: 0,
|
|
23732
|
+
contribution: 0,
|
|
23733
|
+
assessment: "",
|
|
23734
|
+
improvement: "",
|
|
23735
|
+
evidenceRefs: [],
|
|
23736
|
+
};
|
|
24217
23737
|
}
|
|
24218
23738
|
|
|
24219
|
-
export const
|
|
24220
|
-
encode(message:
|
|
24221
|
-
if (message.
|
|
24222
|
-
writer.uint32(
|
|
23739
|
+
export const AISessionRubricResult: MessageFns<AISessionRubricResult> = {
|
|
23740
|
+
encode(message: AISessionRubricResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23741
|
+
if (message.criterionKey !== "") {
|
|
23742
|
+
writer.uint32(10).string(message.criterionKey);
|
|
24223
23743
|
}
|
|
24224
|
-
if (message.
|
|
24225
|
-
writer.uint32(
|
|
24226
|
-
}
|
|
24227
|
-
if (message.baseWeight !== 0) {
|
|
24228
|
-
writer.uint32(25).double(message.baseWeight);
|
|
23744
|
+
if (message.name !== "") {
|
|
23745
|
+
writer.uint32(18).string(message.name);
|
|
24229
23746
|
}
|
|
24230
23747
|
if (message.weight !== 0) {
|
|
24231
|
-
writer.uint32(
|
|
23748
|
+
writer.uint32(24).uint32(message.weight);
|
|
23749
|
+
}
|
|
23750
|
+
if (message.grade !== "") {
|
|
23751
|
+
writer.uint32(34).string(message.grade);
|
|
24232
23752
|
}
|
|
24233
|
-
if (message.value !==
|
|
23753
|
+
if (message.value !== 0) {
|
|
24234
23754
|
writer.uint32(41).double(message.value);
|
|
24235
23755
|
}
|
|
24236
23756
|
if (message.contribution !== 0) {
|
|
24237
23757
|
writer.uint32(49).double(message.contribution);
|
|
24238
23758
|
}
|
|
23759
|
+
if (message.assessment !== "") {
|
|
23760
|
+
writer.uint32(58).string(message.assessment);
|
|
23761
|
+
}
|
|
23762
|
+
if (message.improvement !== "") {
|
|
23763
|
+
writer.uint32(66).string(message.improvement);
|
|
23764
|
+
}
|
|
23765
|
+
for (const v of message.evidenceRefs) {
|
|
23766
|
+
AISessionEventRef.encode(v!, writer.uint32(74).fork()).join();
|
|
23767
|
+
}
|
|
24239
23768
|
return writer;
|
|
24240
23769
|
},
|
|
24241
23770
|
|
|
24242
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
23771
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AISessionRubricResult {
|
|
24243
23772
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24244
23773
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
24245
23774
|
if (previousRecursionDepth >= 100) {
|
|
@@ -24248,40 +23777,40 @@ export const AISessionScoreComponent: MessageFns<AISessionScoreComponent> = {
|
|
|
24248
23777
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
24249
23778
|
try {
|
|
24250
23779
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
24251
|
-
const message =
|
|
23780
|
+
const message = createBaseAISessionRubricResult();
|
|
24252
23781
|
while (reader.pos < end) {
|
|
24253
23782
|
const tag = reader.uint32();
|
|
24254
23783
|
switch (tag >>> 3) {
|
|
24255
23784
|
case 1: {
|
|
24256
|
-
if (tag !==
|
|
23785
|
+
if (tag !== 10) {
|
|
24257
23786
|
break;
|
|
24258
23787
|
}
|
|
24259
23788
|
|
|
24260
|
-
message.
|
|
23789
|
+
message.criterionKey = reader.string();
|
|
24261
23790
|
continue;
|
|
24262
23791
|
}
|
|
24263
23792
|
case 2: {
|
|
24264
|
-
if (tag !==
|
|
23793
|
+
if (tag !== 18) {
|
|
24265
23794
|
break;
|
|
24266
23795
|
}
|
|
24267
23796
|
|
|
24268
|
-
message.
|
|
23797
|
+
message.name = reader.string();
|
|
24269
23798
|
continue;
|
|
24270
23799
|
}
|
|
24271
23800
|
case 3: {
|
|
24272
|
-
if (tag !==
|
|
23801
|
+
if (tag !== 24) {
|
|
24273
23802
|
break;
|
|
24274
23803
|
}
|
|
24275
23804
|
|
|
24276
|
-
message.
|
|
23805
|
+
message.weight = reader.uint32();
|
|
24277
23806
|
continue;
|
|
24278
23807
|
}
|
|
24279
23808
|
case 4: {
|
|
24280
|
-
if (tag !==
|
|
23809
|
+
if (tag !== 34) {
|
|
24281
23810
|
break;
|
|
24282
23811
|
}
|
|
24283
23812
|
|
|
24284
|
-
message.
|
|
23813
|
+
message.grade = reader.string();
|
|
24285
23814
|
continue;
|
|
24286
23815
|
}
|
|
24287
23816
|
case 5: {
|
|
@@ -24300,6 +23829,30 @@ export const AISessionScoreComponent: MessageFns<AISessionScoreComponent> = {
|
|
|
24300
23829
|
message.contribution = reader.double();
|
|
24301
23830
|
continue;
|
|
24302
23831
|
}
|
|
23832
|
+
case 7: {
|
|
23833
|
+
if (tag !== 58) {
|
|
23834
|
+
break;
|
|
23835
|
+
}
|
|
23836
|
+
|
|
23837
|
+
message.assessment = reader.string();
|
|
23838
|
+
continue;
|
|
23839
|
+
}
|
|
23840
|
+
case 8: {
|
|
23841
|
+
if (tag !== 66) {
|
|
23842
|
+
break;
|
|
23843
|
+
}
|
|
23844
|
+
|
|
23845
|
+
message.improvement = reader.string();
|
|
23846
|
+
continue;
|
|
23847
|
+
}
|
|
23848
|
+
case 9: {
|
|
23849
|
+
if (tag !== 74) {
|
|
23850
|
+
break;
|
|
23851
|
+
}
|
|
23852
|
+
|
|
23853
|
+
message.evidenceRefs.push(AISessionEventRef.decode(reader, reader.uint32()));
|
|
23854
|
+
continue;
|
|
23855
|
+
}
|
|
24303
23856
|
}
|
|
24304
23857
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24305
23858
|
break;
|
|
@@ -24312,55 +23865,167 @@ export const AISessionScoreComponent: MessageFns<AISessionScoreComponent> = {
|
|
|
24312
23865
|
}
|
|
24313
23866
|
},
|
|
24314
23867
|
|
|
24315
|
-
fromJSON(object: any):
|
|
23868
|
+
fromJSON(object: any): AISessionRubricResult {
|
|
24316
23869
|
return {
|
|
24317
|
-
|
|
24318
|
-
|
|
24319
|
-
|
|
24320
|
-
? globalThis.
|
|
24321
|
-
:
|
|
24322
|
-
|
|
24323
|
-
: 0,
|
|
23870
|
+
criterionKey: isSet(object.criterionKey)
|
|
23871
|
+
? globalThis.String(object.criterionKey)
|
|
23872
|
+
: isSet(object.criterion_key)
|
|
23873
|
+
? globalThis.String(object.criterion_key)
|
|
23874
|
+
: "",
|
|
23875
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
24324
23876
|
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
|
24325
|
-
|
|
23877
|
+
grade: isSet(object.grade) ? globalThis.String(object.grade) : "",
|
|
23878
|
+
value: isSet(object.value) ? globalThis.Number(object.value) : 0,
|
|
24326
23879
|
contribution: isSet(object.contribution) ? globalThis.Number(object.contribution) : 0,
|
|
23880
|
+
assessment: isSet(object.assessment) ? globalThis.String(object.assessment) : "",
|
|
23881
|
+
improvement: isSet(object.improvement) ? globalThis.String(object.improvement) : "",
|
|
23882
|
+
evidenceRefs: globalThis.Array.isArray(object?.evidenceRefs)
|
|
23883
|
+
? object.evidenceRefs.map((e: any) => AISessionEventRef.fromJSON(e))
|
|
23884
|
+
: globalThis.Array.isArray(object?.evidence_refs)
|
|
23885
|
+
? object.evidence_refs.map((e: any) => AISessionEventRef.fromJSON(e))
|
|
23886
|
+
: [],
|
|
24327
23887
|
};
|
|
24328
23888
|
},
|
|
24329
23889
|
|
|
24330
|
-
toJSON(message:
|
|
23890
|
+
toJSON(message: AISessionRubricResult): unknown {
|
|
24331
23891
|
const obj: any = {};
|
|
24332
|
-
if (message.
|
|
24333
|
-
obj.
|
|
23892
|
+
if (message.criterionKey !== "") {
|
|
23893
|
+
obj.criterionKey = message.criterionKey;
|
|
24334
23894
|
}
|
|
24335
|
-
if (message.
|
|
24336
|
-
obj.
|
|
24337
|
-
}
|
|
24338
|
-
if (message.baseWeight !== 0) {
|
|
24339
|
-
obj.baseWeight = floatToJson(message.baseWeight);
|
|
23895
|
+
if (message.name !== "") {
|
|
23896
|
+
obj.name = message.name;
|
|
24340
23897
|
}
|
|
24341
23898
|
if (message.weight !== 0) {
|
|
24342
|
-
obj.weight =
|
|
23899
|
+
obj.weight = Math.round(message.weight);
|
|
23900
|
+
}
|
|
23901
|
+
if (message.grade !== "") {
|
|
23902
|
+
obj.grade = message.grade;
|
|
24343
23903
|
}
|
|
24344
|
-
if (message.value !==
|
|
23904
|
+
if (message.value !== 0) {
|
|
24345
23905
|
obj.value = floatToJson(message.value);
|
|
24346
23906
|
}
|
|
24347
23907
|
if (message.contribution !== 0) {
|
|
24348
23908
|
obj.contribution = floatToJson(message.contribution);
|
|
24349
23909
|
}
|
|
23910
|
+
if (message.assessment !== "") {
|
|
23911
|
+
obj.assessment = message.assessment;
|
|
23912
|
+
}
|
|
23913
|
+
if (message.improvement !== "") {
|
|
23914
|
+
obj.improvement = message.improvement;
|
|
23915
|
+
}
|
|
23916
|
+
if (message.evidenceRefs?.length) {
|
|
23917
|
+
obj.evidenceRefs = message.evidenceRefs.map((e) => AISessionEventRef.toJSON(e));
|
|
23918
|
+
}
|
|
24350
23919
|
return obj;
|
|
24351
23920
|
},
|
|
24352
23921
|
|
|
24353
|
-
create<I extends Exact<DeepPartial<
|
|
24354
|
-
return
|
|
23922
|
+
create<I extends Exact<DeepPartial<AISessionRubricResult>, I>>(base?: I): AISessionRubricResult {
|
|
23923
|
+
return AISessionRubricResult.fromPartial(base ?? ({} as any));
|
|
24355
23924
|
},
|
|
24356
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
24357
|
-
const message =
|
|
24358
|
-
message.
|
|
24359
|
-
message.
|
|
24360
|
-
message.baseWeight = object.baseWeight ?? 0;
|
|
23925
|
+
fromPartial<I extends Exact<DeepPartial<AISessionRubricResult>, I>>(object: I): AISessionRubricResult {
|
|
23926
|
+
const message = createBaseAISessionRubricResult();
|
|
23927
|
+
message.criterionKey = object.criterionKey ?? "";
|
|
23928
|
+
message.name = object.name ?? "";
|
|
24361
23929
|
message.weight = object.weight ?? 0;
|
|
24362
|
-
message.
|
|
23930
|
+
message.grade = object.grade ?? "";
|
|
23931
|
+
message.value = object.value ?? 0;
|
|
24363
23932
|
message.contribution = object.contribution ?? 0;
|
|
23933
|
+
message.assessment = object.assessment ?? "";
|
|
23934
|
+
message.improvement = object.improvement ?? "";
|
|
23935
|
+
message.evidenceRefs = object.evidenceRefs?.map((e) => AISessionEventRef.fromPartial(e)) || [];
|
|
23936
|
+
return message;
|
|
23937
|
+
},
|
|
23938
|
+
};
|
|
23939
|
+
|
|
23940
|
+
function createBaseAISessionScoreSummary(): AISessionScoreSummary {
|
|
23941
|
+
return { wentWell: "", doNext: "" };
|
|
23942
|
+
}
|
|
23943
|
+
|
|
23944
|
+
export const AISessionScoreSummary: MessageFns<AISessionScoreSummary> = {
|
|
23945
|
+
encode(message: AISessionScoreSummary, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23946
|
+
if (message.wentWell !== "") {
|
|
23947
|
+
writer.uint32(10).string(message.wentWell);
|
|
23948
|
+
}
|
|
23949
|
+
if (message.doNext !== "") {
|
|
23950
|
+
writer.uint32(18).string(message.doNext);
|
|
23951
|
+
}
|
|
23952
|
+
return writer;
|
|
23953
|
+
},
|
|
23954
|
+
|
|
23955
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AISessionScoreSummary {
|
|
23956
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23957
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
23958
|
+
if (previousRecursionDepth >= 100) {
|
|
23959
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
23960
|
+
}
|
|
23961
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
23962
|
+
try {
|
|
23963
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23964
|
+
const message = createBaseAISessionScoreSummary();
|
|
23965
|
+
while (reader.pos < end) {
|
|
23966
|
+
const tag = reader.uint32();
|
|
23967
|
+
switch (tag >>> 3) {
|
|
23968
|
+
case 1: {
|
|
23969
|
+
if (tag !== 10) {
|
|
23970
|
+
break;
|
|
23971
|
+
}
|
|
23972
|
+
|
|
23973
|
+
message.wentWell = reader.string();
|
|
23974
|
+
continue;
|
|
23975
|
+
}
|
|
23976
|
+
case 2: {
|
|
23977
|
+
if (tag !== 18) {
|
|
23978
|
+
break;
|
|
23979
|
+
}
|
|
23980
|
+
|
|
23981
|
+
message.doNext = reader.string();
|
|
23982
|
+
continue;
|
|
23983
|
+
}
|
|
23984
|
+
}
|
|
23985
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23986
|
+
break;
|
|
23987
|
+
}
|
|
23988
|
+
reader.skip(tag & 7);
|
|
23989
|
+
}
|
|
23990
|
+
return message;
|
|
23991
|
+
} finally {
|
|
23992
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
23993
|
+
}
|
|
23994
|
+
},
|
|
23995
|
+
|
|
23996
|
+
fromJSON(object: any): AISessionScoreSummary {
|
|
23997
|
+
return {
|
|
23998
|
+
wentWell: isSet(object.wentWell)
|
|
23999
|
+
? globalThis.String(object.wentWell)
|
|
24000
|
+
: isSet(object.went_well)
|
|
24001
|
+
? globalThis.String(object.went_well)
|
|
24002
|
+
: "",
|
|
24003
|
+
doNext: isSet(object.doNext)
|
|
24004
|
+
? globalThis.String(object.doNext)
|
|
24005
|
+
: isSet(object.do_next)
|
|
24006
|
+
? globalThis.String(object.do_next)
|
|
24007
|
+
: "",
|
|
24008
|
+
};
|
|
24009
|
+
},
|
|
24010
|
+
|
|
24011
|
+
toJSON(message: AISessionScoreSummary): unknown {
|
|
24012
|
+
const obj: any = {};
|
|
24013
|
+
if (message.wentWell !== "") {
|
|
24014
|
+
obj.wentWell = message.wentWell;
|
|
24015
|
+
}
|
|
24016
|
+
if (message.doNext !== "") {
|
|
24017
|
+
obj.doNext = message.doNext;
|
|
24018
|
+
}
|
|
24019
|
+
return obj;
|
|
24020
|
+
},
|
|
24021
|
+
|
|
24022
|
+
create<I extends Exact<DeepPartial<AISessionScoreSummary>, I>>(base?: I): AISessionScoreSummary {
|
|
24023
|
+
return AISessionScoreSummary.fromPartial(base ?? ({} as any));
|
|
24024
|
+
},
|
|
24025
|
+
fromPartial<I extends Exact<DeepPartial<AISessionScoreSummary>, I>>(object: I): AISessionScoreSummary {
|
|
24026
|
+
const message = createBaseAISessionScoreSummary();
|
|
24027
|
+
message.wentWell = object.wentWell ?? "";
|
|
24028
|
+
message.doNext = object.doNext ?? "";
|
|
24364
24029
|
return message;
|
|
24365
24030
|
},
|
|
24366
24031
|
};
|
|
@@ -24695,14 +24360,7 @@ export const GetSessionScoreTrendResponse: MessageFns<GetSessionScoreTrendRespon
|
|
|
24695
24360
|
};
|
|
24696
24361
|
|
|
24697
24362
|
function createBaseAISessionScoreWeek(): AISessionScoreWeek {
|
|
24698
|
-
return {
|
|
24699
|
-
weekStart: "",
|
|
24700
|
-
gradedSessions: 0,
|
|
24701
|
-
scoredSessions: 0,
|
|
24702
|
-
meanScore: undefined,
|
|
24703
|
-
knownOutcomeSessions: 0,
|
|
24704
|
-
deliveredSessions: 0,
|
|
24705
|
-
};
|
|
24363
|
+
return { weekStart: "", gradedSessions: 0, meanScore: undefined, criterionMeans: [] };
|
|
24706
24364
|
}
|
|
24707
24365
|
|
|
24708
24366
|
export const AISessionScoreWeek: MessageFns<AISessionScoreWeek> = {
|
|
@@ -24713,17 +24371,11 @@ export const AISessionScoreWeek: MessageFns<AISessionScoreWeek> = {
|
|
|
24713
24371
|
if (message.gradedSessions !== 0) {
|
|
24714
24372
|
writer.uint32(16).uint64(message.gradedSessions);
|
|
24715
24373
|
}
|
|
24716
|
-
if (message.scoredSessions !== 0) {
|
|
24717
|
-
writer.uint32(24).uint64(message.scoredSessions);
|
|
24718
|
-
}
|
|
24719
24374
|
if (message.meanScore !== undefined) {
|
|
24720
|
-
writer.uint32(
|
|
24721
|
-
}
|
|
24722
|
-
if (message.knownOutcomeSessions !== 0) {
|
|
24723
|
-
writer.uint32(40).uint64(message.knownOutcomeSessions);
|
|
24375
|
+
writer.uint32(25).double(message.meanScore);
|
|
24724
24376
|
}
|
|
24725
|
-
|
|
24726
|
-
writer.uint32(
|
|
24377
|
+
for (const v of message.criterionMeans) {
|
|
24378
|
+
AISessionCriterionMean.encode(v!, writer.uint32(34).fork()).join();
|
|
24727
24379
|
}
|
|
24728
24380
|
return writer;
|
|
24729
24381
|
},
|
|
@@ -24758,35 +24410,19 @@ export const AISessionScoreWeek: MessageFns<AISessionScoreWeek> = {
|
|
|
24758
24410
|
continue;
|
|
24759
24411
|
}
|
|
24760
24412
|
case 3: {
|
|
24761
|
-
if (tag !==
|
|
24762
|
-
break;
|
|
24763
|
-
}
|
|
24764
|
-
|
|
24765
|
-
message.scoredSessions = longToNumber(reader.uint64());
|
|
24766
|
-
continue;
|
|
24767
|
-
}
|
|
24768
|
-
case 4: {
|
|
24769
|
-
if (tag !== 33) {
|
|
24413
|
+
if (tag !== 25) {
|
|
24770
24414
|
break;
|
|
24771
24415
|
}
|
|
24772
24416
|
|
|
24773
24417
|
message.meanScore = reader.double();
|
|
24774
24418
|
continue;
|
|
24775
24419
|
}
|
|
24776
|
-
case
|
|
24777
|
-
if (tag !==
|
|
24778
|
-
break;
|
|
24779
|
-
}
|
|
24780
|
-
|
|
24781
|
-
message.knownOutcomeSessions = longToNumber(reader.uint64());
|
|
24782
|
-
continue;
|
|
24783
|
-
}
|
|
24784
|
-
case 6: {
|
|
24785
|
-
if (tag !== 48) {
|
|
24420
|
+
case 4: {
|
|
24421
|
+
if (tag !== 34) {
|
|
24786
24422
|
break;
|
|
24787
24423
|
}
|
|
24788
24424
|
|
|
24789
|
-
message.
|
|
24425
|
+
message.criterionMeans.push(AISessionCriterionMean.decode(reader, reader.uint32()));
|
|
24790
24426
|
continue;
|
|
24791
24427
|
}
|
|
24792
24428
|
}
|
|
@@ -24813,26 +24449,16 @@ export const AISessionScoreWeek: MessageFns<AISessionScoreWeek> = {
|
|
|
24813
24449
|
: isSet(object.graded_sessions)
|
|
24814
24450
|
? globalThis.Number(object.graded_sessions)
|
|
24815
24451
|
: 0,
|
|
24816
|
-
scoredSessions: isSet(object.scoredSessions)
|
|
24817
|
-
? globalThis.Number(object.scoredSessions)
|
|
24818
|
-
: isSet(object.scored_sessions)
|
|
24819
|
-
? globalThis.Number(object.scored_sessions)
|
|
24820
|
-
: 0,
|
|
24821
24452
|
meanScore: isSet(object.meanScore)
|
|
24822
24453
|
? globalThis.Number(object.meanScore)
|
|
24823
24454
|
: isSet(object.mean_score)
|
|
24824
24455
|
? globalThis.Number(object.mean_score)
|
|
24825
24456
|
: undefined,
|
|
24826
|
-
|
|
24827
|
-
?
|
|
24828
|
-
:
|
|
24829
|
-
?
|
|
24830
|
-
:
|
|
24831
|
-
deliveredSessions: isSet(object.deliveredSessions)
|
|
24832
|
-
? globalThis.Number(object.deliveredSessions)
|
|
24833
|
-
: isSet(object.delivered_sessions)
|
|
24834
|
-
? globalThis.Number(object.delivered_sessions)
|
|
24835
|
-
: 0,
|
|
24457
|
+
criterionMeans: globalThis.Array.isArray(object?.criterionMeans)
|
|
24458
|
+
? object.criterionMeans.map((e: any) => AISessionCriterionMean.fromJSON(e))
|
|
24459
|
+
: globalThis.Array.isArray(object?.criterion_means)
|
|
24460
|
+
? object.criterion_means.map((e: any) => AISessionCriterionMean.fromJSON(e))
|
|
24461
|
+
: [],
|
|
24836
24462
|
};
|
|
24837
24463
|
},
|
|
24838
24464
|
|
|
@@ -24844,17 +24470,11 @@ export const AISessionScoreWeek: MessageFns<AISessionScoreWeek> = {
|
|
|
24844
24470
|
if (message.gradedSessions !== 0) {
|
|
24845
24471
|
obj.gradedSessions = Math.round(message.gradedSessions);
|
|
24846
24472
|
}
|
|
24847
|
-
if (message.scoredSessions !== 0) {
|
|
24848
|
-
obj.scoredSessions = Math.round(message.scoredSessions);
|
|
24849
|
-
}
|
|
24850
24473
|
if (message.meanScore !== undefined) {
|
|
24851
24474
|
obj.meanScore = floatToJson(message.meanScore);
|
|
24852
24475
|
}
|
|
24853
|
-
if (message.
|
|
24854
|
-
obj.
|
|
24855
|
-
}
|
|
24856
|
-
if (message.deliveredSessions !== 0) {
|
|
24857
|
-
obj.deliveredSessions = Math.round(message.deliveredSessions);
|
|
24476
|
+
if (message.criterionMeans?.length) {
|
|
24477
|
+
obj.criterionMeans = message.criterionMeans.map((e) => AISessionCriterionMean.toJSON(e));
|
|
24858
24478
|
}
|
|
24859
24479
|
return obj;
|
|
24860
24480
|
},
|
|
@@ -24866,10 +24486,133 @@ export const AISessionScoreWeek: MessageFns<AISessionScoreWeek> = {
|
|
|
24866
24486
|
const message = createBaseAISessionScoreWeek();
|
|
24867
24487
|
message.weekStart = object.weekStart ?? "";
|
|
24868
24488
|
message.gradedSessions = object.gradedSessions ?? 0;
|
|
24869
|
-
message.scoredSessions = object.scoredSessions ?? 0;
|
|
24870
24489
|
message.meanScore = object.meanScore ?? undefined;
|
|
24871
|
-
message.
|
|
24872
|
-
message
|
|
24490
|
+
message.criterionMeans = object.criterionMeans?.map((e) => AISessionCriterionMean.fromPartial(e)) || [];
|
|
24491
|
+
return message;
|
|
24492
|
+
},
|
|
24493
|
+
};
|
|
24494
|
+
|
|
24495
|
+
function createBaseAISessionCriterionMean(): AISessionCriterionMean {
|
|
24496
|
+
return { criterionKey: "", name: "", sessions: 0, meanValue: 0 };
|
|
24497
|
+
}
|
|
24498
|
+
|
|
24499
|
+
export const AISessionCriterionMean: MessageFns<AISessionCriterionMean> = {
|
|
24500
|
+
encode(message: AISessionCriterionMean, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
24501
|
+
if (message.criterionKey !== "") {
|
|
24502
|
+
writer.uint32(10).string(message.criterionKey);
|
|
24503
|
+
}
|
|
24504
|
+
if (message.name !== "") {
|
|
24505
|
+
writer.uint32(34).string(message.name);
|
|
24506
|
+
}
|
|
24507
|
+
if (message.sessions !== 0) {
|
|
24508
|
+
writer.uint32(16).uint64(message.sessions);
|
|
24509
|
+
}
|
|
24510
|
+
if (message.meanValue !== 0) {
|
|
24511
|
+
writer.uint32(25).double(message.meanValue);
|
|
24512
|
+
}
|
|
24513
|
+
return writer;
|
|
24514
|
+
},
|
|
24515
|
+
|
|
24516
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AISessionCriterionMean {
|
|
24517
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24518
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
24519
|
+
if (previousRecursionDepth >= 100) {
|
|
24520
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
24521
|
+
}
|
|
24522
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
24523
|
+
try {
|
|
24524
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
24525
|
+
const message = createBaseAISessionCriterionMean();
|
|
24526
|
+
while (reader.pos < end) {
|
|
24527
|
+
const tag = reader.uint32();
|
|
24528
|
+
switch (tag >>> 3) {
|
|
24529
|
+
case 1: {
|
|
24530
|
+
if (tag !== 10) {
|
|
24531
|
+
break;
|
|
24532
|
+
}
|
|
24533
|
+
|
|
24534
|
+
message.criterionKey = reader.string();
|
|
24535
|
+
continue;
|
|
24536
|
+
}
|
|
24537
|
+
case 4: {
|
|
24538
|
+
if (tag !== 34) {
|
|
24539
|
+
break;
|
|
24540
|
+
}
|
|
24541
|
+
|
|
24542
|
+
message.name = reader.string();
|
|
24543
|
+
continue;
|
|
24544
|
+
}
|
|
24545
|
+
case 2: {
|
|
24546
|
+
if (tag !== 16) {
|
|
24547
|
+
break;
|
|
24548
|
+
}
|
|
24549
|
+
|
|
24550
|
+
message.sessions = longToNumber(reader.uint64());
|
|
24551
|
+
continue;
|
|
24552
|
+
}
|
|
24553
|
+
case 3: {
|
|
24554
|
+
if (tag !== 25) {
|
|
24555
|
+
break;
|
|
24556
|
+
}
|
|
24557
|
+
|
|
24558
|
+
message.meanValue = reader.double();
|
|
24559
|
+
continue;
|
|
24560
|
+
}
|
|
24561
|
+
}
|
|
24562
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
24563
|
+
break;
|
|
24564
|
+
}
|
|
24565
|
+
reader.skip(tag & 7);
|
|
24566
|
+
}
|
|
24567
|
+
return message;
|
|
24568
|
+
} finally {
|
|
24569
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
24570
|
+
}
|
|
24571
|
+
},
|
|
24572
|
+
|
|
24573
|
+
fromJSON(object: any): AISessionCriterionMean {
|
|
24574
|
+
return {
|
|
24575
|
+
criterionKey: isSet(object.criterionKey)
|
|
24576
|
+
? globalThis.String(object.criterionKey)
|
|
24577
|
+
: isSet(object.criterion_key)
|
|
24578
|
+
? globalThis.String(object.criterion_key)
|
|
24579
|
+
: "",
|
|
24580
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
24581
|
+
sessions: isSet(object.sessions) ? globalThis.Number(object.sessions) : 0,
|
|
24582
|
+
meanValue: isSet(object.meanValue)
|
|
24583
|
+
? globalThis.Number(object.meanValue)
|
|
24584
|
+
: isSet(object.mean_value)
|
|
24585
|
+
? globalThis.Number(object.mean_value)
|
|
24586
|
+
: 0,
|
|
24587
|
+
};
|
|
24588
|
+
},
|
|
24589
|
+
|
|
24590
|
+
toJSON(message: AISessionCriterionMean): unknown {
|
|
24591
|
+
const obj: any = {};
|
|
24592
|
+
if (message.criterionKey !== "") {
|
|
24593
|
+
obj.criterionKey = message.criterionKey;
|
|
24594
|
+
}
|
|
24595
|
+
if (message.name !== "") {
|
|
24596
|
+
obj.name = message.name;
|
|
24597
|
+
}
|
|
24598
|
+
if (message.sessions !== 0) {
|
|
24599
|
+
obj.sessions = Math.round(message.sessions);
|
|
24600
|
+
}
|
|
24601
|
+
if (message.meanValue !== 0) {
|
|
24602
|
+
obj.meanValue = floatToJson(message.meanValue);
|
|
24603
|
+
}
|
|
24604
|
+
return obj;
|
|
24605
|
+
},
|
|
24606
|
+
|
|
24607
|
+
create<I extends Exact<DeepPartial<AISessionCriterionMean>, I>>(base?: I): AISessionCriterionMean {
|
|
24608
|
+
return AISessionCriterionMean.fromPartial(base ?? ({} as any));
|
|
24609
|
+
},
|
|
24610
|
+
fromPartial<I extends Exact<DeepPartial<AISessionCriterionMean>, I>>(object: I): AISessionCriterionMean {
|
|
24611
|
+
const message = createBaseAISessionCriterionMean();
|
|
24612
|
+
message.criterionKey = object.criterionKey ?? "";
|
|
24613
|
+
message.name = object.name ?? "";
|
|
24614
|
+
message.sessions = object.sessions ?? 0;
|
|
24615
|
+
message.meanValue = object.meanValue ?? 0;
|
|
24873
24616
|
return message;
|
|
24874
24617
|
},
|
|
24875
24618
|
};
|
|
@@ -34475,13 +34218,13 @@ export interface AIGatewayService {
|
|
|
34475
34218
|
*/
|
|
34476
34219
|
GetSessionUsageTrend(request: SessionUsageTrendRequest, metadata?: Metadata): Promise<SessionUsageTrendResponse>;
|
|
34477
34220
|
/**
|
|
34478
|
-
* One session's latest
|
|
34479
|
-
* their cause and action; each part absent until its job has run. Mirrors ai.api.v1.
|
|
34221
|
+
* One session's latest score against the scorer's rubric, with each criterion's assessment and improvement, and
|
|
34222
|
+
* its latest insights with their cause and action; each part absent until its job has run. Mirrors ai.api.v1.
|
|
34480
34223
|
*/
|
|
34481
34224
|
GetSessionAnalysis(request: GetSessionAnalysisRequest, metadata?: Metadata): Promise<GetSessionAnalysisResponse>;
|
|
34482
34225
|
/**
|
|
34483
|
-
* A project's graded sessions, or one person's, per ISO week (UTC, by last activity): counts, the mean score
|
|
34484
|
-
*
|
|
34226
|
+
* A project's graded sessions, or one person's, per ISO week (UTC, by last activity): counts, the mean score, the
|
|
34227
|
+
* mean grade value per rubric criterion. Directional. Mirrors ai.api.v1.
|
|
34485
34228
|
*/
|
|
34486
34229
|
GetSessionScoreTrend(
|
|
34487
34230
|
request: GetSessionScoreTrendRequest,
|