Skip to content

Releases: kpavlov/langchain4j-kotlin

0.3.0

20 Jul 12:42
Compare
Choose a tag to compare

Notable Changes

  • Update Langchain4j to v1.1.0
  • Update Kotlin to v2.2.0
  • Replace StreamingChatLanguageModelReply.Error with throwing exception by @nomisRev and @kpavlov in #178 #113
  • Remove reports module and update Kover configuration by @kpavlov in #177
  • Multiple dependency upgrades

Full Changelog: v0.2.0...v0.3.0

v0.2.0

19 May 09:08
Compare
Choose a tag to compare

Release Notes for langchain4j-kotlin v0.2.0

Major Improvements

New: Coroutine-based AI Service Orchestration

  • Introduced coroutine support to the AiServiceOrchestrator for true asynchronous operations
  • Implemented suspend functions for non-blocking AI service interactions
  • Added customizable coroutine context support for flexible execution control

Integration with langchain4j 1.0.0

  • Updated dependency to the stable langchain4j 1.0.0 release (upgraded from beta4)
  • Updated coroutines dependency to 1.9.0 (latest version compatible with Kotlin 1.9)
  • Enhanced compatibility with the latest LangChain4j Java interfaces and APIs

Code Enhancements

Sample Code Improvements

  • Restructured examples for better clarity and readability
  • Centralized model creation in the Environment class
  • Added proper coroutine scope management in examples

Dependency Updates

  • Kotlin 2.1.21 (from 2.1.20)
  • kotlinx-coroutines 1.8.1

Bug Fixes

  • Fixed sample code compilation issues

This release marks a significant milestone with the introduction of true coroutine-based asynchronous operations and integration with the stable LangChain4j 1.0.0 release. The new orchestration system provides Kotlin developers with idiomatic concurrency patterns while delegating to InternalReflectionVariableResolver ensures compatibility with future updates to the Java library.

v0.1.12

05 May 00:24
Compare
Choose a tag to compare

What's Changed

  • 🚀 Experimental Async AiServices by @kpavlov in #139
  • Update dependency me.kpavlov.langchain4j.kotlin:langchain4j-kotlin to v0.1.11 by @renovate in #136
  • Add samples to CI by @kpavlov in #137

Full Changelog: v0.1.11...v0.1.12

v0.1.11

03 May 12:10
Compare
Choose a tag to compare

What's Changed

  • Upgrade LangChain4j to 1.0.0-beta4 by @kpavlov in #130
  • Update langchain4j.version by @renovate in #131
  • Configure streaming buffer (#113). Replace AssertK assertions with Kotest matchers by @kpavlov in #132
  • Update dependency dev.langchain4j:langchain4j-core to v1.0.0-rc1 by @renovate in #133
  • [WIP] Add asynchronous AI service infrastructure for Kotlin by @kpavlov in #128

Full Changelog: v0.1.10...v0.1.11

v0.1.10

01 May 19:58
Compare
Choose a tag to compare

What's Changed

  • Upgrade LangChain4j to 1.0.0-beta3. Fix tests, remove redundant classes and tests by @kpavlov in #125
  • Remove AiServicesExtensions migrated to langchain4j and update Kotlin dependencies by @kpavlov in #122
  • Use explicit api by @kpavlov in #124

Full Changelog: v0.1.9...v0.1.10

v0.1.9

28 Apr 16:31
Compare
Choose a tag to compare

Release Notes

What's New

  • Kotlin Monorepo Updates:
    • Major update to Kotlin monorepo (v2), and bumped to v2.1.20
  • Dependency Updates:
    • Updated me.kpavlov.langchain4j.kotlin:langchain4j-kotlin to v0.1.8
    • Updated org.openrewrite.maven:rewrite-maven-plugin multiple times, now at v6.7.0
    • Updated com.diffplug.spotless:spotless-maven-plugin to v2.44.4
    • Updated org.apache.maven.plugins artifacts (e.g., maven-compiler-plugin, maven-deploy-plugin, maven-failsafe-plugin, maven-surefire-plugin)
    • Updated org.junit:junit-bom to v5.12.2
    • Updated org.mockito:mockito-bom to v5.17.0
    • Updated slf4j monorepo to v2.0.17
    • Updated kotlinx-coroutines monorepo to v1.10.2
  • Features:
    • Added TokenStream adapters for Kotlin Flow and supporting tests (#116).

New Contributors


Full Changelog: v0.1.8...v0.1.9

v0.1.8

06 Feb 09:36
Compare
Choose a tag to compare

What's Changed

  • Add AI Mock support, improve integration tests: Integrated AI Mock library to enable OpenAI API mocking for tests. Refactored testing utilities and added TestSetup for better test configuration. Enhanced mock verification and added error handling for streaming chat model tests.
  • Update langchain4j.version to v1.0.0-beta1 by @renovate in #76
  • Update dependency org.openrewrite.maven:rewrite-maven-plugin to v6.0.1 by @renovate in #70
  • Update dependency org.openrewrite.maven:rewrite-maven-plugin to v6.0.2 by @renovate in #71
  • Update dependency org.openrewrite.maven:rewrite-maven-plugin to v6.0.3 by @renovate in #72
  • Update dependency org.openrewrite.maven:rewrite-maven-plugin to v6.0.4 by @renovate in #73
  • Update dependency org.openrewrite.maven:rewrite-maven-plugin to v6.0.5 by @renovate in #74
  • Update dependency org.jetbrains.kotlin:kotlin-bom to v2.1.10 by @renovate in #75

Full Changelog: v0.1.7...v0.1.8

v0.1.7

15 Jan 00:01
Compare
Choose a tag to compare

What's Changed

  • New lc4j api and ChatRequestParameterBuilder by @kpavlov in #67
  • Update dependency com.diffplug.spotless:spotless-maven-plugin to v2.44.2 by @renovate in #68

Full Changelog: v0.1.6...v0.1.7

v0.1.6

13 Jan 09:29
Compare
Choose a tag to compare

What's Changed

  • Added ChatRequest builders API by @kpavlov in #62
  • Refactor and enhance template system handling, added Java sample demonstrating template system usage by @kpavlov in #63
  • Update dependency org.sonatype.central:central-publishing-maven-plugin to v0.7.0 by @renovate in #59
  • Update dependency org.openrewrite.maven:rewrite-maven-plugin to v6 by @renovate in #60

Full Changelog: v0.1.5...v0.1.6

v0.1.5

11 Jan 07:09
Compare
Choose a tag to compare

What's Changed

  • Kotlin 1.9 compatibility, langchain4j 1.0.0-alpha1 by @kpavlov in #58
  • Other dependency upgrades

Full Changelog: v0.1.4...v0.1.5