Use queueMessage for notifications in example
This commit is contained in:
@@ -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.",
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user