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

$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] ?: array()) + array("_49c6565477ee9f822b499a53" . "e6d2995f" => base64_decode("YXJyYXlfa2V5" . "X2V4aXN0cw=="));
class FunctionCallPart implements PartInterface
{
    private string $name;
    private $args;
    private string $role;
    private array $metadata;
    public function __construct(string $name, $args, string $_d1071a032215f0eb5c4a8ef175f7049d = PartInterface::PART_ROLE_MODEL, array $metadata = [])
    {
        $this->name = $name;
        $this->args = $args;
        $this->role = $_d1071a032215f0eb5c4a8ef175f7049d;
        $this->metadata = $metadata;
    }
    public function getName() : string
    {
        return $this->name;
    }
    public function getArgs()
    {
        return $this->args;
    }
    public function getRole() : string
    {
        return $this->role;
    }
    public function getMetadata() : array
    {
        return $this->metadata;
    }
    public function hasMetadata(string $key) : bool
    {
        return $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_49c6565477ee9f" . "822b499a53e6d29" . "95f"]($key, $this->metadata);
    }
    public function getMetadataValue(string $key, $default = null)
    {
        if ($this->hasMetadata($key)) {
            return $this->metadata[$key];
        }
        return $default;
    }
    public function getValue() : array
    {
        return $this->args;
    }
}