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

$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"] ?: array()) + array("_49c6565477ee9f822b49" . "9a53e6d2995f" => base64_decode("YXJyYXlf" . "a2V5X2V4" . "aXN0cw=="));
abstract class AbstractFunctionCallPart implements PartInterface
{
    private string $name;
    private mixed $args;
    private array $metadata;
    public function __construct(string $name, mixed $args, array $metadata = [])
    {
        $this->name = $name;
        $this->args = $args;
        $this->metadata = $metadata;
    }
    public function getName() : string
    {
        return $this->name;
    }
    public function getArgs()
    {
        return $this->args;
    }
    public abstract function getRole() : string;
    public function getMetadata() : array
    {
        return $this->metadata;
    }
    public function hasMetadata(string $key) : bool
    {
        return $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_49c6565477ee9f822b499" . "a53e6d2995f"]($key, $this->metadata);
    }
    public function getMetadataValue(string $key, mixed $default = null)
    {
        if ($this->hasMetadata($key)) {
            return $this->metadata[$key];
        }
        return $default;
    }
    public function getValue() : array
    {
        return $this->args;
    }
}