magnificent-petabyte-38524
11/28/2025, 2:24 AMif __name__ == "__main__":
agents.cli.run_app(
agents.WorkerOptions(
entrypoint_fnc=entrypoint,
agent_name="test-agent",
permissions=agents.WorkerPermissions(
can_publish=False,
can_subscribe=True,
can_publish_data=False,
can_publish_sources=[],
hidden=True,
)
)
)
ListParticipant API Response says that Agent hidden option is set to True.
2025/11/28 11:14:48 - Participants (3):
2025/11/28 11:14:48 [1] Participant Details:
2025/11/28 11:14:48 * SID: PA_pYMBfL7fM56C
2025/11/28 11:14:48 * Identity: agent-AJ_r6BFTriEXekj
2025/11/28 11:14:48 * Name:
2025/11/28 11:14:48 * State: ACTIVE
2025/11/28 11:14:48 * Joined At: 2025-11-28 11:14:20 JST (1764296060)
2025/11/28 11:14:48 * Is Publisher: false
2025/11/28 11:14:48 * Permission: hidden:true
2025/11/28 11:14:48 * Region: otokyo1b
2025/11/28 11:14:48 * Metadata:
2025/11/28 11:14:48 * Tracks: Nonelively-winter-88668
11/28/2025, 11:49 AMmagnificent-petabyte-38524
12/01/2025, 2:21 AMmagnificent-petabyte-38524
12/01/2025, 4:55 AMmagnificent-petabyte-38524
12/01/2025, 5:08 AMlively-winter-88668
12/01/2025, 11:36 AMmagnificent-petabyte-38524
12/02/2025, 1:36 AMmagnificent-petabyte-38524
12/02/2025, 2:09 AMlively-winter-88668
12/02/2025, 10:17 AMSo, you think that the fact that the hidden option is not working is not a bug, and that there is likely some kind of misconfiguration on our side?It's difficult to say without being able to reproduce the issue - I also don't see other reports of this issue, nor do I see anything obvious in the server logs associated with that screenshot you sent above. Wait, I thought you were on our build tier pricing, but now I'm not so sure... are you on scale tier?
magnificent-petabyte-38524
12/02/2025, 4:17 PMmagnificent-petabyte-38524
12/02/2025, 4:17 PMlively-winter-88668
12/03/2025, 9:04 AMrefined-appointment-81829
12/03/2025, 1:17 PMpip freeze |grep livekit
or
uv pip freeze |grep livekitrefined-appointment-81829
12/03/2025, 1:41 PMrefined-appointment-81829
12/03/2025, 1:43 PMrefined-appointment-81829
12/03/2025, 1:50 PMhidden=True was that in an example somewhere? You should not need that unless I am mis-understanding your usecase. You should remove that.quaint-ambulance-32873
12/03/2025, 3:06 PMquaint-ambulance-32873
12/03/2025, 3:15 PMmagnificent-petabyte-38524
12/04/2025, 4:32 AMpip freeze |grep livekit
livekit==1.0.12
livekit-agents==1.2.1
livekit-api==1.0.4
livekit-blingfire==1.0.0
livekit-protocol==1.0.4magnificent-petabyte-38524
12/04/2025, 4:36 AMHave you reviewed this part of the guide for how to select with audio/video stream to render on the client?Not, yet. So there are two participants, the Agent and the Agent Worker, participating in the room.
magnificent-petabyte-38524
12/04/2025, 4:42 AMmagnificent-petabyte-38524
12/04/2025, 4:48 AMlooking forwards to hear what custom set up you got at your end.Let me share my frontend code using React SDK. I managed to hide the LiveKit Agent by filtering its tracks. However, I believe this is not the method the LiveKit development team intends or recommends.
....
....
....
return (
<RoomContext.Provider value={room}>
<div data-lk-theme="default" style={{ height: '100vh' }}>
<MyVideoConference />
<RoomAudioRenderer />
<ControlBar />
</div>
</RoomContext.Provider>
);
}
function MyVideoConference() {
const tracks = useTracks(
[
{ source: Track.Source.Camera, withPlaceholder: true },
{ source: Track.Source.ScreenShare, withPlaceholder: false },
],
{ onlySubscribed: false },
);
// Filter out tracks from LiveKit Agents (IDs starting with "agent")
const filteredTracks = tracks.filter(
(track) => !track.participant.identity.startsWith('agent')
);
return (
<GridLayout tracks={filteredTracks} style={{ height: 'calc(100vh - var(--lk-control-bar-height))' }}>
<ParticipantTile />
</GridLayout>
);
}magnificent-petabyte-38524
12/04/2025, 4:51 AMagent.py code.
Like I said, this agent is responsible only for streaming the individual participants’ audio and the mixed room audio over WebSocket. (It has lots of Japanese comments, sorry...)magnificent-petabyte-38524
12/04/2025, 4:52 AM// Dispatch LiveKit Agent
dispatchClient := lksdk.NewAgentDispatchServiceClient(
lkApiUrl,
lkApiKey,
lkApiSecret,
)
type agentMeta struct {
RoomName string `json:"room_name"`
OutputURL string `json:"output_url"`
AvatarID string `json:"avatar_id,omitempty"`
PrivateIP string `json:"private_ip,omitempty"`
}
metaBytes, _ := json.Marshal(agentMeta{
RoomName: roomName, OutputURL: req.OutputURL, AvatarID: req.AvatarID, PrivateIP: ec2.PrivateIPAddress,
})
agentReq := &livekit.CreateAgentDispatchRequest{
Room: roomName, AgentName: "test-agent", Metadata: string(metaBytes),
}
dispatch, err = dispatchClient.CreateDispatch(lockCtx, agentReq)
if err != nil {
u.rollbackCreateLiveKitRoom(lockCtx, ec2, roomName, ingress, roomModel)
return apperr.NewError(
apperr.InternalError,
err,
)
}quaint-ambulance-32873
12/04/2025, 9:48 AMmagnificent-petabyte-38524
12/05/2025, 4:07 AM