davsclaus opened a new pull request, #2061:
URL: https://github.com/apache/camel-spring-boot/pull/2061

   ## Summary
   
   `mvn clean install -P fastinstall` failed to compile 
`camel-langchain4j-agent-starter` after CAMEL-24767 (tool search support) in 
Camel core:
   
   ```
   LangChain4jAgentComponentConfiguration.java:[153,75] cannot find symbol
     symbol:   variable keyword
     location: class org.apache.camel.component.ai.tool.AiToolSearchStrategy
   ```
   
   In Camel core the option is declared as `@UriParam(enums = "keyword,vector", 
defaultValue = "keyword")`, but the Java enum constants are `KEYWORD` / 
`VECTOR`. The generator used the documented default value as-is in the Java 
literal, so it generated `AiToolSearchStrategy.keyword`.
   
   ## Changes
   
   - `SpringBootAutoConfigurationMojo`: new `enumConstantName()` 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.
   - The generated `LangChain4jAgentComponentConfiguration` now uses 
`AiToolSearchStrategy.KEYWORD`. Users can still set `keyword` / `vector` in 
properties, because Spring Boot binds enum values ignoring case.
   - Regen for the latest Camel core changes: the ai-tool and langchain4j-agent 
starters and docs, the catalog jsons (ai-tool, aws2-polly, langchain4j-agent, 
llm, openai, spring-ai-chat) and `camel-spring-boot-dependencies`.
   
   ## Testing
   
   - `mvn clean install -P fastinstall` failed at 
`camel-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](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to