CoolFace
Apppublic

Maxlamenace1/Agent_Certification

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿค– 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

  1. 1.get_current_time - Get current date and time
  2. 2.calculate_basic_math - Safe mathematical calculations using AST
  3. 3.save_note - Save text notes to files
  4. 4.read_note - Read previously saved notes
  5. 5.list_saved_notes - List all saved notes
  6. 6.get_week_range - Get current week date range
  7. 7.enhanced_event_search - Smart event discovery with date parsing
  8. 8.save_submission - Save evaluation submissions in JSON-line format
  9. 9.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:

  1. 1.Tool Creation - Custom tools using @tool decorator with proper metadata
  2. 2.Agent Framework - Using smolagents and CodeAgent effectively
  3. 3.Web Integration - Real-time data retrieval and processing
  4. 4.Code Execution - Safe Python code generation and execution
  5. 5.Evaluation Compliance - Proper formatting for certificate systems
  6. 6.Production Quality - Security, error handling, and robustness

๐Ÿ”ง Technical Implementation

  • โ€”Framework: smolagents with CodeAgent
  • โ€”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.