MCP اور ٹول کالنگ

LangChain4j

langchain4j/langchain4j

An idiomatic, open-source Java library for building LLM-powered applications on the JVM, offering a unified API over popular LLM providers and vector stores with support for tool calling, MCP, agents, and RAG.

★ 12.8Kستارے
⑂ 2.4Kفورکس
902کھلے مسائل
Javaزبان
Apache-2.0لائسنس
Q98ادارتی اسکور

پروجیکٹ کے اسکرین شاٹس

LangChain4j کا اسکرین شاٹ LangChain4j کا اسکرین شاٹ LangChain4j کا اسکرین شاٹ LangChain4j کا اسکرین شاٹ LangChain4j کا اسکرین شاٹ LangChain4j کا اسکرین شاٹ

جائزہ

LangChain4j is an open-source Java library designed to simplify the integration of large language models (LLMs) into Java applications. It provides a unified API that abstracts the proprietary interfaces of over 20 LLM providers and more than 30 embedding (vector) stores, allowing developers to swap providers without rewriting application code. The library offers a comprehensive toolbox ranging from low-level capabilities like prompt templating, chat memory management, and function calling to high-level patterns such as agents and retrieval-augmented generation (RAG). LangChain4j is built from the ground up around Java conventions—including type safety, POJOs, annotations, interfaces, dependency injection, and fluent APIs—and integrates with enterprise Java frameworks such as Quarkus, Spring Boot, Helidon, and Micronaut. Despite its name, it is not a Java port of the Python LangChain project; its API, internals, and release cycle are independent.

اہم خصوصیات

  • Unified API over 20+ LLM providers and 30+ embedding stores
  • Tool calling with MCP support
  • Agent and RAG abstractions with ready-to-use implementations
  • Prompt templating and chat memory management
  • Idiomatic Java design: type safety, POJOs, annotations, interfaces, fluent APIs
  • First-class integrations with Quarkus, Spring Boot, Helidon, and Micronaut
  • Independent API, internals, and release cycle from Python LangChain

ضروریات، انسٹالیشن اور فوری آغاز

Follow the installation or quick-start section in the repository README and run its dependency setup commands. Repository: https://github.com/langchain4j/langchain4j

استعمال

A getting started guide is available at https://docs.langchain4j.dev/get-started. Code examples are provided in a separate repository at https://github.com/langchain4j/langchain4j-examples, including plain Java examples (https://github.com/langchain4j/langchain4j-examples/tree/main/other-examples/src/main/java), Quarkus examples (https://github.com/quarkiverse/quarkus-langchain4j/tree/main/samples), a Spring Boot example (https://github.com/langchain4j/langchain4j-examples/tree/main/spring-boot-example/src/main/java/dev/langchain4j/example), Helidon examples (https://github.com/helidon-io/helidon-examples/tree/helidon-4.x/examples/integrations/langchain4j), and Micronaut examples (https://github.com/micronaut-projects/micronaut-langchain4j/tree/0.3.x/doc-examples/example-openai-java).

ماڈل کی مطابقت اور استعمال کے مواقع

Supports 20+ popular LLM providers and 30+ embedding stores. Repository topics reference providers and stores including Anthropic, OpenAI, Gemini, Hugging Face, Ollama, ONNX, Chroma, Milvus, Pinecone, and pgvector. A full list is available at https://docs.langchain4j.dev/integrations/language-models/ and https://docs.langchain4j.dev/integrations/embedding-stores/.

لائسنس اور خطرے سے متعلق نوٹس

Licensed under the Apache License 2.0 (SPDX: Apache-2.0). License details are available at https://api.github.com/licenses/apache-2.0.

Editorial verification 2026-08-09: repository URL, owner, description, license and repository statistics were reviewed. License metadata: Apache-2.0. README was fetched for the channel draft; re-check repository dependencies, releases and model terms before production use.

ریلیز اور دیکھ بھال

Not stated in the repository metadata. The Maven Central version badge links to https://search.maven.org/#search|gav|1|g:"dev.langchain4j"%20AND%20a:"langchain4j" for current release version information.

MemPalace

mempalace/mempalace

★ 58KPython

litellm

berriai/litellm

★ 56.8KPython

QwenPaw

agentscope-ai/qwenpaw

★ 33.9KPython