ClassificationPrompt
class ClassificationPrompt implements Countable
Methods
__construct(string|array $state, array $questions, ClassificationProvider $provider, string $model, int $timeout = 30, array $providerOptions = [], array $attachments = [])
Create a new classification prompt instance.
bool
contains(string $string)
Determine if the state contains the given string.
bool
asks(string $key)
Determine if the prompt asks a question with the given key.
int
count()
Get the number of questions in the prompt.
Details
at line 24
__construct(string|array $state, array $questions, ClassificationProvider $provider, string $model, int $timeout = 30, array $providerOptions = [], array $attachments = [])
Create a new classification prompt instance.
at line 38
bool
contains(string $string)
Determine if the state contains the given string.
at line 46
bool
asks(string $key)
Determine if the prompt asks a question with the given key.
at line 54
int
count()
Get the number of questions in the prompt.