schema
Creates, updates, deletes, gets or lists a schema resource.
Overview
| Name | schema |
| Type | Resource |
| Id | cloudflare.ai.schema |
Fields
The following fields are returned by SELECT queries:
- list
Model Schema
| Name | Datatype | Description |
|---|---|---|
input | object | |
output | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | model | Retrieves the input and output JSON schema definition for a Workers AI model. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
model | string | Model Name |
SELECT examples
- list
Retrieves the input and output JSON schema definition for a Workers AI model.
SELECT
input,
output
FROM cloudflare.ai.schema
WHERE account_id = '{{ account_id }}' -- required
AND model = '{{ model }}'
;