(threadId: string, after = 0)
| 52 | } |
| 53 | |
| 54 | async events(threadId: string, after = 0): Promise<RuntimeEvent[]> { |
| 55 | const response = await this.retrier.run(() => fetch( |
| 56 | `${this.baseUrl}/v1/threads/${threadId}/events?after=${after}`, |
| 57 | { headers: this.headers() }, |
| 58 | )); |
| 59 | if (!response.ok) { |
| 60 | throw await runtimeApiError(response); |
| 61 | } |
| 62 | return parseSse(await response.text()); |
| 63 | } |
| 64 | |
| 65 | async pendingApprovals(): Promise<PendingApproval[]> { |
| 66 | const body = await this.retrier.run(() => this.requestJson("/v1/approvals", { method: "GET" })); |
no test coverage detected