pub enum PrepareResult {
Ready,
Handled,
OAuthRequired {
auth_url: String,
},
UserChoiceRequired {
id: String,
prompt: String,
choices: Vec<String>,
default: usize,
response_url: String,
},
CompactionApplied,
}Expand description
The result of preparing an input message before sending it to the model.
Variants§
Ready
The input was processed and the history manager is ready for completion.
Handled
The input was handled without needing a completion (e.g. duplicate, closed thread).
OAuthRequired
An OAuth challenge must be forwarded to the user.
UserChoiceRequired
A user choice prompt must be surfaced to the user.
CompactionApplied
Compaction was applied to the in-memory history.
Trait Implementations§
Source§impl Debug for PrepareResult
impl Debug for PrepareResult
Source§impl PartialEq for PrepareResult
impl PartialEq for PrepareResult
Source§impl Serialize for PrepareResult
impl Serialize for PrepareResult
impl StructuralPartialEq for PrepareResult
Auto Trait Implementations§
impl Freeze for PrepareResult
impl RefUnwindSafe for PrepareResult
impl Send for PrepareResult
impl Sync for PrepareResult
impl Unpin for PrepareResult
impl UnsafeUnpin for PrepareResult
impl UnwindSafe for PrepareResult
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