| 263 | |
| 264 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 265 | pub struct AnthropicUsage { |
| 266 | pub input_tokens: u64, |
| 267 | pub output_tokens: u64, |
| 268 | } |
| 269 | |
| 270 | pub fn parse_anthropic_sse(data: &str) -> Option<StreamEvent> { |
| 271 | let event: AnthropicEvent = serde_json::from_str(data).ok()?; |
nothing calls this directly
no outgoing calls
no test coverage detected