(
text: string,
options?: SendMessageOptions,
mode?: 'prompt' | 'bash',
)
| 1159 | // ========================================================================= |
| 1160 | |
| 1161 | private enqueueMessage( |
| 1162 | text: string, |
| 1163 | options?: SendMessageOptions, |
| 1164 | mode?: 'prompt' | 'bash', |
| 1165 | ): void { |
| 1166 | this.state.queuedMessages.push({ |
| 1167 | text, |
| 1168 | agentId: this.harness.interactiveAgentId, |
| 1169 | parts: options?.parts, |
| 1170 | imageAttachmentIds: |
| 1171 | options?.imageAttachmentIds !== undefined && options.imageAttachmentIds.length > 0 |
| 1172 | ? options.imageAttachmentIds |
| 1173 | : undefined, |
| 1174 | mode, |
| 1175 | }); |
| 1176 | this.track('input_queue'); |
| 1177 | } |
| 1178 | |
| 1179 | beginSessionRequest(): void { |
| 1180 | this.streamingUI.setTurnId(undefined); |
no test coverage detected