agenerate • AI Agent SDK
agenerate: Generate code asynchronously.
agenerate
Async
Method
</div>
This is a method of the CodeAgent class in the code_agent module.
Generate code asynchronously.
Signature
async def agenerate(prompt: str, language: str) -> strParameters
ParamField
strNatural language description
ParamField
strTarget programming language **kwargs: Additional arguments
Returns
ResponseField
strGenerated code as string
Uses
acompletionValueError
Used By
Source
View on GitHubpraisonaiagents/agent/code_agent.py at line 180