How It Works
Enable recording when you serve or invoke the agent, and the framework automatically:- Starts recording when the agent joins the session.
- Starts recording for each participant as they join.
- Stops and merges the recordings when the session ends.
What You Can Record
By default, only audio is captured. Set the additional stream fields onRoom to opt in:
Configure Recording
The quickest way to record every session a process serves is aRoom(recording=True) on zeroruntime.serve():
recording=True on the Room you pass to zeroruntime.invoke():
recording_video=True to the same Room:
recording_screen_share=True along with vision=True on the Room:
Recording Lifecycle Events
Recording lifecycle hooks let you observe when recording starts, stops, or fails without polling any API. They are side-effect-only: they react to events without changing the data flow.Hooks fire only when recording is enabled. Turn recording on with
recording=True on zeroruntime.serve(), or by setting recording=True on the Room you pass to zeroruntime.invoke().
Register the hooks on your pipeline to react to each event:
Best Practices
- Inform participants that the session is being recorded.
- Ensure requests are properly authenticated with a valid token.
- Monitor recording status and errors using the recording lifecycle hooks.
- Implement a data retention policy and meet the regulations that apply to your users.
What’s Next
Analytics
Pair recordings with traces, metrics, and logs for each session.
Run Your Agent
Run an agent session and capture it with recording.