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

Class SimpleClient

tutorials/18_design_patterns_for_agents.py:157–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
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 1

lesson_1_interfaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected