MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / drainCreateMessage

Function drainCreateMessage

src/api/providers/__tests__/zoo-gateway.spec.ts:142–149  ·  view source on GitHub ↗
(handler: ZooGatewayHandler)

Source from the content-addressed store, hash-verified

140 }
141
142 async function drainCreateMessage(handler: ZooGatewayHandler) {
143 const stream = handler.createMessage("system", [{ role: "user", content: "hi" }])
144 const out: unknown[] = []
145 for await (const chunk of stream) {
146 out.push(chunk)
147 }
148 return out
149 }
150
151 describe("constructor", () => {
152 it("allows construction without a session token (auth is enforced at request time)", () => {

Callers 1

Calls 1

createMessageMethod · 0.65

Tested by

no test coverage detected