()
| 39 | } |
| 40 | |
| 41 | async createThread(): Promise<string> { |
| 42 | const body = await this.requestJson("/v1/threads", { method: "POST" }); |
| 43 | return requiredString(body, "id"); |
| 44 | } |
| 45 | |
| 46 | async submitTurn(threadId: string, input: string): Promise<string> { |
| 47 | const body = await this.requestJson(`/v1/threads/${threadId}/turns`, { |
no test coverage detected