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