Skip to main content

Crate kcode_chatend

Crate kcode_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
PreparedProviderProjection
Provider projection prepared after sparse marker reconciliation.
ProjectionItem
ProviderContext
Exact caller-controlled material submitted to one model inference.
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.
ProviderToolDefinition
One provider-visible dynamic tool contract retained with submitted context.
Session
SessionHistoryIntegration
Narrow integration surface used by the kcode-session-history facade.
SessionMetadata
SessionStatus
ToolSlot
ToolSlotInput
ToolState
Transition

Enums§

BoxOwner
BoxRepresentation
CacheExpectation
Cache behavior expected from the relationship between two submissions.
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.