story-kit: merge 309_story_show_token_cost_breakdown_in_expanded_work_item_detail_panel
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user