--- title: Template Final Assignment emoji: 🕵🏻‍♂️ colorFrom: indigo colorTo: indigo sdk: gradio sdk_version: 5.25.2 app_file: app.py pinned: false hf_oauth: true hf_oauth_expiration_minutes: 480 --- # Web Search Agent ## Description This project is a wrapper of the Open Search agent from the smolagents library, with some minor modifications. It creates a base agent that can search the web and answer questions by navigating through web content, analyzing pages, and extracting relevant information. The core idea is to establish a foundation agent that can be expanded with additional tools to improve performance for specific tasks. By adding specialized tools, the agent can be customized to handle various domains and use cases more effectively. ## Author Created by: Guillermo Izquierdo ## Features - Web search using SerpAPI - Page navigation and content analysis - Text search within pages - Support for various document formats (PDF, DOCX, etc.) - Visual content analysis - Modular architecture for easy extension ## Extending the Agent The agent is designed to be easily extended with new tools. Look for the commented sections in `agent_open_search.py` that indicate where to add custom tools: ```python # ===== ADD YOUR CUSTOM TOOLS HERE ===== ``` By adding specialized tools, you can enhance the agent's capabilities for specific domains or tasks. Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference