Skip to content

Commit 3f01c73

Browse files
ericyangpanclaude
andcommitted
chore(schema): add outputModalities field
Add outputModalities field to model schema and type definitions to specify supported output media types for AI models. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fb1c8f2 commit 3f01c73

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

manifests/$schemas/model.schema.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@
6767
"uniqueItems": true,
6868
"minItems": 1
6969
},
70+
"outputModalities": {
71+
"type": "array",
72+
"description": "Output modalities supported by the model",
73+
"items": {
74+
"type": "string",
75+
"enum": ["text", "image", "audio", "video"]
76+
},
77+
"uniqueItems": true,
78+
"minItems": 1
79+
},
7080
"capabilities": {
7181
"type": "array",
7282
"description": "Advanced capabilities supported by the model",
@@ -134,6 +144,7 @@
134144
"lifecycle",
135145
"knowledgeCutoff",
136146
"inputModalities",
147+
"outputModalities",
137148
"capabilities",
138149
"benchmarks",
139150
"platformUrls"

src/types/manifests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* - Product schemas: /manifests/$schemas/*.schema.json
1010
*/
1111

12-
import type { ModelCapability, ModelInputModality } from './model-enums'
12+
import type { ModelCapability, ModelInputModality, ModelOutputModality } from './model-enums'
1313

1414
// =============================================================================
1515
// SECTION 1: Base Ref Types (from /manifests/$schemas/ref/)
@@ -237,6 +237,7 @@ export interface ManifestModel extends ManifestVendorEntity {
237237
lifecycle: ModelLifecycle
238238
knowledgeCutoff: string | null
239239
inputModalities: ModelInputModality[]
240+
outputModalities: ModelOutputModality[]
240241
capabilities: ModelCapability[]
241242
benchmarks: ManifestBenchmarks
242243
platformUrls: ManifestPlatformUrls

src/types/model-enums.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
export const MODEL_INPUT_MODALITIES = ['text', 'image', 'pdf'] as const
88
export type ModelInputModality = (typeof MODEL_INPUT_MODALITIES)[number]
99

10+
export const MODEL_OUTPUT_MODALITIES = ['text', 'image', 'audio', 'video'] as const
11+
export type ModelOutputModality = (typeof MODEL_OUTPUT_MODALITIES)[number]
12+
1013
export const MODEL_CAPABILITIES = [
1114
'function-calling',
1215
'tool-choice',

0 commit comments

Comments
 (0)