The main entry point for a LiveWire application. It prints the ASCII banner, runs
the prewarm function (if defined), creates a JobContext, prints a random tip,
invokes the registered entry function, and starts the underlying SignalWire agent.
This mirrors cli.runApp() from @livekit/agents-js. It is also available as
cli.runApp.
The agent definition returned by defineAgent(), or an object
with entry and optional prewarm functions.
void — This function runs the agent lifecycle asynchronously.
prewarm function, calls it with a fresh
JobProcess instance. Logs an informational message noting that
warm process pools are not needed on SignalWire.JobContext.entry function with the JobContext. If the entry function is async,
it is awaited.Wraps an entry function (and optional prewarm function) into an agent definition
object that can be passed to runApp(). This mirrors defineAgent() from
@livekit/agents-js.
The main entry function for the agent. Receives a JobContext and
should create an Agent, an AgentSession, and call session.start().
Optional setup function called before the entry function. Receives a
JobProcess whose userData object can be used to share state
with the entry function.
The same object, for passing to runApp().