pub struct TafcConfig {
pub enabled: bool,
pub complexity_threshold: f64,
}Expand description
Configuration for Think-Augmented Function Calling (TAFC).
Fields§
§enabled: boolEnable TAFC schema augmentation. Default: false.
complexity_threshold: f64Complexity threshold tau in [0.0, 1.0]; tools >= tau are augmented. Default: 0.6.
Implementations§
Source§impl TafcConfig
impl TafcConfig
Sourcepub fn validated(self) -> TafcConfig
pub fn validated(self) -> TafcConfig
Validate and clamp complexity_threshold to [0.0, 1.0]. Resets NaN/Infinity to 0.6.
Trait Implementations§
Source§impl Clone for TafcConfig
impl Clone for TafcConfig
Source§fn clone(&self) -> TafcConfig
fn clone(&self) -> TafcConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 TafcConfig
impl Debug for TafcConfig
Source§impl Default for TafcConfig
impl Default for TafcConfig
Source§fn default() -> TafcConfig
fn default() -> TafcConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TafcConfig
impl<'de> Deserialize<'de> for TafcConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TafcConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TafcConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TafcConfig
impl Serialize for TafcConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TafcConfig
impl RefUnwindSafe for TafcConfig
impl Send for TafcConfig
impl Sync for TafcConfig
impl Unpin for TafcConfig
impl UnsafeUnpin for TafcConfig
impl UnwindSafe for TafcConfig
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