pub enum SessionCommand {
Turn(Submission),
TruncateToUserTurns {
keep_user_turns: usize,
response_tx: Sender<Result<usize>>,
},
}Expand description
Commands accepted by the session background loop.
Variants§
Turn(Submission)
Run a full agent turn for a user message.
TruncateToUserTurns
Drop conversation history after keep_user_turns user messages
(and the assistant/tool messages belonging to those turns).
Used when the UI edits a past user message and re-sends.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionCommand
impl !UnwindSafe for SessionCommand
impl Freeze for SessionCommand
impl Send for SessionCommand
impl Sync for SessionCommand
impl Unpin for SessionCommand
impl UnsafeUnpin for SessionCommand
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