Skip to main content

evaluate_tool_request

Function evaluate_tool_request 

Source
pub fn evaluate_tool_request(
    policy: &ToolPolicySet,
    request: &ToolRequest,
) -> PolicyVerdict
Expand description

Evaluate a ToolRequest against a ToolPolicySet.

Rules are checked in order. The first rule whose (role, capability) pair matches determines the verdict. If no rule matches, the request is denied (default-deny posture).