pub struct ToolCatalog {
pub tools: Vec<ToolCatalogEntry>,
pub tool_list_notes: Vec<String>,
/* private fields */
}Fields§
§tools: Vec<ToolCatalogEntry>§tool_list_notes: Vec<String>Implementations§
Source§impl ToolCatalog
impl ToolCatalog
pub fn from_tool_definitions(tools: Vec<ToolDefinition>) -> ToolCatalog
pub fn from_tools( tools: Vec<ToolManifest>, contracts: BTreeMap<String, Arc<ToolContract>>, ) -> ToolCatalog
pub fn callable_tools_iter(&self) -> impl Iterator<Item = &ToolManifest>
pub fn callable_tools(&self) -> Vec<ToolManifest>
pub fn showcased_tools_iter(&self) -> impl Iterator<Item = &ToolManifest>
pub fn showcased_tools(&self) -> Vec<ToolManifest>
pub fn searchable_tools_iter(&self) -> impl Iterator<Item = &ToolCatalogEntry>
pub fn omitted_tools_iter(&self) -> impl Iterator<Item = &ToolCatalogEntry>
pub fn has_callable_tool(&self, tool_name: &str) -> bool
pub fn tool_availability(&self, tool_name: &str) -> Option<ToolAvailability>
pub fn tool_names(&self) -> Arc<Vec<String>> ⓘ
pub fn tool_names_fingerprint(&self) -> PromptFingerprint
pub fn omitted_tool_count(&self) -> usize
pub fn model_tool_specs(&self) -> Arc<Vec<LlmToolSpec>> ⓘ
pub fn prompt_tool_docs(&self) -> &str
pub fn filter_prompt_contributions( &self, contributions: Vec<PromptContribution>, ) -> Vec<PromptContribution>
Trait Implementations§
Source§impl Clone for ToolCatalog
impl Clone for ToolCatalog
Source§fn clone(&self) -> ToolCatalog
fn clone(&self) -> ToolCatalog
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 ToolCatalog
impl Debug for ToolCatalog
Source§impl Default for ToolCatalog
impl Default for ToolCatalog
Source§fn default() -> ToolCatalog
fn default() -> ToolCatalog
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCatalog
impl<'de> Deserialize<'de> for ToolCatalog
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCatalog, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCatalog, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ToolCatalog
impl Serialize for ToolCatalog
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 ToolCatalog
impl !RefUnwindSafe for ToolCatalog
impl !UnwindSafe for ToolCatalog
impl Send for ToolCatalog
impl Sync for ToolCatalog
impl Unpin for ToolCatalog
impl UnsafeUnpin for ToolCatalog
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