Agenerate Image • AI Agent SDK
agenerate_image: Offload the synchronous generation path to keep the event loop responsive.
agenerate_image
Async
Method
</div>
This is a method of the ImageAgent class in the image_agent module.
Offload the synchronous generation path to keep the event loop responsive.
Signature
async def agenerate_image(prompt: str) -> Dict[str, Any]Parameters
ParamField
strNo description available.
Returns
ResponseField
Dict[str, Any]The result of the operation.
Uses
asyncio.to_thread
Used By
Source
View on GitHubpraisonaiagents/agent/image_agent.py at line 200