`@server.rtc_session()` , I am new to this. Is th...
# agents
c
@server.rtc_session()
, I am new to this. Is this implemented in the new releases of LiveKit? My agent.py doesn't use this, but seems to be working fine. Can I get some understanding on the above decorator? Like I want to know if we have any documentation of what this decorator solves or adds. cc: @refined-appointment-81829
q
Copy code
if __name__ == "__main__":
    cli.run_app(WorkerOptions(entrypoint_fnc=entrypoint))
i believe the above code eventually run the same server.rtc_session so they are doing the same thing in different way
a code trace that I did
r
> Is
@server.rtc_session()
implemented in new releases? Yes. It was introduced in LiveKit Agents 1.3.3 (November 2025) as part of the new AgentServer API. The changelog notes: > "We've renamed Worker to AgentServer, and you now need to use a decorator to define the entrypoint." The old method is deprecated but is still supported to ease migration to the new format/ See these release notes: https://github.com/livekit/agents/releases/tag/livekit-agents%401.3.3
🙌 2
c
Thanks!