Skip to main content

Module chatend

Module chatend 

Source
Expand description

Kennedy’s reconstructed, provider-independent durable session context.

This module owns Kennedy’s box model, context projection, context representations, token policy, and replay rules. Durable session history is owned by the separate kcode-session-log package.

Structs§

BoxContent
BoxId
BoxState
CanonicalRevision
Chatend
ContextProjection
Event
EventId
ObjectLocation
ObjectMetadata
PendingId
ProjectionItem
ProviderCostEstimate
One compatibility price returned by the application-owned provider catalog.
ProviderCostSummary
Read-time cost fields reconstructed from one immutable session archive.
ProviderTokenUsage
Provider token dimensions retained by historical Chatend receipts.
Session
SessionMetadata
SessionStatus
ToolSlot
ToolSlotInput
ToolState
Transition

Enums§

BoxOwner
BoxRepresentation
EventKind
PendingKind
ProviderMetering
Provider metering that can be reconstructed without changing durable history.
Representation
SessionKind

Constants§

ESTIMATED_BYTES_PER_TOKEN
FORMAT_VERSION
MAX_OBJECT_BYTES

Functions§

estimate_tokens

Type Aliases§

ProviderCostEstimator
Application callback used only for legacy receipts that did not store a cost.