harden runner fullcontext
This commit is contained in:
@@ -32,7 +32,7 @@ final readonly class PromptBuilder
|
||||
string $userId,
|
||||
string $urlContent,
|
||||
array $knowledgeChunks,
|
||||
bool $fullContext = false,
|
||||
?bool $fullContext = false,
|
||||
): string
|
||||
{
|
||||
$now = (new DateTimeImmutable())->format('Y-m-d H:i:s');
|
||||
@@ -47,7 +47,8 @@ final readonly class PromptBuilder
|
||||
throw new \RuntimeException('No active system prompt configured.');
|
||||
}
|
||||
|
||||
$systemBlock = "SYSTEM:\n" . $activePrompt->getContent();
|
||||
$activeSystemPrompt = str_replace('{%now%}', $now, $activePrompt->getContent());
|
||||
$systemBlock = "SYSTEM:\n" . $activeSystemPrompt;
|
||||
|
||||
// ------------------------------------------------------------
|
||||
// 2) CONVERSATION CONTEXT (AUTHORITATIVE)
|
||||
|
||||
Reference in New Issue
Block a user