Skip to content

Shank312/llm-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  LLM Agent

๐Ÿš€ Overview

LLM Agent is a modular and extensible framework that enables building intelligent autonomous AI agents powered by Large Language Models (LLMs) such as OpenAI GPT, Claude, and local open-weight models. It provides a clean architecture to integrate tools, APIs, memory, and decision loops for creating production-grade intelligent agents.

๐Ÿงฉ Features

โœ… Multi-LLM Support (OpenAI, Anthropic, HuggingFace, Ollama) โœ… Modular Agent Architecture โœ… Tool Integration (Search, Calculator, File I/O, API Calls) โœ… Memory & Context Management โœ… Chain-of-Thought Reasoning โœ… Configurable Prompts and Workflows โœ… Extendable Plugin System

๐Ÿ—๏ธ Project Structure llm-agent/ โ”‚ โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ agent_core/ # Core agent logic and architecture โ”‚ โ”œโ”€โ”€ tools/ # External tool integrations (API, search, etc.) โ”‚ โ”œโ”€โ”€ memory/ # Long-term and short-term memory management โ”‚ โ”œโ”€โ”€ workflows/ # Custom agent workflows and actions โ”‚ โ””โ”€โ”€ main.py # Entry point for the agent โ”‚ โ”œโ”€โ”€ configs/ โ”‚ โ””โ”€โ”€ agent_config.yaml # Model and system settings โ”‚ โ”œโ”€โ”€ requirements.txt # Python dependencies โ”œโ”€โ”€ README.md # Project documentation โ””โ”€โ”€ LICENSE # License file

โš™๏ธ Installation 1๏ธโƒฃ Clone the Repository git clone https://github.com/Shank312/llm-agent.git cd llm-agent

2๏ธโƒฃ Create a Virtual Environment python -m venv venv venv\Scripts\activate # On Windows

OR

source venv/bin/activate # On macOS/Linux

3๏ธโƒฃ Install Dependencies pip install -r requirements.txt

๐Ÿงฉ Usage

To start the agent: python src/main.py

You can modify configuration (model, tools, memory) inside: configs/agent_config.yaml

๐Ÿงฐ Example Workflow

Example: Question Answering Agent

from src.agent_core import LLMAgent agent = LLMAgent(model="gpt-4", memory=True) response = agent.run("Summarize the main ideas from 'Designing Data-Intensive Applications'") print(response)

๐Ÿ”Œ Tool Integrations

Tool Description
๐Ÿ” Search Uses DuckDuckGo or Bing API for live web context
๐Ÿงฎ Calculator Handles math operations via safe evaluation
๐Ÿ“‚ FileReader Reads and processes text or JSON files
๐Ÿง  Memory Stores conversation context using local vector DB

๐Ÿ“ฆ Dependencies

Common dependencies (add these to your requirements.txt): openai langchain huggingface_hub python-dotenv tiktoken requests pydantic

๐ŸŒ Roadmap

Add LangGraph / CrewAI support

Implement Tool Routing with LangChain Agents

Integrate Local LLM (Llama 3 / Mistral)

Web UI Dashboard for Agent Logs

Add Docker Support

๐Ÿค Contributing

Contributions are welcome!

Fork the repo

Create your feature branch (git checkout -b feature-name)

Commit changes (git commit -m 'Add new feature')

Push to branch (git push origin feature-name)

Open a Pull Request ๐ŸŽฏ

๐Ÿงพ License

This project is licensed under the MIT License โ€“ see the LICENSE file for details.

๐Ÿ’ก Author

๐Ÿ‘ค Shankar Kumar

๐Ÿ’ฌ Building next-gen AI systems | Open Source Contributor | Machine Learning Engineer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages