abstract class ProviderTool implements HasProviderOptions, Transient

Properties

protected array<string, mixed>|SerializableClosure $providerOptions

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.

Details

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

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

Get the provider-specific options for the given provider.

Parameters

Lab|string $provider

Return Value

array