MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / MessageRole

Class MessageRole

entity/messages.py:10–16  ·  view source on GitHub ↗

Unified message roles for internal conversations.

Source from the content-addressed store, hash-verified

8
9
10class MessageRole(str, Enum):
11 """Unified message roles for internal conversations."""
12
13 SYSTEM = "system"
14 USER = "user"
15 ASSISTANT = "assistant"
16 TOOL = "tool"
17
18
19class MessageBlockType(str, Enum):

Callers 2

from_dictMethod · 0.90
from_dictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected