MCPcopy Index your code
hub / github.com/coder/mux / emitStreamDelta

Function emitStreamDelta

src/node/services/sessionTimingService.test.ts:119–138  ·  view source on GitHub ↗
(
    params: {
      workspaceId?: string;
      messageId?: string;
      delta?: string;
      tokens?: number;
      timestamp?: number;
      replay?: true;
    } = {}
  )

Source from the content-addressed store, hash-verified

117 }
118
119 function emitStreamDelta(
120 params: {
121 workspaceId?: string;
122 messageId?: string;
123 delta?: string;
124 tokens?: number;
125 timestamp?: number;
126 replay?: true;
127 } = {}
128 ): void {
129 service.handleStreamDelta({
130 type: "stream-delta",
131 workspaceId: params.workspaceId ?? "test-workspace",
132 messageId: params.messageId ?? "m1",
133 delta: params.delta ?? "hi",
134 tokens: params.tokens ?? 5,
135 timestamp: params.timestamp ?? 1_001_000,
136 ...(params.replay != null ? { replay: params.replay } : {}),
137 });
138 }
139
140 function emitToolCall(
141 params: {

Calls 1

handleStreamDeltaMethod · 0.65

Tested by

no test coverage detected