Request Approval • Rust AI Agent SDK

request_approval: Request approval for an action

request_approval

Method

</div>

This is a method of the ApprovalCallback class in the display_types module.

Request approval for an action

Signature

python
def request_approval(
        &self,
        function_name: &str,
        arguments: &serde_json::Value,
        risk_level: RiskLevel,
    ) -> ApprovalDecision

Parameters

ParamField &str

No description available.

ParamField &serde_json::Value

No description available.

ParamField RiskLevel

No description available.

Returns

ResponseField ApprovalDecision

The result of the operation.


Related Documentation