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

Method stream

tutorials/18_design_patterns_for_agents.py:154–154  ·  view source on GitHub ↗
(self, messages: list[dict])

Source from the content-addressed store, hash-verified

152 # Protocol 版本——不需要继承, 只要有 stream 方法就行
153 class ApiClientProtocol(Protocol):
154 def stream(self, messages: list[dict]) -> list[dict]: ...
155
156 # 这个类没有继承任何东西, 但它有 stream 方法, 所以它"是" ApiClient
157 class SimpleClient:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected