adamant-sandwich-74490
12/22/2025, 1:19 PMlivekit-agents 1.2.9) and I've just noticed this new "agent server" (never heard of it before, although I have agents built with the LiveKit Agents framework running in production).
Before, this was just called "worker". And it seems that the way to initialise a "worker" and an "agent server" is different.
Am I hallucinating, or is this a real thing? 😄 Is there a migration guide somewhere?adamant-sandwich-74490
12/22/2025, 1:28 PMNew AgentServer API
We've renamed Worker to AgentServer, and you now need to use a decorator to define the entrypoint. All existing functionality remains backward compatible. This change lays the groundwork for upcoming design improvements and new features.
server = AgentServer()
def prewarm(proc: JobProcess): ...
def load(proc: JobProcess): ...
server.setup_fnc = prewarm
server.load_fnc = load
@server.rtc_session(agent_name="my_customer_service_agent")
async def entrypoint(ctx: JobContext): ...adamant-sandwich-74490
12/22/2025, 1:29 PMadamant-sandwich-74490
12/22/2025, 1:33 PMadamant-sandwich-74490
12/22/2025, 1:34 PMadamant-sandwich-74490
12/23/2025, 4:30 AMadamant-sandwich-74490
12/23/2025, 4:31 AMadamant-sandwich-74490
12/23/2025, 4:32 AMlively-winter-88668
12/23/2025, 9:00 AMadamant-sandwich-74490
12/23/2025, 1:48 PMlively-winter-88668
12/23/2025, 2:24 PM