Annotation Interface Ai.McpClients

Enclosing class:
Ai

@Target(TYPE) @Retention(RUNTIME) public static @interface Ai.McpClients
Annotation to specify an MCP Clients to be used in McpToolProvider. This is mutually exclusive with the Ai.ToolProvider. It requires to have dev.langchain4j:langchain4j-mcp dependency added on the classpath for it to work properly.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Names of the MCP Clients to be used in McpToolProvider creation.
  • Element Details

    • value

      String[] value
      Names of the MCP Clients to be used in McpToolProvider creation. These names are mapped from the key values of the MCP Client.
      Returns:
      client names
      Default:
      {}