Skip to main content

File Handling & Uploads

Savant supports multiple ways to work with files — from inline attachments in messages to the server-side file storage API for large-file multimodal processing.

File Upload Methods

Inline File Attachments

Send files directly as A2A DataPart content in your POST /send message, or via the REST API:

Text Files

Binary Files (Base64)

File Storage API

For large files or when you want native multimodal processing:

Step 1: Upload the File

Via API:
Via SDK:
Via Base64:

Step 2: Reference in a Message

Via SDK:

Artifact Uploads

Artifacts are session-scoped file storage. Agents can access artifacts using the read_artifact tool.

Upload

Via SDK:

Response

Supported Artifact Types

How Files Reach the Agent

When files are included in a message, they become Content Parts in the agent conversation: The foundation model processes images and PDFs natively — no OCR or extraction tools are needed for basic understanding.