Skip to content

feat(anam): add director notes to PersonaConfig - #3057

Open
sr-anam wants to merge 2 commits into
livekit:mainfrom
anam-org:anam/port-director-notes
Open

sr-anam wants to merge 2 commits into
livekit:mainfrom
anam-org:anam/port-director-notes

Conversation

@sr-anam

@sr-anam sr-anam commented Nov 24, 2026

Copy link
Copy Markdown

Description

Ports livekit/agents#6267. Adds directorNotes to the Anam PersonaConfig, so an agent can set the avatar's expressivity and speaking style for a session: expressivity, presetStyle or customStylePrompt. Fields left unset are not sent, so Anam falls back to the avatar model's defaults.

Changes Made

  • DirectorNotes type and an optional PersonaConfig.directorNotes field
  • AnamAPI.startSession sends the set fields as personaConfig.directorNotes for an ephemeral persona. An expressivity of 0 is still sent.
  • Unit tests for the request body, a patch changeset, and the regenerated API report

Additional Notes

The JS plugin also supports a saved persona by personaId, which Python doesn't have. Anam ignores per-session director notes for a saved persona without reporting an error, so passing both now throws an AnamException before any request is made. Set the director notes on the saved persona instead.

Pre-Review Checklist

  • Build passes: All builds (lint, typecheck, tests) pass locally
  • AI-generated code reviewed: Removed unnecessary comments and ensured code quality
  • Changes explained: All changes are properly documented and justified above
  • Scope appropriate: All changes relate to the PR title, or explanations provided for why they're included
  • Video demo: A small video demo showing changes works as expected and did not break any existing functionality using Agent Playground (if applicable)

Testing

  • Automated tests added/updated (if applicable)
  • All tests pass
  • Make sure both restaurant_agent.ts and realtime_agent.ts work properly (for major changes)

Ran locally: pnpm vitest run plugins/anam, pnpm build and pnpm api:update in plugins/anam, pnpm eslint plugins/anam/src (no errors) and Prettier on the changed files.


Ported from livekit/agents#6267

🤖 Generated with Claude Code

Ported from livekit/agents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sr-anam
sr-anam requested a review from a team as a code owner November 24, 2026 10:16
@changeset-bot

changeset-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6b0aa09

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 42 packages
Name Type
@livekit/agents-plugin-anam Patch
@livekit/agents Patch
@livekit/agents-plugin-anthropic Patch
@livekit/agents-plugin-assemblyai Patch
@livekit/agents-plugin-azure Patch
@livekit/agents-plugin-baseten Patch
@livekit/agents-plugin-bey Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-cerebras Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-did Patch
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents-plugin-fishaudio Patch
@livekit/agents-plugin-google Patch
@livekit/agents-plugin-hume Patch
@livekit/agents-plugin-inworld Patch
@livekit/agents-plugin-krisp Patch
@livekit/agents-plugin-lemonslice Patch
@livekit/agents-plugin-liveavatar Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-meta Patch
@livekit/agents-plugin-minimax Patch
@livekit/agents-plugin-mistral Patch
@livekit/agents-plugin-mistralai Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-nvidia Patch
@livekit/agents-plugin-openai Patch
@livekit/agents-plugin-perplexity Patch
@livekit/agents-plugin-phonic Patch
@livekit/agents-plugin-protoface Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-rime Patch
@livekit/agents-plugin-runway Patch
@livekit/agents-plugin-sarvam Patch
@livekit/agents-plugin-silero Patch
@livekit/agents-plugin-soniox Patch
@livekit/agents-plugin-speechify Patch
@livekit/agents-plugin-synthesia Patch
@livekit/agents-plugin-tavus Patch
@livekit/agents-plugins-test Patch
@livekit/agents-plugin-trugen Patch
@livekit/agents-plugin-xai Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

devin-ai-integration[bot]

This comment was marked as resolved.

The body now carries director-notes style prompts, so log redaction
needs to be able to drop it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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