Hi! We’ve been using LiveKit for some time, thanks...
# agents
c
Hi! We’ve been using LiveKit for some time, thanks for the great product. One issue we’re stuck on right now is how to match message ids in the Python agent SDK (we’re getting the item ID from the
conversation_item_added
event) and the iOS SDK (the segment ID since the app is subscribed to the transcriptions). The first one seems to be generated via the OpenAI LLM we’re using and the second one seems to be generated in
livekit.agents.voice.room_io._output._ParticipantStreamTranscriptionOutput._reset_state
(starts with
"SG_"
). Is there a way to match them? Is there a way to replace one with the other? I’ve been trying to figure this out in the Python LiveKit Agent, and what i found is I can actually extract the
agent.session._room_io._user_tr_output._ParticipantTranscriptionOutput__outputs[1]._current_id
which are the
"SG_"
IDs during the
conversation_item_added
handling, but they do not match the IDs on the client anyway 😞
👀 1
What we’re trying to achieve is we have RPC to “report the message” and we need some way to reference the message, but with IDs mismatch, we can’t figure out how to tackle that without just referencing text, or using chat message index, which sound like hacks.