Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/Dust/Generated/Dust.JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ namespace Dust
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<object>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Dust.PrivateAgentMessageContent>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateAgentMessageContent))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(double))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessage))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageType), TypeInfoPropertyName = "PrivateLightAgentMessageType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentMessageVisibility), TypeInfoPropertyName = "PrivateLightAgentMessageVisibility2")]
Expand All @@ -619,7 +620,6 @@ namespace Dust
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationStatus), TypeInfoPropertyName = "PrivateLightAgentConfigurationStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationScope), TypeInfoPropertyName = "PrivateLightAgentConfigurationScope2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationModel))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(double))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationModelReasoningEffort), TypeInfoPropertyName = "PrivateLightAgentConfigurationModelReasoningEffort2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Dust.PrivateLightAgentConfigurationTag>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Dust.PrivateLightAgentConfigurationTag))]
Expand Down
54 changes: 27 additions & 27 deletions src/libs/Dust/Generated/Dust.JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,111 +216,111 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentMessage? Type47 { get; set; }
public double? Type47 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentMessageType? Type48 { get; set; }
public global::Dust.PrivateLightAgentMessage? Type48 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentMessageVisibility? Type49 { get; set; }
public global::Dust.PrivateLightAgentMessageType? Type49 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentMessageStatus? Type50 { get; set; }
public global::Dust.PrivateLightAgentMessageVisibility? Type50 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentMessageError? Type51 { get; set; }
public global::Dust.PrivateLightAgentMessageStatus? Type51 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentMessageConfiguration? Type52 { get; set; }
public global::Dust.PrivateLightAgentMessageError? Type52 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, global::Dust.PrivateCitation>? Type53 { get; set; }
public global::Dust.PrivateLightAgentMessageConfiguration? Type53 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateCitation? Type54 { get; set; }
public global::System.Collections.Generic.Dictionary<string, global::Dust.PrivateCitation>? Type54 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Dust.PrivateLightAgentMessageGeneratedFile>? Type55 { get; set; }
public global::Dust.PrivateCitation? Type55 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentMessageGeneratedFile? Type56 { get; set; }
public global::System.Collections.Generic.IList<global::Dust.PrivateLightAgentMessageGeneratedFile>? Type56 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Dust.PrivateLightAgentMessageActivityStep>? Type57 { get; set; }
public global::Dust.PrivateLightAgentMessageGeneratedFile? Type57 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentMessageActivityStep? Type58 { get; set; }
public global::System.Collections.Generic.IList<global::Dust.PrivateLightAgentMessageActivityStep>? Type58 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentMessageActivityStepType? Type59 { get; set; }
public global::Dust.PrivateLightAgentMessageActivityStep? Type59 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateContentFragmentType? Type60 { get; set; }
public global::Dust.PrivateLightAgentMessageActivityStepType? Type60 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateContentFragmentVisibility? Type61 { get; set; }
public global::Dust.PrivateContentFragmentType? Type61 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateContentFragmentContext? Type62 { get; set; }
public global::Dust.PrivateContentFragmentVisibility? Type62 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateContentFragmentContentFragmentVersion? Type63 { get; set; }
public global::Dust.PrivateContentFragmentContext? Type63 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateContentFragmentContentFragmentType? Type64 { get; set; }
public global::Dust.PrivateContentFragmentContentFragmentVersion? Type64 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateContentFragmentExpiredReason? Type65 { get; set; }
public global::Dust.PrivateContentFragmentContentFragmentType? Type65 { get; set; }
/// <summary>
///
/// </summary>
public long? Type66 { get; set; }
public global::Dust.PrivateContentFragmentExpiredReason? Type66 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateCompactionMessageType? Type67 { get; set; }
public long? Type67 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateCompactionMessageVisibility? Type68 { get; set; }
public global::Dust.PrivateCompactionMessageType? Type68 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateCompactionMessageStatus? Type69 { get; set; }
public global::Dust.PrivateCompactionMessageVisibility? Type69 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentConfigurationStatus? Type70 { get; set; }
public global::Dust.PrivateCompactionMessageStatus? Type70 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentConfigurationScope? Type71 { get; set; }
public global::Dust.PrivateLightAgentConfigurationStatus? Type71 { get; set; }
/// <summary>
///
/// </summary>
public global::Dust.PrivateLightAgentConfigurationModel? Type72 { get; set; }
public global::Dust.PrivateLightAgentConfigurationScope? Type72 { get; set; }
/// <summary>
///
/// </summary>
public double? Type73 { get; set; }
public global::Dust.PrivateLightAgentConfigurationModel? Type73 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
13 changes: 12 additions & 1 deletion src/libs/Dust/Generated/Dust.Models.PrivateAgentMessage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ public sealed partial class PrivateAgentMessage
[global::System.Text.Json.Serialization.JsonPropertyName("costCredits")]
public int? CostCredits { get; set; }

/// <summary>
/// Aggregated AWU credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches; null otherwise.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("subAgentCostCredits")]
public double? SubAgentCostCredits { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -194,6 +200,9 @@ public sealed partial class PrivateAgentMessage
/// <param name="costCredits">
/// Cost of producing this agent message, in AWU credits (intelligence + tool credits). Null when no billable usage is attributed to the message.
/// </param>
/// <param name="subAgentCostCredits">
/// Aggregated AWU credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches; null otherwise.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -220,7 +229,8 @@ public PrivateAgentMessage(
global::System.Collections.Generic.IList<global::Dust.PrivateRichMentionWithStatus>? richMentions,
int? completionDurationMs,
global::System.Collections.Generic.IList<global::Dust.PrivateReaction>? reactions,
int? costCredits)
int? costCredits,
double? subAgentCostCredits)
{
this.Id = id;
this.AgentMessageId = agentMessageId;
Expand All @@ -245,6 +255,7 @@ public PrivateAgentMessage(
this.CompletionDurationMs = completionDurationMs;
this.Reactions = reactions;
this.CostCredits = costCredits;
this.SubAgentCostCredits = subAgentCostCredits;
}

/// <summary>
Expand Down
11 changes: 11 additions & 0 deletions src/libs/Dust/Generated/Dust.Models.PrivateLightAgentMessage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ public sealed partial class PrivateLightAgentMessage
[global::System.Text.Json.Serialization.JsonPropertyName("costCredits")]
public int? CostCredits { get; set; }

/// <summary>
/// Aggregated AWU credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches; null otherwise.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("subAgentCostCredits")]
public double? SubAgentCostCredits { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -175,6 +181,9 @@ public sealed partial class PrivateLightAgentMessage
/// <param name="costCredits">
/// Cost of producing this agent message, in AWU credits (intelligence + tool credits). Null when no billable usage is attributed to the message.
/// </param>
/// <param name="subAgentCostCredits">
/// Aggregated AWU credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches; null otherwise.
/// </param>
/// <param name="activitySteps"></param>
/// <param name="reactions"></param>
#if NET7_0_OR_GREATER
Expand All @@ -200,6 +209,7 @@ public PrivateLightAgentMessage(
global::System.Collections.Generic.IList<global::Dust.PrivateRichMentionWithStatus>? richMentions,
int? completionDurationMs,
int? costCredits,
double? subAgentCostCredits,
global::System.Collections.Generic.IList<global::Dust.PrivateLightAgentMessageActivityStep>? activitySteps,
global::System.Collections.Generic.IList<global::Dust.PrivateReaction>? reactions)
{
Expand All @@ -222,6 +232,7 @@ public PrivateLightAgentMessage(
this.RichMentions = richMentions;
this.CompletionDurationMs = completionDurationMs;
this.CostCredits = costCredits;
this.SubAgentCostCredits = subAgentCostCredits;
this.ActivitySteps = activitySteps;
this.Reactions = reactions;
}
Expand Down
10 changes: 10 additions & 0 deletions src/libs/Dust/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10404,6 +10404,11 @@
"type": "integer",
"nullable": true,
"description": "Cost of producing this agent message, in AWU credits (intelligence + tool credits). Null when no billable usage is attributed to the message."
},
"subAgentCostCredits": {
"type": "number",
"nullable": true,
"description": "Aggregated AWU credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches; null otherwise."
}
}
},
Expand Down Expand Up @@ -10551,6 +10556,11 @@
"nullable": true,
"description": "Cost of producing this agent message, in AWU credits (intelligence + tool credits). Null when no billable usage is attributed to the message."
},
"subAgentCostCredits": {
"type": "number",
"nullable": true,
"description": "Aggregated AWU credit cost of all sub-agents (run_agent / agent_handover) spawned recursively by this message. Computed only on single-message fetches; null otherwise."
},
"activitySteps": {
"type": "array",
"items": {
Expand Down