feat: Add voice agent SDK module and CLI template#254
Open
ben-kluger-scale wants to merge 7 commits intomainfrom
Open
feat: Add voice agent SDK module and CLI template#254ben-kluger-scale wants to merge 7 commits intomainfrom
ben-kluger-scale wants to merge 7 commits intomainfrom
Conversation
|
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 <[email protected]>
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
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
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