Skip to main content

delegate_handler

Function delegate_handler 

Source
pub async fn delegate_handler(
    __arg0: State<Arc<MnemoEngine>>,
    __arg1: Json<DelegateRequest>,
) -> Result<Json<Value>, AppError>
Expand description

POST /v1/delegate – delegate permissions to another agent.

The caller must provide their agent_id and must have Delegate permission on the target memories. Without a full auth middleware this is advisory; production deployments should add an auth layer.