(sessionId: string, messageId: string)
| 400 | } |
| 401 | |
| 402 | async cancelMessage(sessionId: string, messageId: string): Promise<CancelMessageResponse> { |
| 403 | const response = await this.request( |
| 404 | `/api/sessions/${encodeURIComponent(sessionId)}/messages/${encodeURIComponent(messageId)}`, |
| 405 | { method: 'DELETE' } |
| 406 | ) |
| 407 | return response as CancelMessageResponse |
| 408 | } |
| 409 | |
| 410 | async abortSession(sessionId: string): Promise<void> { |
| 411 | await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/abort`, { |
no test coverage detected