Questions about AgentServer, WorkerOptions, and Prewarm in v1.3+

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

Questions about the new AgentServer in v1.3.1:

  1. Will AgentServer replace WorkerOptions entirely?
  2. What happens to Prewarm? Will it become obsolete and be replaced by AgentServer.setup_fnc?
  3. Should we run agents with uv run agent.py start instead of python -m agent.py start?
  1. WorkerOptions still exists for backwards compatibility, but has been renamed to ServerOptions with the same parameters. Many of these parameters can also be passed to the AgentServer constructor:
    Server options | LiveKit Documentation

  2. Prewarm is not going away, just how you attach it to AgentServer has changed. See the agent starter for an example:
    agent-starter-python/src/agent.py at main · livekit-examples/agent-starter-python · GitHub

  3. Yes, the recommended approach is uv run agent.py start.