send multimodal message on startup of multimodal agent

pull/314/head
Ben Xu 1 month ago
parent 2f53be05db
commit f6c13a13bd

@ -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(

Loading…
Cancel
Save