(
key: IntegrationTaskKey,
id: string,
options: OpenAIRequestOptions = {}
)
| 155 | } |
| 156 | |
| 157 | async del( |
| 158 | key: IntegrationTaskKey, |
| 159 | id: string, |
| 160 | options: OpenAIRequestOptions = {} |
| 161 | ): Promise<OpenAI.Beta.AssistantDeleted> { |
| 162 | return this.runTask( |
| 163 | key, |
| 164 | async (client, task) => { |
| 165 | const { data, response } = await client.beta.assistants |
| 166 | .del(id, { |
| 167 | idempotencyKey: task.idempotencyKey, |
| 168 | ...options, |
| 169 | }) |
| 170 | .withResponse(); |
| 171 | |
| 172 | task.outputProperties = createTaskOutputProperties(undefined, response.headers); |
| 173 | |
| 174 | return data; |
| 175 | }, |
| 176 | { |
| 177 | name: "Delete Assistant", |
| 178 | params: { |
| 179 | id, |
| 180 | }, |
| 181 | properties: [ |
| 182 | { |
| 183 | label: "assistantId", |
| 184 | text: id, |
| 185 | }, |
| 186 | ], |
| 187 | }, |
| 188 | handleOpenAIError |
| 189 | ); |
| 190 | } |
| 191 | |
| 192 | async retrieve( |
| 193 | key: IntegrationTaskKey, |
nothing calls this directly
no test coverage detected