pub struct AgentKit { /* private fields */ }Implementations§
Source§impl AgentKit
impl AgentKit
pub fn new() -> Self
pub async fn load_mcpconfig( &mut self, path: impl AsRef<Path>, ) -> AgentResult<()>
pub fn load_skill(&mut self, skill_dir: impl Into<PathBuf>) -> AgentResult<()>
pub fn attach_system_prompt(&self, origin: &str) -> String
pub fn add_tool<T: Tool + 'static>(&mut self, tool: T)
pub fn add_tool_box(&mut self, tool: Box<dyn Tool>)
pub async fn add_mcp_server<I, S>(&mut self, cmd: S, args: I) -> AgentResult<()>
pub async fn execute_tool( &mut self, name: String, arguments: Value, ) -> AgentResult<ToolCallResult>
pub fn tool_definitions(&self) -> &[ToolDefinition]
Auto Trait Implementations§
impl Freeze for AgentKit
impl !RefUnwindSafe for AgentKit
impl Send for AgentKit
impl Sync for AgentKit
impl Unpin for AgentKit
impl UnsafeUnpin for AgentKit
impl !UnwindSafe for AgentKit
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