Enum Class DmScope
- All Implemented Interfaces:
Serializable,Comparable<DmScope>,Constable
Controls how DM (
PeerKind.DIRECT) session keys are scoped.
MAIN— all DMs for a given agent share a single session. Suitable for single-user or shared assistant scenarios.PER_PEER— one session per peer id. Most common for multi-user deployments.PER_CHANNEL_PEER— likePER_PEERbut the channel name is included in the key, disambiguating the same peer across channels.PER_ACCOUNT_CHANNEL_PEER— extendsPER_CHANNEL_PEERwith the account id, useful for multi-account (multi-bot) deployments on the same channel platform.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
MAIN
-
PER_PEER
-
PER_CHANNEL_PEER
-
PER_ACCOUNT_CHANNEL_PEER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
defaultScope
Default scope used when none is configured.
-