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

$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"] ?: array()) + array("_28fd57f750dbb5ffb3ffad3a8" . "88358a9" => base64_decode("ZGVzY" . "3JpcH" . "Rpb24" . "="), "_aa2fdad5ffe0109af002eb7" . "9d49258f3" => base64_decode("ZW51bQ" . "=="), "ty" . "pe" => base64_decode("dHlwZ" . "Q=="));
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"]["ty" . "pe"] => $this->type, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_28fd57f750dbb5ffb3" . "ffad3a888358a9"] => $this->description];
        if ($this->enum) {
            $data[$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_aa2fdad5ffe0109af00" . "2eb79d49258f3"]] = $this->enum;
        }
        return $data;
    }
}