This repository contains various examples and experiments using the smolagents library to build AI agents for different tasks.
SmoLAgents is a lightweight framework for building AI agents that can perform various tasks autonomously. This repository demonstrates different applications of SmoLAgents, including:
- LinkedIn job search automation
- YouTube script generation
- News video creation
- Trip planning
- Text to SQL conversion
- House cost estimation
- And more!
linkedin_job_search_agent.py
: An agent that can search and apply for jobs on LinkedInyt_script_writer.py
: Generates YouTube video scriptsscript_to_presentation_agent.py
: Converts scripts to PowerPoint presentationsdownload_photos_agent.py
: Downloads relevant images for presentationsbrowser_automation.py
: Utilities for web browser automationtext_to_sql.py
: Converts natural language to SQL queriestrip_planner.py
: Plans trips based on user preferenceshouse_cost_estimator.py
: Estimates house costs based on various factors
- Clone this repository:
git clone https://github.com/asvskartheek/learning_smolagents.git
cd learning_smolagents
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
cp .env.example .env
# Edit .env with your API keys and other configuration
This agent can autonomously search for jobs on LinkedIn and apply to them using the "Easy Apply" feature.
from linkedin_job_search_agent import LinkedInJobSearchAgent
agent = LinkedInJobSearchAgent()
agent.run(job_title="AI Engineer", location="Switzerland")
See linkedin_job_search_agent.py for more details.
Generate scripts for YouTube videos on various topics:
from yt_script_writer import generate_script
script = generate_script(topic="AI Agents")
print(script)
See yt_script.md for an example output.
The process of creating a news video involves several steps as outlined in news_video.md:
- Research a topic using web search
- Find good source documents
- Write a YouTube script
- Download needed images
- Create a PowerPoint presentation
- Sync the presentation with audio output
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.