AI agent instructions
AI agent instructions
RemoteFileStorage. Create it unbound and pass it to client.Session({ storage })
so the session binds it on start, or bind it yourself with a session ID.
download() saves to disk; downloadBlob() returns bytes in memory, and
stream() returns a readable stream. For lower-level session file access,
see NotteClient.Files.
Create RemoteFileStorage
Use NotteClient.FileStorage to create this object from your configured client.string
Usage
- download: Download a file to
<localDir>/<filename>and return the local path. The file is written atomically (temporary file + rename). Rejects withFileExistsErrorwhen the destination exists unlessforceis set. - downloadBlob: Download a file’s bytes as a
Blobwithout touching the local filesystem. - upload: Upload a file to the session. A string is read as a local path and its basename becomes the uploaded filename unless
uploadFileNameis set. - list: List the session’s files.
- metadata: Metadata of a file by ID. Rejects with
FileNotFoundErrorwhen unknown. - stream: Stream a file’s bytes without buffering the whole file in memory.
- delete: Delete a session file.