Context window breakdown at the start of LLM-powered conversation compaction
| 313 | |
| 314 | // Context window breakdown at the start of LLM-powered conversation compaction |
| 315 | type SessionCompactionStartData struct { |
| 316 | // Token count from non-system messages (user, assistant, tool) at compaction start |
| 317 | ConversationTokens *int64 `json:"conversationTokens,omitempty"` |
| 318 | // Token count from system message(s) at compaction start |
| 319 | SystemTokens *int64 `json:"systemTokens,omitempty"` |
| 320 | // Token count from tool definitions at compaction start |
| 321 | ToolDefinitionsTokens *int64 `json:"toolDefinitionsTokens,omitempty"` |
| 322 | } |
| 323 | |
| 324 | func (*SessionCompactionStartData) sessionEventData() {} |
| 325 | func (*SessionCompactionStartData) Type() SessionEventType { |
nothing calls this directly
no outgoing calls
no test coverage detected