story-kit: merge 309_story_show_token_cost_breakdown_in_expanded_work_item_detail_panel

This commit is contained in:
Dave
2026-03-19 15:40:47 +00:00
parent be9c15efe0
commit ce380ffb52
4 changed files with 259 additions and 2 deletions

View File

@@ -116,6 +116,7 @@ struct AgentOutputResponse {
#[derive(Object, Serialize)]
struct AgentCostEntry {
agent_name: String,
model: Option<String>,
input_tokens: u64,
output_tokens: u64,
cache_creation_input_tokens: u64,
@@ -531,6 +532,7 @@ impl AgentsApi {
.entry(record.agent_name.clone())
.or_insert_with(|| AgentCostEntry {
agent_name: record.agent_name.clone(),
model: record.model.clone(),
input_tokens: 0,
output_tokens: 0,
cache_creation_input_tokens: 0,