WordPress\AiClient\Results\DTO

GenerativeAiResult::getCandidatespublicWP 0.1.0

Gets the generated candidates.

Method of the class: GenerativeAiResult{}

No Hooks.

Returns

Candidate[]. The candidates.

Usage

$GenerativeAiResult = new GenerativeAiResult();
$GenerativeAiResult->getCandidates(): array;

Changelog

Since 0.1.0 Introduced.

GenerativeAiResult::getCandidates() code WP 7.0

public function getCandidates(): array
{
    return $this->candidates;
}