interface ClassificationProvider implements Provider

Methods

string
name()

Get the name of the underlying AI provider.

from  Provider
string
driver()

Get the name of the underlying AI driver.

from  Provider
array
providerCredentials()

Get the credentials for the underlying AI provider.

from  Provider
array
additionalConfiguration()

Get the provider connection configuration other than the driver, key, and name.

from  Provider
withHeaders(array $headers)

Get a provider instance that sends the given HTTP headers with each request.

from  Provider
classify(string|array $state, array $questions, string|null $model = null, int $timeout = 30, array $providerOptions = [], array $attachments = [])

Answer the given questions about the state.

classificationGateway()

Get the provider's classification gateway.

useClassificationGateway(ClassificationGateway $gateway)

Set the provider's classification gateway.

string
defaultClassificationModel()

Get the name of the default classification model.

Details

in Provider at line 12
string name()

Get the name of the underlying AI provider.

Return Value

string

in Provider at line 17
string driver()

Get the name of the underlying AI driver.

Return Value

string

in Provider at line 24
array providerCredentials()

Get the credentials for the underlying AI provider.

Return Value

array

in Provider at line 31
array additionalConfiguration()

Get the provider connection configuration other than the driver, key, and name.

Return Value

array

in Provider at line 40
Provider withHeaders(array $headers)

internal  
 

Get a provider instance that sends the given HTTP headers with each request.

Parameters

array $headers

Return Value

Provider

at line 24
ClassificationResponse classify(string|array $state, array $questions, string|null $model = null, int $timeout = 30, array $providerOptions = [], array $attachments = [])

Answer the given questions about the state.

Parameters

string|array $state
array $questions
string|null $model
int $timeout
array $providerOptions
array $attachments

Return Value

ClassificationResponse

at line 29
ClassificationGateway classificationGateway()

Get the provider's classification gateway.

Return Value

ClassificationGateway

at line 34
ClassificationProvider useClassificationGateway(ClassificationGateway $gateway)

Set the provider's classification gateway.

Parameters

ClassificationGateway $gateway

Return Value

ClassificationProvider

at line 40
string defaultClassificationModel()

Get the name of the default classification model.

Return Value

string