Hi Livekit Builder's I’m using LiveKit Agents wit...
# agents
r
Hi Livekit Builder's I’m using LiveKit Agents with a Custom LLM connected over WebSocket. I’m trying to send a custom metadata object from my Custom LLM’s response to the client, and I want this metadata to be part of the streaming text response — so the client can access it alongside the tokens. Does LiveKit provide any built-in support for including or transmitting metadata in this flow?
f
Can you give an example of what it looks like in the response? Something like
Copy code
<metadata>...</metadata>Hi, this is Mr Robot from Robot company. How can I help you today?
I don't think there is built-in support, but you can parse the output directly in the llm_node.
👀 1
r
Can you use function calls to set the metadata in the room?
r
We tried metadata tag approach and it appears to be feasible Everything seems to work as expected