Execute Tool Async • AI Agent SDK
execute_tool_async: Async version of execute_tool
execute_tool_async
Async
Method
</div>
Async version of execute_tool
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: execute_tool_async"]
tool -- "returns" --> result["Result"]
style tool fill:#189AB4,color:#fff
style agent fill:#8B0000,color:#fff
style result fill:#8B0000,color:#fffSignature
async def execute_tool_async(function_name: str, arguments: Dict[str, Any]) -> AnyParameters
ParamField
strNo description available.
ParamField
DictNo description available.
Returns
ResponseField
AnyThe result of the operation.
Uses
logging.infois_approval_requiredis_env_auto_approveis_yaml_approvedlogging.debugmark_approvedrequest_approvallogging.warningcallablelogging.error
Source
View on GitHubpraisonaiagents/agent/agent.py at line 6763