Is there a way to get the participant's id that ad...
# agents
c
Is there a way to get the participant's id that added a conversation item from the "conversation_item_added" event?
r
In the context of the
conversation_item_added
event, the event does not provide the participant's ID who added the conversation item.
c
is there a reason for that? If I want to store chat history in a database for persistence, where would you recommend that happens?
r
Have a look at this doc: https://docs.livekit.io/agents/ops/recording/#example Here is an example of loading chat history: https://github.com/livekit/agents/blob/main/examples/voice_agents/realtime_load_chat_history.py#L1-L58 You can also take a look at
session.history