MCPcopy Create free account
hub / github.com/block/buzz / assistantChunk

Function assistantChunk

desktop/src/features/agents/ui/agentSessionTranscript.test.mjs:253–263  ·  view source on GitHub ↗
(seq, messageId, text, overrides = {})

Source from the content-addressed store, hash-verified

251}
252
253function assistantChunk(seq, messageId, text, overrides = {}) {
254 return sessionUpdate(
255 seq,
256 {
257 sessionUpdate: "agent_message_chunk",
258 messageId,
259 content: { type: "text", text },
260 },
261 overrides,
262 );
263}
264
265test("buildTranscript preserves author pubkeys on user message chunks", () => {
266 const authorPubkey = "b".repeat(64);

Callers 1

Calls 1

sessionUpdateFunction · 0.85

Tested by

no test coverage detected