defineFile.
Define a file
files/playbook.ts
Supported types
| Type | Extensions |
|---|---|
| Documents | .pdf, .docx, .doc |
| Text | .txt, .md, .markdown |
| Presentations | .pptx, .ppt |
| Spreadsheets | .xlsx, .xls, .csv |
Using files in agents
Attach files (or folders of files) as agent resources. The agent searches them with vector similarity — a query for “pricing concerns” surfaces content about “cost objections” even without the exact words. Add a prompt to steer how the agent prioritizes the content.From the CLI
For structured, queryable data (CRM objects, tables) use models
instead — files are for unstructured knowledge.

