Skip to main content

AgentExt

Trait AgentExt 

Source
pub trait AgentExt {
    // Required method
    fn as_tool(
        &self,
        name: impl Into<String>,
        description: impl Into<String>,
    ) -> AgentTool;
}
Expand description

agent.as_tool(name, description).

Required Methods§

Source

fn as_tool( &self, name: impl Into<String>, description: impl Into<String>, ) -> AgentTool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AgentExt for Agent

Source§

fn as_tool( &self, name: impl Into<String>, description: impl Into<String>, ) -> AgentTool

Implementors§