Candidate::toArray(): WordPressAiClientResultsDTOCandidateArrayShape

In this article

{@inheritDoc}

Return

WordPressAiClientResultsDTOCandidateArrayShape

Source

public function toArray(): array
{
    return [self::KEY_MESSAGE => $this->message->toArray(), self::KEY_FINISH_REASON => $this->finishReason->value];
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.