internal/McpClientBuilder.java

langchain4j · langchain4j-agentic/src/main/java/dev/langchain4j/agentic/internal/McpClientBuilder.java · java · Apache-2.0
ai, tag:embed-classified

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