Upload a Blob/File (or any Blob-shaped object). 25 MB cap per file. Accepts text/markdown/code/HTML, all images, PDF, JSON/XML/YAML. Rejects archives, executables, A/V media, and binary office formats.
const blob = new Blob([markdownText], { type: 'text/markdown' });
const file = await an.agents.uploadKnowledgeFile(agentId, blob, {
name: 'milpitas-school-districts.md',
});
// → { fileId, agentId, name, mimeType, sizeBytes, createdAt }