WebFetch
class WebFetch extends ProviderTool
Properties
| protected array<string, mixed>|SerializableClosure | $providerOptions | from ProviderTool |
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(int|null $maxSearches = null, array $allowedDomains = [])
Create a web fetch tool with optional search limits and allowed domains.
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 12
__construct(int|null $maxSearches = null, array $allowedDomains = [])
Create a web fetch tool with optional search limits and allowed domains.
at line 21
WebFetch
max(int $max)
Set the maximum number of searches.
at line 31
WebFetch
allow(array $domains)
Set the allowed domains.