pub struct ToolGroupInfo {
pub id: String,
pub title: String,
pub description: String,
pub instructions: Option<String>,
}Expand description
Group membership a single Tool declares for itself.
A static tool uses this to say “I belong to bundle X” without knowing the
other members. The registry (ToolSet) collects every tool that declares
the same id and assembles the full ToolGroup, so the member list always
reflects the tools actually registered (no stale or missing entries).
Share one constructor across a bundle’s tools to keep the metadata identical; when ids collide, the first-registered tool’s metadata wins.
Fields§
§id: StringStable group id, unique across the engine (for example fs_workspace).
title: StringHuman-facing group title.
description: StringConcise summary of what this bundle of tools does.
instructions: Option<String>Optional usage instructions describing how the member tools work together. Reference for the model, never a runtime directive.
Trait Implementations§
Source§impl Clone for ToolGroupInfo
impl Clone for ToolGroupInfo
Source§fn clone(&self) -> ToolGroupInfo
fn clone(&self) -> ToolGroupInfo
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 ToolGroupInfo
impl Debug for ToolGroupInfo
Source§impl Default for ToolGroupInfo
impl Default for ToolGroupInfo
Source§fn default() -> ToolGroupInfo
fn default() -> ToolGroupInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolGroupInfo
impl<'de> Deserialize<'de> for ToolGroupInfo
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 ToolGroupInfo
impl RefUnwindSafe for ToolGroupInfo
impl Send for ToolGroupInfo
impl Sync for ToolGroupInfo
impl Unpin for ToolGroupInfo
impl UnsafeUnpin for ToolGroupInfo
impl UnwindSafe for ToolGroupInfo
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