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

python
def file_part(data: Any) -> Dict[str, Any]

Parameters

ParamField Any

No description available.

Returns

ResponseField Dict[str, Any]

The result of the operation.

Source

View on GitHub

praisonaiagents/tools/base.py at line 166