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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.integrations.langchain4j.McpClientConfig
McpClientConfig.Builder, McpClientConfig.BuilderBase<BUILDER extends McpClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends McpClientConfig> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
McpClientConfigImpl
(McpClientConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionSets the name that the client will use to identify itself to the MCP server in the initialization message.Sets the version string that the client will use to identify itself to the MCP server in the initialization message.boolean
int
hashCode()
Sets the timeout for initializing the client.key()
Sets a unique identifier for the client.Whether to log request traffic.Whether to log response traffic.The timeout to apply when waiting for a ping response.The timeout for prompt-related operations (listing prompts as well as rendering the contents of a prompt).Sets the protocol version that the client will advertise in the initialization message.The delay before attempting to reconnect after a failed connection.Sets the timeout for resource-related operations (listing resources as well as reading the contents of a resource).sseUri()
The initial URI where to connect to the server and request a SSE channel.Sets the timeout for tool execution.The error message to return when a tool execution times out.toString()
-
Field Details
-
CONFIG_ROOT
The default configuration prefix.- See Also:
-
-
Constructor Details
-
McpClientConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
sseUri
Description copied from interface:McpClientConfig
The initial URI where to connect to the server and request a SSE channel.- Specified by:
sseUri
in interfaceMcpClientConfig
- Returns:
- sse uri
-
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 interfaceMcpClientConfig
- Returns:
- client name
-
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 interfaceMcpClientConfig
- Returns:
- client version
-
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 interfaceMcpClientConfig
- Returns:
- client key
-
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 interfaceMcpClientConfig
- Returns:
- protocol version
-
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 interfaceMcpClientConfig
- Returns:
- initialization timout
-
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 interfaceMcpClientConfig
- Returns:
- tool execution timout
-
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 interfaceMcpClientConfig
- Returns:
- resources timeout
-
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 interfaceMcpClientConfig
- Returns:
- prompts timeout
-
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 interfaceMcpClientConfig
- Returns:
- ping timeout
-
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 interfaceMcpClientConfig
- Returns:
- reconnect interval
-
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 interfaceMcpClientConfig
- Returns:
- time out error message
-
logRequests
Description copied from interface:McpClientConfig
Whether to log request traffic.- Specified by:
logRequests
in interfaceMcpClientConfig
- Returns:
- log request traffic
-
logResponses
Description copied from interface:McpClientConfig
Whether to log response traffic.- Specified by:
logResponses
in interfaceMcpClientConfig
- Returns:
- log response traffic
-
toString
-
equals
-
hashCode
public int hashCode()
-