File as Input
Overview
Use File as Input to attach one or more files to a query. Attachments are sent to the agent as Genai.Agent.Resource.FileInput resources and are considered only for that query (and conversation) at runtime. They aren't indexed as Genai.SourceFile content currently. Uploaded files remain part of the application (staging) and aren't stored or indexed in the document corpus.
This feature is disabled in the Workflows side panel.
Users can:
- Select the file upload icon and choose files.
- Attach multiple files up to the maximum file limit.
- Remove an attachment by selecting the close icon on its pill before the query is submitted.
- Download an attachment directly from its pill.
Supported file types and limits
- You can attach up to 10 files per query.
- You can't upload files with the same name in a single query.
- Supported file types depend on the model configured for the agent.
- Common: .txt, .md, .pdf, .png, .jpg, .jpeg
- Some models also allow: .html, .csv
- gpt-4o: images only (.png, .jpg, .jpeg)
- Maximum file size depends on the model configured for the agent.
- Maximum file size per model:
- gemini-2.0-flash: 3.5 MB
- gemini-2.5-flash: 3.5 MB
- gemini-2.5-pro: 3.5 MB
- claude-3.5-sonnet: 3 MB
- claude-4-sonnet: 3.5 MB
- gpt-4o: 15 MB
Cleanup and lifecycle
- Uploaded files remain within the application staging area; they're not stored or indexed as Genai.SourceFile content unless explicitly uploaded as documents elsewhere.