MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / retrieve

Method retrieve

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

Source from the content-addressed store, hash-verified

191 }
192
193 retrieve(
194 key: IntegrationTaskKey,
195 id: string,
196 options: OpenAIRequestOptions = {}
197 ): Promise<OpenAI.Files.FileObject> {
198 return this.runTask(
199 key,
200 async (client, task) => {
201 const response = await client.files.retrieve(id, options);
202 return response;
203 },
204 {
205 name: "Retrieve file",
206 properties: [
207 {
208 label: "fileId",
209 text: id,
210 },
211 ],
212 },
213 handleOpenAIError
214 );
215 }
216
217 list(
218 key: IntegrationTaskKey,

Callers 10

context.tsFile · 0.45
openai.tsFile · 0.45
byo-auth.tsFile · 0.45
doEnvVarsFunction · 0.45
doRunsFunction · 0.45
waitForRunToCompleteFunction · 0.45
waitForRunToExecuteFunction · 0.45
doSchedulesFunction · 0.45

Calls 1

runTaskMethod · 0.45

Tested by

no test coverage detected