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.

Parameters

string|array $state
array $questions
ClassificationProvider $provider
string $model
int $timeout
array $providerOptions
array $attachments

at line 38
bool contains(string $string)

Determine if the state contains the given string.

Parameters

string $string

Return Value

bool

at line 46
bool asks(string $key)

Determine if the prompt asks a question with the given key.

Parameters

string $key

Return Value

bool

at line 54
int count()

Get the number of questions in the prompt.

Return Value

int