MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / Message

Class Message

mini_agent/schema/schema.py:29–37  ·  view source on GitHub ↗

Chat message.

Source from the content-addressed store, hash-verified

27
28
29class Message(BaseModel):
30 """Chat message."""
31
32 role: str # "system", "user", "assistant", "tool"
33 content: str | list[dict[str, Any]] # Can be string or list of content blocks
34 thinking: str | None = None # Extended thinking content for assistant messages
35 tool_calls: list[ToolCall] | None = None
36 tool_call_id: str | None = None
37 name: str | None = None # For tool role
38
39
40class TokenUsage(BaseModel):

Callers 15

promptMethod · 0.90
_run_turnMethod · 0.90
test_get_historyFunction · 0.90
test_message_statisticsFunction · 0.90
test_openai_tool_callingFunction · 0.90

Calls

no outgoing calls