Skip to main content

simple_agent

Function simple_agent 

Source
pub fn simple_agent<F, Fut>(
    name: impl Into<String>,
    description: impl Into<String>,
    handler: F,
) -> AgentMcpHandler
where F: Fn(String) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<String, String>> + Send + 'static,
Expand description

Helper to create a simple agent handler from a closure