new msg type debug

This commit is contained in:
team 1
2026-04-17 11:16:09 +02:00
parent 385bea9ed7
commit bab3682975

View File

@@ -46,12 +46,10 @@ final readonly class AgentRunner
return;
}
$urlContent = '';
$knowledgeChunks = [];
$shopResults = [];
$sources = [];
$optimizedShopQuery = '';
$commerceIntent = CommerceIntentLite::NONE;
$this->agentLogger->info('Agent run started', [
'userId' => $userId,
@@ -159,6 +157,10 @@ final readonly class AgentRunner
yield $this->emitSources($sources, 'Quellen: ');
}
if($this->debug){
yield $this->systemMsg($this->systemMsg($finalPrompt), 'debug');
}
// ---------------------------------------------------------
// 7) Persist conversation history
// ---------------------------------------------------------
@@ -359,6 +361,7 @@ final readonly class AgentRunner
'err' => '<span class="text-danger">' . $msg . "</span>\n<hr>\n",
'think' => '<span class="text-info think">' . $msg . "</span>\n",
'info' => "\n\n<span class=\"text-info fw-bolder\">" . $msg . "</span>\n",
'debug' => "\n\nDEBUG: <code>" . $msg . "</code>\n",
default => $msg,
};
}