Skip to main content

Crate kcode_k1_chat_state

Crate kcode_k1_chat_state 

Source
Expand description

§Open-format K1 Chat State 0.9.1

ActorState owns provider-free scheduling over Chatend 0.8.1. It preserves the 0.9.0 inference, stage, arrival, recovery, retry, and tool-lifecycle contracts.

The additive idle-context methods append canonical startup context without scheduling inference: accept_idle_context_box, accept_idle_context_tool_call, and accept_idle_context_tool_return. They require a quiet, non-halted actor. Tool calls and results use Chatend’s canonical correlation metadata and ordering. A later ordinary triggering arrival, normally the first User Message, schedules the single provider turn that sees the startup context. These methods perform no tool execution or authorization and are intended for a trusted first-send owner.

All box conventions remain open strings. The package owns no persistence, HTTP, provider execution, Kmap access, migration, retry, or deployment.

Structs§

ActorState
BoxId
ChatBox
DispatchedToolCall
InferenceStart
ProviderCall
ToolCallId
ToolMessageMetadata
ToolResultMetadata
ToolResultV2Metadata

Enums§

ProviderGenerated
RecoveryError
StateError
TransitionError

Constants§

AGENT_ATTACHMENT_TYPE
AGENT_MESSAGE_TYPE
AGENT_RESPONSE_TYPE
ATTACHMENT_TYPE
SYSTEM_MESSAGE_TYPE
TOOL_ATTACHMENT_TYPE
TOOL_CALL_TYPE
TOOL_MESSAGE_TYPE
TOOL_RESULT_TYPE
USER_ATTACHMENT_TYPE
USER_MESSAGE_TYPE