run_app
run_app
run_app
run_app(server) -> None
The main entry point for a LiveWire application. It prints the ASCII banner,
runs the setup function (if registered on the server), creates a
JobContext, invokes the
registered entrypoint, prints a random tip, and starts the underlying SignalWire agent.
This mirrors livekit.agents.cli.run_app. It is also available as cli_ns.run_app.
Parameters
server
The AgentServer instance
with a registered entrypoint.
Returns
None — This function blocks while the agent is running.
Lifecycle
- Prints the LiveWire ASCII banner to stderr.
- If
server.setup_fncis set, calls it with a freshJobProcessinstance. - Creates a
JobContext. - Calls the entrypoint registered via
@server.rtc_session(). If the entrypoint is a coroutine, it is awaited. - Prints a random “Did you know?” tip to stderr.
- Starts the underlying SignalWire agent (blocking).