Skip to main content

Op

Enum Op 

Source
pub enum Op {
Show 19 variants SendMessage {
Show 14 fields content: String, mode: TurnLoopMode, model: String, goal_objective: Option<String>, reasoning_effort: Option<String>, reasoning_effort_auto: bool, auto_model: bool, allow_shell: bool, trust_mode: bool, auto_approve: bool, approval_mode: ApprovalMode, temperature: Option<f32>, top_p: Option<f32>, max_output_tokens: Option<u32>,
}, CancelRequest, ApproveToolCall { id: String, }, DenyToolCall { id: String, }, SpawnSubAgent { prompt: String, }, ListSubAgents, ChangeMode { mode: TurnLoopMode, }, SetModel { model: String, }, SetCompaction { config: CompactionConfig, }, SyncSession { messages: Vec<Message>, system_prompt: Option<SystemPrompt>, model: String, workspace: PathBuf, }, ApplyKernelResume { hints: KernelResumeHints, }, CompactContext, Rlm { content: String, model: String, child_model: String, max_depth: u32, }, EditLastTurn { new_message: String, }, TruncateBeforeLastUserMessage { reply: Sender<bool>, }, QueryContext { reply: Sender<ThreadContextSnapshot>, }, QueryHarnessTaskGraph { reply: Sender<Value>, }, QueryHarnessCycles { reply: Sender<Value>, }, Shutdown,
}
Expand description

Operations that can be submitted to the engine.

Variants§

§

SendMessage

Send a message to the AI.

Fields

§content: String
§model: String
§goal_objective: Option<String>
§reasoning_effort: Option<String>

Reasoning-effort tier: "off" | "low" | "medium" | "high" | "max". None lets the provider apply its default.

§reasoning_effort_auto: bool

True when the user selected auto thinking, even though the UI sends a concrete per-turn value to the model API.

§auto_model: bool

True when the user selected auto model routing.

§allow_shell: bool
§trust_mode: bool
§auto_approve: bool
§approval_mode: ApprovalMode
§temperature: Option<f32>
§top_p: Option<f32>
§max_output_tokens: Option<u32>
§

CancelRequest

Cancel the current request.

§

ApproveToolCall

Approve a tool call that requires permission.

Fields

§

DenyToolCall

Deny a tool call that requires permission.

Fields

§

SpawnSubAgent

Spawn a sub-agent.

Fields

§prompt: String
§

ListSubAgents

List current sub-agents and their status.

§

ChangeMode

Change the operating mode.

Fields

§

SetModel

Update the model being used.

Fields

§model: String
§

SetCompaction

Update auto-compaction settings.

Fields

§

SyncSession

Sync engine session state (used for resume/load).

Fields

§messages: Vec<Message>
§system_prompt: Option<SystemPrompt>
§model: String
§workspace: PathBuf
§

ApplyKernelResume

Restore kernel turn frame from persisted event-log projection (Phase 3b 6e).

Fields

§

CompactContext

Run context compaction immediately.

§

Rlm

Run a Recursive Language Model (RLM) turn per Algorithm 1 of Zhang et al. (arXiv:2512.24601). The prompt is stored in the REPL as context; the root LLM only sees metadata.

Fields

§content: String

The user’s prompt — stored in REPL, NOT in the LLM context.

§model: String

The model to use for root LLM calls.

§child_model: String

The model to use for sub-LLM (llm_query) calls.

§max_depth: u32

Recursion budget for sub_rlm() calls. Paper experiments use depth=1; defaults set by the /rlm command.

§

EditLastTurn

Edit the last user message: remove the last user+assistant exchange from the session, then re-send with the new content.

Fields

§new_message: String
§

TruncateBeforeLastUserMessage

Drop the last user message and everything after it (#383 /edit, F4 HTTP).

Fields

§reply: Sender<bool>
§

QueryContext

Return a TUI-aligned context usage snapshot (Zagens / runtime API).

§

QueryHarnessTaskGraph

Return derived LHT task graph JSON (GET …/harness/task-graph).

Fields

§reply: Sender<Value>
§

QueryHarnessCycles

Return cycle briefings + archive summaries (GET …/harness/cycles).

Fields

§reply: Sender<Value>
§

Shutdown

Shutdown the engine.

Trait Implementations§

Source§

impl Debug for Op

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Op

§

impl !UnwindSafe for Op

§

impl Freeze for Op

§

impl Send for Op

§

impl Sync for Op

§

impl Unpin for Op

§

impl UnsafeUnpin for Op

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more