Pinokio

PinokioLangGraph

v5.0
https://github.com/drago87/Pinokio-LangGraphupdated 4/11/2026, 4:05:12 AMindexed 4/11/2026, 4:05:31 AMOwner@drago87

# PinokioLangGraph — Agent-StateSync for SillyTavern A Pinokio script that runs a FastAPI + LangGraph agent as middleware between SillyTavern and your LLMs. ## Architecture ``` SillyTavern → LangGraph Agent → RP LLM (KoboldCPP / Ollama) ↕ DB (SQLite — per session) ↕ Instruct LLM (Ollama / KoboldCPP) ``` ## What It Does 1. SillyTavern sends chat messages to this agent 2. Agent loads world state from the session database 3. Sends enriched prompt (with context) to your RP LLM 4. RP response is streamed back to SillyTavern 5. In the background, a smaller Instruct LLM extracts state changes 6. State changes are saved to the database 7. On the next turn, updated world state is injected for continuity ## Setup 1. Click **Install** 2. Enter your RP LLM address (e.g. KoboldCPP: `http://localhost:5001`) 3. Enter your Instruct LLM address (e.g. Ollama: `http://localhost:11434`) 4. Click **Start** 5. In SillyTavern: set API to `http://localhost:8001` ## ST Extension This agent requires the [Agent-StateSync SillyTavern Extension](https://github.com/drago87/Agent-StateSync) to be installed in SillyTavern. ## Requirements - RP LLM running (KoboldCPP, Ollama, etc.) - Instruct LLM running (Ollama recommended — llama3, phi3, gemma2) - SillyTavern with the Agent-StateSync extension

Typeapi
Community tagsLoading...
Check-in
Sort
Loading…