Who it is forA developer whose agent must fetch live data during a call.
The problemA voice agent without tools can only chat, not act.
The outcomeAn agent that calls your Python function when the user asks for it.
What you need first
- Python with pip
- A LiveKit server or LiveKit Cloud project
- API keys for the model providers you choose
Steps
- Install with
pip install "livekit-agents[openai,deepgram,cartesia]" - Define an async function with the @function_tool decorator
- Pass it to your Agent as in the README example
- Run
python myagent.py consoleand ask a question that needs the tool
Prompt for your agent
With livekit/agents, add a @function_tool to my agent that looks up <my data source>, register it on the Agent, and test it with `python myagent.py console`.
Caveat. Tool results are read aloud by the agent, so keep them short.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for livekit/agents and "Give your voice agent a tool it can call"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer