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.

ParameterTypeDefaultDescription
base_pathstr"./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_urlsboolFalseDownload and store media passed as a URL. Skipped when False.

AsyncLocalMediaStorage takes the same parameters and runs each call in a worker thread.