avariation • AI Agent SDK
avariation: Offload the synchronous variation path to keep the event loop responsive.
avariation
Async
Method
</div>
This is a method of the ImageAgent class in the image_agent module.
Offload the synchronous variation path to keep the event loop responsive.
Signature
async def avariation(image: str, n: int, size: Optional[str]) -> ImageResultParameters
ParamField
strNo description available.
ParamField
intNo description available.
ParamField
Optional[str]No description available.
Returns
ResponseField
ImageResultThe result of the operation.
Uses
asyncio.to_thread
Source
View on GitHubpraisonaiagents/agent/image_agent.py at line 406