Skip to main content

Crate kcode_k1_chat_thread_session_actor

Crate kcode_k1_chat_thread_session_actor 

Source
Expand description

§K1 chat-thread session actor public contract 0.3.14

§Constructors

  • open(adapter, key, session, kmap, web_search) recovers one durable thread without Social, SetLaunchNode, RustCode, or WebCode composition.
  • open_with_social(adapter, key, session, kmap, social, web_search) additionally configures Social.
  • open_with_social_and_set_launch_node(adapter, key, session, kmap, social, set_launch_node, web_search) additionally configures SetLaunchNode.
  • open_with_social_and_set_launch_node_and_rust_code(adapter, key, session, kmap, social, set_launch_node, rust_code, web_search) configures persistent selector-aware V1 RustCode without WebCode.
  • open_with_social_and_set_launch_node_and_rust_code_and_web_code(adapter, key, session, kmap, social, set_launch_node, rust_code, web_code, web_search) is the full constructor.

The actor retains its ordered event loop, durable state, inference and model-usage lifecycle, restart generation, session view, snapshots, Stage Runtime coordination, code lanes, and WebSearch behavior.

AcceptStartupContext is handled as one ordered actor command before an ordinary first AcceptUser. It forwards the exact backend-authorized context/profile/policy triple and trusted startup items to Durable Thread. System boxes remain nontriggering; found Kmap nodes execute and persist through Durable Thread’s ordinary Kmap dispatcher. A startup internal failure is terminal for this actor after the ordinary failed Tool Result has been persisted. Successful startup schedules no provider work; the later User Message remains the first inference trigger.

RustCode recovery preserves the V1 selector, unpublished KTO revision, editable source boxes, and check state. Successful user acceptance, restart, authorization clearing, Stage handling, unified code completion, and shutdown delegate through StageRuntime.

This package owns no persistence format, provider prompt, HTTP representation, budget assignment, launch-node lookup, migration, daemon composition, deployment, or live-behavior proof.

Functions§

open
open_with_social
open_with_social_and_set_launch_node
open_with_social_and_set_launch_node_and_rust_code
open_with_social_and_set_launch_node_and_rust_code_and_web_code