Request Approval • AI Agent SDK
request_approval: Async wrapper — runs the sync prompt in an executor.
request_approval
Async
Method
</div>
This is a method of the ConsoleBackend class in the backends module.
Async wrapper — runs the sync prompt in an executor.
Signature
async def request_approval(request: ApprovalRequest) -> ApprovalDecisionParameters
ParamField
ApprovalRequestNo description available.
Returns
ResponseField
ApprovalDecisionThe result of the operation.
Uses
asyncio.get_running_looploop.run_in_executor
Used By
Source
View on GitHubpraisonaiagents/approval/backends.py at line 319