<?php
namespace Claromentis\Core\Ai\Tools;

$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] ?: array()) + array("_aa2fdad5f" . "fe0109af00" . "2eb79d4925" . "8f3" => base64_decode("ZW51b" . "Q=="), "typ" . "e" => base64_decode("dH" . "lw" . "ZQ" . "=="), "_28fd57f" . "750dbb5f" . "fb3ffad3" . "a888358a" . "9" => base64_decode("ZGVzY3" . "JpcHRp" . "b24="));
class AiParameterDefinition
{
    private string $type;
    private string $description = '';
    private bool $required = false;
    private ?array $enum = null;
    public function __construct(string $type)
    {
        $this->type = $type;
    }
    public function description(string $_28fd57f750dbb5ffb3ffad3a888358a9) : self
    {
        $this->description = $_28fd57f750dbb5ffb3ffad3a888358a9;
        return $this;
    }
    public function required() : self
    {
        $this->required = true;
        return $this;
    }
    public function enum(array $values) : self
    {
        $this->enum = $values;
        return $this;
    }
    public function isRequired() : bool
    {
        return $this->required;
    }
    public function toArray() : array
    {
        $data = [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["typ" . "e"] => $this->type, $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_28fd57f750dbb5ffb3ffad3a8" . "88358a9"] => $this->description];
        if ($this->enum) {
            $data[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_aa2fdad5f" . "fe0109af00" . "2eb79d4925" . "8f3"]] = $this->enum;
        }
        return $data;
    }
}