Skip to content

Conversation

@ugur-vaadin
Copy link
Contributor

Description

This PR adds LangChain4JLLMProvider, which implements the LLMProvider interface.

  • Supports both streaming and non-streaming chat models
  • Supports Langchain Tool annotations
  • Has a 120 seconds timeout per tool execution
  • Has a chat max message count of 30
  • Has a maximum tool execution count of 20 per message in order to avoid loops
  • Supports image, text, and PDF (text content) attachments

Fixes #8468

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.
  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

@ugur-vaadin ugur-vaadin force-pushed the feat-add-langchain-implementation-for-llmprovider branch from 8e0ba00 to 5e6da86 Compare January 20, 2026 09:49
@ugur-vaadin ugur-vaadin force-pushed the feat-add-langchain-implementation-for-llmprovider branch from 91744af to 80110b9 Compare January 21, 2026 10:52
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add LangChain4j LLMProvider implementation

3 participants