Skip to content

Commit d75cc72

Browse files
refactor: Remove all LiveKit-specific references
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.
1 parent fd136fa commit d75cc72

File tree

5 files changed

+16
-30
lines changed

5 files changed

+16
-30
lines changed

src/agentex/lib/cli/templates/voice/README.md.j2

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# {{ agent_name }} - Voice Agent Template
22

3-
This is a starter template for building **voice agents** with the AgentEx framework. It provides a pre-configured implementation using the `VoiceAgentBase` class with LiveKit voice integration, conversation state management, guardrails, and streaming support.
3+
This is a starter template for building **conversational agents** with the AgentEx framework. It provides a pre-configured implementation using the `VoiceAgentBase` class with conversation state management, guardrails, and streaming support.
44

55
## What's Included
66

@@ -10,8 +10,7 @@ This template provides:
1010
- ✅ **Interruption Handling** - Voice-specific logic for handling user interruptions
1111
- ✅ **Streaming Support** - Real-time streaming with concurrent guardrail checks
1212
- ✅ **Guardrail System** - Extensible policy enforcement framework
13-
- ✅ **LiveKit Ready** - Pre-configured for voice infrastructure
14-
- ✅ **Gemini Integration** - Uses Gemini 2.5 Flash by default
13+
- ✅ **Multi-LLM Support** - OpenAI, Azure, Vertex AI, and more
1514

1615
## What You'll Learn
1716

@@ -83,12 +82,6 @@ LLM_MODEL=google/gemini-2.0-flash # optional
8382
# Returns canned responses for integration testing
8483
MOCK_MODE=true
8584

86-
# ============================================================================
87-
# OPTIONAL: LiveKit (for voice infrastructure)
88-
# ============================================================================
89-
# LIVEKIT_URL=wss://your-livekit-instance.com
90-
# LIVEKIT_API_KEY=your_livekit_api_key
91-
# LIVEKIT_API_SECRET=your_livekit_api_secret
9285
```
9386

9487
**Note**: The manifest is pre-configured with `AGENTEX_BASE_URL: ""` for local testing.

src/agentex/lib/cli/templates/voice/manifest.yaml.j2

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Agent Manifest Configuration for Voice Agent
2-
# ------------------------------------------
3-
# This file defines how your voice agent should be built and deployed.
1+
# Agent Manifest Configuration for Conversational Agent
2+
# -----------------------------------------------------
3+
# This file defines how your conversational agent should be built and deployed.
44

55
# Build Configuration
66
# ------------------
@@ -34,7 +34,7 @@ local_development:
3434
# Agent Configuration
3535
# -----------------
3636
agent:
37-
acp_type: sync # Voice agents use sync ACP
37+
acp_type: sync # Conversational agents use sync ACP
3838

3939
# Unique name for your agent
4040
name: {{ agent_name }}
@@ -43,22 +43,16 @@ agent:
4343
description: {{ description }}
4444

4545
# Temporal workflow configuration
46-
# Voice agents typically don't need Temporal
46+
# Conversational agents typically don't need Temporal
4747
temporal:
4848
enabled: false
4949

50-
# Voice-specific credentials
51-
# Uncomment and configure if using LiveKit
50+
# Credentials for external services
51+
# Configure based on your voice provider or other integrations
5252
credentials: []
53-
# - env_var_name: LIVEKIT_URL
54-
# secret_name: livekit-credentials
55-
# secret_key: url
56-
# - env_var_name: LIVEKIT_API_KEY
57-
# secret_name: livekit-credentials
53+
# - env_var_name: YOUR_API_KEY
54+
# secret_name: your-secret-name
5855
# secret_key: api-key
59-
# - env_var_name: LIVEKIT_API_SECRET
60-
# secret_name: livekit-credentials
61-
# secret_key: api-secret
6256

6357
# Environment variables for local development
6458
# For deployed environments, use Kubernetes secrets (see credentials below)

src/agentex/lib/cli/templates/voice/project/acp.py.j2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
"""{{ agent_name }} - Voice Agent powered by LiveKit
1+
"""{{ agent_name }} - Conversational Agent
22

33
This agent uses the VoiceAgentBase class which provides:
44
- Automatic state management and conversation history
55
- Streaming support with interruption handling
66
- Guardrail system integration
7-
- LiveKit voice infrastructure ready
87
"""
98

109
import os

src/agentex/voice/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"""Voice Agent SDK module for building LiveKit-powered voice agents.
1+
"""Conversational Agent SDK module for building real-time conversational agents.
22
33
This module provides base classes and utilities for creating production-ready
4-
voice agents with state management, guardrails, and streaming support.
4+
conversational agents with state management, guardrails, and streaming support.
55
66
Example usage:
77
from agentex.voice import VoiceAgentBase, AgentState, AgentResponse

src/agentex/voice/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Voice Agent base class for LiveKit-powered voice agents.
1+
"""Conversational Agent base class for real-time conversational agents.
22
33
This module provides the VoiceAgentBase class which handles:
44
- State management and persistence
@@ -46,7 +46,7 @@
4646

4747

4848
class VoiceAgentBase(ABC, Generic[TState, TResponse]):
49-
"""Base class for voice agents with LiveKit integration.
49+
"""Base class for conversational agents with streaming support.
5050
5151
This class provides:
5252
- Automatic state management and persistence

0 commit comments

Comments
 (0)