pub struct AcpClientHandle { /* private fields */ }Expand description
A cloneable handle for issuing typed lifecycle requests and prompt commands.
Implementations§
Source§impl AcpClientHandle
impl AcpClientHandle
pub fn detached() -> Self
pub async fn prompt( &self, request: PromptRequest, ) -> Result<PromptResponse, AcpClientError>
Sourcepub async fn load_session(
&self,
request: LoadSessionRequest,
) -> Result<LoadedSession, AcpClientError>
pub async fn load_session( &self, request: LoadSessionRequest, ) -> Result<LoadedSession, AcpClientError>
Load a session and collect its replay notifications in wire order.
pub async fn new_session( &self, request: NewSessionRequest, ) -> Result<NewSessionResponse, AcpClientError>
pub async fn list_sessions( &self, request: ListSessionsRequest, ) -> Result<ListSessionsResponse, AcpClientError>
Sourcepub async fn resume_session(
&self,
request: ResumeSessionRequest,
) -> Result<ResumeSessionResponse, AcpClientError>
pub async fn resume_session( &self, request: ResumeSessionRequest, ) -> Result<ResumeSessionResponse, AcpClientError>
Resume a session without collecting or replaying its prior notifications.
pub async fn close_session( &self, request: CloseSessionRequest, ) -> Result<CloseSessionResponse, AcpClientError>
Sourcepub async fn search_prompts(
&self,
params: PromptSearchParams,
) -> Result<PromptSearchResponse, AcpClientError>
pub async fn search_prompts( &self, params: PromptSearchParams, ) -> Result<PromptSearchResponse, AcpClientError>
Search the agent’s prompt history through Aether’s ACP extension.
Sourcepub async fn preview_session(
&self,
params: SessionPreviewParams,
) -> Result<SessionPreviewResponse, AcpClientError>
pub async fn preview_session( &self, params: SessionPreviewParams, ) -> Result<SessionPreviewResponse, AcpClientError>
Load a session preview through Aether’s ACP extension.
Sourcepub async fn list_workspaces(
&self,
params: WorkspaceListParams,
) -> Result<WorkspaceListResponse, AcpClientError>
pub async fn list_workspaces( &self, params: WorkspaceListParams, ) -> Result<WorkspaceListResponse, AcpClientError>
List workspaces through Aether’s ACP extension.
Sourcepub async fn move_workspace(
&self,
params: WorkspaceMoveParams,
) -> Result<WorkspaceMoveResponse, AcpClientError>
pub async fn move_workspace( &self, params: WorkspaceMoveParams, ) -> Result<WorkspaceMoveResponse, AcpClientError>
Move a session through Aether’s ACP extension.
pub async fn set_config_option( &self, request: SetSessionConfigOptionRequest, ) -> Result<SetSessionConfigOptionResponse, AcpClientError>
pub async fn authenticate( &self, request: AuthenticateRequest, ) -> Result<AuthenticateResponse, AcpClientError>
pub async fn cancel( &self, request: CancelNotification, ) -> Result<(), AcpClientError>
pub async fn authenticate_mcp_server( &self, request: McpRequest, ) -> Result<(), AcpClientError>
Trait Implementations§
Source§impl Clone for AcpClientHandle
impl Clone for AcpClientHandle
Source§fn clone(&self) -> AcpClientHandle
fn clone(&self) -> AcpClientHandle
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 Freeze for AcpClientHandle
impl RefUnwindSafe for AcpClientHandle
impl Send for AcpClientHandle
impl Sync for AcpClientHandle
impl Unpin for AcpClientHandle
impl UnsafeUnpin for AcpClientHandle
impl UnwindSafe for AcpClientHandle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.