DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to give your voice agent a tool it can call with Agents

Use the function_tool decorator so the agent can look up data, like the README's weather example.

Short answer: Install with pip install "livekit-agents[openai,deepgram,cartesia]"; then Define an async function with the @function_tool decorator; Pass it to your Agent as in the README example. All steps.

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

  1. Install with pip install "livekit-agents[openai,deepgram,cartesia]"
  2. Define an async function with the @function_tool decorator
  3. Pass it to your Agent as in the README example
  4. Run python myagent.py console and 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer