<?php

namespace KupShop\LLMBundle\Admin\Tabs;

use KupShop\AdminBundle\Admin\WindowTab;
use Symfony\Component\DependencyInjection\Attribute\Autowire;

class LlmSettingsTab extends WindowTab
{
    protected $title = 'flapLlm';

    protected $template = 'LlmSettingsTab.tpl';

    private string $defaultSystemPrompt;

    public function __construct(#[Autowire('%kupshop.llm.prompts%')] $systemPrompt)
    {
        $this->defaultSystemPrompt = $systemPrompt['defaultUserSystem'];
    }

    public static function getTypes()
    {
        return [
            'settings' => 1,
        ];
    }

    public function getVars($smarty_tpl_vars)
    {
        return [
            'system_prompt_default' => $this->defaultSystemPrompt,
        ];
    }
}
