Skip to main content

1. Installation

Install the traceAI and LiveKit agent packages to enable voice agent capabilities with observability.

2. Set Environment Variables

Set up your environment variables to authenticate with both FutureAGI and LiveKit services.

3. Create Your Agent

Create a voice assistant agent by extending the LiveKit Agent class with your custom instructions.

4. Initialize Trace Provider

Set up the trace provider to create a new project in FutureAGI and establish telemetry data pipelines.

5. Implement the Agent Session

Create the agent session with appropriate speech-to-text, language model, and text-to-speech components.

6. Run Your Agent

Start the agent server with the CLI runner.

Complete Example

Here’s a complete example that puts everything together: