Skip to content

feat(agents): allow updating recording options mid-session via update_options#6208

Draft
chenghao-mou wants to merge 2 commits into
mainfrom
chenghaomuo/agt-3041-make-agentsession-recording-options-publicly-updatable-740e
Draft

feat(agents): allow updating recording options mid-session via update_options#6208
chenghao-mou wants to merge 2 commits into
mainfrom
chenghaomuo/agt-3041-make-agentsession-recording-options-publicly-updatable-740e

Conversation

@chenghao-mou

@chenghao-mou chenghao-mou commented Jun 24, 2026

Copy link
Copy Markdown
Member

Adds a public way to change Agent Insights recording options during an active session, replacing the private session._recording_options.update(...).

  • AgentSession.update_options(record=...) — follows the canonical session update_options pattern. Accepts True/False to toggle every feature, or a partial RecordingOptions mapping that updates only the given keys (audio, traces, logs, transcript) and leaves the rest unchanged.
  • AgentSession.recording_options — read-only property returning a copy of the current options.

This makes it easy to toggle recording, traces, logs, or transcript collection mid-session, e.g. after recording consent is obtained.

Note: session audio is only captured when audio recording was enabled at start(), so enabling audio afterwards does not retroactively start the recorder; disabling always takes effect.

chenghao-mou and others added 2 commits June 24, 2026 13:26
Add AgentSession.update_recording_options() and a read-only
recording_options property so recording, traces, logs, and transcript
collection can be toggled during an active session (e.g. after consent
is obtained), replacing the private session._recording_options.update().

Generated with [Linear](https://linear.app/livekit/issue/AGT-3041/make-agentsession-recording-options-publicly-updatable#agent-session-5420ba6f)

Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
Use the canonical AgentSession.update_options(record=...) keyword instead
of a dedicated update_recording_options() method.

Generated with [Linear](https://linear.app/livekit/issue/AGT-3041/make-agentsession-recording-options-publicly-updatable#agent-session-5420ba6f)

Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
@chenghao-mou chenghao-mou changed the title feat(agents): expose public API to update recording options mid-session feat(agents): allow updating recording options mid-session via update_options Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant