Skip to content

Feat/session options egress - #58

Merged
sebvanleuven merged 5 commits into
mainfrom
feat/session-options-egress
Jun 2, 2026
Merged

Feat/session options egress#58
sebvanleuven merged 5 commits into
mainfrom
feat/session-options-egress

Conversation

@sebvanleuven

@sebvanleuven sebvanleuven commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Add direct egress to publish the avatar’s audio/video directly into a Daily.co room. Enable via SessionOptions.egress; default media path is unchanged unless set.

New Features:

  • Extended SessionOptions with optional egress.
  • Added EgressOptions with mode="daily" and a required daily block.
  • Added EgressDailyOptions (room_url, optional token, user_name).
  • Expanded README with a Daily setup example and token guidance.

Summary by cubic

Add direct egress to publish the avatar’s audio/video straight into a Daily room. Experimental (Cara-4 only) with an explicit alpha-breaking changes warning; defaults unchanged unless SessionOptions.egress is set.

  • New Features
    • New types: EgressOptions (mode="daily") and EgressDailyOptions (room_url, optional token, user_name); integrated into SessionOptions (optional egress) with validation/serialization and exported via anam.__init__.
    • Docs: Added a dedicated Daily egress section with example, stronger warning about upcoming alpha changes, and clearer token rules (token must match the room_url; omit for public rooms).

Written for commit 933c46b. Summary will update on new commits.

Review in cubic

sebvanleuven and others added 2 commits May 20, 2026 10:58
…rk delivery via sessionOptions.egress; add support for Daily rooms
Co-authored-by: Cursor <cursoragent@cursor.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 3 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/anam/types.py">

<violation number="1" location="src/anam/types.py:132">
P2: `EgressDailyOptions.user_name` default does not match the documented API default (`"anam-avatar"`). Set the field default accordingly so omitted values serialize consistently with the SDK contract.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread README.md Outdated
@sebvanleuven
sebvanleuven requested a review from sr-anam June 1, 2026 15:55
@anam-org anam-org deleted a comment from cubic-dev-ai Bot Jun 1, 2026
@sebvanleuven
sebvanleuven merged commit 01a58bb into main Jun 2, 2026
8 checks passed
@sebvanleuven
sebvanleuven deleted the feat/session-options-egress branch June 17, 2026 23:27
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.

3 participants