thankful-plastic-70087
09/18/2025, 3:08 PMjolly-air-155
09/19/2025, 8:10 AMRoomInputOptions https://github.com/livekit/agents/blob/livekit-agents@1.2.11/livekit-agents/livekit/agents/voice/room_io/room_io.py#L71, by default the input text will be used as input of generate_reply()great-tiger-31125
11/21/2025, 3:14 PMroom.registerTextStreamHandler('lk.transcription', async (reader) => {
const message = await reader.readAll()
// other code
}
• and can send msgs using
await room.localParticipant.sendText(message, { topic: 'lk.chat' });
• on livekit server side, its getting under a callback fn
def handle_text_input(session: AgentSession, ev):
logger.info(f"Received text from {ev.participant.identity}: {ev.text}")
session.generate_reply(user_input=ev.text)
await call_session.session.start(
room=call_session.ctx.room,
agent=main_agent,
room_input_options=RoomInputOptions(
text_enabled=True, audio_enabled=False, text_input_cb=handle_text_input
),
room_output_options=RoomOutputOptions(transcription_enabled=True, audio_enabled=False),
)
• But the issue I am facing is lets say user1 initiates the agent and room with lk tokens and dispatch the agent. then whatever user1 texting coming on this callback fn, but whatever user2 who joined the room later, texting is not coming on this callback fn handle_text_input
Is this callback fn can't handle interaction from multiple participants?
Please helpjolly-air-155
11/22/2025, 1:11 AM