> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# File Part • AI Agent SDK

> file_part: Build a generic file content part from raw bytes/base64 or a URL.

# file\_part

Function

> This function is defined in the [**base**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/base.md) module.

Build a generic file content part from raw bytes/base64 or a URL.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def file_part(data: Any) -> Dict[str, Any]
```

## Parameters

**data** `Any`

No description available.

### Returns

**Returns** `Dict[str, Any]`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/base.py#L166)
>
> `praisonaiagents/tools/base.py` at line 166


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.