Skip to main content

aexecute

AsyncMethod
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

code
str
required
Code to execute
language
str
default:"'python'"
Programming language **kwargs: Additional options

Returns

Returns
Dict[str, Any]
Execution result dictionary

Uses

  • asyncio.get_event_loop
  • loop.run_in_executor
  • execute

Source

View on GitHub

praisonaiagents/agent/code_agent.py at line 315