pub enum AllowedToolMode {
Auto,
Required,
}Expand description
Policy for how strongly the allowed-tool list should be enforced.
§Examples
let mode = providers_kit::generation::AllowedToolMode::Required;
assert!(matches!(mode, providers_kit::generation::AllowedToolMode::Required));Variants§
Auto
Lets the provider decide how strictly to enforce the allowed-tool list.
Required
Requires the provider to keep tool calls inside the allowed-tool list.
Trait Implementations§
Source§impl Clone for AllowedToolMode
impl Clone for AllowedToolMode
impl Copy for AllowedToolMode
Source§impl Debug for AllowedToolMode
impl Debug for AllowedToolMode
Source§impl<'de> Deserialize<'de> for AllowedToolMode
impl<'de> Deserialize<'de> for AllowedToolMode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AllowedToolMode
Source§impl PartialEq for AllowedToolMode
impl PartialEq for AllowedToolMode
Source§impl Serialize for AllowedToolMode
impl Serialize for AllowedToolMode
impl StructuralPartialEq for AllowedToolMode
Auto Trait Implementations§
impl Freeze for AllowedToolMode
impl RefUnwindSafe for AllowedToolMode
impl Send for AllowedToolMode
impl Sync for AllowedToolMode
impl Unpin for AllowedToolMode
impl UnsafeUnpin for AllowedToolMode
impl UnwindSafe for AllowedToolMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.