Skip to main content

LlmExecutor

Trait LlmExecutor 

Source
pub trait LlmExecutor: Send + Sync {
    // Required method
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        input: LlmExecutionInput,
    ) -> Pin<Box<dyn Future<Output = Result<LlmExecutionOutput, LlmExecutionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Async runtime adapter for LLM calls.

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, input: LlmExecutionInput, ) -> Pin<Box<dyn Future<Output = Result<LlmExecutionOutput, LlmExecutionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Executes one workflow LLM node.

Implementations on Foreign Types§

Source§

impl LlmExecutor for SimpleAgentsClient

Source§

fn execute<'life0, 'async_trait>( &'life0 self, input: LlmExecutionInput, ) -> Pin<Box<dyn Future<Output = Result<LlmExecutionOutput, LlmExecutionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§