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

Method add_user_message

mini_agent/agent.py:86–88  ·  view source on GitHub ↗

Add a user message to history.

(self, content: str)

Source from the content-addressed store, hash-verified

84 self._skip_next_token_check: bool = False
85
86 def add_user_message(self, content: str):
87 """Add a user message to history."""
88 self.messages.append(Message(role="user", content=content))
89
90 def _check_cancelled(self) -> bool:
91 """Check if agent execution has been cancelled.

Callers 14

run_agentFunction · 0.95
test_get_historyFunction · 0.95
test_message_statisticsFunction · 0.95
test_agent_simple_taskFunction · 0.95
test_agent_bash_taskFunction · 0.95
test_basic_agent_usageFunction · 0.95
test_session_memory_demoFunction · 0.95
demo_agent_with_notesFunction · 0.95
demo_full_agentFunction · 0.95
demo_interactive_modeFunction · 0.95

Calls 1

MessageClass · 0.85

Tested by 8

test_get_historyFunction · 0.76
test_message_statisticsFunction · 0.76
test_agent_simple_taskFunction · 0.76
test_agent_bash_taskFunction · 0.76
test_basic_agent_usageFunction · 0.76
test_session_memory_demoFunction · 0.76