Rethink specifying tools dynamically for AI Service and Agent

Author: dliubarskyiCreated Dec 4, 2025Updated Sep 18, 2026
LabelsenhancementAI ServicesAPI

See https://github.com/quarkiverse/quarkus-langchain4j/issues/1987#issuecomment-3611275829

Perhaps we need a new type that will contain ToolSpecification info as well as AI-Service-related tool info/metadata like return behaviour, toolSearchTool behaviour, etc.

It sohuld contains:

  • low-level ToolSpecification
  • AiService-related tool metadata
  • perhaps ToolExecutor?

This new type then should be used inside the ToolProviderResult and AiServices.tools(Map<ToolSpecification, ToolExecutor> tools)