Use queueMessage for notifications in example

This commit is contained in:
Mario Zechner 2025-12-28 11:49:41 +01:00
parent b73a9169cc
commit 262ba5487c
2 changed files with 2 additions and 106 deletions

View file

@ -344,9 +344,9 @@ const renderApp = () => {
size: "sm",
children: icon(Bell, "sm"),
onClick: () => {
// Demo: Inject custom message
// Demo: Inject custom message (will appear on next agent run)
if (agent) {
agent.appendMessage(
agent.queueMessage(
createSystemNotification(
"This is a custom message! It appears in the UI but is never sent to the LLM.",
),