MCPcopy
hub / github.com/triggerdotdev/trigger.dev / del

Method del

integrations/openai/src/assistants.ts:157–190  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    id: string,
    options: OpenAIRequestOptions = {}
  )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

withResponseMethod · 0.80
runTaskMethod · 0.45

Tested by

no test coverage detected