MCPcopy Create free account
hub / github.com/Louisym/MiniCC / stream

Method stream

tutorials/18_design_patterns_for_agents.py:158–159  ·  view source on GitHub ↗
(self, messages)

Source from the content-addressed store, hash-verified

156 # 这个类没有继承任何东西, 但它有 stream 方法, 所以它"是" ApiClient
157 class SimpleClient:
158 def stream(self, messages):
159 return [{"type": "text", "text": "我没继承任何类!"}]
160
161 # 可以直接传给 run_agent, 因为 Python 不检查继承关系
162 simple = SimpleClient()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected