FileSearch
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.
from
ProviderTool
array
providerOptions(Lab|string $provider)
Get the provider-specific options for the given provider.
from
ProviderTool
__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
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.
in
ProviderTool at line 37
array
providerOptions(Lab|string $provider)
Get the provider-specific options for the given provider.
at line 25
__construct(array $stores, Closure|array|null $where = null)
Create a new file search tool instance.
at line 35
array
ids()
Get the string store IDs assigned to the tool.
at line 49
protected array
resolveFilters(Closure|array|null $where)
Resolve the filters from the given value.