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

$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"] ?: array()) + array("_49c6565477ee9f822" . "b499a53e6d2995f" => base64_decode("YXJyYXlfa2V5X2V" . "4aXN0cw=="));
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["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_49c6565477ee9f8" . "22b499a53e6d2995" . "f"]($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;
    }
}