Skip to content

Commit 55eec83

Browse files
Regenerate SDK: optional internal/experimental metrics fields
quotaSnapshots and totalPremiumRequests are now optional+internal; ShutdownModelMetricRequests.count and .cost are now optional+experimental. C# fields become nullable and gain [JsonInclude]/[Experimental] attributes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent de221da commit 55eec83

5 files changed

Lines changed: 60 additions & 23 deletions

File tree

dotnet/src/Generated/SessionEvents.cs

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/rpc/zsession_events.go

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/src/generated/session-events.ts

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/copilot/generated/session_events.py

Lines changed: 17 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/src/generated/session_events.rs

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,9 +723,25 @@ pub struct ShutdownCodeChanges {
723723
#[serde(rename_all = "camelCase")]
724724
pub struct ShutdownModelMetricRequests {
725725
/// Cumulative cost multiplier for requests to this model
726-
pub cost: f64,
726+
///
727+
/// <div class="warning">
728+
///
729+
/// **Experimental.** This type is part of an experimental wire-protocol surface
730+
/// and may change or be removed in future SDK or CLI releases.
731+
///
732+
/// </div>
733+
#[serde(skip_serializing_if = "Option::is_none")]
734+
pub cost: Option<f64>,
727735
/// Total number of API requests made to this model
728-
pub count: i64,
736+
///
737+
/// <div class="warning">
738+
///
739+
/// **Experimental.** This type is part of an experimental wire-protocol surface
740+
/// and may change or be removed in future SDK or CLI releases.
741+
///
742+
/// </div>
743+
#[serde(skip_serializing_if = "Option::is_none")]
744+
pub count: Option<i64>,
729745
}
730746

731747
/// Schema for the `ShutdownModelMetricTokenDetail` type.
@@ -830,7 +846,9 @@ pub struct SessionShutdownData {
830846
#[serde(skip_serializing_if = "Option::is_none")]
831847
pub total_nano_aiu: Option<f64>,
832848
/// Total number of premium API requests used during the session
833-
pub total_premium_requests: f64,
849+
#[doc(hidden)]
850+
#[serde(skip_serializing_if = "Option::is_none")]
851+
pub total_premium_requests: Option<f64>,
834852
}
835853

836854
/// Session event "session.context_changed". Updated working directory and git context after the change
@@ -1341,6 +1359,7 @@ pub struct AssistantUsageData {
13411359
#[serde(skip_serializing_if = "Option::is_none")]
13421360
pub provider_call_id: Option<String>,
13431361
/// Per-quota resource usage snapshots, keyed by quota identifier
1362+
#[doc(hidden)]
13441363
#[serde(default)]
13451364
pub quota_snapshots: HashMap<String, AssistantUsageQuotaSnapshot>,
13461365
/// Reasoning effort level used for model calls, if applicable (e.g. "none", "low", "medium", "high", "xhigh", "max")

0 commit comments

Comments
 (0)