-
Notifications
You must be signed in to change notification settings - Fork 5
feat: Add voice agent SDK module and CLI template #254
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
Open
ben-kluger-scale
wants to merge
7
commits into
main
Choose a base branch
from
feat/voice-agent-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Add comprehensive voice agent support to the Agentex SDK: ## New SDK Module (src/agentex/voice/) - VoiceAgentBase: Base class with state management, interruption handling, guardrail execution, and streaming support - AgentState/AgentResponse: Pydantic models for conversation state - Guardrail/LLMGuardrail: Abstract base classes for implementing guardrails ## New CLI Template (agentex init --voice) - Full project scaffolding for voice agents - Multi-provider LLM support (OpenAI, Azure, SGP, Vertex AI, Mock) - Docker + Kubernetes deployment configuration - Example guardrail structure ## CLI Changes - Added hidden --voice flag to 'agentex init' command - Generates voice-specific project structure ## Dependencies - Added partial-json-parser for streaming JSON parsing - Added google-auth for Vertex AI authentication
5eecbb6 to
b019504
Compare
- Removed hidden --voice flag - Added 'Conversational Agent' to template selection table - Added description: real-time conversational agent with interruption handling, state management, and guardrail support
Make the template voice-provider agnostic: - Renamed 'Voice Agent powered by LiveKit' to 'Conversational Agent' - Removed LiveKit credential examples from manifest - Removed LiveKit env var examples from README - Updated docstrings to be provider-neutral The agent exposes a standard ACP endpoint that any voice provider (LiveKit, Twilio, etc.) can connect to.
MichaelSun48
reviewed
Feb 2, 2026
Co-authored-by: Michael Sun <55160142+MichaelSun48@users.noreply.github.com>
Per team feedback, keep the voice template as a hidden flag until audio package integration is complete. Users who understand the limitations can use: agentex init --voice
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add comprehensive voice agent support to the Agentex SDK:
New SDK Module (src/agentex/voice/)
New CLI Template (agentex init)
CLI Changes
Dependencies
What's Different About This Template
Unlike standard templates where you write ACP handlers from scratch, the Conversational Agent template uses
VoiceAgentBasewhich provides:Developers implement just 2 methods (
get_system_prompt,update_state_and_tracing_from_response) and get production-ready conversational agents.What Gets Generated
Running
agentex init→ "Conversational Agent" creates:acp.py specifics
Key Code:
project/acp.py