{"id":31767643,"url":"https://github.com/likhith-ts/simple-ai-agent","last_synced_at":"2026-05-18T04:14:51.781Z","repository":{"id":318045765,"uuid":"1069732530","full_name":"likhith-ts/Simple-AI-Agent","owner":"likhith-ts","description":"A lightweight AI agent implementation built with LangChain and LangGraph that provides an interactive conversational interface with tool capabilities.","archived":false,"fork":false,"pushed_at":"2025-10-04T17:20:08.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-04T19:14:32.600Z","etag":null,"topics":["ai-agents","langchain","langchain-python","openai-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/likhith-ts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-04T14:12:02.000Z","updated_at":"2025-10-04T17:46:03.000Z","dependencies_parsed_at":"2025-10-04T19:14:59.680Z","dependency_job_id":"e93d5cf5-f5d4-494c-a18e-02d5f587744e","html_url":"https://github.com/likhith-ts/Simple-AI-Agent","commit_stats":null,"previous_names":["likhith-ts/simple-ai-agent"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/likhith-ts/Simple-AI-Agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likhith-ts%2FSimple-AI-Agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likhith-ts%2FSimple-AI-Agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likhith-ts%2FSimple-AI-Agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likhith-ts%2FSimple-AI-Agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/likhith-ts","download_url":"https://codeload.github.com/likhith-ts/Simple-AI-Agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likhith-ts%2FSimple-AI-Agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002398,"owners_count":26083373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","langchain","langchain-python","openai-api"],"created_at":"2025-10-10T01:18:31.836Z","updated_at":"2025-10-10T01:18:35.550Z","avatar_url":"https://github.com/likhith-ts.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple AI Agent\n\nA lightweight AI agent implementation built with LangChain and LangGraph that provides an interactive conversational interface with tool capabilities.\n\n## Features\n\n- Interactive chat interface with OpenAI GPT-4o\n- Built-in calculator tool for mathematical operations\n- Extensible tool system for adding custom functionality\n- Streaming responses for real-time interaction\n- Environment-based configuration\n\n## Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/Simple-AI-Agent.git\ncd Simple-AI-Agent\n\n# Install dependencies using uv (recommended)\nuv sync\n\n# Or install with pip\npip install -r requirements.txt\n```\n\n## Prerequisites\n\n- Python 3.13 or higher\n- OpenAI API key\n\n## Setup\n\n1. Create a `.env` file in the root directory:\n\n```env\nOPENAI_API_KEY=your_openai_api_key_here\n```\n\n2. Replace `your_openai_api_key_here` with your actual OpenAI API key.\n\n## Usage\n\nRun the agent:\n\n```bash\npython main.py\n```\n\nThe agent will start an interactive session where you can:\n\n- Have conversations with the AI\n- Use the built-in calculator by asking math questions\n- Type 'exit' to quit\n\n### Example interactions:\n\n```\nYou: What is 25 + 37?\nAgent: I'll help you calculate that. Let me use the calculator tool.\n\nCalculating the sum of 25 and 37\nThe sum of 25 and 37 is 62\n\nYou: Tell me about Python programming\nAgent: Python is a high-level, interpreted programming language...\n```\n\n## Configuration\n\nThe agent can be customized by modifying the following in `main.py`:\n\n- **Model**: Change the OpenAI model (currently set to `gpt-4o`)\n- **Temperature**: Adjust response creativity (currently set to `0` for deterministic responses)\n- **Tools**: Add custom tools to extend functionality\n\n### Adding Custom Tools\n\nTo add new tools, define them using the `@tool` decorator:\n\n```python\n@tool\ndef your_custom_tool(parameter: str) -\u003e str:\n    \"\"\"Description of what your tool does.\"\"\"\n    # Your tool logic here\n    return \"result\"\n\n# Add to tools list\ntools = [calculator, your_custom_tool]\n```\n\n## Dependencies\n\nThis project uses the following main dependencies:\n\n- **LangChain** (\u003e=0.3.27): Framework for building applications with LLMs\n- **LangChain OpenAI** (\u003e=0.3.33): OpenAI integration for LangChain\n- **LangGraph** (\u003e=0.6.7): Tool for building stateful, multi-actor applications\n- **python-dotenv** (\u003e=1.1.1): Environment variable management\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/your-feature`)\n3. Make your changes\n4. Add tests if applicable\n5. Commit your changes (`git commit -am 'Add some feature'`)\n6. Push to the branch (`git push origin feature/your-feature`)\n7. Submit a pull request\n\n## License\n\n[Your license information]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikhith-ts%2Fsimple-ai-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikhith-ts%2Fsimple-ai-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikhith-ts%2Fsimple-ai-agent/lists"}