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

Function main

examples/getting_started/streaming_simple.py:76–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75
76async def main():
77 print("\n🎯 Simple Streaming Examples\n")
78 print("=" * 50)
79
80 print("\n1. Basic text streaming:")
81 await simple_streaming_example()
82
83 await asyncio.sleep(1)
84
85 print("\n2. Code streaming:")
86 await streaming_with_code()
87
88 print("\n" + "=" * 50)
89 print("That's it! Just use StreamingContext and call update().")
90
91
92if __name__ == "__main__":

Callers 1

Calls 2

simple_streaming_exampleFunction · 0.85
streaming_with_codeFunction · 0.85

Tested by

no test coverage detected