ClassificationProvider
interface ClassificationProvider implements Provider
Methods
Get the provider connection configuration other than the driver, key, and name.
Get a provider instance that sends the given HTTP headers with each request.
Answer the given questions about the state.
Get the provider's classification gateway.
Get the name of the default classification model.
Details
in
Provider at line 12
string
name()
Get the name of the underlying AI provider.
in
Provider at line 17
string
driver()
Get the name of the underlying AI driver.
in
Provider at line 24
array
providerCredentials()
Get the credentials for the underlying AI provider.
in
Provider at line 31
array
additionalConfiguration()
Get the provider connection configuration other than the driver, key, and name.
in
Provider at line 40
Provider
withHeaders(array $headers)
| internal |
Get a provider instance that sends the given HTTP headers with each request.
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.
at line 29
ClassificationGateway
classificationGateway()
Get the provider's classification gateway.
at line 34
ClassificationProvider
useClassificationGateway(ClassificationGateway $gateway)
Set the provider's classification gateway.
at line 40
string
defaultClassificationModel()
Get the name of the default classification model.