This project is a modular Python agent framework featuring:
- Conversational CLI chat with Google Gemini LLM
- Tool support: DuckDuckGo search, current date, OCI CLI command execution
- Easy extensibility for new tools
.
├── README.md
├── requirements.txt
├── .gitignore
├── src/
│ ├── main.py
│ └── tools/
│ ├── __init__.py
│ ├── current_date.py
│ ├── duckduckgo_search.py
│ └── oci_cli.py
└── tests/
└── test_main.py
- 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:
- For DuckDuckGo: No API key needed.
- For Current Weather (if you add it): Set
OPENWEATHER_API_KEY. - For OCI CLI tool: Ensure
ociCLI is installed and configured (oci setup config). - For Gemini (GoogleGenAI): Set your Google API key:
You can get your API key from Google AI Console.
export GOOGLE_API_KEY=your_actual_api_key
- Run the CLI chat interface:
python src/main.py
- Type your questions. The agent can:
- Answer general questions using Gemini LLM
- Search the web using DuckDuckGo
- Provide the current date
- Run OCI CLI commands (e.g.,
oci os ns get)
- Type
exitorquitto leave the chat.
- Tools are defined in
src/tools/and imported inmain.py. - Add new tools by creating a new file in
src/tools/and exposing it in__init__.py.
To run the tests:
pytest- The OCI CLI tool will execute commands on your system. Use with caution.
- Make sure your environment variables and API keys are set as needed for all features.
todo: Add WorkflowAgents Add support for OCI Cost estimator Add Delete Protection