pub enum BusyBehavior {
Queue,
Wait,
Steer,
Fail,
}Expand description
What an agent call does when the conversation it continues is running
a turn, or has prompts queued (agent.on_busy).
Variants§
Queue
Queue the prompt as a background job that runs after the turns ahead.
Wait
Keep the call waiting until the turns ahead end, then run it.
Steer
Add the prompt to the running turn when the agent’s ACP server can be
steered, otherwise apply BusyConfig::steer_fallback.
Fail
Refuse the call as busy.
Trait Implementations§
Source§impl Clone for BusyBehavior
impl Clone for BusyBehavior
impl Copy for BusyBehavior
Source§impl Debug for BusyBehavior
impl Debug for BusyBehavior
Source§impl Default for BusyBehavior
impl Default for BusyBehavior
Source§impl<'de> Deserialize<'de> for BusyBehavior
impl<'de> Deserialize<'de> for BusyBehavior
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BusyBehavior
Source§impl PartialEq for BusyBehavior
impl PartialEq for BusyBehavior
Source§impl Serialize for BusyBehavior
impl Serialize for BusyBehavior
impl StructuralPartialEq for BusyBehavior
Auto Trait Implementations§
impl Freeze for BusyBehavior
impl RefUnwindSafe for BusyBehavior
impl Send for BusyBehavior
impl Sync for BusyBehavior
impl Unpin for BusyBehavior
impl UnsafeUnpin for BusyBehavior
impl UnwindSafe for BusyBehavior
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