Annotation Interface Ai.McpClients
- Enclosing class:
Ai
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
-
Element Details
-
value
String[] valueNames of the MCP Clients to be used in McpToolProvider creation. These names are mapped from thekey
values of the MCP Client.- Returns:
- client names
- Default:
{}
-