Skip to main content

endpoint_refusal

Function endpoint_refusal 

Source
fn endpoint_refusal(
    state: &AppState,
    actor: &Actor,
    target: &AgentDefinition,
    current: &str,
    new: &str,
) -> Option<Refusal>
Expand description

Why this change to target’s model endpoint is refused, if it is. Not for what it does (the notice and its undo window answer that) but for where it would not work: an agent on a model route keeps the route’s server and keys, a container agent gets the person’s account mounted in its image, which a custom server must not receive, and a key must be a Vault entry the person opened to that agent. A key is also one the acting agent could use itself: srv does not put a key in a server’s hands for an agent that could not have read it. (An agent on another machine names none: it has no agent here.) The answer is the same for an entry that is missing, of another kind or closed to an agent, so it never says which entries exist.