pub struct ToolEntry {
pub tool: Arc<dyn AgentTool>,
pub prompt_snippet: Option<String>,
pub prompt_guidelines: Vec<String>,
pub exposure: ToolExposure,
pub default_active: bool,
pub source: ToolSource,
pub namespace: Option<JsonValue>,
pub annotations: Option<JsonValue>,
pub reaches_tools: Option<JsonValue>,
}Expand description
A tool with the metadata the session needs.
Fields§
§tool: Arc<dyn AgentTool>Executable tool.
prompt_snippet: Option<String>Prompt snippet (tools without one are not listed in the prompt).
prompt_guidelines: Vec<String>Prompt guidelines.
exposure: ToolExposureExposure.
default_active: boolActivated on registration.
source: ToolSourceOrigin.
namespace: Option<JsonValue>Namespace.
annotations: Option<JsonValue>Annotations.
reaches_tools: Option<JsonValue>Reachable tools.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolEntry
impl !UnwindSafe for ToolEntry
impl Freeze for ToolEntry
impl Send for ToolEntry
impl Sync for ToolEntry
impl Unpin for ToolEntry
impl UnsafeUnpin for ToolEntry
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