pub struct TurnRuntime;Expand description
Stateless turn engine.
Implementations§
Source§impl TurnRuntime
impl TurnRuntime
Sourcepub async fn run(
&self,
agent: &Agent,
sampler: &dyn LlmSampler,
state: &mut dyn ConversationState,
input: TurnInput,
options: TurnOptions,
) -> Result<TurnOutcome, MachiError>
pub async fn run( &self, agent: &Agent, sampler: &dyn LlmSampler, state: &mut dyn ConversationState, input: TurnInput, options: TurnOptions, ) -> Result<TurnOutcome, MachiError>
Trait Implementations§
Source§impl Clone for TurnRuntime
impl Clone for TurnRuntime
Source§fn clone(&self) -> TurnRuntime
fn clone(&self) -> TurnRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TurnRuntime
Source§impl Debug for TurnRuntime
impl Debug for TurnRuntime
Source§impl Default for TurnRuntime
impl Default for TurnRuntime
Source§fn default() -> TurnRuntime
fn default() -> TurnRuntime
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TurnRuntime
impl RefUnwindSafe for TurnRuntime
impl Send for TurnRuntime
impl Sync for TurnRuntime
impl Unpin for TurnRuntime
impl UnsafeUnpin for TurnRuntime
impl UnwindSafe for TurnRuntime
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