UpdateFlexSwitchInfo

Function

Delivers a request for updating the Flex node information.

Format

bool UpdateFlexSwitchInfo(std::shared_ptr<FlexSwitchInfo> &flexSwitchInfo);

Parameters

Parameter

Mandatory/Optional

Description

Value

FlexSwitchInfo

Mandatory

Updates the Flex node information.

std::shared_ptr<FlexSwitchInfo>

Usage Example

Construct an LlmManager instance and deliver an identity switching request.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
mindie_llm::GetRequestsCallback getRequestCallback;
mindie_llm::SendResponsesCallback sendResponsesCallback;
mindie_llm::ControlSignalCallback stopSignalCallback;
mindie_llm::LlmManagerStatsCallback statsCallback;
mindie_llm::SendStatusResponseCallback sendStatusCallback;
const std::string llmConfigPath;
std::map<std::string, std::string> ipInfo;
std::shared_ptr<mindie_llm::LlmManager> llmManager = std::make_shared<mindie_llm::LlmManager>(llmConfigPath, getRequestCallback, sendResponsesCallback, stopSignalCallback, statsCallback, sendStatusCallback,ipInfo);
std::shared_ptr<FlexSwitchInfo> flexSwitchInfo;
llmManager->UpdateFlexSwitchInfo(flexSwitchInfo);

Return Value

Bool type.