From bab3682975fbc8c7d8208e2ff8fc6ed92722d6a6 Mon Sep 17 00:00:00 2001 From: team 1 Date: Fri, 17 Apr 2026 11:16:09 +0200 Subject: [PATCH] new msg type debug --- src/Agent/AgentRunner.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Agent/AgentRunner.php b/src/Agent/AgentRunner.php index ab31088..81fd505 100644 --- a/src/Agent/AgentRunner.php +++ b/src/Agent/AgentRunner.php @@ -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' => '' . $msg . "\n
\n", 'think' => '' . $msg . "\n", 'info' => "\n\n" . $msg . "\n", + 'debug' => "\n\nDEBUG: " . $msg . "\n", default => $msg, }; }