{"id":46880171,"url":"https://github.com/samirpatil2000/agentic-template","last_synced_at":"2026-03-10T21:01:58.032Z","repository":{"id":319791272,"uuid":"1039468846","full_name":"samirpatil2000/agentic-template","owner":"samirpatil2000","description":"A FastAPI-powered workflow orchestration system that integrates LangGraph to design, run, and manage AI Agents workflows","archived":false,"fork":false,"pushed_at":"2026-03-08T08:22:17.000Z","size":47,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-08T12:48:21.372Z","etag":null,"topics":["ai-agents","langchain","langraph"],"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/samirpatil2000.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-08-17T09:54:18.000Z","updated_at":"2026-03-08T08:22:21.000Z","dependencies_parsed_at":"2025-11-05T18:05:18.139Z","dependency_job_id":null,"html_url":"https://github.com/samirpatil2000/agentic-template","commit_stats":null,"previous_names":["samirpatil2000/agentic-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samirpatil2000/agentic-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samirpatil2000%2Fagentic-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samirpatil2000%2Fagentic-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samirpatil2000%2Fagentic-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samirpatil2000%2Fagentic-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samirpatil2000","download_url":"https://codeload.github.com/samirpatil2000/agentic-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samirpatil2000%2Fagentic-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30355223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","langraph"],"created_at":"2026-03-10T21:01:43.242Z","updated_at":"2026-03-10T21:01:57.969Z","avatar_url":"https://github.com/samirpatil2000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI + LangGraph Workflow Orchestration Template   \u003ca href=\"https://deepwiki.com/samirpatil2000/agentic-template\"\u003e\u003cimg src=\"https://deepwiki.com/badge.svg\" alt=\"Ask DeepWiki\"\u003e\u003c/a\u003e\n\n\nA starter template for building AI-driven workflow orchestration systems using FastAPI and LangGraph. This project provides a modular foundation with state management, persistence, and REST APIs so you can quickly prototype and extend your own workflows.\n\n\n\n## Features\n\n- FastAPI-based REST API endpoints for workflow management\n- LangGraph integration for AI workflow orchestration\n- Modular, extensible workflow architecture\n- Built-in state management and checkpointing\n- PostgreSQL-backed workflow persistence\n- Support for workflow interrupts and continuations\n- Non-blocking concurrent workflow execution using ThreadPoolExecutor\n- LLM response validation and retry utilities with LiteLLM integration\n- Added langfuse for observability and tracing\n\n## Prerequisites\n\n- Python 3.11 or higher\n- PostgreSQL database\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone \u003crepository-url\u003e\ncd agentic-template\n```\n\n2. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n3. Set up environment variables:\n- Copy the example environment file:\n```bash\ncp .env.example .env\n```\n- Update values in `.env` to match your local setup (database URL, host, port, etc.).\n\n## Usage\n\n1. Start the server:\n- Default port (8000):\n```bash\nuvicorn app:app --reload\n```\n- Custom port:\n```bash\nuvicorn app:app --reload --port 8080\n```\n- Using environment variables (defined in `.env`):\n```bash\nuvicorn app:app --reload --port $PORT --host $HOST\n```\n\n# 🧩 API Endpoints\n\n#### `GET /`\n**Description:**  \nRetrieve API information and a list of available endpoints.\n\n**Response Example:**\n```json\n{\n  \"version\": \"1.0\",\n  \"endpoints\": [\n    \"/workflows/{workflow_name}\",\n    \"/workflows/{workflow_name}/{thread_id}\"\n  ]\n}\n```\n\n---\n\n#### `POST /workflows/{workflow_name}`\n**Description:**  \nStart a new workflow.\n\n**Request Body:**\n```json\n{\n  \"content\": \"{\\\"company_url\\\": \\\"https://www.github.com/\\\"}\",\n  \"type\": \"text\",\n  \"role\": \"user\"\n}\n```\n\n**Response Example:**\n```json\n{\n  \"thread_id\": \"abc123\",\n  \"status\": \"started\",\n  \"workflow_name\": \"example_workflow\"\n}\n```\n\n---\n\n#### `POST /workflows/{workflow_name}/{thread_id}`\n**Description:**  \nContinue an existing workflow.\n\n**Request Body:**\n```json\n{\n  \"content\": \"{\\\"company_url\\\": \\\"https://www.github.com/\\\"}\",\n  \"type\": \"text\",\n  \"role\": \"user\"\n}\n```\n\n**Response Example:**\n```json\n{\n  \"thread_id\": \"abc123\",\n  \"status\": \"in_progress\",\n  \"message\": \"Workflow updated successfully\"\n}\n```\n\n---\n\n#### `GET /workflows/{workflow_name}/{thread_id}`\n**Description:**  \nRetrieve the current state of a workflow thread.\n\n**Response Example:**\n```json\n{\n  \"thread_id\": \"abc123\",\n  \"workflow_name\": \"example_workflow\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"summary\": \"Workflow execution finished successfully\"\n  }\n}\n```\n\n## Roadmap\n\nPlanned features and improvements:\n\n- [ ] Add logging and log rotation in file\n- [ ] Add authentication\n- [ ] Add Prometheus metrics\n- [ ] Add tool calling example\n- [ ] Add rate limiting\n- [ ] Replace sample agent with production-ready agent/chatbot (e.g., email agent)\n\n## Notes\n\n- This repository is a template intended for customization. Replace example workflows, models, and configuration with your own domain logic.\n- Consider adding authentication, rate limiting, and observability for production deployments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamirpatil2000%2Fagentic-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamirpatil2000%2Fagentic-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamirpatil2000%2Fagentic-template/lists"}