MCPcopy Index your code
hub / github.com/docker/docker-agent / SessionEndEvent

Struct SessionEndEvent

pkg/telemetry/types.go:200–213  ·  view source on GitHub ↗

SessionEndEvent represents session events

Source from the content-addressed store, hash-verified

198
199// SessionEndEvent represents session events
200type SessionEndEvent struct {
201 Action string `json:"action"`
202 SessionID string `json:"session_id"`
203 AgentName string `json:"agent_name"`
204 Duration int64 `json:"duration_ms"`
205 ToolCalls int `json:"tool_calls"`
206 InputTokens int64 `json:"input_tokens"`
207 OutputTokens int64 `json:"output_tokens"`
208 TotalTokens int64 `json:"total_tokens"`
209 ErrorCount int `json:"error_count"`
210 Cost float64 `json:"cost"`
211 IsSuccess bool `json:"is_success"`
212 Error []string `json:"error"`
213}
214
215// SessionEndPayload represents the HTTP payload structure for session events
216type SessionEndPayload struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected