Image Part • AI Agent SDK
image_part: Build an image content part from raw bytes/base64 or a URL/data URI.
image_part
Function
</div>
This function is defined in the base module.
Build an image content part from raw bytes/base64 or a URL/data URI.
Signature
def image_part(data: Any) -> Dict[str, Any]Parameters
ParamField
AnyNo description available.
Returns
ResponseField
Dict[str, Any]The result of the operation.
Source
View on GitHubpraisonaiagents/tools/base.py at line 153