enable_switch_role
Applicable Products
Product |
Supported (Yes/No) |
|---|---|
No |
|
Yes |
|
Yes |
|
No |
|
No |
|
No |
Note: For the
Function Description
Enables or disables the smooth role switchover, corresponding to the llm.EnableSwitchRole configuration item at the bottom layer.
Prototype
1 | enable_switch_role(self, enable_switch_role: bool) |
Parameters
Parameter |
Data Type |
Value Description |
|---|---|---|
enable_switch_role |
bool |
Enables role switchover.
If not configured, the parameter defaults to False. Related API: switch_role |
Example
1 2 3 | from llm_datadist import LLMConfig llm_config = LLMConfig() llm_config.enable_switch_role = True |
Returns
In normal cases, no value is returned.
If a parameter is incorrect, a TypeError or ValueError may be thrown.
Constraints
None