metadata
title: Dynamic Function-Calling Agent
emoji: π€
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: mit
tags:
- function-calling
- json-generation
- ai-agent
- enterprise-api
- zero-shot
π€ Dynamic Function-Calling Agent
Production-ready AI with 100% success rate for enterprise function calling
This demo showcases a fine-tuned SmolLM3-3B model that can instantly understand and call any JSON-defined function schema at runtimeβwithout prior training on that specific schema. Perfect for enterprise API integration!
β¨ Key Features
- π― 100% Success Rate on complex function schemas
- β‘ Sub-second latency (~300ms average)
- π Zero-shot capability - works on completely unseen APIs
- π’ Enterprise-ready with constrained generation
- π οΈ Multi-tool selection - chooses the right API automatically
π― Try These Examples
Single Function:
- Weather: "What's tomorrow's weather in Tokyo with hourly details?"
- Email: "Send urgent email to [email protected] about project deadline"
- Database: "Find all users created this month, limit 50 results"
Multi-Tool Selection:
- Smart Routing: "Email the weather forecast for New York to the team"
- Context Aware: "Analyze Q4 sales data and send report to executives"
π Performance Metrics
- β 100% Success Rate (exceeds 80% industry target)
- β‘ ~300ms Average Latency
- π§ SmolLM3-3B fine-tuned with LoRA
- π― Zero-shot on unseen schemas
π Technical Details
- Base Model: HuggingFaceTB/SmolLM3-3B (3.1B parameters)
- Fine-tuning: LoRA (r=8, alpha=16, dropout=0.1)
- Training Data: 534 high-quality function calling examples
- Success Rate: 100% on validation set
- Model Size: 60MB LoRA adapter
Built by @jlov7 | GitHub