aedit • AI Agent SDK

aedit: Offload the synchronous editing path to keep the event loop responsive.

aedit

Async

Method

</div>

This is a method of the ImageAgent class in the image_agent module.

Offload the synchronous editing path to keep the event loop responsive.

Signature

python
async def aedit(image: str, prompt: str, mask: Optional[str], n: int, size: Optional[str]) -> Dict[str, Any]

Parameters

ParamField str

No description available.

ParamField str

No description available.

ParamField Optional[str]

No description available.

ParamField int

No description available.

ParamField Optional[str]

No description available.

Returns

ResponseField Dict[str, Any]

The result of the operation.

Uses

  • asyncio.to_thread

Source

View on GitHub

praisonaiagents/agent/image_agent.py at line 314