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

Method mock_streaming

tests/chat/test_conversation.py:356–362  ·  view source on GitHub ↗
(tools=None)

Source from the content-addressed store, hash-verified

354
355 # Mock streaming completion method directly
356 async def mock_streaming(tools=None):
357 return CompletionResponse(
358 response="Streamed!",
359 tool_calls=[],
360 streaming=True,
361 elapsed_time=0.5,
362 )
363
364 processor._handle_streaming_completion = mock_streaming
365

Callers

nothing calls this directly

Calls 1

CompletionResponseClass · 0.90

Tested by

no test coverage detected