Skip to content

[camel-main] enable langchain4j-agent tests with extension for ai-tool #8914

Description

@JiriOndrusek

Summary

The simpleToolInvocation test in Langchain4jAgentTest is disabled on camel-main because camel's CAMEL-23382 migrated tool discovery from CamelToolExecutorCache (langchain4j-tools) to AiToolRegistry (camel-ai-tool). The camel-ai-tool module has no Quarkus extension yet, so tools registered via langchain4j-tools: consumers are invisible to the langchain4j-agent producer.

Failing tests

  • Langchain4jAgentTest#simpleToolInvocation — disabled (@Disabled)
  • Langchain4jAgentIT#simpleToolInvocation — disabled (inherited)

What is needed

  1. Create a camel-quarkus-ai-tool extension (runtime + deployment) for the camel-ai-tool component
  2. Update the langchain4j-agent integration test route from langchain4j-tools: to ai-tool: consumer
  3. Add reflection registration in the deployment module for native mode support
  4. Update WireMock stubs if the tool name format changes
  5. Re-enable simpleToolInvocation test

Context

Disabled in commit 27e4490735 with message:

Requires camel-quarkus-ai-tool extension and bridge from langchain4j-tools to ai-tool registry

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions