# langchain4j

> LangChain4j is an open-source Java library that simplifies the integration of LLMs into Java applications through a unified API, providing access to popular LLMs and vector databases. It makes impleme

- **URL**: https://www.freshcrate.ai/projects/langchain4j
- **Author**: langchain4j
- **Category**: MCP Servers
- **Latest version**: `1.16.1` (2026-06-06)
- **License**: Apache-2.0
- **Source**: https://github.com/langchain4j/langchain4j
- **Homepage**: https://docs.langchain4j.dev
- **Language**: Java
- **GitHub**: 11,699 stars, 2,159 forks
- **Registry**: github
- **Tags**: `anthropic`, `chatgpt`, `chroma`, `embeddings`, `gemini`, `gpt`, `huggingface`, `java`

## Description

LangChain4j is an open-source Java library that simplifies the integration of LLMs into Java applications through a unified API, providing access to popular LLMs and vector databases. It makes implementing RAG, tool calling (including support for MCP), and agents easy. LangChain4j integrates seamlessly with various enterprise Java frameworks.

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `1.16.1` | 2026-06-06 | High | - Migrate OpenAI image models from DALL-E to new GPT image API in #5373 by @edeandrea   **Full Changelog**: https://github.com/langchain4j/langchain4j/compare/1.16.0...1.16.1 |
| `1.15.1` | 2026-05-28 | High | - Introduce a new AgentConfigurator allowing to define an external function for agents retrieval or creation (https://github.com/langchain4j/langchain4j/pull/5269) - fix: eliminate race condition in ChatMemoryService.getOrCreateChatMemory (https://github.com/langchain4j/langchain4j/pull/5253) - Allow custom resolution of agentic parameters suppliers (https://github.com/langchain4j/langchain4j/pull/5286) - Filter away non serializable state from DefaultAgenticScope when serializing it (https:/ |
| `1.15.0` | 2026-05-15 | High | ## Highlights * Add Docling Document Parser Integration by @lfelner22 in https://github.com/langchain4j/langchain4j/pull/4933 * Support setting default values for `@Tool` parameters by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/5146 * Allow an agent to select among different ChatModels + Introduce voting agentic pattern by @mariofusco in https://github.com/langchain4j/langchain4j/pull/5158 * Added new integration module `langchain4j-google-genai` by @Eainde in https://gi |
| `1.14.1` | 2026-05-07 | High | - Upgrade opennlp-tools to 2.5.9 ([#5130](https://github.com/langchain4j/langchain4j/pull/5130)) - @aloubyansky - Update dependency org.postgresql:postgresql to v42.7.11 [SECURITY] ([#5118](https://github.com/langchain4j/langchain4j/pull/5118)) - @renovate - fix(mcp-docker): apply SSLConfig to ApacheDockerHttpClient ([#5127](https://github.com/langchain4j/langchain4j/pull/5127)) - @Malaydewangan09 - fix(mistralai): null-guard MistralAiChatMessage.getContent() in aiMessageFrom ([#5108](https |
| `1.14.0` | 2026-04-30 | High | ## Notable Changes - AI Services:   - Support polymorphic return types and tool parameters by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/5060   - Add `ReturnBehavior.IMMEDIATE_IF_LAST` by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/4998 - OpenAI Responses API:    - Refactor OpenAI Responses API integrations (follow up on PR 3816) by @maxlepikhin in https://github.com/langchain4j/langchain4j/pull/4557   - Add non-streaming OpenAI Responses chat model |
| `1.13.1` | 2026-04-23 | High | - [Retrive and use the actual types of arguments for typed A2A agents](https://github.com/langchain4j/langchain4j/commit/a7912e52735c3202bdfec9db34eb50f1062b09d5)  **Full Changelog**: https://github.com/langchain4j/langchain4j/compare/1.13.0...1.13.1 |
| `1.13.0` | 2026-04-09 | High | ## Notable Changes * Agentic: Make the execution state of an agentic system persistable and recoverable by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4827 * Agentic: Introduce optional agents by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4850 * Skills: Support skill-scoped tools by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/4732 * Skills: Introduce `ClassPathSkillLoader` by @jmartisk in https://github.com/langchain4j/langchain4j/pu |
| `1.12.2` | 2026-03-13 | Medium | ## What's Changed * docu: update versions to 1.12.1 and 1.12.1-beta21 by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/4665 * Update versions to 1.13.0-SNAPSHOT and 1.13.0-beta22-SNAPSHOT by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/4666 * Propagate default chat model when declaratively configure a superviso… by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4673   **Full Changelog**: https://github.com/langchain4j/langchain4j/compare |
| `1.12.1` | 2026-03-05 | Low | ## Notable Changes * Agentic: generate a HTML report of an agentic system topology and execution by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4600 * Agentic: allow to integrate an MCP tool as a non-AI agent by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4630 * Hibernate EmbeddingStore integration by @beikov in https://github.com/langchain4j/langchain4j/pull/4622 * Observability: Metrics with Micrometer by @Sus4nne in https://github.com/langchain4j/lang |
| `1.11.0` | 2026-02-04 | Low | ## Notable Changes * Agentic: support streaming by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4350 * Agentic: support multimodality by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4436 * Bedrock: support Guardrails by @jonathannaguin in https://github.com/langchain4j/langchain4j/pull/3988 * Elasticsearch: hybrid search implementation by @l-trotta in https://github.com/langchain4j/langchain4j/pull/4069 * Gemini: support Nano Banana and Nano Banana Pro by |

## Citation

- HTML: https://www.freshcrate.ai/projects/langchain4j
- Markdown: https://www.freshcrate.ai/projects/langchain4j.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/langchain4j/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
