Skip to content

Conversation

@tinalenguyen
Copy link
Member

@tinalenguyen tinalenguyen commented Jan 26, 2026

xai.realtime.WebSearch willl remain valid syntax

Summary by CodeRabbit

  • New Features
    • Three new search capabilities are now available: web search functionality, file search functionality, and XSearch.

✏️ Tip: You can customize this high-level summary in your review settings.

@chenghao-mou chenghao-mou requested a review from a team January 26, 2026 18:16
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 26, 2026

📝 Walkthrough

Walkthrough

Added imports for FileSearch, WebSearch, and XSearch from the tools module to the realtime package's __init__.py file, and updated the __all__ export list to include these three classes, making them publicly available from the realtime package.

Changes

Cohort / File(s) Summary
Package Exports
livekit/plugins/xai/realtime/__init__.py
Added imports for FileSearch, WebSearch, and XSearch from ..tools module. Updated __all__ list to export these three search/tool classes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 Three tools now shine in the realtime glow,
FileSearch, WebSearch, and XSearch flow,
From buried imports to public light,
A rabbit's export list done just right! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly relates to the main change—exporting tools from the realtime module to ensure backward compatibility. The phrase 'backward compatibility for tools' accurately summarizes the intent.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

🧹 Recent nitpick comments
livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/realtime/__init__.py (1)

14-16: Consider alphabetical ordering in __all__ for consistency.

The existing entries in __all__ are alphabetically ordered. The new entries would be more consistent as FileSearch, WebSearch, XSearch.

♻️ Suggested reordering
 __all__ = [
+    "FileSearch",
     "GrokVoices",
     "RealtimeModel",
     "RealtimeSession",
     "TurnDetection",
     "WebSearch",
-    "FileSearch",
     "XSearch",
 ]
📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 76193a6 and f12f69d.

📒 Files selected for processing (1)
  • livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/realtime/__init__.py
🧰 Additional context used
📓 Path-based instructions (1)
**/*.py

📄 CodeRabbit inference engine (AGENTS.md)

**/*.py: Format code with ruff
Run ruff linter and auto-fix issues
Run mypy type checker in strict mode
Maintain line length of 100 characters maximum
Ensure Python 3.9+ compatibility
Use Google-style docstrings

Files:

  • livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/realtime/__init__.py
🧬 Code graph analysis (1)
livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/realtime/__init__.py (1)
livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/tools.py (3)
  • FileSearch (35-49)
  • WebSearch (14-18)
  • XSearch (22-31)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: type-check (3.9)
  • GitHub Check: type-check (3.13)
  • GitHub Check: livekit-plugins-openai
  • GitHub Check: livekit-plugins-deepgram
  • GitHub Check: livekit-plugins-cartesia
  • GitHub Check: livekit-plugins-inworld
  • GitHub Check: unit-tests
🔇 Additional comments (1)
livekit-plugins/livekit-plugins-xai/livekit/plugins/xai/realtime/__init__.py (1)

5-5: LGTM!

The import correctly re-exports the tool classes from the parent tools module, enabling backward-compatible access via xai.realtime.WebSearch, xai.realtime.FileSearch, and xai.realtime.XSearch.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


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

@tinalenguyen tinalenguyen merged commit f46b591 into main Jan 26, 2026
20 checks passed
@tinalenguyen tinalenguyen deleted the tina/export-xai-tools-realtime branch January 26, 2026 18:19
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