pub enum AgentSwarmBatchViolation {
MultipleSwarms {
has_other_tools: bool,
},
MixedWithOtherTools,
}Expand description
Why a batch of tool calls violates the agent_swarm exclusivity rule:
agent_swarm must be the only tool call in a single model response.
Variants§
MultipleSwarms
More than one agent_swarm call appeared in the same response.
MixedWithOtherTools
Exactly one agent_swarm call was mixed with other tool calls.
Implementations§
Source§impl AgentSwarmBatchViolation
impl AgentSwarmBatchViolation
Sourcepub fn deny_message(self) -> String
pub fn deny_message(self) -> String
Actionable retry text returned to the model for every call in the
denied batch, so it re-issues agent_swarm by itself.
Trait Implementations§
Source§impl Clone for AgentSwarmBatchViolation
impl Clone for AgentSwarmBatchViolation
impl Copy for AgentSwarmBatchViolation
Source§impl Debug for AgentSwarmBatchViolation
impl Debug for AgentSwarmBatchViolation
impl Eq for AgentSwarmBatchViolation
Source§impl PartialEq for AgentSwarmBatchViolation
impl PartialEq for AgentSwarmBatchViolation
impl StructuralPartialEq for AgentSwarmBatchViolation
Auto Trait Implementations§
impl Freeze for AgentSwarmBatchViolation
impl RefUnwindSafe for AgentSwarmBatchViolation
impl Send for AgentSwarmBatchViolation
impl Sync for AgentSwarmBatchViolation
impl Unpin for AgentSwarmBatchViolation
impl UnsafeUnpin for AgentSwarmBatchViolation
impl UnwindSafe for AgentSwarmBatchViolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.