pub enum AgentOutput {
Action(AgentAction),
Finish(AgentFinish),
}Variants§
Action(AgentAction)
Finish(AgentFinish)
Trait Implementations§
Source§impl Clone for AgentOutput
impl Clone for AgentOutput
Source§fn clone(&self) -> AgentOutput
fn clone(&self) -> AgentOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentOutput
impl Debug for AgentOutput
Source§impl Runnable<HashMap<String, String>, AgentOutput> for McpAgent
impl Runnable<HashMap<String, String>, AgentOutput> for McpAgent
fn invoke( &self, input: HashMap<String, String>, ) -> Pin<Box<dyn Future<Output = Result<AgentOutput, Error>> + Send>>
fn clone_to_owned( &self, ) -> Box<dyn Runnable<HashMap<String, String>, AgentOutput> + Send + Sync>
fn invoke_with_config( &self, input: I, _config: Option<HashMap<String, Value>>, ) -> Pin<Box<dyn Future<Output = Result<O, Error>> + Send>>
fn batch( &self, inputs: Vec<I>, ) -> Pin<Box<dyn Future<Output = Vec<Result<O, Error>>> + Send>>
fn batch_with_config( &self, inputs: Vec<I>, _config: Option<HashMap<String, Value>>, ) -> Pin<Box<dyn Future<Output = Vec<Result<O, Error>>> + Send>>
fn stream(&self, input: I) -> Box<dyn Stream<Item = Result<O, Error>> + Send>
fn astream( &self, _input: I, ) -> Pin<Box<dyn Future<Output = Box<dyn Stream<Item = Result<O, Error>> + Send>> + Send>>
Source§impl Runnable<HashMap<String, String>, AgentOutput> for SimpleAgentRunner
impl Runnable<HashMap<String, String>, AgentOutput> for SimpleAgentRunner
fn invoke( &self, inputs: HashMap<String, String>, ) -> Pin<Box<dyn Future<Output = Result<AgentOutput, Error>> + Send>>
fn clone_to_owned( &self, ) -> Box<dyn Runnable<HashMap<String, String>, AgentOutput> + Send + Sync>
fn invoke_with_config( &self, input: I, _config: Option<HashMap<String, Value>>, ) -> Pin<Box<dyn Future<Output = Result<O, Error>> + Send>>
fn batch( &self, inputs: Vec<I>, ) -> Pin<Box<dyn Future<Output = Vec<Result<O, Error>>> + Send>>
fn batch_with_config( &self, inputs: Vec<I>, _config: Option<HashMap<String, Value>>, ) -> Pin<Box<dyn Future<Output = Vec<Result<O, Error>>> + Send>>
fn stream(&self, input: I) -> Box<dyn Stream<Item = Result<O, Error>> + Send>
fn astream( &self, _input: I, ) -> Pin<Box<dyn Future<Output = Box<dyn Stream<Item = Result<O, Error>> + Send>> + Send>>
Auto Trait Implementations§
impl Freeze for AgentOutput
impl RefUnwindSafe for AgentOutput
impl Send for AgentOutput
impl Sync for AgentOutput
impl Unpin for AgentOutput
impl UnwindSafe for AgentOutput
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