{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "livekit-agents--give-a-livekit-voice-agent-a-function-tool",
 "repo": "livekit/agents",
 "repo_url": "https://github.com/livekit/agents",
 "repo_slug": "livekit-agents",
 "title": "Give your voice agent a tool it can call",
 "page_title": "How to give your voice agent a tool it can call with Agents",
 "summary": "Use the function_tool decorator so the agent can look up data, like the README's weather example.",
 "who": "A developer whose agent must fetch live data during a call.",
 "problem": "A voice agent without tools can only chat, not act.",
 "outcome": "An agent that calls your Python function when the user asks for it.",
 "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 console` and ask a question that needs the tool"
 ],
 "agent_prompt": "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`.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Tool results are read aloud by the agent, so keep them short.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip",
  "A LiveKit server or LiveKit Cloud project",
  "API keys for the model providers you choose"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/livekit-agents/give-a-livekit-voice-agent-a-function-tool/",
 "md": "https://dedupedai.com/use-cases/livekit-agents/give-a-livekit-voice-agent-a-function-tool/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/livekit-agents--give-a-livekit-voice-agent-a-function-tool.json",
 "api_version": "v1"
}
