Skip to main content

LangChain4j

LangChain4j is s Java library that provides a uniform interface to multiple language models.

See https://docs.langchain4j.dev/

The Arc Framework provides a wrapper for the LangChain4j ChatLanguageModel interface, which allows us to use any LangChain4j client within our Arc Agents.

Supported LangChain4j clients:

ModelPackageSupported Version
Amazon Bedrockdev.langchain4j:langchain4j-bedrock0.36.2
Google Geminidev.langchain4j:langchain4j-google-ai-gemini0.36.2
Ollama.dev.langchain4j:langchain4j-ollama0.36.2
Groqdev.langchain4j:langchain4j-open-ai0.36.2

Check out the following example on how to set up clients: