Fluent builder interface for configuring MCP client in agentic systems.
// Source: https://github.com/langchain4j/langchain4j | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package dev.langchain4j.agentic.internal;
import dev.langchain4j.agentic.observability.AgentListener;
import dev.langchain4j.agentic.scope.AgenticScope;
import java.util.function.Predicate;
public interface McpClientBuilder<T> {
McpClientBuilder<T> toolName(String toolName);
McpClientBuilder<T> inputKeys(String... inputKeys);
McpClientBuilder<T> outputKey(String outputKey);
McpClientBuilder<T> async(boolean async);
McpClientBuilder<T> listener(AgentListener agentListener);
/**
* Sets the condition under which the agent runs when it is invoked a
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key