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

Method __init__

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

Source from the content-addressed store, hash-verified

1044 class ScriptedApi(ApiClient):
1045 """按脚本返回预设响应的 Mock API"""
1046 def __init__(self, script: list[list[dict]]):
1047 self._script = iter(script)
1048 def stream(self, system_prompt, messages):
1049 return next(self._script)
1050

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected