(
params: {
workspaceId?: string;
messageId?: string;
delta?: string;
tokens?: number;
timestamp?: number;
replay?: true;
} = {}
)
| 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: { |
no test coverage detected