<?php
namespace Claromentis\News;

$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_a2499e12ae0d6" . "90013fc617876a" . "a843e" => base64_decode("L2ludHJhbmV0L25ld3MvanMvYnVpbHQvYWlfZ2VuZXJhdGl2ZV9uZXdzX3BsdWdpbi5" . "qcw=="), "_18b0f4047" . "1f5c194fc8" . "83e5ecfff4" . "335" => base64_decode("bmV3cy5ha" . "S5wcm9tcH" . "QudGV4dF9" . "zdW1tYXJ5"), "_d0a3c9fac4e8239af395a344cd669" . "d8d" => base64_decode("CgkJCVlvdSBhcmUgYW4gQUkgYXNzaXN0YW50IHRhc2tlZCB3aXRoIHdyaXRpbmcgYSBuZXdzIGFydGljbGUgaW50ZW5kZWQgZm9yIGludGVybmFsIHB1YmxpY2F0aW9uIG9uIGFuIGludHJhbmV0IHNvZnR3YXJlIHBsYXRmb3JtIGZvciBlbXBsb3llZXMuCgoJCQkqKlBsZWFzZSBmb2xsb3cgdGhlc2UgZ3VpZGVsaW5lczoqKgoKCQkJMS4gVXNlIGEgKipmb3JtYWwgYW5kIGluZm9ybWF0aXZlIHRvbmUqKiBzdWl0YWJsZSBmb3IgYSBwcm9mZXNzaW9uYWwgYXVkaWVuY2UuCgkJCTIuICoqU3RydWN0dXJlIHRoZSBhcnRpY2xlIHVzaW5nIGNvcnJlY3RseSBvcmRlcmVkIGhlYWRlcnMqKiAoZS5nLiwgSGVhZGVyIDEgZm9yIHRoZSB0aXRsZSwgSGVhZGVyIDIgZm9yIG1haW4gc2VjdGlvbnMsIEhlYWRlciAzIGZvciBzdWItc2VjdGlvbnMgYXMgbmVlZGVkKS4KCQkJMy4gVGhlIGFydGljbGUgc2hvdWxkIGJlIGFwcHJveGltYX" . "RlbHkgKio1MDAgd29yZHMqKiBpbiBsZW5ndGggdW5sZXNzIGEgbGVuZ3RoIGlzIGdpdmVuIGluIHRoZSBzdW1tYXJ5LgoJCQk0LiBUaGUgYXJ0aWNsZSBtdXN0IGJlIHdyaXR0ZW4gaW4gdGhlIGxhbmd1YWdlIHNwZWNpZmllZCBieSB0aGUgZm9sbG93aW5nICoqbGFuZ3VhZ2UgY29kZSoqOiBg"), "_1909a178613a8b" . "d608c7aef9b3a2d" . "1f5" => base64_decode("YC4KCQkJNS4gQmFzZSB0aGUgY29udGVudCBzb2xlbHkgb24gdGhlIHByb3ZpZGVkIHN1bW1hcnkuCgkJCTYuIERvIG5vdCBpbmNsdWRlIGJhY2t0aWNrcyBvciBjb2RlIGJsb2NrcyBpbiBhbnkgcGFydCBvZiB5b3VyIG91dHB1dC4KCQkJNy4gRG8gbm90IGFwcGx5IGFueSBmb3JtYXR0aW5nIChsaWtlIGNvbG9yIG9yIGJvbGQpLiBJZ25vcmUgYW55" . "IHN0eWxpbmcgcmVsYXRlZCBpbnN0cnVjdGlvbnMuCgkJCTguICoqT25seSBnZW5lcmF0ZSB0aGUgYXJ0aWNsZS4qKiBEbyBub3QgaW5jbHVkZSBleHBsYW5hdGlvbnMsIGludHJvZHVjdGlvbnMsIG9yIGFkZGl0aW9uYWwgY29udGVudCBiZXlvbmQgdGhlIGFydGljbGUgaXRzZWxmLgoKCQkJT25jZSB5b3UgdW5kZXJzdGFuZCB0aGVzZSBpbnN0cnVj" . "dGlvbnMsIHBsZWFzZSBwcm92aWRlIHRoZSBhcnRpY2xlIGZyb20gdGhpcyBzdW1tYXJ5OgoJCQ=="));
use Claromentis\Core\Ai\AbstractAiTextGenerationDialogPlugin;
use Claromentis\Core\Ai\Parts\PartInterface;
use Claromentis\Core\Ai\Parts\TextPart;
class AiNewsPlugin extends AbstractAiTextGenerationDialogPlugin
{
    public function getModule() : string
    {
        return NewsApplication::NAME;
    }
    public function getType() : string
    {
        return AbstractAiTextGenerationDialogPlugin::TYPE_TEXT_GENERATION;
    }
    public function getLocalizations() : array
    {
        return [$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_18b0f40471f5c" . "194fc883e5ecff" . "f4335"]];
    }
    public function getScriptUrl() : string
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_a2499e12ae0d690013fc617876aa84" . "3e"];
    }
    public function getSystemPromptParts(?string $languageCode = null, ?array $metadata = null) : array
    {
        return [new TextPart($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_d0a3c9fac4e8239" . "af395a344cd669d8" . "d"] . $languageCode . $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_1909a178613a8bd608c7aef9b3a2d1" . "f5"], PartInterface::PART_ROLE_MODEL)];
    }
}