pub trait TaskHost: Send + Sync {
// Required method
fn session(
&self,
request: &TaskRequest,
approver: Arc<dyn Approver>,
) -> Result<AgentSession, RemoteError>;
}Expand description
What the serving app offers: a session for the requested companion, built with the given approver (which forwards cards to the asker). Refuse companions that do not run here.
Required Methods§
fn session( &self, request: &TaskRequest, approver: Arc<dyn Approver>, ) -> Result<AgentSession, RemoteError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".