pub struct SessionManager { /* private fields */ }Expand description
Manages ACP sessions, each session has its own agent and state
Implementations§
Source§impl SessionManager
impl SessionManager
Sourcepub async fn shutdown_all_sessions(&self)
pub async fn shutdown_all_sessions(&self)
Drain every session and stop its relay task. Blocks until every relay has exited.
Source§impl SessionManager
impl SessionManager
pub async fn initialize( &self, args: InitializeRequest, ) -> Result<InitializeResponse, Error>
pub async fn authenticate( &self, args: AuthenticateRequest, cx: &ConnectionTo<Client>, ) -> Result<AuthenticateResponse, Error>
pub async fn new_session( &self, args: NewSessionRequest, cx: &ConnectionTo<Client>, ) -> Result<NewSessionResponse, Error>
pub fn list_sessions( &self, args: &ListSessionsRequest, ) -> Result<ListSessionsResponse, Error>
pub async fn load_session( &self, args: LoadSessionRequest, cx: &ConnectionTo<Client>, ) -> Result<LoadSessionResponse, Error>
pub async fn prompt(&self, args: PromptRequest) -> Result<PromptResponse, Error>
pub async fn cancel(&self, args: CancelNotification) -> Result<(), Error>
pub async fn set_session_config_option( &self, args: SetSessionConfigOptionRequest, ) -> Result<SetSessionConfigOptionResponse, Error>
pub async fn on_mcp_request(&self, request: McpRequest) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for SessionManager
impl !RefUnwindSafe for SessionManager
impl Send for SessionManager
impl Sync for SessionManager
impl Unpin for SessionManager
impl UnsafeUnpin for SessionManager
impl !UnwindSafe for SessionManager
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> 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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
fn into_option(self) -> Option<T>
Creates a shared type from an unshared type.