<?php
namespace Claromentis\Core\Ai\Adapters\Vertex\Requests\Embedding;

$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] ?: array()) + array("_24ca62b4d01cc6d515dfd0be" . "a4c9d59a" => base64_decode("Y29udGV" . "udA=="), "_ab94c6905d095dfa521d004d9e379b" . "9e" => base64_decode("aW5zdGFuY" . "2Vz"));
use BadMethodCallException;
use Claromentis\Core\Ai\AiRequestInterface;
use Claromentis\Core\Ai\Parts\PartInterface;
use Webmozart\Assert\Assert;




class VertexAiTextEmbeddingRequest implements AiRequestInterface
{
    
    
    
    
    private array $parts;
    
    
    
    
    private string $modelName;
    
    
    
    
    
    public function __construct(array $_9961f986823b4be7f5c4cc8379c6b228, string $_c4bd72eb2cf14a125b21eb1fa39a0ae6, $_f407198d2ae7d5f41a9b5f94e136efe9 = false)
    {
        Assert::allIsInstanceOf($_9961f986823b4be7f5c4cc8379c6b228, PartInterface::class);
        $this->parts = $_9961f986823b4be7f5c4cc8379c6b228;
        $this->modelName = $_c4bd72eb2cf14a125b21eb1fa39a0ae6;
    }
    public function isStreaming() : bool
    {
        return false;
    }
    public function getModelName() : string
    {
        return $this->modelName;
    }
    public function serialize() : array
    {
        
        
        
        
        $_9961f986823b4be7f5c4cc8379c6b228 = $this->parts;
        $_ab94c6905d095dfa521d004d9e379b9e = [];
        foreach ($_9961f986823b4be7f5c4cc8379c6b228 as $_d962cfd1735adb2dfba46f69c7f15cb8) {
            $_ab94c6905d095dfa521d004d9e379b9e[] = [$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_24ca62b4d01cc6d515dfd0bea4c9d5" . "9a"] => $_d962cfd1735adb2dfba46f69c7f15cb8->getValue()];
        }
        return [$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_ab94c6905d095dfa521d004d9e379" . "b9e"] => $_ab94c6905d095dfa521d004d9e379b9e];
    }
    
    
    
    
    
    
    public function unserialize($data)
    {
        throw new BadMethodCallException();
    }
}