Ai
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:5908
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:5911
Methods
Section titled “Methods”autorag()
Section titled “autorag()”autorag(
autoragId?
):AutoRAG
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:5913
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:5912
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:5933
Parameters
Section titled “Parameters”params?
Section titled “params?”Returns
Section titled “Returns”Promise
<AiModelsSearchObject
[]>
run<
Name
,Options
,InputOptions
>(model
,inputs
,options?
):Promise
<Options
extendsobject
?Response
:InputOptions
extendsobject
?ReadableStream
<any
> :AiModelList
[Name
]["postProcessedOutputs"
]>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:5914
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 object
? 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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:5934
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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:5944
Parameters
Section titled “Parameters”string
options?
Section titled “options?”extraHeaders?
Section titled “extraHeaders?”object
gateway?
Section titled “gateway?”Returns
Section titled “Returns”Promise
<ConversionResponse
>