Class McpClientConfig.BuilderBase.McpClientConfigImpl

java.lang.Object
io.helidon.integrations.langchain4j.McpClientConfig.BuilderBase.McpClientConfigImpl
All Implemented Interfaces:
Prototype.Api, McpClientConfig
Enclosing class:
McpClientConfig.BuilderBase<BUILDER extends McpClientConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends McpClientConfig>

protected static class McpClientConfig.BuilderBase.McpClientConfigImpl extends Object implements McpClientConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Field Details

  • Constructor Details

    • McpClientConfigImpl

      protected McpClientConfigImpl(McpClientConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • sseUri

      public URI sseUri()
      Description copied from interface: McpClientConfig
      The initial URI where to connect to the server and request a SSE channel.
      Specified by:
      sseUri in interface McpClientConfig
      Returns:
      sse uri
    • clientName

      public Optional<String> clientName()
      Description copied from interface: McpClientConfig
      Sets the name that the client will use to identify itself to the MCP server in the initialization message. Overwrites the default client name from langchain4j.
      Specified by:
      clientName in interface McpClientConfig
      Returns:
      client name
    • clientVersion

      public Optional<String> clientVersion()
      Description copied from interface: McpClientConfig
      Sets the version string that the client will use to identify itself to the MCP server in the initialization message. Overwrites the default client version from langchain4j.
      Specified by:
      clientVersion in interface McpClientConfig
      Returns:
      client version
    • key

      public Optional<String> key()
      Description copied from interface: McpClientConfig
      Sets a unique identifier for the client. If none is provided, a UUID will be automatically generated. This key is later used to identify the client in the service registry.
      Specified by:
      key in interface McpClientConfig
      Returns:
      client key
    • protocolVersion

      public Optional<String> protocolVersion()
      Description copied from interface: McpClientConfig
      Sets the protocol version that the client will advertise in the initialization message. Overwrites the default version from langchain4j.
      Specified by:
      protocolVersion in interface McpClientConfig
      Returns:
      protocol version
    • initializationTimeout

      public Optional<Duration> initializationTimeout()
      Description copied from interface: McpClientConfig
      Sets the timeout for initializing the client. Overwrites the default timeout for initializing from langchain4j.
      Specified by:
      initializationTimeout in interface McpClientConfig
      Returns:
      initialization timout
    • toolExecutionTimeout

      public Optional<Duration> toolExecutionTimeout()
      Description copied from interface: McpClientConfig
      Sets the timeout for tool execution. This value applies to each tool execution individually. A value of zero means no timeout. Overwrites the default timeout for tool execution from langchain4j.
      Specified by:
      toolExecutionTimeout in interface McpClientConfig
      Returns:
      tool execution timout
    • resourcesTimeout

      public Optional<Duration> resourcesTimeout()
      Description copied from interface: McpClientConfig
      Sets the timeout for resource-related operations (listing resources as well as reading the contents of a resource). A value of zero means no timeout. Overwrites the default timeout for resource-related operations from langchain4j.
      Specified by:
      resourcesTimeout in interface McpClientConfig
      Returns:
      resources timeout
    • promptsTimeout

      public Optional<Duration> promptsTimeout()
      Description copied from interface: McpClientConfig
      The timeout for prompt-related operations (listing prompts as well as rendering the contents of a prompt). A value of zero means no timeout. Overwrites the default timeout for prompt-related operations from langchain4j.
      Specified by:
      promptsTimeout in interface McpClientConfig
      Returns:
      prompts timeout
    • pingTimeout

      public Optional<Duration> pingTimeout()
      Description copied from interface: McpClientConfig
      The timeout to apply when waiting for a ping response. Overwrites the default timeout when waiting for a ping response from langchain4j.
      Specified by:
      pingTimeout in interface McpClientConfig
      Returns:
      ping timeout
    • reconnectInterval

      public Optional<Duration> reconnectInterval()
      Description copied from interface: McpClientConfig
      The delay before attempting to reconnect after a failed connection. Overwrites the default reconnect interval from langchain4j.
      Specified by:
      reconnectInterval in interface McpClientConfig
      Returns:
      reconnect interval
    • toolExecutionTimeoutErrorMessage

      public Optional<String> toolExecutionTimeoutErrorMessage()
      Description copied from interface: McpClientConfig
      The error message to return when a tool execution times out. Overwrites the default error message from langchain4j.
      Specified by:
      toolExecutionTimeoutErrorMessage in interface McpClientConfig
      Returns:
      time out error message
    • logRequests

      public Optional<Boolean> logRequests()
      Description copied from interface: McpClientConfig
      Whether to log request traffic.
      Specified by:
      logRequests in interface McpClientConfig
      Returns:
      log request traffic
    • logResponses

      public Optional<Boolean> logResponses()
      Description copied from interface: McpClientConfig
      Whether to log response traffic.
      Specified by:
      logResponses in interface McpClientConfig
      Returns:
      log response traffic
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object