pub struct CompletionToolGate {
pub requirement: CompletionRequirement,
}Expand description
Require a named tool to have been called in this conversation.
Fields§
§requirement: CompletionRequirementRequirement from the agent definition (or override).
Trait Implementations§
Source§impl Clone for CompletionToolGate
impl Clone for CompletionToolGate
Source§fn clone(&self) -> CompletionToolGate
fn clone(&self) -> CompletionToolGate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompletionToolGate
impl Debug for CompletionToolGate
Source§impl StopGate for CompletionToolGate
impl StopGate for CompletionToolGate
Source§fn evaluate(
&self,
_agent: &Agent,
state: &dyn ConversationState,
retries_used: u32,
) -> GateDecision
fn evaluate( &self, _agent: &Agent, state: &dyn ConversationState, retries_used: u32, ) -> GateDecision
Evaluate after a final assistant message is appended.
Auto Trait Implementations§
impl Freeze for CompletionToolGate
impl RefUnwindSafe for CompletionToolGate
impl Send for CompletionToolGate
impl Sync for CompletionToolGate
impl Unpin for CompletionToolGate
impl UnsafeUnpin for CompletionToolGate
impl UnwindSafe for CompletionToolGate
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