Skip to content

refactor: LangChain4j updates with a builder, token count estimator, and version upgrade#1069

Merged
copybara-service[bot] merged 1 commit intogoogle:mainfrom
glaforge:main
Mar 20, 2026
Merged

refactor: LangChain4j updates with a builder, token count estimator, and version upgrade#1069
copybara-service[bot] merged 1 commit intogoogle:mainfrom
glaforge:main

Conversation

@glaforge
Copy link
Contributor

import java.util.Map;
import java.util.Objects;
import java.util.UUID;
import javax.annotation.Nullable;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we switch to org.jspecify.annotations.Nullable

…, and use JSpecify Nullable

- Migrate LangChain4j to a builder pattern
- Enhance token usage handling with TokenCountEstimator (from PR google#623)
- Upgrade to latest version of LangChain4j
- Replace javax.annotation.Nullable with org.jspecify.annotations.Nullable
@glaforge
Copy link
Contributor Author

glaforge commented Mar 20, 2026

Supercedes #623
Thanks @rhuan080 for the contribution!

@copybara-service copybara-service bot merged commit 750851b into google:main Mar 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants