Skip to main content

evaluate_post

Function evaluate_post 

Source
pub async fn evaluate_post(
    route: &CompiledRoute,
    bag: &mut AttributeBag,
    payload: &mut RoutePayload,
    pdp: &Arc<dyn PdpResolver>,
    plugins: &Arc<dyn PluginInvoker>,
    delegations: &Arc<dyn DelegationInvoker>,
    elicitations: &Arc<dyn ElicitationInvoker>,
) -> RouteDecision
Expand description

Run the post-invocation phases: result (if a response payload is present) then post_policy. Used by orchestrators bound to a tool_post_invoke-style hook.

On a phase Deny, halts. result_modified is set if any result field was rewritten or omitted; args_modified is always false (this function doesn’t touch args).