> For the complete documentation index, see [llms.txt](https://docs.poweromni.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.poweromni.ai/en/administration-and-configuration/artifacts/connectors/standard-connectors/file-handler.md).

# File Handler

The File Handler allows the agent to work with files uploaded during the conversation.

In the Microsoft infrastructure, this capability is based on Code Interpreter, a tool that allows the agent to run Python code in an isolated environment to analyze data, generate charts, solve calculations, and create output files.

With this connector, the agent can receive files and perform more advanced analyses.

Examples of use:

Analyze spreadsheets.

Read CSV or XLSX files.

Generate charts from data.

Identify patterns in a dataset.

Microsoft states that several file types are supported, including CSV, DOCX, PDF, PPTX, XLSX, TXT, JSON, images, ZIP, and other formats.

## File Handler costs

The use of Code Interpreter has an additional cost beyond the AI model token costs. Microsoft states that if the agent triggers Code Interpreter in different conversations at the same time, separate sessions will be created, and each session may be charged individually.

On the Foundry Agent Service pricing page, Microsoft lists Code Interpreter as a tool charged per session, with a reference price of US$0.033 per session.

<figure><img src="/files/nknGhLbEkFLRlwmjwSKT" alt=""><figcaption></figcaption></figure>
