pub enum TextSearchBehavior {
BeforeInvoke,
OnDemandFunctionCalling,
}Expand description
When a TextSearchProvider searches.
Variants§
BeforeInvoke
Search the run’s input before every run and add the results.
OnDemandFunctionCalling
Give the model a search tool to call when it wants to.
Trait Implementations§
Source§impl Clone for TextSearchBehavior
impl Clone for TextSearchBehavior
Source§fn clone(&self) -> TextSearchBehavior
fn clone(&self) -> TextSearchBehavior
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 moreimpl Copy for TextSearchBehavior
Source§impl Debug for TextSearchBehavior
impl Debug for TextSearchBehavior
Source§impl Default for TextSearchBehavior
impl Default for TextSearchBehavior
Source§fn default() -> TextSearchBehavior
fn default() -> TextSearchBehavior
Returns the “default value” for a type. Read more
impl Eq for TextSearchBehavior
Source§impl PartialEq for TextSearchBehavior
impl PartialEq for TextSearchBehavior
impl StructuralPartialEq for TextSearchBehavior
Auto Trait Implementations§
impl Freeze for TextSearchBehavior
impl RefUnwindSafe for TextSearchBehavior
impl Send for TextSearchBehavior
impl Sync for TextSearchBehavior
impl Unpin for TextSearchBehavior
impl UnsafeUnpin for TextSearchBehavior
impl UnwindSafe for TextSearchBehavior
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