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§
Sourcefn 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,
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.