send multimodal message on startup of multimodal agent
This commit is contained in:
		
							parent
							
								
									2f53be05db
								
							
						
					
					
						commit
						f6c13a13bd
					
				| 
						 | 
					@ -104,6 +104,9 @@ async def entrypoint(ctx: JobContext):
 | 
				
			||||||
        fnc_ctx=fnc_ctx,
 | 
					        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
 | 
					    # Initial message to start the interaction
 | 
				
			||||||
    session.conversation.item.create(
 | 
					    session.conversation.item.create(
 | 
				
			||||||
      llm.ChatMessage(
 | 
					      llm.ChatMessage(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue