Stores
class Stores
Methods
static Store
static Store
create(string $name, string|null $description = null, Collection|array $fileIds = [], DateInterval|null $expiresWhenIdleFor = null, Provider|Lab|string|null $provider = null)
Create a new vector store.
static bool
static FakeStoreGateway
static string
fakeId(string $for)
Get the fake store ID for a given store name.
static void
static void
static void
assertNothingCreated()
Assert that no vector stores were created.
static void
static void
static void
assertNothingDeleted()
Assert that no vector stores were deleted.
static bool
isFaked()
Determine if store operations are faked.
Details
at line 20
static Store
get(string $storeId, Provider|Lab|string|null $provider = null)
Get a vector store by its ID.
at line 28
static Store
create(string $name, string|null $description = null, Collection|array $fileIds = [], DateInterval|null $expiresWhenIdleFor = null, Provider|Lab|string|null $provider = null)
Create a new vector store.
at line 46
static bool
delete(string $storeId, Provider|Lab|string|null $provider = null)
Delete a vector store.
at line 56
static FakeStoreGateway
fake(Closure|array $responses = [], bool $files = true)
Fake store operations.
The fake gateway is shared across requests in the worker.
at line 69
static string
fakeId(string $for)
Get the fake store ID for a given store name.
at line 77
static void
assertCreated(Closure|string $callback)
Assert that a vector store was created by name.
at line 85
static void
assertNotCreated(Closure|string $callback)
Assert that a vector store was not created.
at line 93
static void
assertNothingCreated()
Assert that no vector stores were created.
at line 101
static void
assertDeleted(Closure|string $callback)
Assert that a vector store was deleted.
at line 109
static void
assertNotDeleted(Closure|string $callback)
Assert that a vector store was not deleted.
at line 117
static void
assertNothingDeleted()
Assert that no vector stores were deleted.
at line 125
static bool
isFaked()
Determine if store operations are faked.