Interface McpClientBuilder<T>

All Known Implementing Classes:
DefaultMcpClientBuilder

public interface McpClientBuilder<T>
  • Method Details

    • toolName

      McpClientBuilder<T> toolName(String toolName)
    • inputKeys

      McpClientBuilder<T> inputKeys(String... inputKeys)
    • outputKey

      McpClientBuilder<T> outputKey(String outputKey)
    • async

      McpClientBuilder<T> async(boolean async)
    • listener

      McpClientBuilder<T> listener(AgentListener agentListener)
    • activationCondition

      default McpClientBuilder<T> activationCondition(Predicate<AgenticScope> activationCondition)
      Sets the condition under which the agent runs when it is invoked as a subagent of an agentic system. When the condition is false the MCP tool is not called and the agent is skipped. It can be evaluated more than once, so it must be free of side effects.
    • activationCondition

      McpClientBuilder<T> activationCondition(String description, Predicate<AgenticScope> activationCondition)
      Sets the condition, with its description, under which the agent runs when it is invoked as a subagent of an agentic system. When the condition is false the MCP tool is not called and the agent is skipped. It can be evaluated more than once, so it must be free of side effects.
    • build

      T build()