SmolNews / README.md
jairo's picture
fix agent context
4dd35b9
|
raw
history blame contribute delete
1.39 kB
---
title: First Agent Template
emoji:
colorFrom: pink
colorTo: yellow
sdk: gradio
sdk_version: 5.15.0
app_file: app.py
pinned: false
tags:
- smolagents
- agent
- smolagent
- tool
- agent-course
---
# SmolNews: News and Time Agent
* Top 5 headlines, smol news but with a twist.
A Gradio-based web application that combines news fetching and timezone capabilities using the smolagents framework.
## Features
- **News Search**: Fetch top 5 news articles for any location using Google News RSS feed
- **Timezone Information**: Get current local time for any timezone
- **Interactive Interface**: Built with Gradio for easy interaction
## Technical Stack
- **Framework**: smolagents
- **Model**: Qwen2.5-Coder-32B-Instruct
- **UI**: Gradio
- **Key Dependencies**:
- smolagents (agent framework)
## Tools
The agent comes with several built-in tools:
1. `get_news_from_place`: Fetches and formats top 5 news articles for a specified location
2. `get_current_time_in_timezone`: Retrieves current local time for any timezone
3. `FinalAnswerTool`: Provides final responses to user queries
## Configuration
The agent is configured with:
- Maximum 6 steps per interaction
- Temperature: 0.5
- Max tokens: 2096
- Custom prompt templates (loaded from prompts.yaml)
## Getting Started
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference