feat(observability): propagate optional cost_usd on agent end

This commit is contained in:
Chummy 2026-02-17 17:57:34 +08:00
parent 52a4c9d2b8
commit 8371f412f8
6 changed files with 15 additions and 1 deletions

View file

@ -27,6 +27,7 @@ pub enum ObserverEvent {
AgentEnd {
duration: Duration,
tokens_used: Option<u64>,
cost_usd: Option<f64>,
},
/// A tool call is about to be executed.
ToolCallStart {