<?php

namespace ZenoChatbot\Services\LLMService\AIClient\Results;

if (!defined('ABSPATH')) {
    exit;
}

class Candidate
{
    private string $text;
    private ?string $finishReason;

    public function __construct(string $text, ?string $finishReason = null)
    {
        $this->text = $text;
        $this->finishReason = $finishReason;
    }

    public function getText(): string
    {
        return $this->text;
    }

    public function getFinishReason(): ?string
    {
        return $this->finishReason;
    }
}

