new msg type debug
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user