AIAgentFeatureClientConnectionConfig

constructor(host: String, port: Int? = null, protocol: URLProtocol = URLProtocol.HTTPS)(source)

Creates a new instance of the configuration with a specified host, optional port, and protocol. The default protocol is HTTPS.

Parameters

host

The hostname or IP address of the server to connect to.

port

The port number used for establishing the connection, or null to use the default port for the protocol.

protocol

The protocol used for the connection (e.g., HTTP, HTTPS), defaulting to HTTPS.

This class automatically appends a predefined serializers module, agentFeatureMessageSerializersModule, to the JSON configuration during initialization. This enables proper serialization and deserialization of feature-related message payloads.