Repository navigation
Conversation
…e actual enum constant The generated starter configuration used the documented enum value as-is as Java literal, which fails to compile when the documented values use another case than the enum constants, such as toolSearchStrategy in camel-langchain4j-agent (keyword vs AiToolSearchStrategy.KEYWORD). Also regen for latest Camel core changes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Superseded by the fix in Camel core (apache/camel#28528), which aligned the toolSearchStrategy enum values with the enum constants. The regen will be done as chore commits on main. Claude Code on behalf of Claus Ibsen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mvn clean install -P fastinstallfailed to compilecamel-langchain4j-agent-starterafter CAMEL-24767 (tool search support) in Camel core:In Camel core the option is declared as
@UriParam(enums = "keyword,vector", defaultValue = "keyword"), but the Java enum constants areKEYWORD/VECTOR. The generator used the documented default value as-is in the Java literal, so it generatedAiToolSearchStrategy.keyword.Changes
SpringBootAutoConfigurationMojo: newenumConstantName()helper that loads the enum class and resolves the default value to the enum constant with the same name, ignoring case. If no constant matches, the value is used as-is, so starters that already compiled generate the same code.LangChain4jAgentComponentConfigurationnow usesAiToolSearchStrategy.KEYWORD. Users can still setkeyword/vectorin properties, because Spring Boot binds enum values ignoring case.camel-spring-boot-dependencies.Testing
mvn clean install -P fastinstallfailed atcamel-langchain4j-agent-starter. After the fix, the resumed build (-rf :camel-langchain4j-agent-starter) completed successfully.Claude Code on behalf of Claus Ibsen
🤖 Generated with Claude Code