An AI agent that automates everyday work tasks like drafting emails, creating reminders, and answering questions. Runs locally using Ollama.
- Email drafting assistant
- Task and reminder creation
- Text summarization
- Question answering
- Extensible tool system
-
Install dependencies:
pip install -r requirements.txt
-
Ensure Ollama is running:
ollama run llama3.2:3b
-
Run:
python task_agent.py
from task_agent import TaskAgent
agent = TaskAgent()
# Draft an email
email = agent.draft_email(
recipient="client@company.com",
subject="Project Update",
purpose="Update them on project progress"
)
print(email)
# Create a reminder
reminder = agent.create_reminder(
task="Call client",
due="Tomorrow 2pm"
)
print(reminder)email- Draft emailsreminder- Create reminderssummarize- Summarize textask- Answer questionshelp- Show available commands
.
├── task_agent.py # Main agent implementation
├── tools.py # Tool definitions
├── memory.json # Stored tasks/reminders
├── requirements.txt # Dependencies
└── README.md
- Parse Intent - Understand what the user wants to do
- Select Tool - Choose the appropriate tool (email, reminder, etc.)
- Execute - Run the tool with user parameters
- Format Output - Return properly formatted result
- Python 3.9+
- Ollama with llama3.2:3b model
MIT