pub enum Origin {
Agent,
Operator,
}Expand description
Who chose this destination.
The distinction the engine’s network policy has always needed and never
had. allowed_domains answers “where may the model reach”, not “what may
this process connect to” — applying it to everything would cut the agent
off from its own model endpoint.
Variants§
Agent
The model picked the destination: a WebFetch url, a Ping host,
curl inside a Bash command. Subject to allowed_domains, and kept
off internal addresses unless allowed_domains
names the host.
Operator
An operator configured the endpoint: the model API, an MCP server,
telemetry, the plugin marketplace, an OAuth provider. Not subject to
allowed_domains, but still routed here so a deployment can audit,
rate-limit or go offline as a whole.
Trait Implementations§
impl Copy for Origin
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Forget for Origin
impl Freeze for Origin
impl Move for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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