pub struct GenericAcpAdapter;Expand description
Default passthrough AgentAdapter that forwards all ACP messages unchanged.
Use this when no message transformation is needed.
Trait Implementations§
Source§impl AgentAdapter for GenericAcpAdapter
impl AgentAdapter for GenericAcpAdapter
Source§fn on_initialize_params(
&self,
params: InitializeParams,
) -> impl Future<Output = Result<InitializeParams, AgentSdkError>> + Send
fn on_initialize_params( &self, params: InitializeParams, ) -> impl Future<Output = Result<InitializeParams, AgentSdkError>> + Send
Transform
initialize request params before they reach the agent.Source§fn on_initialize_result(
&self,
result: InitializeResult,
) -> impl Future<Output = Result<InitializeResult, AgentSdkError>> + Send
fn on_initialize_result( &self, result: InitializeResult, ) -> impl Future<Output = Result<InitializeResult, AgentSdkError>> + Send
Transform
initialize response before it reaches the supervisor.Source§fn on_session_new_params(
&self,
params: SessionNewParams,
) -> impl Future<Output = Result<SessionNewParams, AgentSdkError>> + Send
fn on_session_new_params( &self, params: SessionNewParams, ) -> impl Future<Output = Result<SessionNewParams, AgentSdkError>> + Send
Transform
session/new request params before they reach the agent.Source§fn on_session_new_result(
&self,
result: SessionNewResult,
) -> impl Future<Output = Result<SessionNewResult, AgentSdkError>> + Send
fn on_session_new_result( &self, result: SessionNewResult, ) -> impl Future<Output = Result<SessionNewResult, AgentSdkError>> + Send
Transform
session/new response before it reaches the supervisor.Source§fn on_session_prompt_params(
&self,
params: SessionPromptParams,
) -> impl Future<Output = Result<SessionPromptParams, AgentSdkError>> + Send
fn on_session_prompt_params( &self, params: SessionPromptParams, ) -> impl Future<Output = Result<SessionPromptParams, AgentSdkError>> + Send
Transform
session/prompt request params before they reach the agent.Source§fn on_session_update(
&self,
event: SessionUpdateEvent,
) -> impl Future<Output = Result<SessionUpdateEvent, AgentSdkError>> + Send
fn on_session_update( &self, event: SessionUpdateEvent, ) -> impl Future<Output = Result<SessionUpdateEvent, AgentSdkError>> + Send
Transform a
session/update streaming event before it reaches the supervisor.Source§fn on_permission_request(
&self,
request: PermissionRequest,
) -> impl Future<Output = Result<PermissionRequest, AgentSdkError>> + Send
fn on_permission_request( &self, request: PermissionRequest, ) -> impl Future<Output = Result<PermissionRequest, AgentSdkError>> + Send
Transform a permission request event before it reaches the supervisor.
Source§impl Clone for GenericAcpAdapter
impl Clone for GenericAcpAdapter
Source§fn clone(&self) -> GenericAcpAdapter
fn clone(&self) -> GenericAcpAdapter
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 moreSource§impl Debug for GenericAcpAdapter
impl Debug for GenericAcpAdapter
Source§impl Default for GenericAcpAdapter
impl Default for GenericAcpAdapter
Source§fn default() -> GenericAcpAdapter
fn default() -> GenericAcpAdapter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GenericAcpAdapter
impl RefUnwindSafe for GenericAcpAdapter
impl Send for GenericAcpAdapter
impl Sync for GenericAcpAdapter
impl Unpin for GenericAcpAdapter
impl UnsafeUnpin for GenericAcpAdapter
impl UnwindSafe for GenericAcpAdapter
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> DynAgentAdapter for Twhere
T: AgentAdapter,
impl<T> DynAgentAdapter for Twhere
T: AgentAdapter,
Source§fn on_initialize_params<'a>(
&'a self,
params: InitializeParams,
) -> Pin<Box<dyn Future<Output = Result<InitializeParams, AgentSdkError>> + Send + 'a>>
fn on_initialize_params<'a>( &'a self, params: InitializeParams, ) -> Pin<Box<dyn Future<Output = Result<InitializeParams, AgentSdkError>> + Send + 'a>>
Dyn-compatible version of
AgentAdapter::on_initialize_params.Source§fn on_initialize_result<'a>(
&'a self,
result: InitializeResult,
) -> Pin<Box<dyn Future<Output = Result<InitializeResult, AgentSdkError>> + Send + 'a>>
fn on_initialize_result<'a>( &'a self, result: InitializeResult, ) -> Pin<Box<dyn Future<Output = Result<InitializeResult, AgentSdkError>> + Send + 'a>>
Dyn-compatible version of
AgentAdapter::on_initialize_result.Source§fn on_session_new_params<'a>(
&'a self,
params: SessionNewParams,
) -> Pin<Box<dyn Future<Output = Result<SessionNewParams, AgentSdkError>> + Send + 'a>>
fn on_session_new_params<'a>( &'a self, params: SessionNewParams, ) -> Pin<Box<dyn Future<Output = Result<SessionNewParams, AgentSdkError>> + Send + 'a>>
Dyn-compatible version of
AgentAdapter::on_session_new_params.Source§fn on_session_new_result<'a>(
&'a self,
result: SessionNewResult,
) -> Pin<Box<dyn Future<Output = Result<SessionNewResult, AgentSdkError>> + Send + 'a>>
fn on_session_new_result<'a>( &'a self, result: SessionNewResult, ) -> Pin<Box<dyn Future<Output = Result<SessionNewResult, AgentSdkError>> + Send + 'a>>
Dyn-compatible version of
AgentAdapter::on_session_new_result.Source§fn on_session_prompt_params<'a>(
&'a self,
params: SessionPromptParams,
) -> Pin<Box<dyn Future<Output = Result<SessionPromptParams, AgentSdkError>> + Send + 'a>>
fn on_session_prompt_params<'a>( &'a self, params: SessionPromptParams, ) -> Pin<Box<dyn Future<Output = Result<SessionPromptParams, AgentSdkError>> + Send + 'a>>
Dyn-compatible version of
AgentAdapter::on_session_prompt_params.Source§fn on_session_update<'a>(
&'a self,
event: SessionUpdateEvent,
) -> Pin<Box<dyn Future<Output = Result<SessionUpdateEvent, AgentSdkError>> + Send + 'a>>
fn on_session_update<'a>( &'a self, event: SessionUpdateEvent, ) -> Pin<Box<dyn Future<Output = Result<SessionUpdateEvent, AgentSdkError>> + Send + 'a>>
Dyn-compatible version of
AgentAdapter::on_session_update.Source§fn on_permission_request<'a>(
&'a self,
request: PermissionRequest,
) -> Pin<Box<dyn Future<Output = Result<PermissionRequest, AgentSdkError>> + Send + 'a>>
fn on_permission_request<'a>( &'a self, request: PermissionRequest, ) -> Pin<Box<dyn Future<Output = Result<PermissionRequest, AgentSdkError>> + Send + 'a>>
Dyn-compatible version of
AgentAdapter::on_permission_request.