class FileSearch extends ProviderTool

Properties

protected array<string, mixed>|SerializableClosure $providerOptions from  ProviderTool
array<int, array{type: "eq"|"in"|"ne"|"nin", key: string, value: mixed}> $filters

The file search filters.

Methods

withProviderOptions(array|Closure $options)

Attach provider-specific options to the tool payload. Closures may only capture serializable values.

array
providerOptions(Lab|string $provider)

Get the provider-specific options for the given provider.

__construct(array $stores, Closure|array|null $where = null)

Create a new file search tool instance.

array
ids()

Get the string store IDs assigned to the tool.

array
resolveFilters(Closure|array|null $where)

Resolve the filters from the given value.

Details

in ProviderTool at line 23
ProviderTool withProviderOptions(array|Closure $options)

Attach provider-specific options to the tool payload. Closures may only capture serializable values.

Parameters

array|Closure $options

Return Value

ProviderTool

in ProviderTool at line 37
array providerOptions(Lab|string $provider)

Get the provider-specific options for the given provider.

Parameters

Lab|string $provider

Return Value

array

at line 25
__construct(array $stores, Closure|array|null $where = null)

Create a new file search tool instance.

Parameters

array $stores
Closure|array|null $where

at line 35
array ids()

Get the string store IDs assigned to the tool.

Return Value

array

at line 49
protected array resolveFilters(Closure|array|null $where)

Resolve the filters from the given value.

Parameters

Closure|array|null $where

Return Value

array