Skip to main content

tool_execution_request

Function tool_execution_request 

Source
pub fn tool_execution_request(
    agent_id: &str,
    action: &str,
    resource: &str,
) -> Result<Request>
Expand description

Build a Cedar authorization request for a tool execution.

§Arguments

  • agent_id — The agent attempting the action.
  • action — The action being attempted (e.g., "execute_tool", "call_llm").
  • resource — The tool or resource name.

§Errors

Returns an error if the Cedar request cannot be constructed.