pub enum Request {
Generation {
users: Vec<Message>,
answer: Answer<Result<GenerationStart, StartError>>,
},
Event(Box<AgentEvent>),
Overflow {
message: Box<AssistantMessage>,
answer: Answer<Settled>,
},
RoundEnded {
calls: usize,
failed: usize,
answer: Answer<()>,
},
}Expand description
What the runtime’s threads send the actor.
Variants§
Generation
A generation is about to request the model; users are the user messages placed since the previous one.
Event(Box<AgentEvent>)
An agent-loop event of the running turn.
Overflow
A response overflowed the context window (crate::auto_compaction::overflowed): the actor compacts and asks
for the request again, or settles it as the answer to commit.
RoundEnded
The root’s tool round ran its last cell (turn_end, before its results commit and the boundary places
queued messages): calls calls, failed of them errors. The actor answers once it steered the run if due.
Auto Trait Implementations§
impl Forget for Request
impl Freeze for Request
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more