MCPcopy Create free account
hub / github.com/github/copilot-sdk / SessionCompactionStartData

Struct SessionCompactionStartData

go/rpc/zsession_events.go:315–322  ·  view source on GitHub ↗

Context window breakdown at the start of LLM-powered conversation compaction

Source from the content-addressed store, hash-verified

313
314// Context window breakdown at the start of LLM-powered conversation compaction
315type 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
324func (*SessionCompactionStartData) sessionEventData() {}
325func (*SessionCompactionStartData) Type() SessionEventType {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected