CoolFace
Apppublic

BonusLockSMith/tool-using-agent

sourceHugging Faceupdated 19d agoView on Hugging Face
0likes
App README

Tool-Using Agent ๐Ÿ› ๏ธ

Ask a question and watch the AI call real, live tools to answer it โ€” a calculator, the current date/time, live weather, and Wikipedia โ€” running the ReAct loop (decide โ†’ call a tool โ†’ read the result โ†’ repeat) and showing every tool call it made.

Project #9 of my "30 AI Projects in 15 Days" build-in-public challenge.

โ–ถ Live demo: https://agent.gritai.solutions

[image]

Try

  • โ€”"What's a 15% tip on $47.80, and what's the weather in Paris?" โ†’ calculator + weather
  • โ€”"Who invented the World Wide Web, and how many days ago was Jan 1 2000?" โ†’ Wikipedia + date + calc

How it works

  • โ€”The model is given four keyless tools (Open-Meteo for weather, MediaWiki for Wikipedia, plus a safe calculator and a clock). It decides which to call โ€” possibly several โ€” and the server executes them and feeds results back, looping until the model can answer (capped at a few steps).
  • โ€”Transparency: the UI shows the exact tool calls and their live results, so you can see the reasoning, not just the answer.
  • โ€”The calculator is a safe AST evaluator (no eval), limited to arithmetic + a few math functions.

Run locally

bash
pip install -r requirements.txt
export ANTHROPIC_API_KEY=sk-ant-...
python app.py                            # http://127.0.0.1:7860

Deploy (always-on)

Ships with a Dockerfile โ€” works on Hugging Face Spaces, Render, Railway, or Fly.io. Set ANTHROPIC_API_KEY as a secret. The tools need no other keys.


Built by Robert Lucyk ยท GritAI Solutions ยท part of the 30-in-15 challenge.