role
¶
ASSISTANT_ROLE
module-attribute
¶
ASSISTANT_ROLE = MessageRole(ASSISTANT)
The assistant role with name not specified.
SYSTEM_ROLE
module-attribute
¶
SYSTEM_ROLE = MessageRole(SYSTEM)
The system role with name not specified.
MessageRole
¶
Bases: BaseModel
The role of the message owner.
Parameters:
-
type
(Optional[Union[str, MessageRoleType]]
, default:None
) –The type of the role.
-
name
(Optional[str]
, default:None
) –An optional name for the role, differentiate between roles of the same type."