PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::ai::ai_service_config Struct Reference

Configuration for AI service connection. More...

#include <ai_service_connector.h>

Collaboration diagram for kcenon::pacs::ai::ai_service_config:
Collaboration graph

Public Attributes

std::string base_url
 Base URL of the AI service (e.g., "https://ai.example.com/v1")
 
std::string service_name {"ai_service"}
 Service name for identification.
 
authentication_type auth_type {authentication_type::none}
 Authentication type.
 
std::string api_key
 API key (for api_key auth type)
 
std::string username
 Username (for basic auth)
 
std::string password
 Password (for basic auth)
 
std::string bearer_token
 Bearer token (for bearer_token auth type)
 
std::chrono::milliseconds connection_timeout {30000}
 Connection timeout.
 
std::chrono::milliseconds request_timeout {300000}
 Request timeout for inference operations.
 
std::size_t max_retries {3}
 Maximum retry attempts on failure.
 
std::chrono::milliseconds retry_delay {1000}
 Delay between retries (exponential backoff applied)
 
bool verify_ssl {true}
 Enable TLS certificate verification.
 
std::optional< std::filesystem::path > ca_cert_path
 Path to CA certificate bundle (optional)
 
std::chrono::milliseconds polling_interval {5000}
 Status polling interval.
 

Detailed Description

Configuration for AI service connection.

Definition at line 125 of file ai_service_connector.h.

Member Data Documentation

◆ api_key

std::string kcenon::pacs::ai::ai_service_config::api_key

API key (for api_key auth type)

Definition at line 136 of file ai_service_connector.h.

◆ auth_type

authentication_type kcenon::pacs::ai::ai_service_config::auth_type {authentication_type::none}

Authentication type.

Definition at line 133 of file ai_service_connector.h.

◆ base_url

std::string kcenon::pacs::ai::ai_service_config::base_url

Base URL of the AI service (e.g., "https://ai.example.com/v1")

Definition at line 127 of file ai_service_connector.h.

◆ bearer_token

std::string kcenon::pacs::ai::ai_service_config::bearer_token

Bearer token (for bearer_token auth type)

Definition at line 145 of file ai_service_connector.h.

◆ ca_cert_path

std::optional<std::filesystem::path> kcenon::pacs::ai::ai_service_config::ca_cert_path

Path to CA certificate bundle (optional)

Definition at line 163 of file ai_service_connector.h.

◆ connection_timeout

std::chrono::milliseconds kcenon::pacs::ai::ai_service_config::connection_timeout {30000}

Connection timeout.

Definition at line 148 of file ai_service_connector.h.

148{30000};

◆ max_retries

std::size_t kcenon::pacs::ai::ai_service_config::max_retries {3}

Maximum retry attempts on failure.

Definition at line 154 of file ai_service_connector.h.

154{3};

◆ password

std::string kcenon::pacs::ai::ai_service_config::password

Password (for basic auth)

Definition at line 142 of file ai_service_connector.h.

◆ polling_interval

std::chrono::milliseconds kcenon::pacs::ai::ai_service_config::polling_interval {5000}

Status polling interval.

Definition at line 166 of file ai_service_connector.h.

166{5000};

◆ request_timeout

std::chrono::milliseconds kcenon::pacs::ai::ai_service_config::request_timeout {300000}

Request timeout for inference operations.

Definition at line 151 of file ai_service_connector.h.

151{300000}; // 5 minutes

◆ retry_delay

std::chrono::milliseconds kcenon::pacs::ai::ai_service_config::retry_delay {1000}

Delay between retries (exponential backoff applied)

Definition at line 157 of file ai_service_connector.h.

157{1000};

◆ service_name

std::string kcenon::pacs::ai::ai_service_config::service_name {"ai_service"}

Service name for identification.

Definition at line 130 of file ai_service_connector.h.

130{"ai_service"};

◆ username

std::string kcenon::pacs::ai::ai_service_config::username

Username (for basic auth)

Definition at line 139 of file ai_service_connector.h.

◆ verify_ssl

bool kcenon::pacs::ai::ai_service_config::verify_ssl {true}

Enable TLS certificate verification.

Definition at line 160 of file ai_service_connector.h.

160{true};

The documentation for this struct was generated from the following file: