gentle-crowd-64495
11/01/2025, 2:51 PMtall-airline-16756
11/01/2025, 2:52 PMtall-airline-16756
11/01/2025, 2:52 PMCreateRoom API, or updated later with the UpdateRoomMetadata API. If it was never set or left as an empty string, it will understandably show up as missing.
• Agent Initialization: Sometimes, during the agent's initialization, the metadata might not be populated yet. It’s a good idea for the agent to check if the metadata exists before trying to access it and gracefully handle situations where it’s not available right away.
• Server-Side Updates: Remember, only server-side components that have access to the LiveKit API key and secret can update the room metadata. Double-check that the server logic responsible for setting this metadata is running correctly.
• Listening for Updates: The agent should also be set up to listen for RoomMetadataChanged events. This way, it can stay updated whenever the metadata changes.
To sum up, please verify that the metadata is being properly set and updated on the server side, and that your agent is handling and listening for these metadata updates as expected. If you have any questions or need further assistance, I’m here to help!
Sources: agent/game_host.py | Room metadata | LiveKit Docs | State synchronization