AgentsLiveWire

AgentServer

View as MarkdownOpen in Claude

AgentServer mirrors a LiveKit AgentServer (or WorkerOptions). It registers a session entrypoint and an optional setup function, then is passed to run_app() to start the agent.

This is the LiveWire AgentServer, not the SignalWire AgentServer used for multi-agent hosting. The LiveWire version provides LiveKit-compatible registration methods; under the hood it creates a single-agent SignalWire deployment.

1from signalwire.livewire import AgentServer, JobContext, run_app
2
3server = AgentServer()
4
5@server.rtc_session()
6async def entrypoint(ctx: JobContext):
7 # Set up agent and session here
8 pass
9
10run_app(server)

Properties

setup_fnc
Optional[Callable]

A setup function called before the entrypoint. Receives a JobProcess instance. Assign directly to register.

Methods