pub struct RuntimeHandle { /* private fields */ }Implementations§
Source§impl RuntimeHandle
impl RuntimeHandle
pub async fn create_session( &self, config: SessionConfig, ) -> Result<SessionId, RuntimeError>
pub async fn resume_session( &self, session_id: SessionId, ) -> Result<(), RuntimeError>
pub async fn suspend_session( &self, session_id: SessionId, ) -> Result<(), RuntimeError>
pub async fn delete_session( &self, session_id: SessionId, ) -> Result<(), RuntimeError>
pub async fn dispatch_action( &self, session_id: SessionId, action: Action, ) -> Result<(), RuntimeError>
pub async fn subscribe_events( &self, session_id: SessionId, ) -> Result<SessionEventSubscription, RuntimeError>
pub async fn subscribe_deltas( &self, session_id: SessionId, ) -> Result<Receiver<StreamDelta>, RuntimeError>
pub async fn load_events_after( &self, session_id: SessionId, after_seq: u64, ) -> Result<Vec<(u64, SessionEvent)>, RuntimeError>
pub async fn get_session_state( &self, session_id: SessionId, ) -> Result<AppState, RuntimeError>
pub async fn is_session_active( &self, session_id: SessionId, ) -> Result<bool, RuntimeError>
pub async fn list_active_sessions(&self) -> Result<Vec<SessionId>, RuntimeError>
pub async fn submit_user_input( &self, session_id: SessionId, text: String, model: ModelId, ) -> Result<OpId, RuntimeError>
pub async fn submit_tool_approval( &self, session_id: SessionId, request_id: RequestId, approved: bool, remember: Option<ApprovalMemory>, ) -> Result<(), RuntimeError>
pub async fn switch_primary_agent( &self, session_id: SessionId, agent_id: String, ) -> Result<(), RuntimeError>
pub async fn cancel_operation( &self, session_id: SessionId, op_id: Option<OpId>, ) -> Result<(), RuntimeError>
pub async fn submit_edited_message( &self, session_id: SessionId, original_message_id: String, new_content: String, model: ModelId, ) -> Result<OpId, RuntimeError>
pub async fn submit_dequeue_queued_item( &self, session_id: SessionId, ) -> Result<(), RuntimeError>
pub async fn compact_session( &self, session_id: SessionId, model: ModelId, ) -> Result<OpId, RuntimeError>
pub async fn execute_bash_command( &self, session_id: SessionId, command: String, ) -> Result<OpId, RuntimeError>
pub async fn list_all_sessions(&self) -> Result<Vec<SessionId>, RuntimeError>
pub async fn session_exists( &self, session_id: SessionId, ) -> Result<bool, RuntimeError>
pub fn shutdown(&self)
Trait Implementations§
Source§impl Clone for RuntimeHandle
impl Clone for RuntimeHandle
Source§fn clone(&self) -> RuntimeHandle
fn clone(&self) -> RuntimeHandle
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for RuntimeHandle
impl RefUnwindSafe for RuntimeHandle
impl Send for RuntimeHandle
impl Sync for RuntimeHandle
impl Unpin for RuntimeHandle
impl UnwindSafe for RuntimeHandle
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request