enums¶
Enum Classes for mirascope.
MessageRole
¶
Bases: _Enum
Roles that the BasePrompt
messages parser can parse from the template.
SYSTEM: A system message. USER: A user message. ASSISTANT: A message response from the assistant or chat client. MODEL: A message response from the assistant or chat client. Model is used by Google's Gemini instead of assistant, which doesn't have system messages. CHATBOT: A message response from the chat client. Chatbot is used by Cohere instead of assistant. TOOL: A message representing the output of calling a tool.