(threadId: string, input: string)
| 44 | } |
| 45 | |
| 46 | async submitTurn(threadId: string, input: string): Promise<string> { |
| 47 | const body = await this.requestJson(`/v1/threads/${threadId}/turns`, { |
| 48 | method: "POST", |
| 49 | body: JSON.stringify({ input }), |
| 50 | }); |
| 51 | return requiredString(body, "id"); |
| 52 | } |
| 53 | |
| 54 | async events(threadId: string, after = 0): Promise<RuntimeEvent[]> { |
| 55 | const response = await this.retrier.run(() => fetch( |
no test coverage detected