TOKEN EVENTS TokenEvent represents token usage events
| 110 | |
| 111 | // TokenEvent represents token usage events |
| 112 | type TokenEvent struct { |
| 113 | Action string `json:"action"` |
| 114 | ModelName string `json:"model_name"` |
| 115 | SessionID string `json:"session_id"` |
| 116 | AgentName string `json:"agent_name"` |
| 117 | InputTokens int64 `json:"input_tokens"` |
| 118 | OutputTokens int64 `json:"output_tokens"` |
| 119 | TotalTokens int64 `json:"total_tokens"` |
| 120 | Cost float64 `json:"cost"` |
| 121 | } |
| 122 | |
| 123 | // TokenPayload represents the HTTP payload structure for token events |
| 124 | type TokenPayload struct { |
nothing calls this directly
no outgoing calls
no test coverage detected