send multimodal message on startup of multimodal agent

This commit is contained in:
Ben Xu 2024-12-09 13:35:55 -08:00
parent 2f53be05db
commit f6c13a13bd
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ async def entrypoint(ctx: JobContext):
fnc_ctx=fnc_ctx,
)
# Send a message to the client to switch to multimodal mode
await ctx.room.local_participant.publish_data(payload="{MULTIMODAL_MODE}", topic="agent_mode")
# Initial message to start the interaction
session.conversation.item.create(
llm.ChatMessage(