You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement LangChain BaseChatModel wrapper backed by mellea #446
Create a LangChain-compatible ChatModel class that wraps mellea's session for chat-based use cases. This is the primary integration point for most LangChain users.
Problem / Opportunity
Most modern LLM applications use chat interfaces rather than raw completions. LangChain's BaseChatModel is the standard abstraction for chat-based interactions. Without this integration, LangChain users cannot use mellea for their primary use cases including agents, RAG pipelines, and conversational applications.
User Story / Use Case
As a LangChain developer building chat applications, I want to use mellea's chat model wrapper so that I can leverage mellea's optimizations in my agents and conversational pipelines.
We also need support for with_structured_output for constrained decoding.
For consistency with other chat model subclasses, I suggest it be called ChatMellea.
I was also thinking we may want to allow the ChatMellea constructor to take a BaseChatModel argument which would then be used by a Mellea backend implementation to communicate with the model. This would then allow the user to use any langchain integration to provide the model support.
I am interested in helping this effort as I need this support for recipe and workshop development showing Mellea using in existing langgraph/langchain programs.
In discussing this idea with @nrfulton, he suggested this langchain integration would be a separate git repo and thus separate python package (e.g. langchain-mellea) to avoid dragging langchain dependencies into the mellea core package.
Activity
psschwei commentedon Feb 10, 2026
Summary
Create a LangChain-compatible
ChatModelclass that wraps mellea's session for chat-based use cases. This is the primary integration point for most LangChain users.Problem / Opportunity
Most modern LLM applications use chat interfaces rather than raw completions. LangChain's
BaseChatModelis the standard abstraction for chat-based interactions. Without this integration, LangChain users cannot use mellea for their primary use cases including agents, RAG pipelines, and conversational applications.User Story / Use Case
As a LangChain developer building chat applications, I want to use mellea's chat model wrapper so that I can leverage mellea's optimizations in my agents and conversational pipelines.
Proposed Solution (High-level)
Create
mellea/integrations/langchain/chat.pycontaining:MelleaChatModel(BaseChatModel)implementing LangChain's chat interface_generate(),_agenerate(),_stream(),_astream()methodsbind_tools()Scope
In scope:
MelleaChatModelclass with all standard ChatModel methodsOut of scope:
Acceptance Criteria
akihikokuroda commentedon Feb 11, 2026
Is it OK to make a project in
mellea/integrations/langchain/?bjhargrave commentedon Feb 11, 2026
We also need support for
with_structured_outputfor constrained decoding.For consistency with other chat model subclasses, I suggest it be called
ChatMellea.I was also thinking we may want to allow the ChatMellea constructor to take a BaseChatModel argument which would then be used by a Mellea backend implementation to communicate with the model. This would then allow the user to use any langchain integration to provide the model support.
I am interested in helping this effort as I need this support for recipe and workshop development showing Mellea using in existing langgraph/langchain programs.
In discussing this idea with @nrfulton, he suggested this langchain integration would be a separate git repo and thus separate python package (e.g.
langchain-mellea) to avoid dragging langchain dependencies into the mellea core package.