mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 03:03:44 +00:00
Use queueMessage for notifications in example
This commit is contained in:
parent
b73a9169cc
commit
262ba5487c
2 changed files with 2 additions and 106 deletions
|
|
@ -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.",
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue