Skip to main content

Input

Enum Input 

Source
pub enum Input {
Show 17 variants Op(Op, Reply), ObserverCompleted(Completion), Agent(Box<AgentEvent>), Title(Box<AssistantMessage>), BugSummaryEnded(u64), MemoryKept(Outcome), BashDone { command: String, exclude: bool, result: Result<Value, String>, reply: Reply, }, BashOutput { id: Option<String>, delta: String, }, Close(Sender<()>), HandOver(Sender<()>), EventLane(LaneCall, Sender<LaneAnswer>), ActivityTick, Turn(Request), HarnessIdle, Woken, Scheduled(Value), TurnChecked { id: u64, failed: Vec<String>, },
}
Expand description

What reaches the actor.

Variants§

§

Op(Op, Reply)

§

ObserverCompleted(Completion)

§

Agent(Box<AgentEvent>)

§

Title(Box<AssistantMessage>)

The model’s title for the session arrived.

§

BugSummaryEnded(u64)

The bug report summary with this number ended.

§

MemoryKept(Outcome)

A background memory keep ended (crate::auto_memory::keep): shown to the user when it is worth a line.

§

BashDone

A user’s command ended: its BashResult (camelCase, as recorded), or the error that failed it.

Fields

§command: String
§exclude: bool
§reply: Reply
§

BashOutput

A chunk of a running user command’s output (bash_execution_update).

Fields

§delta: String
§

Close(Sender<()>)

Stop the lane; the sender is told when done.

§

HandOver(Sender<()>)

Stop the lane for a successor worker (its shell jobs keep running for it); the sender is told when done.

§

EventLane(LaneCall, Sender<LaneAnswer>)

The completion-event dispatcher’s question about the root lane (crate::async_events).

§

ActivityTick

Report whether detached work is active (the worker keeps itself alive while it is).

§

Turn(Request)

The durable runtime running the turn (crate::turns).

§

HarnessIdle

The durable runtime has no work for the root conversation.

§

Woken

A compaction’s work off the actor ended (core::compacting).

§

Scheduled(Value)

A fired schedule’s prompt that waited for the run in progress (core::schedule_ops).

§

TurnChecked

The turn-end checks numbered id ended (core::turn_guard): the labels and evidence of the ones that failed.

Fields

§id: u64
§failed: Vec<String>

Auto Trait Implementations§

§

impl !RefUnwindSafe for Input

§

impl !Sync for Input

§

impl !UnwindSafe for Input

§

impl Forget for Input

§

impl Freeze for Input

§

impl Move for Input

§

impl Send for Input

§

impl Unpin for Input

§

impl UnsafeUnpin for Input

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. 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 = !

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

fn try_from(value: U) -> Result<T, !>

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