Request Approval • AI Agent SDK

request_approval: Ask the approver agent to evaluate the request.

request_approval

Async

Method

</div>

This is a method of the AgentApproval class in the backends module.

Ask the approver agent to evaluate the request.

Signature

python
async def request_approval(request: ApprovalRequest) -> ApprovalDecision

Parameters

ParamField ApprovalRequest

No description available.

Returns

ResponseField ApprovalDecision

The result of the operation.

Uses

  • approver.achat
  • asyncio.get_running_loop
  • loop.run_in_executor
  • ApprovalDecision
  • logger.error

Used By

Source

View on GitHub

praisonaiagents/approval/backends.py at line 428