Request Approval Sync • AI Agent SDK

request_approval_sync: Synchronous wrapper.

request_approval_sync

Method

</div>

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

Synchronous wrapper.

Signature

python
def request_approval_sync(request: ApprovalRequest, timeout: Optional[float]) -> ApprovalDecision

Parameters

ParamField ApprovalRequest

No description available.

ParamField Optional[float]

No description available.

Returns

ResponseField ApprovalDecision

The result of the operation.

Uses

  • run_coroutine_safely
  • request_approval

Used By

Source

View on GitHub

praisonaiagents/approval/backends.py at line 477