pub struct ToolsExtract {
pub where: BTreeMap<String, String>,
pub item: Option<String>,
pub name_field: String,
pub skip_names: Vec<String>,
pub args_omit: Vec<String>,
pub result_coalesce: Vec<String>,
}Expand description
Flat tool-item mapping: each matching record’s item object becomes one
ToolInvocation.
Fields§
§where: BTreeMap<String, String>§item: Option<String>Dotted path to the tool object within the record; omit when the record itself is the item.
name_field: StringField of the item whose string value is the invocation name; records without it are skipped.
skip_names: Vec<String>Names that are not tools (e.g. message/reasoning items).
args_omit: Vec<String>Structural keys excluded from args; whatever remains is the args
object, null when empty.
result_coalesce: Vec<String>Result = first present of these item fields.
Trait Implementations§
Source§impl Clone for ToolsExtract
impl Clone for ToolsExtract
Source§fn clone(&self) -> ToolsExtract
fn clone(&self) -> ToolsExtract
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 ToolsExtract
impl Debug for ToolsExtract
Source§impl<'de> Deserialize<'de> for ToolsExtract
impl<'de> Deserialize<'de> for ToolsExtract
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
Auto Trait Implementations§
impl Freeze for ToolsExtract
impl RefUnwindSafe for ToolsExtract
impl Send for ToolsExtract
impl Sync for ToolsExtract
impl Unpin for ToolsExtract
impl UnsafeUnpin for ToolsExtract
impl UnwindSafe for ToolsExtract
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