pub struct AppServerRunAdapter { /* private fields */ }Implementations§
Source§impl AppServerRunAdapter
impl AppServerRunAdapter
pub fn new( runner: Runner, agent: Agent, store: SqliteThreadStore, state: ThreadStateManager, outgoing: OutgoingMessageSender, ) -> Self
pub fn with_approval_request_timeout(self, timeout: Duration) -> Self
pub fn store(&self) -> &SqliteThreadStore
pub fn state(&self) -> &ThreadStateManager
pub async fn start_turn( &self, params: TurnStartParams, ) -> Result<AppTurn, AppServerError>
pub async fn notify_turn_started( &self, turn: &AppTurn, ) -> Result<(), AppServerError>
pub async fn spawn_event_forwarding(&self, thread_id: String, turn_id: String)
pub async fn interrupt_turn( &self, thread_id: &str, turn_id: &str, ) -> Result<InterruptTurnOutcome, AppServerError>
pub async fn notify_approval_resolved( &self, params: ApprovalResolveParams, ) -> Result<(), AppServerError>
pub async fn notify_turn_completed( &self, turn: AppTurn, ) -> Result<(), AppServerError>
pub async fn active_turn(&self, thread_id: &str) -> Option<AppTurn>
Trait Implementations§
Source§impl Clone for AppServerRunAdapter
impl Clone for AppServerRunAdapter
Source§fn clone(&self) -> AppServerRunAdapter
fn clone(&self) -> AppServerRunAdapter
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AppServerRunAdapter
impl !UnwindSafe for AppServerRunAdapter
impl Freeze for AppServerRunAdapter
impl Send for AppServerRunAdapter
impl Sync for AppServerRunAdapter
impl Unpin for AppServerRunAdapter
impl UnsafeUnpin for AppServerRunAdapter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.