pub struct LocalAcpSessionAdapter { /* private fields */ }Expand description
Local ACP session adapter for resident relay-knowledge processes.
Implementations§
Source§impl LocalAcpSessionAdapter
impl LocalAcpSessionAdapter
Sourcepub fn new(
service: RelayKnowledgeService,
network: NetworkRuntime,
agent: AgentRuntimeConfig,
) -> Self
pub fn new( service: RelayKnowledgeService, network: NetworkRuntime, agent: AgentRuntimeConfig, ) -> Self
Creates an ACP local session adapter without opening sockets.
Sourcepub fn initialize(&self) -> AcpInitializeResponse
pub fn initialize(&self) -> AcpInitializeResponse
Returns the ACP initialize capability payload.
Sourcepub fn new_session(
&self,
request: AcpSessionRequest,
) -> Result<AcpSession, AgentAdapterError>
pub fn new_session( &self, request: AcpSessionRequest, ) -> Result<AcpSession, AgentAdapterError>
Creates a bounded local ACP session and captures untrusted client identity.
Sourcepub async fn prompt(
&self,
session_id: &str,
request: AcpPromptRequest,
) -> AcpPromptResponse
pub async fn prompt( &self, session_id: &str, request: AcpPromptRequest, ) -> AcpPromptResponse
Runs an ACP prompt turn, returning progress updates and a context artifact.
Sourcepub fn cancel(&self, session_id: &str, request_id: &str) -> bool
pub fn cancel(&self, session_id: &str, request_id: &str) -> bool
Cancels an active prompt request if the session still owns it.
Sourcepub fn audit_snapshot(&self) -> Vec<AgentAuditEvent>
pub fn audit_snapshot(&self) -> Vec<AgentAuditEvent>
Returns agent audit events retained by the bounded in-process log.
Trait Implementations§
Source§impl Clone for LocalAcpSessionAdapter
impl Clone for LocalAcpSessionAdapter
Source§fn clone(&self) -> LocalAcpSessionAdapter
fn clone(&self) -> LocalAcpSessionAdapter
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 LocalAcpSessionAdapter
impl !UnwindSafe for LocalAcpSessionAdapter
impl Freeze for LocalAcpSessionAdapter
impl Send for LocalAcpSessionAdapter
impl Sync for LocalAcpSessionAdapter
impl Unpin for LocalAcpSessionAdapter
impl UnsafeUnpin for LocalAcpSessionAdapter
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