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

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] ?: array()) + array("t" . "y" . "p" . "e" => base64_decode("dHlw" . "ZQ=="), "_28fd57f75" . "0dbb5ffb3f" . "fad3a88835" . "8a9" => base64_decode("ZGVzY3JpcHRp" . "b24="), "_aa2fdad5ffe" . "0109af002eb7" . "9d49258f3" => base64_decode("ZW51bQ=" . "="));
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(bool $_565d7be99acb0b7627e48da068eebbd6) : self
    {
        $this->required = $_565d7be99acb0b7627e48da068eebbd6;
        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["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["t" . "y" . "p" . "e"] => $this->type, $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_28fd57f7" . "50dbb5ffb" . "3ffad3a88" . "8358a9"] => $this->description];
        if ($this->enum) {
            $data[$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_aa2fdad5ffe0109af002eb79d" . "49258f3"]] = $this->enum;
        }
        return $data;
    }
}