{"id":27066150,"url":"https://github.com/shamspias/threadedtalk","last_synced_at":"2025-04-05T18:36:02.833Z","repository":{"id":282254959,"uuid":"947965500","full_name":"shamspias/ThreadedTalk","owner":"shamspias","description":"A FastAPI-based client for LangGraph SDK, enabling threaded conversations, message streaming, and conversation management.","archived":false,"fork":false,"pushed_at":"2025-03-13T15:27:11.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T16:22:09.776Z","etag":null,"topics":["agentic-ai","langgraph-python","langgraph-sdk"],"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/shamspias.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}},"created_at":"2025-03-13T14:28:44.000Z","updated_at":"2025-03-13T15:27:15.000Z","dependencies_parsed_at":"2025-03-13T23:15:46.428Z","dependency_job_id":null,"html_url":"https://github.com/shamspias/ThreadedTalk","commit_stats":null,"previous_names":["shamspias/threadedtalk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shamspias%2FThreadedTalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shamspias%2FThreadedTalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shamspias%2FThreadedTalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shamspias%2FThreadedTalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shamspias","download_url":"https://codeload.github.com/shamspias/ThreadedTalk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247385113,"owners_count":20930589,"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","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":["agentic-ai","langgraph-python","langgraph-sdk"],"created_at":"2025-04-05T18:36:02.085Z","updated_at":"2025-04-05T18:36:02.826Z","avatar_url":"https://github.com/shamspias.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **ThreadedTalk**  \n\n**ThreadedTalk** is a FastAPI-based application that serves as a client interface for a deployed **LangGraph agent**. It enables structured conversation handling, real-time streaming responses, and optimized cleanup of inactive conversations using **LangGraph SDK**.  \n\n## **Features**  \n\n✅ **LangGraph Integration** – Interacts with a deployed LangGraph agent for conversation management.  \n✅ **Threaded Conversations** – Each conversation is mapped to a unique thread ID stored in a database.  \n✅ **Message Streaming** – Supports both synchronous and streaming-based responses.  \n✅ **Conversation Management** – Create, retrieve, and delete conversations dynamically.  \n✅ **Optimized Cleanup** – Deletes inactive conversations based on a given timestamp.  \n✅ **Database Support** – Uses PostgreSQL/MySQL for persistent storage.  \n\n## **API Endpoints**  \n\n### **1. Conversation API**  \n- `POST /conversation` – Create a conversation and get a thread ID.  \n- `POST /conversation/message` – Send a message to the LangGraph agent.  \n- `POST /conversation/stream` – Stream conversation responses from the LangGraph agent.  \n\n### **2. Delete API**  \n- `DELETE /conversation/{conversation_id}` – Deletes a conversation and its associated thread.  \n\n### **3. Cleanup API**  \n- `DELETE /conversation/cleanup?unused_since=\u003ctimestamp\u003e` – Deletes inactive conversations before the specified timestamp.  \n\n## **Installation**  \n\n### **Prerequisites**  \n- **Python 3.11+**  \n- **PostgreSQL/MySQL** (configured as per database settings)  \n- **LangGraph SDK** (installed via `requirements.txt`)  \n\n### **Setup \u0026 Install Dependencies**  \n```sh\npip install -r requirements.txt\n```\n### Database Migration\nGenerate Initial Migration:\n\n```\nalembic revision --autogenerate -m \"Initial migration\"\n```\nApply Migrations:\n\n```\nalembic upgrade head\n```\n\n## **Running the Project**  \n```sh\nuvicorn app.main:app --host 0.0.0.0 --port 8000 --reload\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshamspias%2Fthreadedtalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshamspias%2Fthreadedtalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshamspias%2Fthreadedtalk/lists"}