Skip to content
This repository was archived by the owner on Aug 11, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Agent Project

A small Python CLI agent using OpenAI's Responses API. It can answer normally and call local tools for:

  • current time
  • safe arithmetic
  • saving notes
  • listing saved notes
  • reading saved notes

OpenAI's current quickstart shows the Responses API for model calls, environment-based API keys, and tool use. It also points to the Agents SDK when you need heavier orchestration. This starter keeps the first version simple so you can understand the tool loop before adding more layers.

Setup

cd C:\Users\veera\ai-agent-project
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
Copy-Item .env.example .env

Edit .env and replace your_api_key_here with your OpenAI API key.

Run

python agent.py

Try:

What time is it?
Calculate (42 * 19) / 7
Save a note called project ideas saying Build a travel planner agent.
List my notes.
Read my project ideas note.

Project Structure

ai-agent-project/
  agent.py          Main CLI and tool loop
  requirements.txt  Python dependencies
  pyproject.toml    Project metadata
  .env.example      Environment variable template
  data/             Created at runtime for local notes

Next Features To Add

  • Web search tool
  • File upload and summarization
  • A Streamlit or FastAPI web UI
  • Database-backed memory
  • Multiple specialist agents with handoffs

Sources

About

Minimal Python CLI agent over OpenAI's Responses API, demonstrating a bare tool-call loop. Archived — superseded by agentops.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages