Skip to content

Initial Livekit support #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 11, 2025
Merged

Initial Livekit support #6

merged 5 commits into from
Jun 11, 2025

Conversation

treo
Copy link
Contributor

@treo treo commented Jun 10, 2025

This pull request introduces a new integration between Xaibo agents and LiveKit voice assistants, along with supporting documentation, code, and configuration updates. The changes focus on enabling developers to create real-time conversational AI applications using Xaibo agents within the LiveKit framework. Key updates include the addition of integration-specific guides, reference documentation, and code modules.

Documentation Updates

  • docs/how-to/index.md: Added a new "Integrations" section with a guide on using Xaibo agents in LiveKit voice assistants.
  • docs/reference/index.md: Added a new "Integration Reference" section with a detailed API reference for LiveKit integration.
  • docs/how-to/integrations/livekit-voice-assistant.md: Created a comprehensive guide for integrating Xaibo agents with LiveKit, including setup, configuration, and troubleshooting steps.
  • docs/reference/integrations/livekit.md: Added detailed API documentation for the LiveKit integration, covering classes, methods, and usage examples.

Codebase Enhancements

  • src/xaibo/integrations/livekit/__init__.py: Introduced the XaiboPlugin class for seamless integration with LiveKit agents, along with supporting modules (XaiboAgentLoader, XaiboLLM, XaiboLLMStream).

Configuration Updates

  • pyproject.toml: Added LiveKit integration dependencies and classifiers for Python versions and AI-related topics. [1] [2]
  • src/xaibo/cli/__init__.py: Updated CLI initialization to support LiveKit configuration and environment variable generation. [1] [2]

Navigation Updates

  • mkdocs.yml: Updated navigation to include links to the new LiveKit integration guide and reference documentation. [1] [2]

treo added 5 commits June 10, 2025 09:58
Replaced simulated streaming with a queue-based system for true real-time response streaming. Refactored the agent construction process to include a conversation history and a streaming response handler. Added methods to handle queue-based streaming, timeout handling, and final usage token reporting.
Introduces a new example demonstrating a voice assistant with Xaibo and LiveKit for real-time voice interactions. Includes YAML-based agent configuration, necessary tools, a testing suite, and setup instructions with OpenAI and Silero integrations.
Introduced a new "Examples" section in the how-to guide, featuring links to working examples like Google Calendar and LiveKit Voice Assistant.
@treo treo merged commit 9493cef into main Jun 11, 2025
2 checks passed
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