File Part • AI Agent SDK
file_part: Build a generic file content part from raw bytes/base64 or a URL.
file_part
Function
</div>
This function is defined in the base module.
Build a generic file content part from raw bytes/base64 or a URL.
Signature
def file_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 166