pub struct AgentRuntimeExecutor { /* private fields */ }Expand description
Adapts the agent runtime to the service’s run executor contract.
Implementations§
Source§impl AgentRuntimeExecutor
impl AgentRuntimeExecutor
pub fn new(resolver: Arc<dyn AgentRuntimeResolver>) -> Self
Trait Implementations§
Source§impl RunExecutor for AgentRuntimeExecutor
impl RunExecutor for AgentRuntimeExecutor
fn execute<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
agent_name: String,
input: String,
history: Vec<Message>,
context: ToolContext,
cancellation: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<ExecutionReport, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn execute_with_event_sink<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
agent_name: String,
input: String,
history: Vec<Message>,
context: ToolContext,
cancellation: CancellationToken,
event_sink: Arc<dyn EventSink>,
) -> Pin<Box<dyn Future<Output = Result<ExecutionReport, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_event_sink<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
agent_name: String,
input: String,
history: Vec<Message>,
context: ToolContext,
cancellation: CancellationToken,
event_sink: Arc<dyn EventSink>,
) -> Pin<Box<dyn Future<Output = Result<ExecutionReport, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes while forwarding runtime events as they occur. Executors that
do not support live events may keep the default batch-based behavior.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentRuntimeExecutor
impl !UnwindSafe for AgentRuntimeExecutor
impl Freeze for AgentRuntimeExecutor
impl Send for AgentRuntimeExecutor
impl Sync for AgentRuntimeExecutor
impl Unpin for AgentRuntimeExecutor
impl UnsafeUnpin for AgentRuntimeExecutor
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