Skip to main content

AgentSessionHandler

Type Alias AgentSessionHandler 

Source
pub type AgentSessionHandler = Arc<dyn Fn(Value, RpcContext, UnboundedReceiver<AgentSessionFrame>, UnboundedSender<AgentSessionFrame>) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Expand description

Agent-session handler. Both directions carry AgentSessionFrame { value, responsibility_chain } records. The initial chain from the rpc-call’s ext is surfaced in ctx.initial_chain; per-frame chains override it.

Aliased Type§

pub struct AgentSessionHandler { /* private fields */ }