Skip to main content

SessionCmd

Enum SessionCmd 

Source
pub enum SessionCmd {
    Prompt(String),
    PromptTagged {
        text: String,
        synthetic: SyntheticReason,
    },
    Continue,
    Steer(String),
    Snapshot {
        reply: Sender<Arc<Vec<Item>>>,
    },
    Propose {
        entries: Vec<EntryPayload>,
        reply: Sender<bool>,
    },
    WriteBlob {
        tool_use_id: String,
        content: String,
        reply: Sender<Result<String, String>>,
    },
    TurnFinished {
        end: TurnEnd,
        usage: TokenUsage,
    },
}

Variants§

§

Prompt(String)

A user prompt. Starts a turn, or queues (one-at-a-time promotion).

§

PromptTagged

A prompt whose committed item carries a provenance tag (T2: schema contract + validation-retry feedback ride in as tagged user items).

Fields

§text: String
§

Continue

Continue an interrupted turn (M4/#8): sample against the current projection with no new user item — used on resume when the last item is a user/tool turn the model never answered. No-op if already running.

§

Steer(String)

Mid-turn guidance: admitted durably now, woven into the next sample.

§

Snapshot

Turn task → actor: sample-boundary snapshot refresh.

Fields

§reply: Sender<Arc<Vec<Item>>>
§

Propose

Turn task → actor: commit these entries (durable-ack before reply).

Fields

§reply: Sender<bool>
§

WriteBlob

Turn task → actor: write an oversized tool result to a masked blob (T4 — the actor owns the log, the turn never touches it directly). Replies Ok(path) on success; on write failure the content is handed back in Err so eviction never loses data.

Fields

§tool_use_id: String
§content: String
§

TurnFinished

Turn task → actor: the turn is over (or needs a compaction respawn).

Fields

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V