<?php

declare(strict_types=1);

namespace App\Services\AiAssistant\Prompts;

use App\Services\AiAssistant\Context\TenantContext;
use Illuminate\Support\Facades\View;

class SystemPrompt
{
    public function build(array $context = []): string
    {
        $tenantContext = app(TenantContext::class)->get();

        return View::make('prompts.ai-system-prompts', array_merge($tenantContext, $context))->render();
    }
}
