CoolFace
Apppublic

arinbalyan/tool-calling-agent

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
App README

๐Ÿ› ๏ธ 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.