pub enum Backend {
Prompt(Arc<dyn LlmBackend>),
Chat(Arc<dyn ChatBackend>),
}Expand description
Whichever kind of backend a turn is being run against.
Callers do not name this: Arc<dyn LlmBackend> and Arc<dyn ChatBackend> both convert
into it, so Agent::prompt takes either and every existing
caller keeps compiling.
Variants§
Prompt(Arc<dyn LlmBackend>)
A backend fed a formatted prompt string.
Chat(Arc<dyn ChatBackend>)
A backend fed structured messages.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Backend
impl !UnwindSafe for Backend
impl Freeze for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
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