MCPcopy
hub / github.com/docker/docker-agent / TokenEvent

Struct TokenEvent

pkg/telemetry/types.go:112–121  ·  view source on GitHub ↗

TOKEN EVENTS TokenEvent represents token usage events

Source from the content-addressed store, hash-verified

110
111// TokenEvent represents token usage events
112type 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
124type TokenPayload struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected