pub struct SkillsTool;Expand description
Built-in tool that loads skill instructions at runtime.
Trait Implementations§
Source§impl Debug for SkillsTool
impl Debug for SkillsTool
Source§impl<Ctx: Send + Sync + 'static> ToolFunction<Ctx> for SkillsTool
impl<Ctx: Send + Sync + 'static> ToolFunction<Ctx> for SkillsTool
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description exposed to the LLM.
Source§fn input_schema(&self) -> Value
fn input_schema(&self) -> Value
JSON Schema describing the arguments this tool accepts.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
input: Value,
_ctx: &'life1 Arc<ToolExecutionContext<Ctx>>,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
input: Value,
_ctx: &'life1 Arc<ToolExecutionContext<Ctx>>,
) -> Pin<Box<dyn Future<Output = Result<ToolResult, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run the tool with the validated arguments.
Source§fn to_sdk_tool(&self) -> Tool
fn to_sdk_tool(&self) -> Tool
Convert this tool into the SDK representation used for chat requests.
Auto Trait Implementations§
impl Freeze for SkillsTool
impl RefUnwindSafe for SkillsTool
impl Send for SkillsTool
impl Sync for SkillsTool
impl Unpin for SkillsTool
impl UnsafeUnpin for SkillsTool
impl UnwindSafe for SkillsTool
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