Maxlamenace1/Agent_Certification
๐ค Comprehensive Smol Agent
Built for the Hugging Face AI Agents Course Certificate Program
This Space demonstrates a production-ready AI agent built with the smolagents framework, showcasing all key concepts required for the Hugging Face AI Agents Course certificate.
๐ฏ Certificate Ready
This agent is designed to meet both certificate requirements:
- โ Fundamentals Certificate: Custom tools, agent framework, evaluation formatting
- โ Completion Certificate: GAIA evaluation support, API-ready responses
๐ Features
Core Capabilities
- 9 Custom Tools: Time, math, notes, event search, web search, submissions
- Safe Execution: AST-based math evaluation prevents code injection
- Web Search: Real-time information retrieval via DuckDuckGo
- Event Discovery: Smart event search with date parsing and location awareness
- Note Management: Persistent note storage and retrieval
- Evaluation Mode: Proper "FINAL ANSWER:" formatting for certificate submissions
Technical Excellence
- Security: Safe code execution with restricted imports and AST evaluation
- Robustness: Error handling and graceful degradation
- Production Ready: Permission handling, logging, comprehensive testing
- Compliance: JSON-line submission format for GAIA evaluation
๐ ๏ธ Available Tools
- get_current_time - Get current date and time
- calculate_basic_math - Safe mathematical calculations using AST
- save_note - Save text notes to files
- read_note - Read previously saved notes
- list_saved_notes - List all saved notes
- get_week_range - Get current week date range
- enhanced_event_search - Smart event discovery with date parsing
- save_submission - Save evaluation submissions in JSON-line format
- DuckDuckGoSearchTool - Web search capabilities
๐ฌ Usage
Chat Mode
Use the Chat with Agent tab for general interaction:
- Ask questions: "What's the current time?"
- Perform calculations: "Calculate 25 * 17 + 3"
- Search the web: "Find latest AI agent news"
- Manage notes: "Save a note: Meeting at 3pm tomorrow"
- Discover events: "What bachata events are happening this week in Brussels?"
GAIA Evaluation Mode
Use the GAIA Evaluation Mode tab for certificate evaluation:
- Enter evaluation questions
- Get properly formatted responses with "FINAL ANSWER:"
- View clean answers ready for API submission
๐ Certificate Demonstration
This agent demonstrates mastery of:
- Tool Creation - Custom tools using
@tooldecorator with proper metadata - Agent Framework - Using
smolagentsandCodeAgenteffectively - Web Integration - Real-time data retrieval and processing
- Code Execution - Safe Python code generation and execution
- Evaluation Compliance - Proper formatting for certificate systems
- Production Quality - Security, error handling, and robustness
๐ง Technical Implementation
- Framework:
smolagentswithCodeAgent - Model:
Qwen/Qwen2.5-Coder-32B-Instruct - Interface: Gradio web UI with multiple interaction modes
- Security: AST-based evaluation, restricted imports, permission handling
- Deployment: Docker-based HuggingFace Space
๐ค GAIA Evaluation Ready
This agent supports the GAIA evaluation process:
- Properly formatted responses with "FINAL ANSWER:" prefix
- Clean answer extraction for API submission
- Task ID support for evaluation tracking
- Automatic submission file generation in JSON-line format
๐ Course Information
Course: Hugging Face AI Agents Course Certificate Requirements: Unit 1 + Use Case + Final Challenge Deadline: July 1st, 2025
This agent demonstrates production-ready AI agent development using modern best practices for security, robustness, and compliance with evaluation standards.
