Class TurToolDescriptionService

java.lang.Object
com.viglet.turing.genai.tool.TurToolDescriptionService

@Service public class TurToolDescriptionService extends Object
Loads tool descriptions from classpath:prompts/tools/**/*.md files.

Files are organized in subdirectories per tool service (e.g., prompts/tools/finance/get_stock_quote.md). The filename (without .md) must match the @Tool(name) value. Content replaces the @Tool(description) at runtime via TurToolDescriptionCallback.

Since:
2026.1.14
Author:
Alexandre Oliveira
  • Constructor Details

    • TurToolDescriptionService

      public TurToolDescriptionService()
  • Method Details

    • getDescription

      public String getDescription(String toolName)
      Returns the .md description for the given tool name, or null if no override exists.
    • hasDescription

      public boolean hasDescription(String toolName)