billowy-lawyer-17667
12/12/2025, 7:57 AMtall-airline-16756
12/12/2025, 7:57 AMtall-airline-16756
12/12/2025, 7:57 AM@agents.rtc_session() and call your API inside before/after ctx.connect() or session start.
• Node.js example: in defineAgent({ entry: async (ctx: JobContext) => { ... } }) call your API inside the entry function before continuing with ctx.connect() and creating the AgentSession.
Would you like a short code snippet for your preferred runtime (Python or Node.js) showing where to place the API call?
Sources: Agent server options | LiveKit docsbillowy-lawyer-17667
12/12/2025, 8:06 AMtall-airline-16756
12/12/2025, 8:06 AMagents.run_app(worker) (Python) or inside the `entry`/startup code of your agent (Node.js). That moment corresponds to when the worker connects and registers.
• Or emit the call from your job handler the first time it receives a job if you need to wait until the worker is fully ready to handle jobs.
• If you need an out-of-process solution, tail/forward agent logs (the "registered worker" log line) and trigger your internal API from your logging/observability pipeline.
If you want, tell me whether you use Python or Node.js and I’ll show a 3–6 line snippet showing exactly where to place the API call.
Sources: server-sdk-js | livekit/livekit_composite | DeepWiki | client-sdk-js | livekit/livekit_composite | DeepWiki | Agents Framework | livekit/livekit_composite | DeepWiki