MCPcopy Create free account
hub / github.com/IBM/mcp-cli / DummyContext

Class DummyContext

tests/chat/test_tool_processor.py:173–183  ·  view source on GitHub ↗

A dummy context object with conversation_history and managers.

Source from the content-addressed store, hash-verified

171
172
173class DummyContext:
174 """A dummy context object with conversation_history and managers."""
175
176 def __init__(self, stream_manager=None, tool_manager=None):
177 self.conversation_history = []
178 self.stream_manager = stream_manager
179 self.tool_manager = tool_manager
180
181 def inject_tool_message(self, message):
182 """Add a message to conversation history (matches ChatContext API)."""
183 self.conversation_history.append(message)
184
185
186# ---------------------------

Calls

no outgoing calls