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

Method stream

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

Source from the content-addressed store, hash-verified

114 self.log: list[dict] = []
115
116 def stream(self, messages):
117 self.log.append({"messages": messages})
118 result = self.inner.stream(messages)
119 self.log[-1]["response"] = result
120 return result
121
122 # ---- 步骤 3: 使用——完全相同的代码, 不同的行为 ----
123

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
streamMethod · 0.45

Tested by

no test coverage detected