Skip to content

feat(langchain4j): add Jooby extension for LangChain4j with resilient…#3881

Merged
jknack merged 4 commits intomainfrom
3880
Mar 15, 2026
Merged

feat(langchain4j): add Jooby extension for LangChain4j with resilient…#3881
jknack merged 4 commits intomainfrom
3880

Conversation

@jknack
Copy link
Member

@jknack jknack commented Mar 15, 2026

… failover

  • Implemented LangChain4jModule to automatically parse application.conf and register both ChatModel and StreamingChatModel in the service registry.
  • Added BuiltInModel enum for zero-boilerplate configuration of OpenAI, Anthropic, Ollama, and Jlama.
  • Created ChatModelFactory interface to allow users to register custom model providers.
  • Implemented FallbackChatModel and FallbackStreamingChatModel decorators for seamless failover routing.
  • Added FailoverListener hook for custom metrics/logging without forcing a Micrometer dependency.
  • Configured BOM management and marked heavy provider SDKs as optional in pom.xml.
  • Added comprehensive unit tests and Javadoc.
  • fix feature: langchain4j module #3880

jknack added 4 commits March 15, 2026 19:20
… failover

- Implemented `LangChain4jModule` to automatically parse `application.conf` and register both `ChatModel` and `StreamingChatModel` in the service registry.
- Added `BuiltInModel` enum for zero-boilerplate configuration of OpenAI, Anthropic, Ollama, and Jlama.
- Created `ChatModelFactory` interface to allow users to register custom model providers.
- Implemented `FallbackChatModel` and `FallbackStreamingChatModel` decorators for seamless failover routing.
- Added `FailoverListener` hook for custom metrics/logging without forcing a Micrometer dependency.
- Configured BOM management and marked heavy provider SDKs as optional in `pom.xml`.
- Added comprehensive unit tests and Javadoc.
- fix #3880
@jknack jknack added the feature label Mar 15, 2026
@jknack jknack merged commit 42a5233 into main Mar 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: langchain4j module

1 participant