Replies: 1 comment
|
Adding a scope note so it's on the record, since gateway questions tend to find their way into integration threads: Provider and gateway concerns are out of scope here. Routing, fallback, per-request cost accounting — that all lives in the LLM gateway layer, not in Statewave. We use LiteLLM internally, but that's an implementation detail rather than a commitment: the contract only assumes an OpenAI-compatible endpoint, so anything equivalent can fill that seat. It also means any OpenAI-compatible gateway already works with Statewave today — point the base URL at it and you're done. So there won't be per-gateway integrations coming out of this RFC: OpenAI-compatible is the integration. The integrations this RFC is scoping are memory-shaped — mapping frameworks' ephemeral conversation state onto the episode → compile → subject model, picking sane subject-scoping defaults (per-agent vs. per-conversation vs. per-crew), and keeping retrieval token-bounded so an integration can budget prompts predictably. With that fenced off: the most useful input remains which framework integration would unblock you, what friction you hit wiring Statewave into your stack, and whether an MCP-first approach would already cover your need. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Statewave is intentionally framework-neutral: the API is a thin contract, and the Python and TypeScript SDKs make it usable from any agent stack. That's enough for advanced users — but the bar for adoption is "drop into my framework with five lines and it just works."
This RFC asks: which framework integrations are worth shipping as first-party packages, and what should each one look like?
Motivation
Right now, integrating Statewave with a popular agent framework means writing:
Most teams figure this out quickly, but it's repeated work, and the conventions diverge. A first-party integration would:
Candidates
Tell us where you'd put your weight. Order is alphabetical, not priority.
AutoGen
CrewAI
LangChain
BaseMemoryinterface/v1/contextfor LangChain chainsLlamaIndex
Memoryintegration plus a retriever nodeOpenAI Agents SDK
MCP (Model Context Protocol)
LiteLLM
Local LLMs (Ollama, llama.cpp, vLLM, LM Studio)
Custom agent frameworks
Proposed shape
A first-party integration package would, at minimum:
statewave-py/integrations/<framework>/)Anti-goals:
Risks / tradeoffs
Open questions
statewave-examplesenough, vs. when is a real package required?Feedback requested
Most useful comments:
If you've already built an unofficial Statewave +
<framework>adapter, please drop a link — that's gold for prioritization.All reactions