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
" . $msg . "\n",
default => $msg,
};
}