šŸ¤– Local AI Agent with Custom Tools

This demo simulates how tools work. In real use, connect to Hugging Face Inference Providers or run models locally with llama.cpp/ollama.

šŸ› ļø Available Tools (Click to Toggle)

āš™ļø What's Happening

Click "Send" to see the agent loop in action...

šŸ’¬ Chat

šŸ“š What's the Point? Custom vs Hosted Tools

Custom/Local Tools (like the ones above):

Hosted Tools / External APIs:

The Agent Loop:

  1. You send a message
  2. AI sees available tools, decides if one is needed
  3. If yes: AI outputs a tool call (just JSON — it can't actually run code!)
  4. YOUR code catches this, runs the actual function, gets the result
  5. You send the result back to the AI
  6. AI formats a final answer using that result