aexecute • AI Agent SDK
aexecute: Execute code asynchronously.
aexecute
Async
Method
</div>
This is a method of the CodeAgent class in the code_agent module.
Execute code asynchronously.
Signature
async def aexecute(code: str, language: str) -> Dict[str, Any]Parameters
ParamField
strCode to execute
ParamField
strProgramming language **kwargs: Additional options
Returns
ResponseField
Dict[str, Any]Execution result dictionary
Uses
asyncio.get_event_looploop.run_in_executorexecute
Source
View on GitHubpraisonaiagents/agent/code_agent.py at line 281