Ai
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6705
Type Parameters
Section titled “Type Parameters”AiModelList
Section titled “AiModelList”AiModelList extends AiModelListType = AiModels
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Ai<
AiModelList>():Ai<AiModelList>
Returns
Section titled “Returns”Ai<AiModelList>
Properties
Section titled “Properties”aiGatewayLogId
Section titled “aiGatewayLogId”aiGatewayLogId:
null|string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6708
Methods
Section titled “Methods”autorag()
Section titled “autorag()”autorag(
autoragId):AutoRAG
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6710
Parameters
Section titled “Parameters”autoragId
Section titled “autoragId”string
Returns
Section titled “Returns”gateway()
Section titled “gateway()”gateway(
gatewayId):AiGateway
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6709
Parameters
Section titled “Parameters”gatewayId
Section titled “gatewayId”string
Returns
Section titled “Returns”models()
Section titled “models()”models(
params?):Promise<AiModelsSearchObject[]>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6734
Parameters
Section titled “Parameters”params?
Section titled “params?”Returns
Section titled “Returns”Promise<AiModelsSearchObject[]>
run<
Name,Options,InputOptions>(model,inputs,options?):Promise<Optionsextends {returnRawResponse:true; } | {websocket:true; } ?Response:InputOptionsextendsobject?ReadableStream<any> :AiModelList[Name]["postProcessedOutputs"]>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6711
Type Parameters
Section titled “Type Parameters”Name extends string | number | symbol
Options
Section titled “Options”Options extends AiOptions
InputOptions
Section titled “InputOptions”InputOptions extends any
Parameters
Section titled “Parameters”Name
inputs
Section titled “inputs”InputOptions
options?
Section titled “options?”Options
Returns
Section titled “Returns”Promise<Options extends { returnRawResponse: true; } | { websocket: true; } ? Response : InputOptions extends object ? ReadableStream<any> : AiModelList[Name]["postProcessedOutputs"]>
toMarkdown()
Section titled “toMarkdown()”Call Signature
Section titled “Call Signature”toMarkdown(
files,options?):Promise<ConversionResponse[]>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6735
Parameters
Section titled “Parameters”object[]
options?
Section titled “options?”extraHeaders?
Section titled “extraHeaders?”object
gateway?
Section titled “gateway?”Returns
Section titled “Returns”Promise<ConversionResponse[]>
Call Signature
Section titled “Call Signature”toMarkdown(
files,options?):Promise<ConversionResponse>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6745
Parameters
Section titled “Parameters”string
options?
Section titled “options?”extraHeaders?
Section titled “extraHeaders?”object
gateway?
Section titled “gateway?”Returns
Section titled “Returns”Promise<ConversionResponse>
