Skip to content

add new demo, add interruption logic#524

Merged
maxkahan merged 3 commits intomainfrom
add-grok-demo
Apr 29, 2026
Merged

add new demo, add interruption logic#524
maxkahan merged 3 commits intomainfrom
add-grok-demo

Conversation

@maxkahan
Copy link
Copy Markdown
Contributor

No description provided.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 28, 2026

📝 Walkthrough

Walkthrough

Adds a runnable xAI Realtime "conference companion" voice agent example at plugins/xai/example/xai_conference_companion_example.py. The module defines in-memory attendee and schedule datasets, a session-scoped notes store, a _resolve_handle resolver, a _log_tool logger, registers five async tools (get_attendee, save_note, recall_notes, get_my_schedule, find_attendees_by_interest), and exposes async def create_agent(**kwargs) -> Agent and async def join_call(agent: Agent, call_type: str, call_id: str, **kwargs) -> None plus a CLI entrypoint via AgentLauncher. Separately, plugins/xai/vision_agents/plugins/xai/xai_realtime.py now interrupts current agent audio/output on input_audio_buffer.speech_started and conditionally emits an interrupted-style audio-output-done event. Lines changed: +277/-0.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 583e4a4b-b092-4750-813b-423de2e36351

📥 Commits

Reviewing files that changed from the base of the PR and between ddce45e and 5b1ac6a.

📒 Files selected for processing (3)
  • plugins/xai/example/xai_conference_companion_example.py
  • plugins/xai/vision_agents/plugins/xai/xai_realtime.py
  • test.txt

Comment thread plugins/xai/example/xai_conference_companion_example.py
Comment thread plugins/xai/example/xai_conference_companion_example.py Outdated
Comment thread plugins/xai/example/xai_conference_companion_example.py
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 949893c6-0eda-49a0-8d9d-c5366ceb8e15

📥 Commits

Reviewing files that changed from the base of the PR and between 5b1ac6a61d3891bbe670ebb8e4f8470eff43f22c and 10e7626.

📒 Files selected for processing (2)
  • plugins/xai/example/xai_conference_companion_example.py
  • plugins/xai/vision_agents/plugins/xai/xai_realtime.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • plugins/xai/example/xai_conference_companion_example.py

Comment thread plugins/xai/vision_agents/plugins/xai/xai_realtime.py Outdated
@GetStream GetStream deleted a comment from coderabbitai Bot Apr 29, 2026
@GetStream GetStream deleted a comment from Nash0x7E2 Apr 29, 2026
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2bf87438-687c-4dcd-8afa-7c9139587e44

📥 Commits

Reviewing files that changed from the base of the PR and between d4c8b33 and 92a2f3b.

📒 Files selected for processing (2)
  • plugins/xai/example/xai_conference_companion_example.py
  • plugins/xai/vision_agents/plugins/xai/xai_realtime.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • plugins/xai/example/xai_conference_companion_example.py

Comment thread plugins/xai/vision_agents/plugins/xai/xai_realtime.py
@maxkahan maxkahan merged commit 4927062 into main Apr 29, 2026
6 checks passed
@maxkahan maxkahan deleted the add-grok-demo branch April 29, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants