Update langchain4j to v1 (major)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| dev.langchain4j:langchain4j-open-ai (source) | dependencies | major | 0.35.0 -> 1.9.1 |
| dev.langchain4j:langchain4j-mistral-ai (source) | dependencies | major | 0.35.0 -> 1.9.1 |
| dev.langchain4j:langchain4j-core (source) | dependencies | major | 0.35.0 -> 1.9.1 |
Release Notes
langchain4j/langchain4j (dev.langchain4j:langchain4j-open-ai)
v1.9.1: and 1.9.1-beta17
What's Changed
- docu: update versions to 1.9.0 and 1.9.0-beta16 by @dliubarskyi in #4139
- Update versions to 1.10.0-SNAPSHOT and 1.10.0-beta17-SNAPSHOT by @dliubarskyi in #4140
- added LangChain4j workshop to additional material - reviewed by @dliubarskyi by @roryp in #4142
- Update gemini batch docs by @Bram-- in #4130
- Avoid NPE when an agent has no output by @mariofusco in #4145
- Disable
GlobalTestRetryExtensionby default and remove junit-platform.properties by @dliubarskyi in #4147
Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.9.0...1.9.1
v1.9.0: and 1.9.0-beta16
Notable Changes
- Agentic: Introduce a generic agentic planner and reimplement all agentic patterns through it by @mariofusco in #3929
- MCP: WebSocket transport support by @jmartisk in #4032
- Gemini: Batch API by @Bram-- in #3942
- Anthropic: support through Vertex AI #3193 by @pbykovcoginiti in #3362
Other Changes
- docu: update versions to 1.8.0 and 1.8.0-beta15 by @dliubarskyi in #3950
- Update versions to 1.9.0-SNAPSHOT and 1.9.0-beta16-SNAPSHOT by @dliubarskyi in #3951
- Fix a typo in the OutputGuardrails annotation by @edeandrea in #3948
- Remove unnecessary MCP registry client creation during test by @jmartisk in #3963
- docs: add Agentic AI to intro by @vesense in #3966
- Fix typos in annotation and documentation by @justinchoi929 in #3997
- Generate consistent and reproducible unique names for agents by @mariofusco in #3965
- Reflect recent MCP registry updates by @jmartisk in #4016
- vertex-ai-gemini: Expose vertex apiEndpoint in builder by @eiselems in #4021
- Fix wrong method name in AgentBuilder by @mariofusco in #4033
- Update Quarkus documentation link for Easy RAG by @wadajo in #4034
- Update playwright version to 1.56.0 by @vesense in #4025
- Doc: Added SQLServer 2025 embedding store integration by @odelpozo-denodo in #3992
- Add WatsonxModerationModel and refactor LangChain4j integration by @andreadimaio in #3982
- MCP: Supply custom headers via a supplier method by @maff in #4036
- Flatten request response objects by @Bram-- in #3955
- Initializing the guardrails module by @agoncal in #3928
- Fix OpenAi token usage class cast exception by @linnaung in #3912
- Refactor ToolExecutionResult to support lazy evaluation of result tex… by @hemanthsavasere in #3960
- Fixes #3968 by @dliubarskyi in #4026
- test: add edge case and error handling tests for ParsingUtil by @alxkm in #3959
- chore(deps): update dependency org.codehaus.mojo:flatten-maven-plugin to v1.7.2 by @renovate[bot] in #3433
- CompressingQueryTransformer NullPointException by @zxyyang in #1120
- Ignoring Claude Code CLI markdown file CLAUDE.md by @agoncal in #4041
- Updates to Latest Infinispan and Jackson Versions by @karesti in #4038
- Enable case-insensitive enum deserialization in structured output parsing by @mariofusco in #4049
- Propagate root exception when json parsing fails by @mariofusco in #4046
- feat: Enable reasoning effort control for GPT-5 (o1 series) by @caio-carne1ro in #4052
- Add GPT_5_1 to open ai enum. by @Bram-- in #4054
- GitHub Models: support structured output by @hrhrng in #1917
- Allow different types of object in the argument of the agent invocation generated by the supervisor by @mariofusco in #4053
- Update qdrant client by @boris-petrov in #4077
- Refactor value classes to (nested) records in google-ai-gemini by @Bram-- in #4070
- programmatic tools return behavior by @Yoann-philippe in #4064
- feat(memory): implement dynamic window sizing for chat memory by @PaperFly-web in #4058
- Make the supervisor aware of the argument types of its subagents by @mariofusco in #4079
- feat: add video content type support to OpenAI integration by @ldaugusto in #4078
- Get rid of @Subagent annotation in declarative agentic API by @mariofusco in #4081
- #4067 Add BedrockTokenUsage with cache token usage by @blaZ3 in #4080
- Implement tool hallucination handling for streaming by @vesense in #3773
- Gemini batch chat model delete and cancel by @Bram-- in #3945
- Bump A2A SDK to version 0.3.2.Final by @mariofusco in #4090
- Add Gemini among possible model providers in agentic tests by @mariofusco in #4091
- add: implementation of removeAll(Filter) for WeaviateEmbeddingStore by @AminAK11 in #3555
- fix badge style by @vesense in #4094
- Receive and expose MCP tool metadata by @jmartisk in #4089
- Update gemini docs by @Bram-- in #4082
- Expose agentic system as tree and check key types consistency by @mariofusco in #4100
- Fix test for GOAP planner by @mariofusco in #4103
- Improve class description of ChatMessageType by @lihuagang03 in #4112
- Collect guardrail validation duration and attach it to the guardrail events by @cescoffier in #4119
- Update watsonx-ai dependency to 0.14.0 and add new parameters by @andreadimaio in #4114
- docs: Add back YugabyteDB examples to documentation by @krishna-yb in #4120
- Apply the ChatRequest transformation to all LLM calls in the same tools invocation loop by @mariofusco in #4104
- MongoDB: Update to the latest version and append framework name to MongoDB metadata by @strogiyotec in #4106
- Update the OpenAI Java SDK to 4.8.0 and fix the Azure authentication code by @jdubois in #4092
- Implement all of the Gemini Files APIs by @Bram-- in #4068
- Issue 4116 fix npe gemini base64 images by @idoberko2 in #4129
- feat: add default modelName() to EmbeddingModel and implement overrides by @raphidlee in #4133
- Parse structured results in A2A client by @mariofusco in #4127
- Gemini (async) batch embed api by @Bram-- in #4086
- feat: support Gemini 3 Pro thinking level configuration by @glaforge in #4137
- Fixes issue from #3664 and adds handling of content filtered responses by @jonathannaguin in #3978
- Add create batch from [Gemini]File methods for GoogleAiGeminiBatch{Chat,Embed}Model by @Bram-- in #4128
New Contributors
- @justinchoi929 made their first contribution in #3997
- @eiselems made their first contribution in #4021
- @wadajo made their first contribution in #4034
- @odelpozo-denodo made their first contribution in #3992
- @hemanthsavasere made their first contribution in #3960
- @zxyyang made their first contribution in #1120
- @caio-carne1ro made their first contribution in #4052
- @Yoann-philippe made their first contribution in #4064
- @PaperFly-web made their first contribution in #4058
- @ldaugusto made their first contribution in #4078
- @blaZ3 made their first contribution in #4080
- @AminAK11 made their first contribution in #3555
- @lihuagang03 made their first contribution in #4112
- @cescoffier made their first contribution in #4119
- @strogiyotec made their first contribution in #4106
- @pbykovcoginiti made their first contribution in #3362
- @idoberko2 made their first contribution in #4129
- @raphidlee made their first contribution in #4133
- @jonathannaguin made their first contribution in #3978
Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.8.0...1.9.0
v1.8.0: and 1.8.0-beta15
Notable Changes
- Reflect latest MCP registry changes by @jmartisk in #3888
- Support tool name mapping for MCP clients by @jmartisk in #3799
- Allow the output guardrail to rewrite a complete AiMessage by @mariofusco in #3868
- Allow accessing AgenticScope from within @Tool-annotated method by @mariofusco in #3785
- Allow passing custom attributes from RAG pipeline to ChatMemoryStore by @dliubarskyi in #3898
- Streaming Cancellation by @dliubarskyi in #3910
Other Changes
- docs: update home page to display features in card view by @vijaypatidar in #3809
- Add markdown & yaml parsers to bom by @vesense in #3814
- test: improve PojoListOutputParser test coverage for edge cases by @alxkm in #3805
- Split nightly workflows into multiple jobs by @dliubarskyi in #3822
- OpenAiStreamingChatModel: expose raw HTTP response by @dliubarskyi in #3828
- test: Add comprehensive test coverage for JSONMetadataHandler by @alxkm in #3823
- fix typo by @jujn in #3824
- Avoid returing a null AiMessage from Gemini by @loicmathieu in #3825
- Allow configuring the logger for logging MCP events by @loicmathieu in #3803
- Fix guardrails result after a successful reprompt by @mariofusco in #3820
- fix: the Builder exposes a logger setter but SseSubscriber still constructs its own Logger internally. by @NeatGuyCoding in #3835
- test: Add comprehensive test coverage for Vertex AI ContentsMapper by @alxkm in #3831
- Release automation by @dliubarskyi in #3838
- feat: Added support to auto reinitialize session if not found by @vijaypatidar in #3833
- Automate updating versions in documentation by @dliubarskyi in #3845
- Automate updating versions in documentation by @dliubarskyi in #3847
- test: enhance AiService chat memory configuration coverage by @alxkm in #3839
- Fix markdown tests package by @vesense in #3844
- docs: Add YugabyteDB embedding store documentation by @krishna-yb in #3852
- Azure CosmosDB No SQL: Fixing bugs by @aayush3011 in #3813
- Use LocalDateTime evaluated as UTC in the MCP registry client by @jmartisk in #3865
- Fix typos in WorkflowAgentsIT by @vesense in #3859
- Fix pure-agentic example by @vesense in #3860
- feat: I think the Document class should be public so that users can i… by @GuXiangFly in #3857
- docs(search-engine): DuckDuckGo integration by @Malaydewangan09 in #3862
- Add immutability and validation tests for DefaultQueryRouter by @alxkm in #3863
- Fix CI build failure due to langchain4j-docu-chatbot-updater license compliance error by @vesense in #3861
- docs: add OpenTelemetry GenAI instrumentation guide by @dineshkumarkummara in #3842
- test: Add validation and instance identity tests for ClassInstanceLoader by @alxkm in #3870
- docs: Add mariadb to embedding store list by @vesense in #3873
- Update the watsonx.ai SDK to the latest version by @andreadimaio in #3812
- Allow AiServices to return void by @mariofusco in #3874
- Renamed outputName to outputKey and updated docs by @vijaypatidar in #3877
- Retain description of anyOf elements from the MCP schema by @jmartisk in #3886
- docs: Remove examples from YugabyteDB documentation by @krishna-yb in #3875
- docs: Update chat memory docs by @vesense in #3876
- test: Add null key validation and empty state tests for InvocationParameters by @alxkm in #3881
- docs: add open-ai-official model to list by @vesense in #3882
- feat(open-ai): Add support to set query parameters to an OpenAI request by @maff in #3880
- test: Add validation tests and refactor AiServicesBuilderTest by @alxkm in #3891
- docs: update numbers in intro by @vesense in #3893
- chore(deps): Update Apache Tika to version 3.2.3 by @maff in #3885
- fix: thinking disabled should set thinking to null, toString should not expose secret by @NeatGuyCoding in #3892
- docs: update rag docs by @vesense in #3899
- Explicitly for the ResponseFormat instead of checking whether it's null when validating a ChatRequest for any Anthropic model by @Bram-- in #3900
- Fix typos in observability doc by @jeanbisutti in #3902
- test: add edge case coverage for JsonTestUtils.jsonify() by @alxkm in #3905
- feat: add support for base64 images using OpenAi Azure by @mathieu-stennier in #3909
- test: Add comprehensive test coverage for ParsingUtils by @alxkm in #3913
- Fix ConditionalInvocationHandler name by @vesense in #3922
- Add support for validation of content types in Ollama models and respective unit tests by @nwijngaards in #3923
- Extract a Base Gemini Chat Model builder by @Bram-- in #3917
- Enhance failure and fatal guardrail outcome descriptions by @edeandrea in #3919
- docs: update numbers in readme by @vesense in #3920
- test: Add comprehensive test coverage for TypeUtils by @alxkm in #3924
- test: Add missing test coverage for OpenAiUtils thinking content and edge cases by @alxkm in #3931
- Make GoogleAiGeminiChatModel unit-testable by @Bram-- in #3927
- Add tool execution request id for Gemini model by @ChiaoGeek in #3557
- Close resources in Utils.readBytes by @jeanbisutti in #3934
- test: add missing test coverage for ParsingUtils collection parsing by @alxkm in #3935
- Remove model from GeminiGenerateContentRequest by @Bram-- in #3936
- Fix NPE with OpenAiChatRequestParameters by @jeanbisutti in #3940
New Contributors
- @jujn made their first contribution in #3824
- @krishna-yb made their first contribution in #3852
- @GuXiangFly made their first contribution in #3857
- @Malaydewangan09 made their first contribution in #3862
- @dineshkumarkummara made their first contribution in #3842
- @maff made their first contribution in #3880
- @Bram-- made their first contribution in #3900
- @jeanbisutti made their first contribution in #3902
- @mathieu-stennier made their first contribution in #3909
- @nwijngaards made their first contribution in #3923
Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.7.1...1.8.0
v1.7.1: and 1.7.1-beta14
Notable Changes
- Agentic: allow to create agents based on classes by @mariofusco in #3786
- ChromaDB: support API V2 by @vijaypatidar and @ehsavoie in #3779
- MCP: adjust to recent registry API changes by @jmartisk in #3793
- OpenAI Official: upgrade to SDK v4.0.0 by @jdubois in #3795
- Anthropic: allow setting custom parameters by @dliubarskyi in #3797
- Azure OpenAI: support maxCompletionTokens parameter @dliubarskyi in
faa12fa - Hugging Face: deprecate HuggingFaceChatModel and HuggingFaceLanguageModel by @dliubarskyi in #3319
New Integrations
- Docker MCP transport by @loicmathieu in #3513
- Adding Oracle Document Loader implementation by @psilberk in #3114
- Add GPU Support to LangChain4j via GPULlama3.java Powered by TornadoVM by @mikepapadim in #3654
- Introduce yaml document parser by @vesense in #3748
Other Changes
- add logos and logo license by @LizeRaes in #3739
- test: Add validation and edge case tests for GoogleAI, IsNotEqualTo filter, and SQL builder by @alxkm in #3766
- Improve AgenticScope json serialization test by @mariofusco in #3777
- fix(gemini): Fix Google Gemini API field naming to use camelCase by @minguncle in #3567
- Support anyOf and null JSON schema elements in googleai.SchemaMapper by @Zalewa in #3781
- test: add comprehensive test coverage for InvocationParameters by @alxkm in #3787
- Disable flaky test in agentic module by @mariofusco in #3790
- test: enhance test coverage for IsEqualTo filter and Tablestore utilities by @alxkm in #3791
- fix: TokenStream should not require onPartialResponse() if onCompleteResponse() is used by @vorburger in #3792
- test: enhance PojoSetOutputParser test coverage by @alxkm in #3798
New Contributors
- @vorburger made their first contribution in #3792
- @mikepapadim made their first contribution in #3654
Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.6.0...1.7.1
v1.6.0: and 1.6.0-beta12
Notable Changes
- Agentic
- Ensure that all pending async agent invocations are completed before ending the root call by @mariofusco in #3695
- Call output function when a loop terminates with the exit condition by @mariofusco in #3696
- Allow to mix agentic declarative and programmatic API by @mariofusco in #3699
- Use unique names for agents inside the same agentic system by @mariofusco in #3703
- Fix agentic context configuration propagation in declarative API by @mariofusco in #3709
- Fix A2A client after introduction of agents' unique names by @mariofusco in #3711
- Upgrading A2A SDK to 0.3.0.Beta1 by @ehsavoie in #3710
- Tweak supervisor prompt by @mariofusco in #3726
- Improve agentic loop exit condition by @mariofusco in #3713
- Introduce agents listeners by @mariofusco in #3718
- Add declarative HumanInTheLoop by @mariofusco in #3735
- Allow to configure ChatMemoryProvider on SupervisorAgent by @mariofusco in #3740
- Add declarative API for A2A client by @mariofusco in #3755
- MCP
- Adjust to recent changes in the official MCP registry by @jmartisk in #3723
- Rework MCP client to support structured content results by @jmartisk in #3733
- When cancelling a tool, send the requestId as a number by @jmartisk in #3707
- Make the parsing of SSE events more robust by @jmartisk in #3724
- AI Services
- Backport observability from Quarkus LangChain4j by @edeandrea in #3679
- Option to pass extra parameters into and between Tool/ToolProvider/RAG components by @dliubarskyi in #3569
New Integrations
- Azure Container Apps Dynamic Sessions by @bbenz in #3266
- Markdown document parser by @vesense in #3732
Other Changes
- test: Add comprehensive test coverage for AiServices, Metadata, and StringSetOutputParsert by @alxkm in #3690
- Add image URL support for Anthropic Claude vision models(#3691) by @henrydo300 in #3692
- Updates couchbase client to 3.9.1 by @chedim in #3702
- Refactor addAll method to validate ids list and ensure consistent lis… by @harikrishna553 in #3681
- test: Enhance test coverage for core component validation and edge cases by @alxkm in #3706
- Test for 'data:' inside a SSE event by @jmartisk in #3725
- test: Enhance test coverage for listener error handling, content aggregation, and enum parsing by @alxkm in #3719
- Fix typo in 'Anthropic' reference by @vesense in #3731
- test: Add validation and edge case test coverage for core request/response handling by @alxkm in #3727
- test: Add validation test coverage for query routing and configuration components by @alxkm in #3737
- Add ensureNotNull validation and unit tests for McpResource and McpRe… by @harikrishna553 in #3705
- feat: Added batching support for bedrock cohere embedding model by @vijaypatidar in #3730
- Follow-up to #3685: migrate nullability annotations to JSpecify by @kushal-dixit in #3694
- Add Javadocs to declarative API annotations by @mariofusco in #3747
- Test against Java 25 by @dliubarskyi in #3751
- test: Add comprehensive test coverage for ChatResponse, ChromaMetadataFilter, and DefaultQueryRouter by @alxkm in #3750
- docs: add custom-parameters option for OpenAI by @JungahGoak in #3749
- test: Add critical validation and edge case tests for AiServices, StreamingChatModelMock, and TablestoreEmbeddingStore by @alxkm in #3759
New Contributors
- @henrydo300 made their first contribution in #3692
- @vijaypatidar made their first contribution in #3730
- @JungahGoak made their first contribution in #3749
Full Changelog: https://github.com/langchain4j/langchain4j/compare/1.5.0...1.6.0
v1.5.0: and 1.5.0-beta11
Notable Changes
- MCP: initial registry client implementation by @jmartisk in #3684
- Agentic: asynchronous agents by @mariofusco in #3643
- Agentic: missing tools features by @mariofusco in #3660
- Google AI Gemini: support image outputs by @minguncle in #3641
- AWS Bedrock: support prompt caching by @valimikayilov in #3664
Other Changes
- Add missing StyleEditor implementation in Agents tutorial by @harikrishna553 in #3611
- Fix #3650 by @dliubarskyi in #3655
- Refactor addInternal to remove redundant HashMap initialization by @harikrishna553 in #3618
- Fix invocation of output function in supervisor agent when max agents… by @mariofusco in #3623
- Propagate declaratively supplied ChatModel from main agent to subagents by @mariofusco in #3625
- Fix json serialization of AgenticScope by @mariofusco in #3656
- #3628: Use received description for visited json object schema by @jordibisbal8 in #3661
- Update the watsonx.ai SDK to the latest version by @andreadimaio in #3644
- Document support A2A response types by @mbroz2 in #3640
- test: Enhance test coverage for ConversationalChain and ConversationalRetrievalChain by @alxkm in #3610
- fix(deps): update dependency software.amazon.awssdk:bom to v2.33.5 by @renovate[bot] in #3435
- fix(deps): update dependency org.mockito:mockito-bom to v5.19.0 by @renovate[bot] in #3483
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.18 by @renovate[bot] in #3436
- chore(deps): update dependency org.wiremock:wiremock-standalone to v3.13.1 by @renovate[bot] in #3486
- Fix GoogleAiGeminiTokenCountEstimator sending empty request for system message by @linnaung in #3616
- Allow configuring the logger for logging requests and responses by @loicmathieu in #3612
- fix: wait for the tool-list update to finish by @jiangsier-xyz in #3630
- Refactor registerContext for clarity and safer handling of chat messages by @harikrishna553 in #3631
- added requirements for common ITs by @dliubarskyi in #3665
- Allow to create an agentic system made of a single agent using the declarative API by @mariofusco in #3666
- feat(anthropic): propagate user id in Anthropic models by @maxlepikhin in #3670
- Add callback allowing to configure agents created through the declarative API by @mariofusco in #3672
- test: Add comprehensive test coverage for AwsDocumentConverter, ChatRequest, and Content classes by @alxkm in #3673
- Record agent messages in the AgenticScope even without a ChatMemory by @mariofusco in #3675
- Clarify the documentation by using static imports by @jdubois in #3677
- feat(Anthropic user id): fixed AnthropicUserIdIT by @maxlepikhin in #3676
- test: Add comprehensive test coverage for OpenAiChatRequestParameters, CustomMimeTypesFileTypeDetector, and Query classess by @alxkm in #3683
- Introduce AiServiceContextFactory by @mariofusco in #3687
- Anthropic: added the ability to turn off parallel tool calls and improved the toolChoice implementation by @Claudio-code in #3401
- Fix null handling in JinaEmbeddingModel response and mask apiKey in t… by @harikrishna553 in #3680
- Remove Lombok annotations from remaining code and replace with standard java checks and implementations. by @kushal-dixit in [#3685](ht
Configuration
📅 Schedule: Branch creation - Every minute ( * * * * * ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot
⚠️ Artifact update problem
Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: undefined
Command failed: ./gradlew resolveAndLockAll --write-locks
FAILURE: Build failed with an exception.
* Where:
Script '/tmp/renovate/repos/github/apache/solr/gradle/validation/dependencies.gradle' line: 101
* What went wrong:
Execution failed for task ':solr:modules:language-models:resolveAndLockAll'.
> Could not resolve all files for configuration ':solr:modules:language-models:jarValidation'.
> Could not find dev.langchain4j:langchain4j-cohere:1.9.1.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/dev/langchain4j/langchain4j-cohere/1.9.1/langchain4j-cohere-1.9.1.pom
Required by:
project :solr:modules:language-models
project :solr:modules:language-models > project :platform
> Could not find dev.langchain4j:langchain4j-hugging-face:1.9.1.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/dev/langchain4j/langchain4j-hugging-face/1.9.1/langchain4j-hugging-face-1.9.1.pom
Required by:
project :solr:modules:language-models
project :solr:modules:language-models > project :platform
* Try:
> If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
BUILD FAILED in 16s
File name: undefined
Command failed: ./gradlew updateLicenses
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':solr:modules:language-models:collectJarInfos'.
> Could not resolve all dependencies for configuration ':solr:modules:language-models:jarValidation'.
> Did not resolve 'com.squareup.okio:okio:3.6.0' which is part of the dependency lock state
> Did not resolve 'com.squareup.retrofit2:converter-jackson:2.9.0' which is part of the dependency lock state
> Did not resolve 'dev.langchain4j:langchain4j-hugging-face:0.35.0' which is part of the dependency lock state
> Did not resolve 'org.jetbrains:annotations:26.0.2' which is part of the dependency lock state
> Did not resolve 'dev.langchain4j:langchain4j-cohere:0.35.0' which is part of the dependency lock state
> Resolved 'dev.langchain4j:langchain4j-http-client:1.9.1' which is not part of the dependency lock state
> Resolved 'dev.langchain4j:langchain4j-http-client-jdk:1.9.1' which is not part of the dependency lock state
> Did not resolve 'com.squareup.okhttp3:okhttp-sse:4.12.0' which is part of the dependency lock state
> Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.2.0' which is part of the dependency lock state
> Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib:2.2.0' which is part of the dependency lock state
> Did not resolve 'com.squareup.retrofit2:retrofit:2.9.0' which is part of the dependency lock state
> Did not resolve 'com.squareup.okhttp3:okhttp:4.12.0' which is part of the dependency lock state
> Did not resolve 'com.google.code.gson:gson:2.13.1' which is part of the dependency lock state
> Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib-common:2.2.0' which is part of the dependency lock state
> Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.2.0' which is part of the dependency lock state
> Did not resolve 'com.squareup.okio:okio-jvm:3.6.0' which is part of the dependency lock state
> Did not resolve 'dev.ai4j:openai4j:0.22.0' which is part of the dependency lock state
> Could not resolve dev.langchain4j:langchain4j-core:1.9.1.
Required by:
project :solr:modules:language-models
project :solr:modules:language-models > project :platform
project :solr:modules:language-models > dev.langchain4j:langchain4j-mistral-ai:1.9.1
project :solr:modules:language-models > dev.langchain4j:langchain4j-open-ai:1.9.1
project :solr:modules:language-models > dev.langchain4j:langchain4j-mistral-ai:1.9.1 > dev.langchain4j:langchain4j-http-client:1.9.1
project :solr:modules:language-models > dev.langchain4j:langchain4j-mistral-ai:1.9.1 > dev.langchain4j:langchain4j-http-client-jdk:1.9.1
> Cannot find a version of 'dev.langchain4j:langchain4j-core' that satisfies the version constraints:
Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-core:1.9.1'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-core:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-core:1.9.1'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.9.1'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.9.1'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-http-client:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.9.1'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-http-client-jdk:1.9.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.9.1'
> Could not resolve dev.langchain4j:langchain4j-cohere:1.9.1.
Required by:
project :solr:modules:language-models
project :solr:modules:language-models > project :platform
> Cannot find a version of 'dev.langchain4j:langchain4j-cohere' that satisfies the version constraints:
Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-cohere:1.9.1'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-cohere:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-cohere:1.9.1'
> Could not resolve dev.langchain4j:langchain4j-hugging-face:1.9.1.
Required by:
project :solr:modules:language-models
project :solr:modules:language-models > project :platform
> Cannot find a version of 'dev.langchain4j:langchain4j-hugging-face' that satisfies the version constraints:
Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-hugging-face:1.9.1'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-hugging-face:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-hugging-face:1.9.1'
> Could not resolve dev.langchain4j:langchain4j-mistral-ai:1.9.1.
Required by:
project :solr:modules:language-models
project :solr:modules:language-models > project :platform
> Cannot find a version of 'dev.langchain4j:langchain4j-mistral-ai' that satisfies the version constraints:
Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-mistral-ai:1.9.1'
> Could not resolve dev.langchain4j:langchain4j-open-ai:1.9.1.
Required by:
project :solr:modules:language-models
project :solr:modules:language-models > project :platform
> Cannot find a version of 'dev.langchain4j:langchain4j-open-ai' that satisfies the version constraints:
Dependency path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:1.9.1'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
Constraint path 'org.apache.solr:language-models:11.0.0-SNAPSHOT' --> 'org.apache:platform:11.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-open-ai:1.9.1'
> There are 5 more failures with identical causes.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
BUILD FAILED in 16s
@alessandrobenedetti if I remember correct you were the main driver of the LLM module. Maybe you have the time and want to handle this major upgrade?
@janhoy Thanks for linking this PR. I’ve opened a new one because I do not have permission to work on this branch.
@malliaridis I’m a colleague of @alessandrobenedetti , and I’m working on this under his supervision.