Local Media Storage
LocalMediaStorage stores agent media on the local filesystem.
LocalMediaStorage stores agent media on the local filesystem and keeps only a MediaReference in the database. Intended for development and testing.
| Parameter | Type | Default | Description |
|---|---|---|---|
base_path | str | "./media_storage" | Directory that holds the media. Resolved to an absolute path at construction, so a relative value does not follow the working directory. |
persist_remote_urls | bool | False | Download and store media passed as a URL. Skipped when False. |
AsyncLocalMediaStorage takes the same parameters and runs each call in a worker thread.