agents
agents copied to clipboard
JobRequest- req.room.metadata is null in livekit-agents==0.8.9 and 0.8.10 on self hosted cluster.
For LiveKit agent plugin versions livekit-agents==0.8.8, we get room metadata in
async def request_fnc(req: JobRequest) -> None:
in req.room.metadata as value what we set while creating room, but in version 0.8.9 and 0.8.10 room metadata is empty.This is creating issue as we decide whether to accept or reject job by an worker based on metadata.
For debugging this further we setup another Kubernetes cluster with latest version of LiveKit server(1.7.2) and on that we faced same issue, but when we try same agent with a cloud url we are getting data for req.room.metadata in that case in request_fnc function.All this works fine upto version 0.8.8, and after that it works fine only against cloud deployments.
While debugging further we noticed that when worker registers against self hosted LiveKit server we get—
{"message": "registered worker", "level": "INFO", "id": "AW_RUiaBy8tZiJG", "server_info": "version: "1.7.2"\nprotocol: 14\nnode_id: "ND_YoMMvbptFrzu"\nagent_protocol: 1\n", "timestamp": "2024-09-06T13:38:17.174800+00:00"}
And on cloud we get- {"message": "registered worker", "level": "INFO", "id": "AW_9WpsyqqF9Zjp", "server_info": "edition: Cloud\nversion: "1.7.2"\nprotocol: 15\nregion: "India"\nnode_id: "NC_DBLR1A_auoA9TfuCnyV"\n", "timestamp": "2024-09-06T09:19:44.927947+00:00”}
Is it due to protocol difference 14 and 15?