Interface MCPGatewayConfiguration.Builder

  • Method Details

    • supportedVersions

      MCPGatewayConfiguration.Builder supportedVersions(Collection<String> supportedVersions)

      The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.

      Parameters:
      supportedVersions - The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedVersions

      MCPGatewayConfiguration.Builder supportedVersions(String... supportedVersions)

      The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.

      Parameters:
      supportedVersions - The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instructions

      MCPGatewayConfiguration.Builder instructions(String instructions)

      The instructions for using the Model Context Protocol gateway. These instructions provide guidance on how to interact with the gateway.

      Parameters:
      instructions - The instructions for using the Model Context Protocol gateway. These instructions provide guidance on how to interact with the gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • searchType

      MCPGatewayConfiguration.Builder searchType(String searchType)

      The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.

      Parameters:
      searchType - The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • searchType

      The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.

      Parameters:
      searchType - The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sessionConfiguration

      MCPGatewayConfiguration.Builder sessionConfiguration(SessionConfiguration sessionConfiguration)

      The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.

      Parameters:
      sessionConfiguration - The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionConfiguration

      default MCPGatewayConfiguration.Builder sessionConfiguration(Consumer<SessionConfiguration.Builder> sessionConfiguration)

      The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.

      This is a convenience method that creates an instance of the SessionConfiguration.Builder avoiding the need to create one manually via SessionConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sessionConfiguration(SessionConfiguration).

      Parameters:
      sessionConfiguration - a consumer that will call methods on SessionConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • streamingConfiguration

      MCPGatewayConfiguration.Builder streamingConfiguration(StreamingConfiguration streamingConfiguration)

      The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.

      Parameters:
      streamingConfiguration - The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • streamingConfiguration

      default MCPGatewayConfiguration.Builder streamingConfiguration(Consumer<StreamingConfiguration.Builder> streamingConfiguration)

      The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.

      This is a convenience method that creates an instance of the StreamingConfiguration.Builder avoiding the need to create one manually via StreamingConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to streamingConfiguration(StreamingConfiguration).

      Parameters:
      streamingConfiguration - a consumer that will call methods on StreamingConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: