--- title: Tool-Calling AI Agent emoji: 🛠️ colorFrom: indigo colorTo: blue sdk: gradio sdk_version: 5.9.0 app_file: app.py pinned: false --- # 🛠️ Tool-Calling AI Agent A LangGraph-inspired Tool-Calling AI Agent with 3 tools: - 🔢 **Calculator** — Safe math expression evaluation - 🌐 **Web Search** — Knowledge base lookup - 📁 **File Reader** — Read text files Each response shows the full reasoning trace: **Thought → Tool Call → Tool Result → Final Answer** ## Usage Just type your question! Examples: - `What is 2 + 2?` - `Calculate the area of a circle with radius 7` - `Tell me about LangGraph` - `Read app.py` ## Architecture ``` User Query → Intent Detection → Tool Selection → Execution → Response │ │ │ │ │ └──── Thought ──── Tool Call ────┴── Tool Result ─┴─ Final ──┘ ``` Built with Python and Gradio. No external LLM API needed — the agent uses deterministic intent routing.