MCPcopy Create free account
hub / github.com/EvoMap/evolver / fakeStream

Function fakeStream

test/proxyBedrock.test.js:136–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 { type: 'message_stop' },
135 ];
136 async function* fakeStream() {
137 for (const c of chunks) {
138 yield { chunk: { bytes: Buffer.from(JSON.stringify(c)) } };
139 }
140 }
141 proxy._bedrockSdk = makeMockSdk({
142 invoke: () => { throw new Error('should not be called'); },
143 stream: () => ({ body: fakeStream() }),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected