StoreProvider
interface StoreProvider implements FileProvider
Methods
Get the provider connection configuration other than the driver, key, and name.
Get a provider instance that sends the given HTTP headers with each request.
Create a new vector store.
Add a file to a vector store.
Remove a file from a vector store.
Delete a vector store by its ID.
Get the provider's store gateway.
Details
in
Provider at line 12
string
name()
Get the name of the underlying AI provider.
in
Provider at line 17
string
driver()
Get the name of the underlying AI driver.
in
Provider at line 24
array
providerCredentials()
Get the credentials for the underlying AI provider.
in
Provider at line 31
array
additionalConfiguration()
Get the provider connection configuration other than the driver, key, and name.
in
Provider at line 40
Provider
withHeaders(array $headers)
| internal |
Get a provider instance that sends the given HTTP headers with each request.
in
FileProvider at line 18
FileResponse
getFile(string $fileId)
Get a file by its ID.
in
FileProvider at line 23
StoredFileResponse
putFile(StorableFile $file)
Store the given file.
in
FileProvider at line 28
void
deleteFile(string $fileId)
Delete a file by its ID.
in
FileProvider at line 33
FileGateway
fileGateway()
Get the provider's file gateway.
in
FileProvider at line 38
FileProvider
useFileGateway(FileGateway $gateway)
Set the provider's file gateway.
at line 19
Store
getStore(string $storeId)
Get a vector store by its ID.
at line 24
Store
createStore(string $name, string|null $description = null, Collection|null $fileIds = null, DateInterval|null $expiresWhenIdleFor = null)
Create a new vector store.
at line 36
string
addFileToStore(string $storeId, HasProviderId $file, array $metadata = [])
Add a file to a vector store.
at line 41
bool
removeFileFromStore(string $storeId, HasProviderId|string $fileId)
Remove a file from a vector store.
at line 46
bool
deleteStore(string $storeId)
Delete a vector store by its ID.
at line 51
StoreGateway
storeGateway()
Get the provider's store gateway.
at line 56
StoreProvider
useStoreGateway(StoreGateway $gateway)
Set the provider's store gateway.