pub struct Proxy;Expand description
The proxy role - an intermediary that can intercept and modify messages.
Proxies sit between a client and an agent (or another proxy), and can:
- Add tools via MCP servers
- Filter or transform messages
- Inject additional context
Proxies connect to a Conductor which orchestrates the proxy chain.
Implementations§
Trait Implementations§
Source§impl HasPeer<Proxy> for Proxy
impl HasPeer<Proxy> for Proxy
Source§fn remote_style(&self, _peer: Proxy) -> RemoteStyle
fn remote_style(&self, _peer: Proxy) -> RemoteStyle
Returns the remote style for sending to this peer.
Source§impl Ord for Proxy
impl Ord for Proxy
Source§impl PartialOrd for Proxy
impl PartialOrd for Proxy
Source§impl Role for Proxy
impl Role for Proxy
Source§type Counterpart = Conductor
type Counterpart = Conductor
The role that this endpoint connects to. Read more
Source§async fn default_handle_dispatch_from(
&self,
message: Dispatch,
_connection: ConnectionTo<Self>,
) -> Result<Handled<Dispatch>, Error>
async fn default_handle_dispatch_from( &self, message: Dispatch, _connection: ConnectionTo<Self>, ) -> Result<Handled<Dispatch>, Error>
Method invoked when there is no defined message handler.
Source§fn counterpart(&self) -> Self::Counterpart
fn counterpart(&self) -> Self::Counterpart
Returns the counterpart role.
impl Copy for Proxy
impl Eq for Proxy
impl StructuralPartialEq for Proxy
Auto Trait Implementations§
impl Freeze for Proxy
impl RefUnwindSafe for Proxy
impl Send for Proxy
impl Sync for Proxy
impl Unpin for Proxy
impl UnsafeUnpin for Proxy
impl UnwindSafe for Proxy
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