From ebb9def15ff1c6b9abd7d86ce0c368877ebfdfcc Mon Sep 17 00:00:00 2001 From: jolov Date: Fri, 1 Aug 2025 12:37:31 -0700 Subject: [PATCH] Check in tspCodeModel to aid in upgrades --- .gitignore | 4 - Configuration.json | 5 + tspCodeModel.json | 116981 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 116986 insertions(+), 4 deletions(-) create mode 100644 Configuration.json create mode 100644 tspCodeModel.json diff --git a/.gitignore b/.gitignore index ce5276479..ca3500a6f 100644 --- a/.gitignore +++ b/.gitignore @@ -178,10 +178,6 @@ artifacts # Temporary typespec folders for typespec generation TempTypeSpecFiles/ -# Artifacts from the generator -tspCodeModel.json -Configuration.json - # Base specification files specification/base/ diff --git a/Configuration.json b/Configuration.json new file mode 100644 index 000000000..afff947c9 --- /dev/null +++ b/Configuration.json @@ -0,0 +1,5 @@ +{ + "package-name": "OpenAI", + "unreferenced-types-handling": "keepAll", + "disable-xml-docs": true +} diff --git a/tspCodeModel.json b/tspCodeModel.json new file mode 100644 index 000000000..b5e1f2630 --- /dev/null +++ b/tspCodeModel.json @@ -0,0 +1,116981 @@ +{ + "name": "OpenAI", + "apiVersions": [], + "enums": [ + { + "$id": "1", + "kind": "enum", + "name": "PageOrderOptions", + "crossLanguageDefinitionId": "OpenAI.PageOrderOptions", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "asc", + "value": "asc", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "desc", + "value": "desc", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "5", + "kind": "enum", + "name": "AssistantToolDefinitionType", + "crossLanguageDefinitionId": "OpenAI.AssistantToolDefinitionType", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "7", + "kind": "enumvalue", + "name": "code_interpreter", + "value": "code_interpreter", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "file_search", + "value": "file_search", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "decorators": [] + }, + { + "$id": "9", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "6" + }, + "enumType": { + "$ref": "5" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "10", + "kind": "enum", + "name": "FileSearchRanker", + "crossLanguageDefinitionId": "OpenAI.FileSearchRanker", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "12", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "11" + }, + "enumType": { + "$ref": "10" + }, + "decorators": [] + }, + { + "$id": "13", + "kind": "enumvalue", + "name": "default_2024_08_21", + "value": "default_2024_08_21", + "valueType": { + "$ref": "11" + }, + "enumType": { + "$ref": "10" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "The ranker to use for the file search. If not specified will use the `auto` ranker.", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "14", + "kind": "enum", + "name": "ResponseFormatType", + "crossLanguageDefinitionId": "OpenAI.ResponseFormat.type.anonymous", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "16", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "decorators": [] + }, + { + "$id": "17", + "kind": "enumvalue", + "name": "json_object", + "value": "json_object", + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "decorators": [] + }, + { + "$id": "18", + "kind": "enumvalue", + "name": "json_schema", + "value": "json_schema", + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "19", + "kind": "enum", + "name": "AssistantSupportedModels", + "crossLanguageDefinitionId": "OpenAI.AssistantSupportedModels", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "21", + "kind": "enumvalue", + "name": "gpt-4.1", + "value": "gpt-4.1", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "22", + "kind": "enumvalue", + "name": "gpt-4.1-mini", + "value": "gpt-4.1-mini", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "23", + "kind": "enumvalue", + "name": "gpt-4.1-nano", + "value": "gpt-4.1-nano", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "24", + "kind": "enumvalue", + "name": "gpt-4.1-2025-04-14", + "value": "gpt-4.1-2025-04-14", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "25", + "kind": "enumvalue", + "name": "gpt-4.1-mini-2025-04-14", + "value": "gpt-4.1-mini-2025-04-14", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "26", + "kind": "enumvalue", + "name": "gpt-4.1-nano-2025-04-14", + "value": "gpt-4.1-nano-2025-04-14", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "27", + "kind": "enumvalue", + "name": "o3-mini", + "value": "o3-mini", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "28", + "kind": "enumvalue", + "name": "o3-mini-2025-01-31", + "value": "o3-mini-2025-01-31", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "29", + "kind": "enumvalue", + "name": "o1", + "value": "o1", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "30", + "kind": "enumvalue", + "name": "o1-2024-12-17", + "value": "o1-2024-12-17", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "31", + "kind": "enumvalue", + "name": "gpt-4o", + "value": "gpt-4o", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "32", + "kind": "enumvalue", + "name": "gpt-4o-2024-11-20", + "value": "gpt-4o-2024-11-20", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "33", + "kind": "enumvalue", + "name": "gpt-4o-2024-08-06", + "value": "gpt-4o-2024-08-06", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "34", + "kind": "enumvalue", + "name": "gpt-4o-2024-05-13", + "value": "gpt-4o-2024-05-13", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "35", + "kind": "enumvalue", + "name": "gpt-4o-mini", + "value": "gpt-4o-mini", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "36", + "kind": "enumvalue", + "name": "gpt-4o-mini-2024-07-18", + "value": "gpt-4o-mini-2024-07-18", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "37", + "kind": "enumvalue", + "name": "gpt-4.5-preview", + "value": "gpt-4.5-preview", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "38", + "kind": "enumvalue", + "name": "gpt-4.5-preview-2025-02-27", + "value": "gpt-4.5-preview-2025-02-27", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "39", + "kind": "enumvalue", + "name": "gpt-4-turbo", + "value": "gpt-4-turbo", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "40", + "kind": "enumvalue", + "name": "gpt-4-turbo-2024-04-09", + "value": "gpt-4-turbo-2024-04-09", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "41", + "kind": "enumvalue", + "name": "gpt-4-0125-preview", + "value": "gpt-4-0125-preview", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "42", + "kind": "enumvalue", + "name": "gpt-4-turbo-preview", + "value": "gpt-4-turbo-preview", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "43", + "kind": "enumvalue", + "name": "gpt-4-1106-preview", + "value": "gpt-4-1106-preview", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "44", + "kind": "enumvalue", + "name": "gpt-4-vision-preview", + "value": "gpt-4-vision-preview", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "45", + "kind": "enumvalue", + "name": "gpt-4", + "value": "gpt-4", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "46", + "kind": "enumvalue", + "name": "gpt-4-0314", + "value": "gpt-4-0314", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "47", + "kind": "enumvalue", + "name": "gpt-4-0613", + "value": "gpt-4-0613", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "48", + "kind": "enumvalue", + "name": "gpt-4-32k", + "value": "gpt-4-32k", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "49", + "kind": "enumvalue", + "name": "gpt-4-32k-0314", + "value": "gpt-4-32k-0314", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "50", + "kind": "enumvalue", + "name": "gpt-4-32k-0613", + "value": "gpt-4-32k-0613", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "51", + "kind": "enumvalue", + "name": "gpt-3.5-turbo", + "value": "gpt-3.5-turbo", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "52", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-16k", + "value": "gpt-3.5-turbo-16k", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "53", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0613", + "value": "gpt-3.5-turbo-0613", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "54", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-1106", + "value": "gpt-3.5-turbo-1106", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "55", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0125", + "value": "gpt-3.5-turbo-0125", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + }, + { + "$id": "56", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-16k-0613", + "value": "gpt-3.5-turbo-16k-0613", + "valueType": { + "$ref": "20" + }, + "enumType": { + "$ref": "19" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "57", + "kind": "enum", + "name": "ReasoningEffort", + "crossLanguageDefinitionId": "OpenAI.ReasoningEffort", + "valueType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "59", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "58" + }, + "enumType": { + "$ref": "57" + }, + "decorators": [] + }, + { + "$id": "60", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "58" + }, + "enumType": { + "$ref": "57" + }, + "decorators": [] + }, + { + "$id": "61", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "58" + }, + "enumType": { + "$ref": "57" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "**o-series models only**\n\nConstrains effort on reasoning for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `low`, `medium`, and `high`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "62", + "kind": "enum", + "name": "ChunkingStrategyRequestParamType", + "crossLanguageDefinitionId": "OpenAI.ChunkingStrategyRequestParam.type.anonymous", + "valueType": { + "$id": "63", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "64", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "63" + }, + "enumType": { + "$ref": "62" + }, + "decorators": [] + }, + { + "$id": "65", + "kind": "enumvalue", + "name": "static", + "value": "static", + "valueType": { + "$ref": "63" + }, + "enumType": { + "$ref": "62" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "66", + "kind": "enum", + "name": "CreateSpeechRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateSpeechRequest.model.anonymous", + "valueType": { + "$id": "67", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "68", + "kind": "enumvalue", + "name": "tts-1", + "value": "tts-1", + "valueType": { + "$ref": "67" + }, + "enumType": { + "$ref": "66" + }, + "decorators": [] + }, + { + "$id": "69", + "kind": "enumvalue", + "name": "tts-1-hd", + "value": "tts-1-hd", + "valueType": { + "$ref": "67" + }, + "enumType": { + "$ref": "66" + }, + "decorators": [] + }, + { + "$id": "70", + "kind": "enumvalue", + "name": "gpt-4o-mini-tts", + "value": "gpt-4o-mini-tts", + "valueType": { + "$ref": "67" + }, + "enumType": { + "$ref": "66" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "71", + "kind": "enum", + "name": "VoiceIdsShared", + "crossLanguageDefinitionId": "OpenAI.VoiceIdsShared", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "73", + "kind": "enumvalue", + "name": "alloy", + "value": "alloy", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "74", + "kind": "enumvalue", + "name": "ash", + "value": "ash", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "75", + "kind": "enumvalue", + "name": "ballad", + "value": "ballad", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "76", + "kind": "enumvalue", + "name": "coral", + "value": "coral", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "77", + "kind": "enumvalue", + "name": "echo", + "value": "echo", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "78", + "kind": "enumvalue", + "name": "fable", + "value": "fable", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "79", + "kind": "enumvalue", + "name": "onyx", + "value": "onyx", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "80", + "kind": "enumvalue", + "name": "nova", + "value": "nova", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "81", + "kind": "enumvalue", + "name": "sage", + "value": "sage", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "82", + "kind": "enumvalue", + "name": "shimmer", + "value": "shimmer", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + }, + { + "$id": "83", + "kind": "enumvalue", + "name": "verse", + "value": "verse", + "valueType": { + "$ref": "72" + }, + "enumType": { + "$ref": "71" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "84", + "kind": "enum", + "name": "CreateSpeechRequestResponseFormat", + "crossLanguageDefinitionId": "OpenAI.CreateSpeechRequest.response_format.anonymous", + "valueType": { + "$id": "85", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "86", + "kind": "enumvalue", + "name": "mp3", + "value": "mp3", + "valueType": { + "$ref": "85" + }, + "enumType": { + "$ref": "84" + }, + "decorators": [] + }, + { + "$id": "87", + "kind": "enumvalue", + "name": "opus", + "value": "opus", + "valueType": { + "$ref": "85" + }, + "enumType": { + "$ref": "84" + }, + "decorators": [] + }, + { + "$id": "88", + "kind": "enumvalue", + "name": "aac", + "value": "aac", + "valueType": { + "$ref": "85" + }, + "enumType": { + "$ref": "84" + }, + "decorators": [] + }, + { + "$id": "89", + "kind": "enumvalue", + "name": "flac", + "value": "flac", + "valueType": { + "$ref": "85" + }, + "enumType": { + "$ref": "84" + }, + "decorators": [] + }, + { + "$id": "90", + "kind": "enumvalue", + "name": "wav", + "value": "wav", + "valueType": { + "$ref": "85" + }, + "enumType": { + "$ref": "84" + }, + "decorators": [] + }, + { + "$id": "91", + "kind": "enumvalue", + "name": "pcm", + "value": "pcm", + "valueType": { + "$ref": "85" + }, + "enumType": { + "$ref": "84" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "92", + "kind": "enum", + "name": "CreateTranscriptionRequestAccept", + "crossLanguageDefinitionId": "OpenAI.createTranscription.RequestAccept.anonymous", + "valueType": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "94", + "kind": "enumvalue", + "name": "application/json", + "value": "application/json", + "valueType": { + "$ref": "93" + }, + "enumType": { + "$ref": "92" + }, + "decorators": [] + }, + { + "$id": "95", + "kind": "enumvalue", + "name": "text/event-stream", + "value": "text/event-stream", + "valueType": { + "$ref": "93" + }, + "enumType": { + "$ref": "92" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "96", + "kind": "enum", + "name": "CreateTranscriptionRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.model.anonymous", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "98", + "kind": "enumvalue", + "name": "whisper-1", + "value": "whisper-1", + "valueType": { + "$ref": "97" + }, + "enumType": { + "$ref": "96" + }, + "decorators": [] + }, + { + "$id": "99", + "kind": "enumvalue", + "name": "gpt-4o-transcribe", + "value": "gpt-4o-transcribe", + "valueType": { + "$ref": "97" + }, + "enumType": { + "$ref": "96" + }, + "decorators": [] + }, + { + "$id": "100", + "kind": "enumvalue", + "name": "gpt-4o-mini-transcribe", + "value": "gpt-4o-mini-transcribe", + "valueType": { + "$ref": "97" + }, + "enumType": { + "$ref": "96" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "101", + "kind": "enum", + "name": "TranscriptionAudioResponseFormat", + "crossLanguageDefinitionId": "OpenAI.TranscriptionAudioResponseFormat", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "103", + "kind": "enumvalue", + "name": "json", + "value": "json", + "valueType": { + "$ref": "102" + }, + "enumType": { + "$ref": "101" + }, + "decorators": [] + }, + { + "$id": "104", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "102" + }, + "enumType": { + "$ref": "101" + }, + "decorators": [] + }, + { + "$id": "105", + "kind": "enumvalue", + "name": "srt", + "value": "srt", + "valueType": { + "$ref": "102" + }, + "enumType": { + "$ref": "101" + }, + "decorators": [] + }, + { + "$id": "106", + "kind": "enumvalue", + "name": "verbose_json", + "value": "verbose_json", + "valueType": { + "$ref": "102" + }, + "enumType": { + "$ref": "101" + }, + "decorators": [] + }, + { + "$id": "107", + "kind": "enumvalue", + "name": "vtt", + "value": "vtt", + "valueType": { + "$ref": "102" + }, + "enumType": { + "$ref": "101" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "108", + "kind": "enum", + "name": "TranscriptionInclude", + "crossLanguageDefinitionId": "OpenAI.TranscriptionInclude", + "valueType": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "110", + "kind": "enumvalue", + "name": "logprobs", + "value": "logprobs", + "valueType": { + "$ref": "109" + }, + "enumType": { + "$ref": "108" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "111", + "kind": "enum", + "name": "CreateTranscriptionRequestTimestampGranularities", + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.timestamp_granularities[].anonymous", + "valueType": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "113", + "kind": "enumvalue", + "name": "word", + "value": "word", + "valueType": { + "$ref": "112" + }, + "enumType": { + "$ref": "111" + }, + "decorators": [] + }, + { + "$id": "114", + "kind": "enumvalue", + "name": "segment", + "value": "segment", + "valueType": { + "$ref": "112" + }, + "enumType": { + "$ref": "111" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "115", + "kind": "enum", + "name": "CreateTranscriptionResponseStreamEventType", + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseStreamEventType", + "valueType": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "117", + "kind": "enumvalue", + "name": "transcript_text_delta", + "value": "transcript.text.delta", + "valueType": { + "$ref": "116" + }, + "enumType": { + "$ref": "115" + }, + "decorators": [] + }, + { + "$id": "118", + "kind": "enumvalue", + "name": "transcript_text_done", + "value": "transcript.text.done", + "valueType": { + "$ref": "116" + }, + "enumType": { + "$ref": "115" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "119", + "kind": "enum", + "name": "CreateTranslationRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.model.anonymous", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "121", + "kind": "enumvalue", + "name": "whisper-1", + "value": "whisper-1", + "valueType": { + "$ref": "120" + }, + "enumType": { + "$ref": "119" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "122", + "kind": "enum", + "name": "TranslationAudioResponseFormat", + "crossLanguageDefinitionId": "OpenAI.TranslationAudioResponseFormat", + "valueType": { + "$id": "123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "124", + "kind": "enumvalue", + "name": "json", + "value": "json", + "valueType": { + "$ref": "123" + }, + "enumType": { + "$ref": "122" + }, + "decorators": [] + }, + { + "$id": "125", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "123" + }, + "enumType": { + "$ref": "122" + }, + "decorators": [] + }, + { + "$id": "126", + "kind": "enumvalue", + "name": "srt", + "value": "srt", + "valueType": { + "$ref": "123" + }, + "enumType": { + "$ref": "122" + }, + "decorators": [] + }, + { + "$id": "127", + "kind": "enumvalue", + "name": "verbose_json", + "value": "verbose_json", + "valueType": { + "$ref": "123" + }, + "enumType": { + "$ref": "122" + }, + "decorators": [] + }, + { + "$id": "128", + "kind": "enumvalue", + "name": "vtt", + "value": "vtt", + "valueType": { + "$ref": "123" + }, + "enumType": { + "$ref": "122" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "129", + "kind": "enum", + "name": "CreateBatchRequestEndpoint", + "crossLanguageDefinitionId": "OpenAI.createBatch.Request.endpoint.anonymous", + "valueType": { + "$id": "130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "131", + "kind": "enumvalue", + "name": "/v1/chat/completions", + "value": "/v1/chat/completions", + "valueType": { + "$ref": "130" + }, + "enumType": { + "$ref": "129" + }, + "decorators": [] + }, + { + "$id": "132", + "kind": "enumvalue", + "name": "/v1/embeddings", + "value": "/v1/embeddings", + "valueType": { + "$ref": "130" + }, + "enumType": { + "$ref": "129" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "133", + "kind": "enum", + "name": "BatchStatus", + "crossLanguageDefinitionId": "OpenAI.Batch.status.anonymous", + "valueType": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "135", + "kind": "enumvalue", + "name": "validating", + "value": "validating", + "valueType": { + "$ref": "134" + }, + "enumType": { + "$ref": "133" + }, + "decorators": [] + }, + { + "$id": "136", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "134" + }, + "enumType": { + "$ref": "133" + }, + "decorators": [] + }, + { + "$id": "137", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "134" + }, + "enumType": { + "$ref": "133" + }, + "decorators": [] + }, + { + "$id": "138", + "kind": "enumvalue", + "name": "finalizing", + "value": "finalizing", + "valueType": { + "$ref": "134" + }, + "enumType": { + "$ref": "133" + }, + "decorators": [] + }, + { + "$id": "139", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "134" + }, + "enumType": { + "$ref": "133" + }, + "decorators": [] + }, + { + "$id": "140", + "kind": "enumvalue", + "name": "expired", + "value": "expired", + "valueType": { + "$ref": "134" + }, + "enumType": { + "$ref": "133" + }, + "decorators": [] + }, + { + "$id": "141", + "kind": "enumvalue", + "name": "cancelling", + "value": "cancelling", + "valueType": { + "$ref": "134" + }, + "enumType": { + "$ref": "133" + }, + "decorators": [] + }, + { + "$id": "142", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "134" + }, + "enumType": { + "$ref": "133" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "143", + "kind": "enum", + "name": "CreateChatCompletionResponseChoiceFinishReason", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.finish_reason.anonymous", + "valueType": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "145", + "kind": "enumvalue", + "name": "stop", + "value": "stop", + "valueType": { + "$ref": "144" + }, + "enumType": { + "$ref": "143" + }, + "decorators": [] + }, + { + "$id": "146", + "kind": "enumvalue", + "name": "length", + "value": "length", + "valueType": { + "$ref": "144" + }, + "enumType": { + "$ref": "143" + }, + "decorators": [] + }, + { + "$id": "147", + "kind": "enumvalue", + "name": "tool_calls", + "value": "tool_calls", + "valueType": { + "$ref": "144" + }, + "enumType": { + "$ref": "143" + }, + "decorators": [] + }, + { + "$id": "148", + "kind": "enumvalue", + "name": "content_filter", + "value": "content_filter", + "valueType": { + "$ref": "144" + }, + "enumType": { + "$ref": "143" + }, + "decorators": [] + }, + { + "$id": "149", + "kind": "enumvalue", + "name": "function_call", + "value": "function_call", + "valueType": { + "$ref": "144" + }, + "enumType": { + "$ref": "143" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "150", + "kind": "enum", + "name": "ChatToolCallKind", + "crossLanguageDefinitionId": "OpenAI.ChatToolCallKind", + "valueType": { + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "152", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "151" + }, + "enumType": { + "$ref": "150" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "153", + "kind": "enum", + "name": "ChatCompletionRole", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRole", + "valueType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "155", + "kind": "enumvalue", + "name": "system", + "value": "system", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + { + "$id": "156", + "kind": "enumvalue", + "name": "developer", + "value": "developer", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + { + "$id": "157", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + { + "$id": "158", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + { + "$id": "159", + "kind": "enumvalue", + "name": "tool", + "value": "tool", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + { + "$id": "160", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "The role of the author of a message", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "161", + "kind": "enum", + "name": "ServiceTier", + "crossLanguageDefinitionId": "OpenAI.ServiceTier", + "valueType": { + "$id": "162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "163", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "162" + }, + "enumType": { + "$ref": "161" + }, + "decorators": [] + }, + { + "$id": "164", + "kind": "enumvalue", + "name": "default", + "value": "default", + "valueType": { + "$ref": "162" + }, + "enumType": { + "$ref": "161" + }, + "decorators": [] + }, + { + "$id": "165", + "kind": "enumvalue", + "name": "flex", + "value": "flex", + "valueType": { + "$ref": "162" + }, + "enumType": { + "$ref": "161" + }, + "decorators": [] + }, + { + "$id": "166", + "kind": "enumvalue", + "name": "scale", + "value": "scale", + "valueType": { + "$ref": "162" + }, + "enumType": { + "$ref": "161" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:\n - If set to 'auto', and the Project is Scale tier enabled, the system\n will utilize scale tier credits until they are exhausted.\n - If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guarantee.\n - If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarantee.\n - If set to 'flex', the request will be processed with the Flex Processing service tier. [Learn more](/docs/guides/flex-processing).\n - When not set, the default behavior is 'auto'.\n\n When this parameter is set, the response body will include the `service_tier` utilized.", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "167", + "kind": "enum", + "name": "ChatCompletionRequestMessageContentPartType", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartType", + "valueType": { + "$id": "168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "169", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "168" + }, + "enumType": { + "$ref": "167" + }, + "decorators": [] + }, + { + "$id": "170", + "kind": "enumvalue", + "name": "file", + "value": "file", + "valueType": { + "$ref": "168" + }, + "enumType": { + "$ref": "167" + }, + "decorators": [] + }, + { + "$id": "171", + "kind": "enumvalue", + "name": "input_audio", + "value": "input_audio", + "valueType": { + "$ref": "168" + }, + "enumType": { + "$ref": "167" + }, + "decorators": [] + }, + { + "$id": "172", + "kind": "enumvalue", + "name": "image_url", + "value": "image_url", + "valueType": { + "$ref": "168" + }, + "enumType": { + "$ref": "167" + }, + "decorators": [] + }, + { + "$id": "173", + "kind": "enumvalue", + "name": "refusal", + "value": "refusal", + "valueType": { + "$ref": "168" + }, + "enumType": { + "$ref": "167" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "174", + "kind": "enum", + "name": "ChatCompletionRequestMessageContentPartImageImageUrlDetail", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartImage.image_url.detail.anonymous", + "valueType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "176", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "175" + }, + "enumType": { + "$ref": "174" + }, + "decorators": [] + }, + { + "$id": "177", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "175" + }, + "enumType": { + "$ref": "174" + }, + "decorators": [] + }, + { + "$id": "178", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "175" + }, + "enumType": { + "$ref": "174" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "179", + "kind": "enum", + "name": "ChatCompletionRequestMessageContentPartAudioInputAudioFormat", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartAudio.input_audio.format.anonymous", + "valueType": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "181", + "kind": "enumvalue", + "name": "wav", + "value": "wav", + "valueType": { + "$ref": "180" + }, + "enumType": { + "$ref": "179" + }, + "decorators": [] + }, + { + "$id": "182", + "kind": "enumvalue", + "name": "mp3", + "value": "mp3", + "valueType": { + "$ref": "180" + }, + "enumType": { + "$ref": "179" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "183", + "kind": "enum", + "name": "ModelIdsShared", + "crossLanguageDefinitionId": "OpenAI.ModelIdsShared", + "valueType": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "185", + "kind": "enumvalue", + "name": "gpt-4.1", + "value": "gpt-4.1", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "186", + "kind": "enumvalue", + "name": "gpt-4.1-mini", + "value": "gpt-4.1-mini", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "187", + "kind": "enumvalue", + "name": "gpt-4.1-nano", + "value": "gpt-4.1-nano", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "188", + "kind": "enumvalue", + "name": "gpt-4.1-2025-04-14", + "value": "gpt-4.1-2025-04-14", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "189", + "kind": "enumvalue", + "name": "gpt-4.1-mini-2025-04-14", + "value": "gpt-4.1-mini-2025-04-14", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "190", + "kind": "enumvalue", + "name": "gpt-4.1-nano-2025-04-14", + "value": "gpt-4.1-nano-2025-04-14", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "191", + "kind": "enumvalue", + "name": "o4-mini", + "value": "o4-mini", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "192", + "kind": "enumvalue", + "name": "o4-mini-2025-04-16", + "value": "o4-mini-2025-04-16", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "193", + "kind": "enumvalue", + "name": "o3", + "value": "o3", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "194", + "kind": "enumvalue", + "name": "o3-2025-04-16", + "value": "o3-2025-04-16", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "195", + "kind": "enumvalue", + "name": "o3-mini", + "value": "o3-mini", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "196", + "kind": "enumvalue", + "name": "o3-mini-2025-01-31", + "value": "o3-mini-2025-01-31", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "197", + "kind": "enumvalue", + "name": "o1", + "value": "o1", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "198", + "kind": "enumvalue", + "name": "o1-2024-12-17", + "value": "o1-2024-12-17", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "199", + "kind": "enumvalue", + "name": "o1-preview", + "value": "o1-preview", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "200", + "kind": "enumvalue", + "name": "o1-preview-2024-09-12", + "value": "o1-preview-2024-09-12", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "201", + "kind": "enumvalue", + "name": "o1-mini", + "value": "o1-mini", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "202", + "kind": "enumvalue", + "name": "o1-mini-2024-09-12", + "value": "o1-mini-2024-09-12", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "203", + "kind": "enumvalue", + "name": "gpt-4o", + "value": "gpt-4o", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "204", + "kind": "enumvalue", + "name": "gpt-4o-2024-11-20", + "value": "gpt-4o-2024-11-20", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "205", + "kind": "enumvalue", + "name": "gpt-4o-2024-08-06", + "value": "gpt-4o-2024-08-06", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "206", + "kind": "enumvalue", + "name": "gpt-4o-2024-05-13", + "value": "gpt-4o-2024-05-13", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "207", + "kind": "enumvalue", + "name": "gpt-4o-audio-preview", + "value": "gpt-4o-audio-preview", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "208", + "kind": "enumvalue", + "name": "gpt-4o-audio-preview-2024-10-01", + "value": "gpt-4o-audio-preview-2024-10-01", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "209", + "kind": "enumvalue", + "name": "gpt-4o-audio-preview-2024-12-17", + "value": "gpt-4o-audio-preview-2024-12-17", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "210", + "kind": "enumvalue", + "name": "gpt-4o-audio-preview-2025-06-03", + "value": "gpt-4o-audio-preview-2025-06-03", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "211", + "kind": "enumvalue", + "name": "gpt-4o-mini-audio-preview", + "value": "gpt-4o-mini-audio-preview", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "212", + "kind": "enumvalue", + "name": "gpt-4o-mini-audio-preview-2024-12-17", + "value": "gpt-4o-mini-audio-preview-2024-12-17", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "213", + "kind": "enumvalue", + "name": "gpt-4o-search-preview", + "value": "gpt-4o-search-preview", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "214", + "kind": "enumvalue", + "name": "gpt-4o-mini-search-preview", + "value": "gpt-4o-mini-search-preview", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "215", + "kind": "enumvalue", + "name": "gpt-4o-search-preview-2025-03-11", + "value": "gpt-4o-search-preview-2025-03-11", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "216", + "kind": "enumvalue", + "name": "gpt-4o-mini-search-preview-2025-03-11", + "value": "gpt-4o-mini-search-preview-2025-03-11", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "217", + "kind": "enumvalue", + "name": "chatgpt-4o-latest", + "value": "chatgpt-4o-latest", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "218", + "kind": "enumvalue", + "name": "codex-mini-latest", + "value": "codex-mini-latest", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "219", + "kind": "enumvalue", + "name": "gpt-4o-mini", + "value": "gpt-4o-mini", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "220", + "kind": "enumvalue", + "name": "gpt-4o-mini-2024-07-18", + "value": "gpt-4o-mini-2024-07-18", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "221", + "kind": "enumvalue", + "name": "gpt-4-turbo", + "value": "gpt-4-turbo", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "222", + "kind": "enumvalue", + "name": "gpt-4-turbo-2024-04-09", + "value": "gpt-4-turbo-2024-04-09", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "223", + "kind": "enumvalue", + "name": "gpt-4-0125-preview", + "value": "gpt-4-0125-preview", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "224", + "kind": "enumvalue", + "name": "gpt-4-turbo-preview", + "value": "gpt-4-turbo-preview", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "225", + "kind": "enumvalue", + "name": "gpt-4-1106-preview", + "value": "gpt-4-1106-preview", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "226", + "kind": "enumvalue", + "name": "gpt-4-vision-preview", + "value": "gpt-4-vision-preview", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "227", + "kind": "enumvalue", + "name": "gpt-4", + "value": "gpt-4", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "228", + "kind": "enumvalue", + "name": "gpt-4-0314", + "value": "gpt-4-0314", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "229", + "kind": "enumvalue", + "name": "gpt-4-0613", + "value": "gpt-4-0613", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "230", + "kind": "enumvalue", + "name": "gpt-4-32k", + "value": "gpt-4-32k", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "231", + "kind": "enumvalue", + "name": "gpt-4-32k-0314", + "value": "gpt-4-32k-0314", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "232", + "kind": "enumvalue", + "name": "gpt-4-32k-0613", + "value": "gpt-4-32k-0613", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "233", + "kind": "enumvalue", + "name": "gpt-3.5-turbo", + "value": "gpt-3.5-turbo", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "234", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-16k", + "value": "gpt-3.5-turbo-16k", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "235", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0301", + "value": "gpt-3.5-turbo-0301", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "236", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0613", + "value": "gpt-3.5-turbo-0613", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "237", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-1106", + "value": "gpt-3.5-turbo-1106", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "238", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0125", + "value": "gpt-3.5-turbo-0125", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + }, + { + "$id": "239", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-16k-0613", + "value": "gpt-3.5-turbo-16k-0613", + "valueType": { + "$ref": "184" + }, + "enumType": { + "$ref": "183" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "240", + "kind": "enum", + "name": "CreateChatCompletionRequestModality", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.modality.anonymous", + "valueType": { + "$id": "241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "242", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "241" + }, + "enumType": { + "$ref": "240" + }, + "decorators": [] + }, + { + "$id": "243", + "kind": "enumvalue", + "name": "audio", + "value": "audio", + "valueType": { + "$ref": "241" + }, + "enumType": { + "$ref": "240" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "244", + "kind": "enum", + "name": "WebSearchContextSize", + "crossLanguageDefinitionId": "OpenAI.WebSearchContextSize", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "246", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "245" + }, + "enumType": { + "$ref": "244" + }, + "decorators": [] + }, + { + "$id": "247", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "245" + }, + "enumType": { + "$ref": "244" + }, + "decorators": [] + }, + { + "$id": "248", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "245" + }, + "enumType": { + "$ref": "244" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "High level guidance for the amount of context window space to use for the\nsearch. One of `low`, `medium`, or `high`. `medium` is the default.", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "249", + "kind": "enum", + "name": "CreateChatCompletionRequestAudioFormat", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.audio.format.anonymous", + "valueType": { + "$id": "250", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "251", + "kind": "enumvalue", + "name": "wav", + "value": "wav", + "valueType": { + "$ref": "250" + }, + "enumType": { + "$ref": "249" + }, + "decorators": [] + }, + { + "$id": "252", + "kind": "enumvalue", + "name": "aac", + "value": "aac", + "valueType": { + "$ref": "250" + }, + "enumType": { + "$ref": "249" + }, + "decorators": [] + }, + { + "$id": "253", + "kind": "enumvalue", + "name": "mp3", + "value": "mp3", + "valueType": { + "$ref": "250" + }, + "enumType": { + "$ref": "249" + }, + "decorators": [] + }, + { + "$id": "254", + "kind": "enumvalue", + "name": "flac", + "value": "flac", + "valueType": { + "$ref": "250" + }, + "enumType": { + "$ref": "249" + }, + "decorators": [] + }, + { + "$id": "255", + "kind": "enumvalue", + "name": "opus", + "value": "opus", + "valueType": { + "$ref": "250" + }, + "enumType": { + "$ref": "249" + }, + "decorators": [] + }, + { + "$id": "256", + "kind": "enumvalue", + "name": "pcm16", + "value": "pcm16", + "valueType": { + "$ref": "250" + }, + "enumType": { + "$ref": "249" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "257", + "kind": "enum", + "name": "ChatOutputPredictionType", + "crossLanguageDefinitionId": "OpenAI.ChatOutputPredictionType", + "valueType": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "259", + "kind": "enumvalue", + "name": "static_content", + "value": "content", + "valueType": { + "$ref": "258" + }, + "enumType": { + "$ref": "257" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "260", + "kind": "enum", + "name": "ChatToolKind", + "crossLanguageDefinitionId": "OpenAI.ChatToolKind", + "valueType": { + "$id": "261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "262", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "261" + }, + "enumType": { + "$ref": "260" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "263", + "kind": "enum", + "name": "CreateChatCompletionRequestToolChoice", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.tool_choice.anonymous", + "valueType": { + "$id": "264", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "265", + "kind": "enumvalue", + "name": "none", + "value": "none", + "valueType": { + "$ref": "264" + }, + "enumType": { + "$ref": "263" + }, + "decorators": [] + }, + { + "$id": "266", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "264" + }, + "enumType": { + "$ref": "263" + }, + "decorators": [] + }, + { + "$id": "267", + "kind": "enumvalue", + "name": "required", + "value": "required", + "valueType": { + "$ref": "264" + }, + "enumType": { + "$ref": "263" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "268", + "kind": "enum", + "name": "CreateEmbeddingRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest.model.anonymous", + "valueType": { + "$id": "269", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "270", + "kind": "enumvalue", + "name": "text-embedding-ada-002", + "value": "text-embedding-ada-002", + "valueType": { + "$ref": "269" + }, + "enumType": { + "$ref": "268" + }, + "decorators": [] + }, + { + "$id": "271", + "kind": "enumvalue", + "name": "text-embedding-3-small", + "value": "text-embedding-3-small", + "valueType": { + "$ref": "269" + }, + "enumType": { + "$ref": "268" + }, + "decorators": [] + }, + { + "$id": "272", + "kind": "enumvalue", + "name": "text-embedding-3-large", + "value": "text-embedding-3-large", + "valueType": { + "$ref": "269" + }, + "enumType": { + "$ref": "268" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "273", + "kind": "enum", + "name": "CreateEmbeddingRequestEncodingFormat", + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest.encoding_format.anonymous", + "valueType": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "275", + "kind": "enumvalue", + "name": "float", + "value": "float", + "valueType": { + "$ref": "274" + }, + "enumType": { + "$ref": "273" + }, + "decorators": [] + }, + { + "$id": "276", + "kind": "enumvalue", + "name": "base64", + "value": "base64", + "valueType": { + "$ref": "274" + }, + "enumType": { + "$ref": "273" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "277", + "kind": "enum", + "name": "OpenAIFilePurpose", + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.purpose.anonymous", + "valueType": { + "$id": "278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "279", + "kind": "enumvalue", + "name": "assistants", + "value": "assistants", + "valueType": { + "$ref": "278" + }, + "enumType": { + "$ref": "277" + }, + "decorators": [] + }, + { + "$id": "280", + "kind": "enumvalue", + "name": "assistants_output", + "value": "assistants_output", + "valueType": { + "$ref": "278" + }, + "enumType": { + "$ref": "277" + }, + "decorators": [] + }, + { + "$id": "281", + "kind": "enumvalue", + "name": "batch", + "value": "batch", + "valueType": { + "$ref": "278" + }, + "enumType": { + "$ref": "277" + }, + "decorators": [] + }, + { + "$id": "282", + "kind": "enumvalue", + "name": "batch_output", + "value": "batch_output", + "valueType": { + "$ref": "278" + }, + "enumType": { + "$ref": "277" + }, + "decorators": [] + }, + { + "$id": "283", + "kind": "enumvalue", + "name": "fine-tune", + "value": "fine-tune", + "valueType": { + "$ref": "278" + }, + "enumType": { + "$ref": "277" + }, + "decorators": [] + }, + { + "$id": "284", + "kind": "enumvalue", + "name": "fine-tune-results", + "value": "fine-tune-results", + "valueType": { + "$ref": "278" + }, + "enumType": { + "$ref": "277" + }, + "decorators": [] + }, + { + "$id": "285", + "kind": "enumvalue", + "name": "vision", + "value": "vision", + "valueType": { + "$ref": "278" + }, + "enumType": { + "$ref": "277" + }, + "decorators": [] + }, + { + "$id": "286", + "kind": "enumvalue", + "name": "user_data", + "value": "user_data", + "valueType": { + "$ref": "278" + }, + "enumType": { + "$ref": "277" + }, + "decorators": [] + }, + { + "$id": "287", + "kind": "enumvalue", + "name": "evals", + "value": "evals", + "valueType": { + "$ref": "278" + }, + "enumType": { + "$ref": "277" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "288", + "kind": "enum", + "name": "OpenAIFileStatus", + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.status.anonymous", + "valueType": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "290", + "kind": "enumvalue", + "name": "uploaded", + "value": "uploaded", + "valueType": { + "$ref": "289" + }, + "enumType": { + "$ref": "288" + }, + "decorators": [] + }, + { + "$id": "291", + "kind": "enumvalue", + "name": "processed", + "value": "processed", + "valueType": { + "$ref": "289" + }, + "enumType": { + "$ref": "288" + }, + "decorators": [] + }, + { + "$id": "292", + "kind": "enumvalue", + "name": "error", + "value": "error", + "valueType": { + "$ref": "289" + }, + "enumType": { + "$ref": "288" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "293", + "kind": "enum", + "name": "CreateFileRequestPurpose", + "crossLanguageDefinitionId": "OpenAI.CreateFileRequest.purpose.anonymous", + "valueType": { + "$id": "294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "295", + "kind": "enumvalue", + "name": "assistants", + "value": "assistants", + "valueType": { + "$ref": "294" + }, + "enumType": { + "$ref": "293" + }, + "decorators": [] + }, + { + "$id": "296", + "kind": "enumvalue", + "name": "batch", + "value": "batch", + "valueType": { + "$ref": "294" + }, + "enumType": { + "$ref": "293" + }, + "decorators": [] + }, + { + "$id": "297", + "kind": "enumvalue", + "name": "fine-tune", + "value": "fine-tune", + "valueType": { + "$ref": "294" + }, + "enumType": { + "$ref": "293" + }, + "decorators": [] + }, + { + "$id": "298", + "kind": "enumvalue", + "name": "vision", + "value": "vision", + "valueType": { + "$ref": "294" + }, + "enumType": { + "$ref": "293" + }, + "decorators": [] + }, + { + "$id": "299", + "kind": "enumvalue", + "name": "user_data", + "value": "user_data", + "valueType": { + "$ref": "294" + }, + "enumType": { + "$ref": "293" + }, + "decorators": [] + }, + { + "$id": "300", + "kind": "enumvalue", + "name": "evals", + "value": "evals", + "valueType": { + "$ref": "294" + }, + "enumType": { + "$ref": "293" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "301", + "kind": "enum", + "name": "CreateFineTuningJobRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.model.anonymous", + "valueType": { + "$id": "302", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "303", + "kind": "enumvalue", + "name": "babbage-002", + "value": "babbage-002", + "valueType": { + "$ref": "302" + }, + "enumType": { + "$ref": "301" + }, + "decorators": [] + }, + { + "$id": "304", + "kind": "enumvalue", + "name": "davinci-002", + "value": "davinci-002", + "valueType": { + "$ref": "302" + }, + "enumType": { + "$ref": "301" + }, + "decorators": [] + }, + { + "$id": "305", + "kind": "enumvalue", + "name": "gpt-3.5-turbo", + "value": "gpt-3.5-turbo", + "valueType": { + "$ref": "302" + }, + "enumType": { + "$ref": "301" + }, + "decorators": [] + }, + { + "$id": "306", + "kind": "enumvalue", + "name": "gpt-4o-mini", + "value": "gpt-4o-mini", + "valueType": { + "$ref": "302" + }, + "enumType": { + "$ref": "301" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "307", + "kind": "enum", + "name": "CreateFineTuningJobRequestIntegrationType", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestIntegration.type.anonymous", + "valueType": { + "$id": "308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "309", + "kind": "enumvalue", + "name": "wandb", + "value": "wandb", + "valueType": { + "$ref": "308" + }, + "enumType": { + "$ref": "307" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "310", + "kind": "enum", + "name": "FineTuneMethodType", + "crossLanguageDefinitionId": "OpenAI.FineTuneMethod.type.anonymous", + "valueType": { + "$id": "311", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "312", + "kind": "enumvalue", + "name": "supervised", + "value": "supervised", + "valueType": { + "$ref": "311" + }, + "enumType": { + "$ref": "310" + }, + "decorators": [] + }, + { + "$id": "313", + "kind": "enumvalue", + "name": "dpo", + "value": "dpo", + "valueType": { + "$ref": "311" + }, + "enumType": { + "$ref": "310" + }, + "decorators": [] + }, + { + "$id": "314", + "kind": "enumvalue", + "name": "reinforcement", + "value": "reinforcement", + "valueType": { + "$ref": "311" + }, + "enumType": { + "$ref": "310" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "315", + "kind": "enum", + "name": "GraderType", + "crossLanguageDefinitionId": "OpenAI.GraderType", + "valueType": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "317", + "kind": "enumvalue", + "name": "string_check", + "value": "string_check", + "valueType": { + "$ref": "316" + }, + "enumType": { + "$ref": "315" + }, + "decorators": [] + }, + { + "$id": "318", + "kind": "enumvalue", + "name": "text_similarity", + "value": "text_similarity", + "valueType": { + "$ref": "316" + }, + "enumType": { + "$ref": "315" + }, + "decorators": [] + }, + { + "$id": "319", + "kind": "enumvalue", + "name": "score_model", + "value": "score_model", + "valueType": { + "$ref": "316" + }, + "enumType": { + "$ref": "315" + }, + "decorators": [] + }, + { + "$id": "320", + "kind": "enumvalue", + "name": "label_model", + "value": "label_model", + "valueType": { + "$ref": "316" + }, + "enumType": { + "$ref": "315" + }, + "decorators": [] + }, + { + "$id": "321", + "kind": "enumvalue", + "name": "python", + "value": "python", + "valueType": { + "$ref": "316" + }, + "enumType": { + "$ref": "315" + }, + "decorators": [] + }, + { + "$id": "322", + "kind": "enumvalue", + "name": "multi", + "value": "multi", + "valueType": { + "$ref": "316" + }, + "enumType": { + "$ref": "315" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "323", + "kind": "enum", + "name": "GraderStringCheckOperation", + "crossLanguageDefinitionId": "OpenAI.GraderStringCheck.operation.anonymous", + "valueType": { + "$id": "324", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "325", + "kind": "enumvalue", + "name": "eq", + "value": "eq", + "valueType": { + "$ref": "324" + }, + "enumType": { + "$ref": "323" + }, + "decorators": [] + }, + { + "$id": "326", + "kind": "enumvalue", + "name": "ne", + "value": "ne", + "valueType": { + "$ref": "324" + }, + "enumType": { + "$ref": "323" + }, + "decorators": [] + }, + { + "$id": "327", + "kind": "enumvalue", + "name": "like", + "value": "like", + "valueType": { + "$ref": "324" + }, + "enumType": { + "$ref": "323" + }, + "decorators": [] + }, + { + "$id": "328", + "kind": "enumvalue", + "name": "ilike", + "value": "ilike", + "valueType": { + "$ref": "324" + }, + "enumType": { + "$ref": "323" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "329", + "kind": "enum", + "name": "GraderTextSimilarityEvaluationMetric", + "crossLanguageDefinitionId": "OpenAI.GraderTextSimilarity.evaluation_metric.anonymous", + "valueType": { + "$id": "330", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "331", + "kind": "enumvalue", + "name": "fuzzy_match", + "value": "fuzzy_match", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + }, + { + "$id": "332", + "kind": "enumvalue", + "name": "bleu", + "value": "bleu", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + }, + { + "$id": "333", + "kind": "enumvalue", + "name": "gleu", + "value": "gleu", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + }, + { + "$id": "334", + "kind": "enumvalue", + "name": "meteor", + "value": "meteor", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + }, + { + "$id": "335", + "kind": "enumvalue", + "name": "rouge_1", + "value": "rouge_1", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + }, + { + "$id": "336", + "kind": "enumvalue", + "name": "rouge_2", + "value": "rouge_2", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + }, + { + "$id": "337", + "kind": "enumvalue", + "name": "rouge_3", + "value": "rouge_3", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + }, + { + "$id": "338", + "kind": "enumvalue", + "name": "rouge_4", + "value": "rouge_4", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + }, + { + "$id": "339", + "kind": "enumvalue", + "name": "rouge_5", + "value": "rouge_5", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + }, + { + "$id": "340", + "kind": "enumvalue", + "name": "rouge_l", + "value": "rouge_l", + "valueType": { + "$ref": "330" + }, + "enumType": { + "$ref": "329" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "341", + "kind": "enum", + "name": "EvalItemRole", + "crossLanguageDefinitionId": "OpenAI.EvalItem.role.anonymous", + "valueType": { + "$id": "342", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "343", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$ref": "342" + }, + "enumType": { + "$ref": "341" + }, + "decorators": [] + }, + { + "$id": "344", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "342" + }, + "enumType": { + "$ref": "341" + }, + "decorators": [] + }, + { + "$id": "345", + "kind": "enumvalue", + "name": "system", + "value": "system", + "valueType": { + "$ref": "342" + }, + "enumType": { + "$ref": "341" + }, + "decorators": [] + }, + { + "$id": "346", + "kind": "enumvalue", + "name": "developer", + "value": "developer", + "valueType": { + "$ref": "342" + }, + "enumType": { + "$ref": "341" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "347", + "kind": "enum", + "name": "EvalItemContentType", + "crossLanguageDefinitionId": "OpenAI.EvalItemContentType", + "valueType": { + "$id": "348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "349", + "kind": "enumvalue", + "name": "input_text", + "value": "input_text", + "valueType": { + "$ref": "348" + }, + "enumType": { + "$ref": "347" + }, + "decorators": [] + }, + { + "$id": "350", + "kind": "enumvalue", + "name": "output_text", + "value": "output_text", + "valueType": { + "$ref": "348" + }, + "enumType": { + "$ref": "347" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "351", + "kind": "enum", + "name": "FineTuneReinforcementHyperparametersReasoningEffort", + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementHyperparameters.reasoning_effort.anonymous", + "valueType": { + "$id": "352", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "353", + "kind": "enumvalue", + "name": "default", + "value": "default", + "valueType": { + "$ref": "352" + }, + "enumType": { + "$ref": "351" + }, + "decorators": [] + }, + { + "$id": "354", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "352" + }, + "enumType": { + "$ref": "351" + }, + "decorators": [] + }, + { + "$id": "355", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "352" + }, + "enumType": { + "$ref": "351" + }, + "decorators": [] + }, + { + "$id": "356", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "352" + }, + "enumType": { + "$ref": "351" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "357", + "kind": "enum", + "name": "FineTuningJobStatus", + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.status.anonymous", + "valueType": { + "$id": "358", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "359", + "kind": "enumvalue", + "name": "validating_files", + "value": "validating_files", + "valueType": { + "$ref": "358" + }, + "enumType": { + "$ref": "357" + }, + "decorators": [] + }, + { + "$id": "360", + "kind": "enumvalue", + "name": "queued", + "value": "queued", + "valueType": { + "$ref": "358" + }, + "enumType": { + "$ref": "357" + }, + "decorators": [] + }, + { + "$id": "361", + "kind": "enumvalue", + "name": "running", + "value": "running", + "valueType": { + "$ref": "358" + }, + "enumType": { + "$ref": "357" + }, + "decorators": [] + }, + { + "$id": "362", + "kind": "enumvalue", + "name": "succeeded", + "value": "succeeded", + "valueType": { + "$ref": "358" + }, + "enumType": { + "$ref": "357" + }, + "decorators": [] + }, + { + "$id": "363", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "358" + }, + "enumType": { + "$ref": "357" + }, + "decorators": [] + }, + { + "$id": "364", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "358" + }, + "enumType": { + "$ref": "357" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "365", + "kind": "enum", + "name": "FineTuningIntegrationType", + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegration.type.anonymous", + "valueType": { + "$id": "366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "367", + "kind": "enumvalue", + "name": "wandb", + "value": "wandb", + "valueType": { + "$ref": "366" + }, + "enumType": { + "$ref": "365" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "368", + "kind": "enum", + "name": "FineTuningJobEventLevel", + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.level.anonymous", + "valueType": { + "$id": "369", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "370", + "kind": "enumvalue", + "name": "info", + "value": "info", + "valueType": { + "$ref": "369" + }, + "enumType": { + "$ref": "368" + }, + "decorators": [] + }, + { + "$id": "371", + "kind": "enumvalue", + "name": "warn", + "value": "warn", + "valueType": { + "$ref": "369" + }, + "enumType": { + "$ref": "368" + }, + "decorators": [] + }, + { + "$id": "372", + "kind": "enumvalue", + "name": "error", + "value": "error", + "valueType": { + "$ref": "369" + }, + "enumType": { + "$ref": "368" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "373", + "kind": "enum", + "name": "FineTuningJobEventType", + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.type.anonymous", + "valueType": { + "$id": "374", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "375", + "kind": "enumvalue", + "name": "message", + "value": "message", + "valueType": { + "$ref": "374" + }, + "enumType": { + "$ref": "373" + }, + "decorators": [] + }, + { + "$id": "376", + "kind": "enumvalue", + "name": "metrics", + "value": "metrics", + "valueType": { + "$ref": "374" + }, + "enumType": { + "$ref": "373" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "377", + "kind": "enum", + "name": "ListEvalsRequestOrder", + "crossLanguageDefinitionId": "OpenAI.listEvals.RequestOrder.anonymous", + "valueType": { + "$id": "378", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "379", + "kind": "enumvalue", + "name": "asc", + "value": "asc", + "valueType": { + "$ref": "378" + }, + "enumType": { + "$ref": "377" + }, + "decorators": [] + }, + { + "$id": "380", + "kind": "enumvalue", + "name": "desc", + "value": "desc", + "valueType": { + "$ref": "378" + }, + "enumType": { + "$ref": "377" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "381", + "kind": "enum", + "name": "ListEvalsRequestOrderBy", + "crossLanguageDefinitionId": "OpenAI.listEvals.RequestOrderBy.anonymous", + "valueType": { + "$id": "382", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "383", + "kind": "enumvalue", + "name": "created_at", + "value": "created_at", + "valueType": { + "$ref": "382" + }, + "enumType": { + "$ref": "381" + }, + "decorators": [] + }, + { + "$id": "384", + "kind": "enumvalue", + "name": "updated_at", + "value": "updated_at", + "valueType": { + "$ref": "382" + }, + "enumType": { + "$ref": "381" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "385", + "kind": "enum", + "name": "EvalDataSourceConfigType", + "crossLanguageDefinitionId": "OpenAI.EvalDataSourceConfigType", + "valueType": { + "$id": "386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "387", + "kind": "enumvalue", + "name": "custom", + "value": "custom", + "valueType": { + "$ref": "386" + }, + "enumType": { + "$ref": "385" + }, + "decorators": [] + }, + { + "$id": "388", + "kind": "enumvalue", + "name": "logs", + "value": "logs", + "valueType": { + "$ref": "386" + }, + "enumType": { + "$ref": "385" + }, + "decorators": [] + }, + { + "$id": "389", + "kind": "enumvalue", + "name": "stored_completions", + "value": "stored_completions", + "valueType": { + "$ref": "386" + }, + "enumType": { + "$ref": "385" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "390", + "kind": "enum", + "name": "GetEvalRunsRequestOrder", + "crossLanguageDefinitionId": "OpenAI.getEvalRuns.RequestOrder.anonymous", + "valueType": { + "$id": "391", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "392", + "kind": "enumvalue", + "name": "asc", + "value": "asc", + "valueType": { + "$ref": "391" + }, + "enumType": { + "$ref": "390" + }, + "decorators": [] + }, + { + "$id": "393", + "kind": "enumvalue", + "name": "desc", + "value": "desc", + "valueType": { + "$ref": "391" + }, + "enumType": { + "$ref": "390" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "394", + "kind": "enum", + "name": "GetEvalRunsRequestStatus", + "crossLanguageDefinitionId": "OpenAI.getEvalRuns.RequestStatus.anonymous", + "valueType": { + "$id": "395", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "396", + "kind": "enumvalue", + "name": "queued", + "value": "queued", + "valueType": { + "$ref": "395" + }, + "enumType": { + "$ref": "394" + }, + "decorators": [] + }, + { + "$id": "397", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "395" + }, + "enumType": { + "$ref": "394" + }, + "decorators": [] + }, + { + "$id": "398", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "395" + }, + "enumType": { + "$ref": "394" + }, + "decorators": [] + }, + { + "$id": "399", + "kind": "enumvalue", + "name": "canceled", + "value": "canceled", + "valueType": { + "$ref": "395" + }, + "enumType": { + "$ref": "394" + }, + "decorators": [] + }, + { + "$id": "400", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "395" + }, + "enumType": { + "$ref": "394" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "401", + "kind": "enum", + "name": "EvalRunDataSourceType", + "crossLanguageDefinitionId": "OpenAI.EvalRunDataSourceType", + "valueType": { + "$id": "402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "403", + "kind": "enumvalue", + "name": "jsonl", + "value": "jsonl", + "valueType": { + "$ref": "402" + }, + "enumType": { + "$ref": "401" + }, + "decorators": [] + }, + { + "$id": "404", + "kind": "enumvalue", + "name": "completions", + "value": "completions", + "valueType": { + "$ref": "402" + }, + "enumType": { + "$ref": "401" + }, + "decorators": [] + }, + { + "$id": "405", + "kind": "enumvalue", + "name": "responses", + "value": "responses", + "valueType": { + "$ref": "402" + }, + "enumType": { + "$ref": "401" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "406", + "kind": "enum", + "name": "EvalRunDataContentSourceType", + "crossLanguageDefinitionId": "OpenAI.EvalRunDataContentSourceType", + "valueType": { + "$id": "407", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "408", + "kind": "enumvalue", + "name": "file_id", + "value": "file_id", + "valueType": { + "$ref": "407" + }, + "enumType": { + "$ref": "406" + }, + "decorators": [] + }, + { + "$id": "409", + "kind": "enumvalue", + "name": "file_content", + "value": "file_content", + "valueType": { + "$ref": "407" + }, + "enumType": { + "$ref": "406" + }, + "decorators": [] + }, + { + "$id": "410", + "kind": "enumvalue", + "name": "stored_completions", + "value": "stored_completions", + "valueType": { + "$ref": "407" + }, + "enumType": { + "$ref": "406" + }, + "decorators": [] + }, + { + "$id": "411", + "kind": "enumvalue", + "name": "responses", + "value": "responses", + "valueType": { + "$ref": "407" + }, + "enumType": { + "$ref": "406" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "412", + "kind": "enum", + "name": "ResponseTextFormatConfigurationType", + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationType", + "valueType": { + "$id": "413", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "414", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "413" + }, + "enumType": { + "$ref": "412" + }, + "decorators": [] + }, + { + "$id": "415", + "kind": "enumvalue", + "name": "json_schema", + "value": "json_schema", + "valueType": { + "$ref": "413" + }, + "enumType": { + "$ref": "412" + }, + "decorators": [] + }, + { + "$id": "416", + "kind": "enumvalue", + "name": "json_object", + "value": "json_object", + "valueType": { + "$ref": "413" + }, + "enumType": { + "$ref": "412" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "An object specifying the format that the model must output.\n\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs,\nwhich ensures the model will match your supplied JSON schema. Learn more in the\n[Structured Outputs guide](/docs/guides/structured-outputs).\n\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n\n**Not recommended for gpt-4o and newer models:**\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "417", + "kind": "enum", + "name": "ToolType", + "crossLanguageDefinitionId": "OpenAI.ToolType", + "valueType": { + "$id": "418", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "419", + "kind": "enumvalue", + "name": "file_search", + "value": "file_search", + "valueType": { + "$ref": "418" + }, + "enumType": { + "$ref": "417" + }, + "decorators": [] + }, + { + "$id": "420", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "418" + }, + "enumType": { + "$ref": "417" + }, + "decorators": [] + }, + { + "$id": "421", + "kind": "enumvalue", + "name": "computer_use_preview", + "value": "computer_use_preview", + "valueType": { + "$ref": "418" + }, + "enumType": { + "$ref": "417" + }, + "decorators": [] + }, + { + "$id": "422", + "kind": "enumvalue", + "name": "web_search_preview", + "value": "web_search_preview", + "valueType": { + "$ref": "418" + }, + "enumType": { + "$ref": "417" + }, + "decorators": [] + }, + { + "$id": "423", + "kind": "enumvalue", + "name": "mcp", + "value": "mcp", + "valueType": { + "$ref": "418" + }, + "enumType": { + "$ref": "417" + }, + "decorators": [] + }, + { + "$id": "424", + "kind": "enumvalue", + "name": "code_interpreter", + "value": "code_interpreter", + "valueType": { + "$ref": "418" + }, + "enumType": { + "$ref": "417" + }, + "decorators": [] + }, + { + "$id": "425", + "kind": "enumvalue", + "name": "image_generation", + "value": "image_generation", + "valueType": { + "$ref": "418" + }, + "enumType": { + "$ref": "417" + }, + "decorators": [] + }, + { + "$id": "426", + "kind": "enumvalue", + "name": "local_shell", + "value": "local_shell", + "valueType": { + "$ref": "418" + }, + "enumType": { + "$ref": "417" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "A tool that can be used to generate a response.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "427", + "kind": "enum", + "name": "RankingOptionsRanker", + "crossLanguageDefinitionId": "OpenAI.RankingOptions.ranker.anonymous", + "valueType": { + "$id": "428", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "429", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "428" + }, + "enumType": { + "$ref": "427" + }, + "decorators": [] + }, + { + "$id": "430", + "kind": "enumvalue", + "name": "default-2024-11-15", + "value": "default-2024-11-15", + "valueType": { + "$ref": "428" + }, + "enumType": { + "$ref": "427" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "431", + "kind": "enum", + "name": "ComparisonFilterType", + "crossLanguageDefinitionId": "OpenAI.ComparisonFilter.type.anonymous", + "valueType": { + "$id": "432", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "433", + "kind": "enumvalue", + "name": "eq", + "value": "eq", + "valueType": { + "$ref": "432" + }, + "enumType": { + "$ref": "431" + }, + "decorators": [] + }, + { + "$id": "434", + "kind": "enumvalue", + "name": "ne", + "value": "ne", + "valueType": { + "$ref": "432" + }, + "enumType": { + "$ref": "431" + }, + "decorators": [] + }, + { + "$id": "435", + "kind": "enumvalue", + "name": "gt", + "value": "gt", + "valueType": { + "$ref": "432" + }, + "enumType": { + "$ref": "431" + }, + "decorators": [] + }, + { + "$id": "436", + "kind": "enumvalue", + "name": "gte", + "value": "gte", + "valueType": { + "$ref": "432" + }, + "enumType": { + "$ref": "431" + }, + "decorators": [] + }, + { + "$id": "437", + "kind": "enumvalue", + "name": "lt", + "value": "lt", + "valueType": { + "$ref": "432" + }, + "enumType": { + "$ref": "431" + }, + "decorators": [] + }, + { + "$id": "438", + "kind": "enumvalue", + "name": "lte", + "value": "lte", + "valueType": { + "$ref": "432" + }, + "enumType": { + "$ref": "431" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "439", + "kind": "enum", + "name": "CompoundFilterType", + "crossLanguageDefinitionId": "OpenAI.CompoundFilter.type.anonymous", + "valueType": { + "$id": "440", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "441", + "kind": "enumvalue", + "name": "and", + "value": "and", + "valueType": { + "$ref": "440" + }, + "enumType": { + "$ref": "439" + }, + "decorators": [] + }, + { + "$id": "442", + "kind": "enumvalue", + "name": "or", + "value": "or", + "valueType": { + "$ref": "440" + }, + "enumType": { + "$ref": "439" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "443", + "kind": "enum", + "name": "ComputerUsePreviewToolEnvironment", + "crossLanguageDefinitionId": "OpenAI.ComputerUsePreviewTool.environment.anonymous", + "valueType": { + "$id": "444", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "445", + "kind": "enumvalue", + "name": "windows", + "value": "windows", + "valueType": { + "$ref": "444" + }, + "enumType": { + "$ref": "443" + }, + "decorators": [] + }, + { + "$id": "446", + "kind": "enumvalue", + "name": "mac", + "value": "mac", + "valueType": { + "$ref": "444" + }, + "enumType": { + "$ref": "443" + }, + "decorators": [] + }, + { + "$id": "447", + "kind": "enumvalue", + "name": "linux", + "value": "linux", + "valueType": { + "$ref": "444" + }, + "enumType": { + "$ref": "443" + }, + "decorators": [] + }, + { + "$id": "448", + "kind": "enumvalue", + "name": "ubuntu", + "value": "ubuntu", + "valueType": { + "$ref": "444" + }, + "enumType": { + "$ref": "443" + }, + "decorators": [] + }, + { + "$id": "449", + "kind": "enumvalue", + "name": "browser", + "value": "browser", + "valueType": { + "$ref": "444" + }, + "enumType": { + "$ref": "443" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "450", + "kind": "enum", + "name": "LocationType", + "crossLanguageDefinitionId": "OpenAI.LocationType", + "valueType": { + "$id": "451", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "452", + "kind": "enumvalue", + "name": "approximate", + "value": "approximate", + "valueType": { + "$ref": "451" + }, + "enumType": { + "$ref": "450" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "453", + "kind": "enum", + "name": "WebSearchPreviewToolSearchContextSize", + "crossLanguageDefinitionId": "OpenAI.WebSearchPreviewTool.search_context_size.anonymous", + "valueType": { + "$id": "454", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "455", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "454" + }, + "enumType": { + "$ref": "453" + }, + "decorators": [] + }, + { + "$id": "456", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "454" + }, + "enumType": { + "$ref": "453" + }, + "decorators": [] + }, + { + "$id": "457", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "454" + }, + "enumType": { + "$ref": "453" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "458", + "kind": "enum", + "name": "ImageGenToolQuality", + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.quality.anonymous", + "valueType": { + "$id": "459", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "460", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "459" + }, + "enumType": { + "$ref": "458" + }, + "decorators": [] + }, + { + "$id": "461", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "459" + }, + "enumType": { + "$ref": "458" + }, + "decorators": [] + }, + { + "$id": "462", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "459" + }, + "enumType": { + "$ref": "458" + }, + "decorators": [] + }, + { + "$id": "463", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "459" + }, + "enumType": { + "$ref": "458" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "464", + "kind": "enum", + "name": "ImageGenToolSize", + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.size.anonymous", + "valueType": { + "$id": "465", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "466", + "kind": "enumvalue", + "name": "1024x1024", + "value": "1024x1024", + "valueType": { + "$ref": "465" + }, + "enumType": { + "$ref": "464" + }, + "decorators": [] + }, + { + "$id": "467", + "kind": "enumvalue", + "name": "1024x1536", + "value": "1024x1536", + "valueType": { + "$ref": "465" + }, + "enumType": { + "$ref": "464" + }, + "decorators": [] + }, + { + "$id": "468", + "kind": "enumvalue", + "name": "1536x1024", + "value": "1536x1024", + "valueType": { + "$ref": "465" + }, + "enumType": { + "$ref": "464" + }, + "decorators": [] + }, + { + "$id": "469", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "465" + }, + "enumType": { + "$ref": "464" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "470", + "kind": "enum", + "name": "ImageGenToolOutputFormat", + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.output_format.anonymous", + "valueType": { + "$id": "471", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "472", + "kind": "enumvalue", + "name": "png", + "value": "png", + "valueType": { + "$ref": "471" + }, + "enumType": { + "$ref": "470" + }, + "decorators": [] + }, + { + "$id": "473", + "kind": "enumvalue", + "name": "webp", + "value": "webp", + "valueType": { + "$ref": "471" + }, + "enumType": { + "$ref": "470" + }, + "decorators": [] + }, + { + "$id": "474", + "kind": "enumvalue", + "name": "jpeg", + "value": "jpeg", + "valueType": { + "$ref": "471" + }, + "enumType": { + "$ref": "470" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "475", + "kind": "enum", + "name": "ImageGenToolModeration", + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.moderation.anonymous", + "valueType": { + "$id": "476", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "477", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "476" + }, + "enumType": { + "$ref": "475" + }, + "decorators": [] + }, + { + "$id": "478", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "476" + }, + "enumType": { + "$ref": "475" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "479", + "kind": "enum", + "name": "ImageGenToolBackground", + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.background.anonymous", + "valueType": { + "$id": "480", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "481", + "kind": "enumvalue", + "name": "transparent", + "value": "transparent", + "valueType": { + "$ref": "480" + }, + "enumType": { + "$ref": "479" + }, + "decorators": [] + }, + { + "$id": "482", + "kind": "enumvalue", + "name": "opaque", + "value": "opaque", + "valueType": { + "$ref": "480" + }, + "enumType": { + "$ref": "479" + }, + "decorators": [] + }, + { + "$id": "483", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "480" + }, + "enumType": { + "$ref": "479" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "484", + "kind": "enum", + "name": "GetEvalRunOutputItemsRequestStatus", + "crossLanguageDefinitionId": "OpenAI.getEvalRunOutputItems.RequestStatus.anonymous", + "valueType": { + "$id": "485", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "486", + "kind": "enumvalue", + "name": "fail", + "value": "fail", + "valueType": { + "$ref": "485" + }, + "enumType": { + "$ref": "484" + }, + "decorators": [] + }, + { + "$id": "487", + "kind": "enumvalue", + "name": "pass", + "value": "pass", + "valueType": { + "$ref": "485" + }, + "enumType": { + "$ref": "484" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "488", + "kind": "enum", + "name": "GetEvalRunOutputItemsRequestOrder", + "crossLanguageDefinitionId": "OpenAI.getEvalRunOutputItems.RequestOrder.anonymous", + "valueType": { + "$id": "489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "490", + "kind": "enumvalue", + "name": "asc", + "value": "asc", + "valueType": { + "$ref": "489" + }, + "enumType": { + "$ref": "488" + }, + "decorators": [] + }, + { + "$id": "491", + "kind": "enumvalue", + "name": "desc", + "value": "desc", + "valueType": { + "$ref": "489" + }, + "enumType": { + "$ref": "488" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "492", + "kind": "enum", + "name": "ModelIdsResponses", + "crossLanguageDefinitionId": "OpenAI.ModelIdsResponses", + "valueType": { + "$id": "493", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "494", + "kind": "enumvalue", + "name": "gpt-4.1", + "value": "gpt-4.1", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "495", + "kind": "enumvalue", + "name": "gpt-4.1-mini", + "value": "gpt-4.1-mini", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "496", + "kind": "enumvalue", + "name": "gpt-4.1-nano", + "value": "gpt-4.1-nano", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "497", + "kind": "enumvalue", + "name": "gpt-4.1-2025-04-14", + "value": "gpt-4.1-2025-04-14", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "498", + "kind": "enumvalue", + "name": "gpt-4.1-mini-2025-04-14", + "value": "gpt-4.1-mini-2025-04-14", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "499", + "kind": "enumvalue", + "name": "gpt-4.1-nano-2025-04-14", + "value": "gpt-4.1-nano-2025-04-14", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "500", + "kind": "enumvalue", + "name": "o4-mini", + "value": "o4-mini", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "501", + "kind": "enumvalue", + "name": "o4-mini-2025-04-16", + "value": "o4-mini-2025-04-16", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "502", + "kind": "enumvalue", + "name": "o3", + "value": "o3", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "503", + "kind": "enumvalue", + "name": "o3-2025-04-16", + "value": "o3-2025-04-16", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "504", + "kind": "enumvalue", + "name": "o3-mini", + "value": "o3-mini", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "505", + "kind": "enumvalue", + "name": "o3-mini-2025-01-31", + "value": "o3-mini-2025-01-31", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "506", + "kind": "enumvalue", + "name": "o1", + "value": "o1", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "507", + "kind": "enumvalue", + "name": "o1-2024-12-17", + "value": "o1-2024-12-17", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "508", + "kind": "enumvalue", + "name": "o1-preview", + "value": "o1-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "509", + "kind": "enumvalue", + "name": "o1-preview-2024-09-12", + "value": "o1-preview-2024-09-12", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "510", + "kind": "enumvalue", + "name": "o1-mini", + "value": "o1-mini", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "511", + "kind": "enumvalue", + "name": "o1-mini-2024-09-12", + "value": "o1-mini-2024-09-12", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "512", + "kind": "enumvalue", + "name": "gpt-4o", + "value": "gpt-4o", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "513", + "kind": "enumvalue", + "name": "gpt-4o-2024-11-20", + "value": "gpt-4o-2024-11-20", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "514", + "kind": "enumvalue", + "name": "gpt-4o-2024-08-06", + "value": "gpt-4o-2024-08-06", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "515", + "kind": "enumvalue", + "name": "gpt-4o-2024-05-13", + "value": "gpt-4o-2024-05-13", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "516", + "kind": "enumvalue", + "name": "gpt-4o-audio-preview", + "value": "gpt-4o-audio-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "517", + "kind": "enumvalue", + "name": "gpt-4o-audio-preview-2024-10-01", + "value": "gpt-4o-audio-preview-2024-10-01", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "518", + "kind": "enumvalue", + "name": "gpt-4o-audio-preview-2024-12-17", + "value": "gpt-4o-audio-preview-2024-12-17", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "519", + "kind": "enumvalue", + "name": "gpt-4o-audio-preview-2025-06-03", + "value": "gpt-4o-audio-preview-2025-06-03", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "520", + "kind": "enumvalue", + "name": "gpt-4o-mini-audio-preview", + "value": "gpt-4o-mini-audio-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "521", + "kind": "enumvalue", + "name": "gpt-4o-mini-audio-preview-2024-12-17", + "value": "gpt-4o-mini-audio-preview-2024-12-17", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "522", + "kind": "enumvalue", + "name": "gpt-4o-search-preview", + "value": "gpt-4o-search-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "523", + "kind": "enumvalue", + "name": "gpt-4o-mini-search-preview", + "value": "gpt-4o-mini-search-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "524", + "kind": "enumvalue", + "name": "gpt-4o-search-preview-2025-03-11", + "value": "gpt-4o-search-preview-2025-03-11", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "525", + "kind": "enumvalue", + "name": "gpt-4o-mini-search-preview-2025-03-11", + "value": "gpt-4o-mini-search-preview-2025-03-11", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "526", + "kind": "enumvalue", + "name": "chatgpt-4o-latest", + "value": "chatgpt-4o-latest", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "527", + "kind": "enumvalue", + "name": "codex-mini-latest", + "value": "codex-mini-latest", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "528", + "kind": "enumvalue", + "name": "gpt-4o-mini", + "value": "gpt-4o-mini", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "529", + "kind": "enumvalue", + "name": "gpt-4o-mini-2024-07-18", + "value": "gpt-4o-mini-2024-07-18", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "530", + "kind": "enumvalue", + "name": "gpt-4-turbo", + "value": "gpt-4-turbo", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "531", + "kind": "enumvalue", + "name": "gpt-4-turbo-2024-04-09", + "value": "gpt-4-turbo-2024-04-09", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "532", + "kind": "enumvalue", + "name": "gpt-4-0125-preview", + "value": "gpt-4-0125-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "533", + "kind": "enumvalue", + "name": "gpt-4-turbo-preview", + "value": "gpt-4-turbo-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "534", + "kind": "enumvalue", + "name": "gpt-4-1106-preview", + "value": "gpt-4-1106-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "535", + "kind": "enumvalue", + "name": "gpt-4-vision-preview", + "value": "gpt-4-vision-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "536", + "kind": "enumvalue", + "name": "gpt-4", + "value": "gpt-4", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "537", + "kind": "enumvalue", + "name": "gpt-4-0314", + "value": "gpt-4-0314", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "538", + "kind": "enumvalue", + "name": "gpt-4-0613", + "value": "gpt-4-0613", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "539", + "kind": "enumvalue", + "name": "gpt-4-32k", + "value": "gpt-4-32k", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "540", + "kind": "enumvalue", + "name": "gpt-4-32k-0314", + "value": "gpt-4-32k-0314", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "541", + "kind": "enumvalue", + "name": "gpt-4-32k-0613", + "value": "gpt-4-32k-0613", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "542", + "kind": "enumvalue", + "name": "gpt-3.5-turbo", + "value": "gpt-3.5-turbo", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "543", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-16k", + "value": "gpt-3.5-turbo-16k", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "544", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0301", + "value": "gpt-3.5-turbo-0301", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "545", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0613", + "value": "gpt-3.5-turbo-0613", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "546", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-1106", + "value": "gpt-3.5-turbo-1106", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "547", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0125", + "value": "gpt-3.5-turbo-0125", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "548", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-16k-0613", + "value": "gpt-3.5-turbo-16k-0613", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "549", + "kind": "enumvalue", + "name": "o1-pro", + "value": "o1-pro", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "550", + "kind": "enumvalue", + "name": "o1-pro-2025-03-19", + "value": "o1-pro-2025-03-19", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "551", + "kind": "enumvalue", + "name": "o3-pro", + "value": "o3-pro", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "552", + "kind": "enumvalue", + "name": "o3-pro-2025-06-10", + "value": "o3-pro-2025-06-10", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "553", + "kind": "enumvalue", + "name": "computer-use-preview", + "value": "computer-use-preview", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + }, + { + "$id": "554", + "kind": "enumvalue", + "name": "computer-use-preview-2025-03-11", + "value": "computer-use-preview-2025-03-11", + "valueType": { + "$ref": "493" + }, + "enumType": { + "$ref": "492" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "555", + "kind": "enum", + "name": "ToolChoiceOptions", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceOptions", + "valueType": { + "$id": "556", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "557", + "kind": "enumvalue", + "name": "none", + "value": "none", + "valueType": { + "$ref": "556" + }, + "enumType": { + "$ref": "555" + }, + "decorators": [] + }, + { + "$id": "558", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "556" + }, + "enumType": { + "$ref": "555" + }, + "decorators": [] + }, + { + "$id": "559", + "kind": "enumvalue", + "name": "required", + "value": "required", + "valueType": { + "$ref": "556" + }, + "enumType": { + "$ref": "555" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "Controls which (if any) tool is called by the model.\n\n`none` means the model will not call any tool and instead generates a message.\n\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n\n`required` means the model must call one or more tools.", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "560", + "kind": "enum", + "name": "ToolChoiceObjectType", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectType", + "valueType": { + "$id": "561", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "562", + "kind": "enumvalue", + "name": "file_search", + "value": "file_search", + "valueType": { + "$ref": "561" + }, + "enumType": { + "$ref": "560" + }, + "decorators": [] + }, + { + "$id": "563", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "561" + }, + "enumType": { + "$ref": "560" + }, + "decorators": [] + }, + { + "$id": "564", + "kind": "enumvalue", + "name": "computer", + "value": "computer_use_preview", + "valueType": { + "$ref": "561" + }, + "enumType": { + "$ref": "560" + }, + "decorators": [] + }, + { + "$id": "565", + "kind": "enumvalue", + "name": "web_search", + "value": "web_search_preview", + "valueType": { + "$ref": "561" + }, + "enumType": { + "$ref": "560" + }, + "decorators": [] + }, + { + "$id": "566", + "kind": "enumvalue", + "name": "image_generation", + "value": "image_generation", + "valueType": { + "$ref": "561" + }, + "enumType": { + "$ref": "560" + }, + "decorators": [] + }, + { + "$id": "567", + "kind": "enumvalue", + "name": "code_interpreter", + "value": "code_interpreter", + "valueType": { + "$ref": "561" + }, + "enumType": { + "$ref": "560" + }, + "decorators": [] + }, + { + "$id": "568", + "kind": "enumvalue", + "name": "mcp", + "value": "mcp", + "valueType": { + "$ref": "561" + }, + "enumType": { + "$ref": "560" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "Indicates that the model should use a built-in tool to generate a response.\n[Learn more about built-in tools](/docs/guides/tools).", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "569", + "kind": "enum", + "name": "ItemContentType", + "crossLanguageDefinitionId": "OpenAI.ItemContentType", + "valueType": { + "$id": "570", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "571", + "kind": "enumvalue", + "name": "input_text", + "value": "input_text", + "valueType": { + "$ref": "570" + }, + "enumType": { + "$ref": "569" + }, + "decorators": [] + }, + { + "$id": "572", + "kind": "enumvalue", + "name": "input_audio", + "value": "input_audio", + "valueType": { + "$ref": "570" + }, + "enumType": { + "$ref": "569" + }, + "decorators": [] + }, + { + "$id": "573", + "kind": "enumvalue", + "name": "input_image", + "value": "input_image", + "valueType": { + "$ref": "570" + }, + "enumType": { + "$ref": "569" + }, + "decorators": [] + }, + { + "$id": "574", + "kind": "enumvalue", + "name": "input_file", + "value": "input_file", + "valueType": { + "$ref": "570" + }, + "enumType": { + "$ref": "569" + }, + "decorators": [] + }, + { + "$id": "575", + "kind": "enumvalue", + "name": "output_text", + "value": "output_text", + "valueType": { + "$ref": "570" + }, + "enumType": { + "$ref": "569" + }, + "decorators": [] + }, + { + "$id": "576", + "kind": "enumvalue", + "name": "output_audio", + "value": "output_audio", + "valueType": { + "$ref": "570" + }, + "enumType": { + "$ref": "569" + }, + "decorators": [] + }, + { + "$id": "577", + "kind": "enumvalue", + "name": "refusal", + "value": "refusal", + "valueType": { + "$ref": "570" + }, + "enumType": { + "$ref": "569" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "Multi-modal input and output contents.", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "578", + "kind": "enum", + "name": "ItemContentInputAudioFormat", + "crossLanguageDefinitionId": "OpenAI.ItemContentInputAudio.format.anonymous", + "valueType": { + "$id": "579", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "580", + "kind": "enumvalue", + "name": "mp3", + "value": "mp3", + "valueType": { + "$ref": "579" + }, + "enumType": { + "$ref": "578" + }, + "decorators": [] + }, + { + "$id": "581", + "kind": "enumvalue", + "name": "wav", + "value": "wav", + "valueType": { + "$ref": "579" + }, + "enumType": { + "$ref": "578" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "582", + "kind": "enum", + "name": "ItemContentInputImageDetail", + "crossLanguageDefinitionId": "OpenAI.ItemContentInputImage.detail.anonymous", + "valueType": { + "$id": "583", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "584", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "583" + }, + "enumType": { + "$ref": "582" + }, + "decorators": [] + }, + { + "$id": "585", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "583" + }, + "enumType": { + "$ref": "582" + }, + "decorators": [] + }, + { + "$id": "586", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "583" + }, + "enumType": { + "$ref": "582" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "587", + "kind": "enum", + "name": "AnnotationType", + "crossLanguageDefinitionId": "OpenAI.AnnotationType", + "valueType": { + "$id": "588", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "589", + "kind": "enumvalue", + "name": "file_citation", + "value": "file_citation", + "valueType": { + "$ref": "588" + }, + "enumType": { + "$ref": "587" + }, + "decorators": [] + }, + { + "$id": "590", + "kind": "enumvalue", + "name": "url_citation", + "value": "url_citation", + "valueType": { + "$ref": "588" + }, + "enumType": { + "$ref": "587" + }, + "decorators": [] + }, + { + "$id": "591", + "kind": "enumvalue", + "name": "file_path", + "value": "file_path", + "valueType": { + "$ref": "588" + }, + "enumType": { + "$ref": "587" + }, + "decorators": [] + }, + { + "$id": "592", + "kind": "enumvalue", + "name": "container_file_citation", + "value": "container_file_citation", + "valueType": { + "$ref": "588" + }, + "enumType": { + "$ref": "587" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "593", + "kind": "enum", + "name": "ItemType", + "crossLanguageDefinitionId": "OpenAI.ItemType", + "valueType": { + "$id": "594", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "595", + "kind": "enumvalue", + "name": "message", + "value": "message", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "596", + "kind": "enumvalue", + "name": "file_search_call", + "value": "file_search_call", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "597", + "kind": "enumvalue", + "name": "function_call", + "value": "function_call", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "598", + "kind": "enumvalue", + "name": "function_call_output", + "value": "function_call_output", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "599", + "kind": "enumvalue", + "name": "computer_call", + "value": "computer_call", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "600", + "kind": "enumvalue", + "name": "computer_call_output", + "value": "computer_call_output", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "601", + "kind": "enumvalue", + "name": "web_search_call", + "value": "web_search_call", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "602", + "kind": "enumvalue", + "name": "reasoning", + "value": "reasoning", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "603", + "kind": "enumvalue", + "name": "item_reference", + "value": "item_reference", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "604", + "kind": "enumvalue", + "name": "image_generation_call", + "value": "image_generation_call", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "605", + "kind": "enumvalue", + "name": "code_interpreter_call", + "value": "code_interpreter_call", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "606", + "kind": "enumvalue", + "name": "local_shell_call", + "value": "local_shell_call", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "607", + "kind": "enumvalue", + "name": "local_shell_call_output", + "value": "local_shell_call_output", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "608", + "kind": "enumvalue", + "name": "mcp_list_tools", + "value": "mcp_list_tools", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "609", + "kind": "enumvalue", + "name": "mcp_approval_request", + "value": "mcp_approval_request", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "610", + "kind": "enumvalue", + "name": "mcp_approval_response", + "value": "mcp_approval_response", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + }, + { + "$id": "611", + "kind": "enumvalue", + "name": "mcp_call", + "value": "mcp_call", + "valueType": { + "$ref": "594" + }, + "enumType": { + "$ref": "593" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "612", + "kind": "enum", + "name": "ComputerActionType", + "crossLanguageDefinitionId": "OpenAI.ComputerActionType", + "valueType": { + "$id": "613", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "614", + "kind": "enumvalue", + "name": "screenshot", + "value": "screenshot", + "valueType": { + "$ref": "613" + }, + "enumType": { + "$ref": "612" + }, + "decorators": [] + }, + { + "$id": "615", + "kind": "enumvalue", + "name": "click", + "value": "click", + "valueType": { + "$ref": "613" + }, + "enumType": { + "$ref": "612" + }, + "decorators": [] + }, + { + "$id": "616", + "kind": "enumvalue", + "name": "double_click", + "value": "double_click", + "valueType": { + "$ref": "613" + }, + "enumType": { + "$ref": "612" + }, + "decorators": [] + }, + { + "$id": "617", + "kind": "enumvalue", + "name": "scroll", + "value": "scroll", + "valueType": { + "$ref": "613" + }, + "enumType": { + "$ref": "612" + }, + "decorators": [] + }, + { + "$id": "618", + "kind": "enumvalue", + "name": "type", + "value": "type", + "valueType": { + "$ref": "613" + }, + "enumType": { + "$ref": "612" + }, + "decorators": [] + }, + { + "$id": "619", + "kind": "enumvalue", + "name": "wait", + "value": "wait", + "valueType": { + "$ref": "613" + }, + "enumType": { + "$ref": "612" + }, + "decorators": [] + }, + { + "$id": "620", + "kind": "enumvalue", + "name": "keypress", + "value": "keypress", + "valueType": { + "$ref": "613" + }, + "enumType": { + "$ref": "612" + }, + "decorators": [] + }, + { + "$id": "621", + "kind": "enumvalue", + "name": "drag", + "value": "drag", + "valueType": { + "$ref": "613" + }, + "enumType": { + "$ref": "612" + }, + "decorators": [] + }, + { + "$id": "622", + "kind": "enumvalue", + "name": "move", + "value": "move", + "valueType": { + "$ref": "613" + }, + "enumType": { + "$ref": "612" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "623", + "kind": "enum", + "name": "ComputerActionClickButton", + "crossLanguageDefinitionId": "OpenAI.ComputerActionClick.button.anonymous", + "valueType": { + "$id": "624", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "625", + "kind": "enumvalue", + "name": "left", + "value": "left", + "valueType": { + "$ref": "624" + }, + "enumType": { + "$ref": "623" + }, + "decorators": [] + }, + { + "$id": "626", + "kind": "enumvalue", + "name": "right", + "value": "right", + "valueType": { + "$ref": "624" + }, + "enumType": { + "$ref": "623" + }, + "decorators": [] + }, + { + "$id": "627", + "kind": "enumvalue", + "name": "wheel", + "value": "wheel", + "valueType": { + "$ref": "624" + }, + "enumType": { + "$ref": "623" + }, + "decorators": [] + }, + { + "$id": "628", + "kind": "enumvalue", + "name": "back", + "value": "back", + "valueType": { + "$ref": "624" + }, + "enumType": { + "$ref": "623" + }, + "decorators": [] + }, + { + "$id": "629", + "kind": "enumvalue", + "name": "forward", + "value": "forward", + "valueType": { + "$ref": "624" + }, + "enumType": { + "$ref": "623" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "630", + "kind": "enum", + "name": "ComputerToolCallOutputItemOutputType", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemOutputType", + "valueType": { + "$id": "631", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "632", + "kind": "enumvalue", + "name": "screenshot", + "value": "computer_screenshot", + "valueType": { + "$ref": "631" + }, + "enumType": { + "$ref": "630" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "A computer screenshot image used with the computer use tool.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "633", + "kind": "enum", + "name": "ReasoningItemSummaryPartType", + "crossLanguageDefinitionId": "OpenAI.ReasoningItemSummaryPartType", + "valueType": { + "$id": "634", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "635", + "kind": "enumvalue", + "name": "summary_text", + "value": "summary_text", + "valueType": { + "$ref": "634" + }, + "enumType": { + "$ref": "633" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "636", + "kind": "enum", + "name": "ResponsesMessageRole", + "crossLanguageDefinitionId": "OpenAI.ResponsesMessageRole", + "valueType": { + "$id": "637", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "638", + "kind": "enumvalue", + "name": "system", + "value": "system", + "valueType": { + "$ref": "637" + }, + "enumType": { + "$ref": "636" + }, + "decorators": [] + }, + { + "$id": "639", + "kind": "enumvalue", + "name": "developer", + "value": "developer", + "valueType": { + "$ref": "637" + }, + "enumType": { + "$ref": "636" + }, + "decorators": [] + }, + { + "$id": "640", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$ref": "637" + }, + "enumType": { + "$ref": "636" + }, + "decorators": [] + }, + { + "$id": "641", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "637" + }, + "enumType": { + "$ref": "636" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "The collection of valid roles for responses message items.", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "642", + "kind": "enum", + "name": "Includable", + "crossLanguageDefinitionId": "OpenAI.Includable", + "valueType": { + "$id": "643", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "644", + "kind": "enumvalue", + "name": "file_search_call.results", + "value": "file_search_call.results", + "valueType": { + "$ref": "643" + }, + "enumType": { + "$ref": "642" + }, + "decorators": [] + }, + { + "$id": "645", + "kind": "enumvalue", + "name": "message.input_image.image_url", + "value": "message.input_image.image_url", + "valueType": { + "$ref": "643" + }, + "enumType": { + "$ref": "642" + }, + "decorators": [] + }, + { + "$id": "646", + "kind": "enumvalue", + "name": "computer_call_output.output.image_url", + "value": "computer_call_output.output.image_url", + "valueType": { + "$ref": "643" + }, + "enumType": { + "$ref": "642" + }, + "decorators": [] + }, + { + "$id": "647", + "kind": "enumvalue", + "name": "reasoning.encrypted_content", + "value": "reasoning.encrypted_content", + "valueType": { + "$ref": "643" + }, + "enumType": { + "$ref": "642" + }, + "decorators": [] + }, + { + "$id": "648", + "kind": "enumvalue", + "name": "code_interpreter_call.outputs", + "value": "code_interpreter_call.outputs", + "valueType": { + "$ref": "643" + }, + "enumType": { + "$ref": "642" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "Specify additional output data to include in the model response. Currently\nsupported values are:\n- `file_search_call.results`: Include the search results of\n the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n- `reasoning.encrypted_content`: Includes an encrypted version of reasoning\n tokens in reasoning item outputs. This enables reasoning items to be used in\n multi-turn conversations when using the Responses API statelessly (like\n when the `store` parameter is set to `false`, or when an organization is\n enrolled in the zero data retention program).\n- `code_interpreter_call.outputs`: Includes the outputs of python code execution\n in code interpreter tool call items.", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "649", + "kind": "enum", + "name": "ResponseStatus", + "crossLanguageDefinitionId": "OpenAI.Response.status.anonymous", + "valueType": { + "$id": "650", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "651", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "650" + }, + "enumType": { + "$ref": "649" + }, + "decorators": [] + }, + { + "$id": "652", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "650" + }, + "enumType": { + "$ref": "649" + }, + "decorators": [] + }, + { + "$id": "653", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "650" + }, + "enumType": { + "$ref": "649" + }, + "decorators": [] + }, + { + "$id": "654", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "650" + }, + "enumType": { + "$ref": "649" + }, + "decorators": [] + }, + { + "$id": "655", + "kind": "enumvalue", + "name": "queued", + "value": "queued", + "valueType": { + "$ref": "650" + }, + "enumType": { + "$ref": "649" + }, + "decorators": [] + }, + { + "$id": "656", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "650" + }, + "enumType": { + "$ref": "649" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "657", + "kind": "enum", + "name": "ResponseErrorCode", + "crossLanguageDefinitionId": "OpenAI.ResponseErrorCode", + "valueType": { + "$id": "658", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "659", + "kind": "enumvalue", + "name": "server_error", + "value": "server_error", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "660", + "kind": "enumvalue", + "name": "rate_limit_exceeded", + "value": "rate_limit_exceeded", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "661", + "kind": "enumvalue", + "name": "invalid_prompt", + "value": "invalid_prompt", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "662", + "kind": "enumvalue", + "name": "vector_store_timeout", + "value": "vector_store_timeout", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "663", + "kind": "enumvalue", + "name": "invalid_image", + "value": "invalid_image", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "664", + "kind": "enumvalue", + "name": "invalid_image_format", + "value": "invalid_image_format", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "665", + "kind": "enumvalue", + "name": "invalid_base64_image", + "value": "invalid_base64_image", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "666", + "kind": "enumvalue", + "name": "invalid_image_url", + "value": "invalid_image_url", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "667", + "kind": "enumvalue", + "name": "image_too_large", + "value": "image_too_large", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "668", + "kind": "enumvalue", + "name": "image_too_small", + "value": "image_too_small", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "669", + "kind": "enumvalue", + "name": "image_parse_error", + "value": "image_parse_error", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "670", + "kind": "enumvalue", + "name": "image_content_policy_violation", + "value": "image_content_policy_violation", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "671", + "kind": "enumvalue", + "name": "invalid_image_mode", + "value": "invalid_image_mode", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "672", + "kind": "enumvalue", + "name": "image_file_too_large", + "value": "image_file_too_large", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "673", + "kind": "enumvalue", + "name": "unsupported_image_media_type", + "value": "unsupported_image_media_type", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "674", + "kind": "enumvalue", + "name": "empty_image_file", + "value": "empty_image_file", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "675", + "kind": "enumvalue", + "name": "failed_to_download_image", + "value": "failed_to_download_image", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + }, + { + "$id": "676", + "kind": "enumvalue", + "name": "image_file_not_found", + "value": "image_file_not_found", + "valueType": { + "$ref": "658" + }, + "enumType": { + "$ref": "657" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "The error code for the response.", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json,Exception", + "decorators": [] + }, + { + "$id": "677", + "kind": "enum", + "name": "ResponseIncompleteDetailsReason", + "crossLanguageDefinitionId": "OpenAI.Response.incomplete_details.reason.anonymous", + "valueType": { + "$id": "678", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "679", + "kind": "enumvalue", + "name": "max_output_tokens", + "value": "max_output_tokens", + "valueType": { + "$ref": "678" + }, + "enumType": { + "$ref": "677" + }, + "decorators": [] + }, + { + "$id": "680", + "kind": "enumvalue", + "name": "content_filter", + "value": "content_filter", + "valueType": { + "$ref": "678" + }, + "enumType": { + "$ref": "677" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "681", + "kind": "enum", + "name": "FileSearchToolCallItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemResource.status.anonymous", + "valueType": { + "$id": "682", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "683", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "682" + }, + "enumType": { + "$ref": "681" + }, + "decorators": [] + }, + { + "$id": "684", + "kind": "enumvalue", + "name": "searching", + "value": "searching", + "valueType": { + "$ref": "682" + }, + "enumType": { + "$ref": "681" + }, + "decorators": [] + }, + { + "$id": "685", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "682" + }, + "enumType": { + "$ref": "681" + }, + "decorators": [] + }, + { + "$id": "686", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "682" + }, + "enumType": { + "$ref": "681" + }, + "decorators": [] + }, + { + "$id": "687", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "682" + }, + "enumType": { + "$ref": "681" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "688", + "kind": "enum", + "name": "ComputerToolCallItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemResource.status.anonymous", + "valueType": { + "$id": "689", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "690", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "689" + }, + "enumType": { + "$ref": "688" + }, + "decorators": [] + }, + { + "$id": "691", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "689" + }, + "enumType": { + "$ref": "688" + }, + "decorators": [] + }, + { + "$id": "692", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "689" + }, + "enumType": { + "$ref": "688" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "693", + "kind": "enum", + "name": "ComputerToolCallOutputItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemResource.status.anonymous", + "valueType": { + "$id": "694", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "695", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "694" + }, + "enumType": { + "$ref": "693" + }, + "decorators": [] + }, + { + "$id": "696", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "694" + }, + "enumType": { + "$ref": "693" + }, + "decorators": [] + }, + { + "$id": "697", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "694" + }, + "enumType": { + "$ref": "693" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "698", + "kind": "enum", + "name": "WebSearchToolCallItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.WebSearchToolCallItemResource.status.anonymous", + "valueType": { + "$id": "699", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "700", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "699" + }, + "enumType": { + "$ref": "698" + }, + "decorators": [] + }, + { + "$id": "701", + "kind": "enumvalue", + "name": "searching", + "value": "searching", + "valueType": { + "$ref": "699" + }, + "enumType": { + "$ref": "698" + }, + "decorators": [] + }, + { + "$id": "702", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "699" + }, + "enumType": { + "$ref": "698" + }, + "decorators": [] + }, + { + "$id": "703", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "699" + }, + "enumType": { + "$ref": "698" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "704", + "kind": "enum", + "name": "FunctionToolCallItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemResource.status.anonymous", + "valueType": { + "$id": "705", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "706", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "705" + }, + "enumType": { + "$ref": "704" + }, + "decorators": [] + }, + { + "$id": "707", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "705" + }, + "enumType": { + "$ref": "704" + }, + "decorators": [] + }, + { + "$id": "708", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "705" + }, + "enumType": { + "$ref": "704" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "709", + "kind": "enum", + "name": "FunctionToolCallOutputItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemResource.status.anonymous", + "valueType": { + "$id": "710", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "711", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "710" + }, + "enumType": { + "$ref": "709" + }, + "decorators": [] + }, + { + "$id": "712", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "710" + }, + "enumType": { + "$ref": "709" + }, + "decorators": [] + }, + { + "$id": "713", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "710" + }, + "enumType": { + "$ref": "709" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "714", + "kind": "enum", + "name": "ReasoningItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.ReasoningItemResource.status.anonymous", + "valueType": { + "$id": "715", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "716", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "715" + }, + "enumType": { + "$ref": "714" + }, + "decorators": [] + }, + { + "$id": "717", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "715" + }, + "enumType": { + "$ref": "714" + }, + "decorators": [] + }, + { + "$id": "718", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "715" + }, + "enumType": { + "$ref": "714" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "719", + "kind": "enum", + "name": "ImageGenToolCallItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.ImageGenToolCallItemResource.status.anonymous", + "valueType": { + "$id": "720", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "721", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "720" + }, + "enumType": { + "$ref": "719" + }, + "decorators": [] + }, + { + "$id": "722", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "720" + }, + "enumType": { + "$ref": "719" + }, + "decorators": [] + }, + { + "$id": "723", + "kind": "enumvalue", + "name": "generating", + "value": "generating", + "valueType": { + "$ref": "720" + }, + "enumType": { + "$ref": "719" + }, + "decorators": [] + }, + { + "$id": "724", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "720" + }, + "enumType": { + "$ref": "719" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "725", + "kind": "enum", + "name": "CodeInterpreterToolCallItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemResource.status.anonymous", + "valueType": { + "$id": "726", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "727", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "726" + }, + "enumType": { + "$ref": "725" + }, + "decorators": [] + }, + { + "$id": "728", + "kind": "enumvalue", + "name": "interpreting", + "value": "interpreting", + "valueType": { + "$ref": "726" + }, + "enumType": { + "$ref": "725" + }, + "decorators": [] + }, + { + "$id": "729", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "726" + }, + "enumType": { + "$ref": "725" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "730", + "kind": "enum", + "name": "LocalShellToolCallItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemResource.status.anonymous", + "valueType": { + "$id": "731", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "732", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "731" + }, + "enumType": { + "$ref": "730" + }, + "decorators": [] + }, + { + "$id": "733", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "731" + }, + "enumType": { + "$ref": "730" + }, + "decorators": [] + }, + { + "$id": "734", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "731" + }, + "enumType": { + "$ref": "730" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "735", + "kind": "enum", + "name": "LocalShellToolCallOutputItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallOutputItemResource.status.anonymous", + "valueType": { + "$id": "736", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "737", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "736" + }, + "enumType": { + "$ref": "735" + }, + "decorators": [] + }, + { + "$id": "738", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "736" + }, + "enumType": { + "$ref": "735" + }, + "decorators": [] + }, + { + "$id": "739", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "736" + }, + "enumType": { + "$ref": "735" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "740", + "kind": "enum", + "name": "ResponsesMessageItemResourceStatus", + "crossLanguageDefinitionId": "OpenAI.ResponsesMessageItemResource.status.anonymous", + "valueType": { + "$id": "741", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "742", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "741" + }, + "enumType": { + "$ref": "740" + }, + "decorators": [] + }, + { + "$id": "743", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "741" + }, + "enumType": { + "$ref": "740" + }, + "decorators": [] + }, + { + "$id": "744", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "741" + }, + "enumType": { + "$ref": "740" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "745", + "kind": "enum", + "name": "ResponseStreamEventType", + "crossLanguageDefinitionId": "OpenAI.ResponseStreamEventType", + "valueType": { + "$id": "746", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "747", + "kind": "enumvalue", + "name": "response_audio_delta", + "value": "response.audio.delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "748", + "kind": "enumvalue", + "name": "response_audio_done", + "value": "response.audio.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "749", + "kind": "enumvalue", + "name": "response_audio_transcript_delta", + "value": "response.audio_transcript.delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "750", + "kind": "enumvalue", + "name": "response_audio_transcript_done", + "value": "response.audio_transcript.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "751", + "kind": "enumvalue", + "name": "response_code_interpreter_call_code_delta", + "value": "response.code_interpreter_call_code.delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "752", + "kind": "enumvalue", + "name": "response_code_interpreter_call_code_done", + "value": "response.code_interpreter_call_code.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "753", + "kind": "enumvalue", + "name": "response_code_interpreter_call_completed", + "value": "response.code_interpreter_call.completed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "754", + "kind": "enumvalue", + "name": "response_code_interpreter_call_in_progress", + "value": "response.code_interpreter_call.in_progress", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "755", + "kind": "enumvalue", + "name": "response_code_interpreter_call_interpreting", + "value": "response.code_interpreter_call.interpreting", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "756", + "kind": "enumvalue", + "name": "response_completed", + "value": "response.completed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "757", + "kind": "enumvalue", + "name": "response_content_part_added", + "value": "response.content_part.added", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "758", + "kind": "enumvalue", + "name": "response_content_part_done", + "value": "response.content_part.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "759", + "kind": "enumvalue", + "name": "response_created", + "value": "response.created", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "760", + "kind": "enumvalue", + "name": "error", + "value": "error", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "761", + "kind": "enumvalue", + "name": "response_file_search_call_completed", + "value": "response.file_search_call.completed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "762", + "kind": "enumvalue", + "name": "response_file_search_call_in_progress", + "value": "response.file_search_call.in_progress", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "763", + "kind": "enumvalue", + "name": "response_file_search_call_searching", + "value": "response.file_search_call.searching", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "764", + "kind": "enumvalue", + "name": "response_function_call_arguments_delta", + "value": "response.function_call_arguments.delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "765", + "kind": "enumvalue", + "name": "response_function_call_arguments_done", + "value": "response.function_call_arguments.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "766", + "kind": "enumvalue", + "name": "response_in_progress", + "value": "response.in_progress", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "767", + "kind": "enumvalue", + "name": "response_failed", + "value": "response.failed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "768", + "kind": "enumvalue", + "name": "response_incomplete", + "value": "response.incomplete", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "769", + "kind": "enumvalue", + "name": "response_output_item_added", + "value": "response.output_item.added", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "770", + "kind": "enumvalue", + "name": "response_output_item_done", + "value": "response.output_item.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "771", + "kind": "enumvalue", + "name": "response_refusal_delta", + "value": "response.refusal.delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "772", + "kind": "enumvalue", + "name": "response_refusal_done", + "value": "response.refusal.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "773", + "kind": "enumvalue", + "name": "response_output_text_annotation_added", + "value": "response.output_text.annotation.added", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "774", + "kind": "enumvalue", + "name": "response_output_text_delta", + "value": "response.output_text.delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "775", + "kind": "enumvalue", + "name": "response_output_text_done", + "value": "response.output_text.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "776", + "kind": "enumvalue", + "name": "response_reasoning_summary_part_added", + "value": "response.reasoning_summary_part.added", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "777", + "kind": "enumvalue", + "name": "response_reasoning_summary_part_done", + "value": "response.reasoning_summary_part.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "778", + "kind": "enumvalue", + "name": "response_reasoning_summary_text_delta", + "value": "response.reasoning_summary_text.delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "779", + "kind": "enumvalue", + "name": "response_reasoning_summary_text_done", + "value": "response.reasoning_summary_text.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "780", + "kind": "enumvalue", + "name": "response_web_search_call_completed", + "value": "response.web_search_call.completed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "781", + "kind": "enumvalue", + "name": "response_web_search_call_in_progress", + "value": "response.web_search_call.in_progress", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "782", + "kind": "enumvalue", + "name": "response_web_search_call_searching", + "value": "response.web_search_call.searching", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "783", + "kind": "enumvalue", + "name": "response_image_generation_call_completed", + "value": "response.image_generation_call.completed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "784", + "kind": "enumvalue", + "name": "response_image_generation_call_generating", + "value": "response.image_generation_call.generating", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "785", + "kind": "enumvalue", + "name": "response_image_generation_call_in_progress", + "value": "response.image_generation_call.in_progress", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "786", + "kind": "enumvalue", + "name": "response_image_generation_call_partial_image", + "value": "response.image_generation_call.partial_image", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "787", + "kind": "enumvalue", + "name": "response_mcp_call_arguments_delta", + "value": "response.mcp_call.arguments_delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "788", + "kind": "enumvalue", + "name": "response_mcp_call_arguments_done", + "value": "response.mcp_call.arguments_done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "789", + "kind": "enumvalue", + "name": "response_mcp_call_completed", + "value": "response.mcp_call.completed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "790", + "kind": "enumvalue", + "name": "response_mcp_call_failed", + "value": "response.mcp_call.failed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "791", + "kind": "enumvalue", + "name": "response_mcp_call_in_progress", + "value": "response.mcp_call.in_progress", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "792", + "kind": "enumvalue", + "name": "response_mcp_list_tools_completed", + "value": "response.mcp_list_tools.completed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "793", + "kind": "enumvalue", + "name": "response_mcp_list_tools_failed", + "value": "response.mcp_list_tools.failed", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "794", + "kind": "enumvalue", + "name": "response_mcp_list_tools_in_progress", + "value": "response.mcp_list_tools.in_progress", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "795", + "kind": "enumvalue", + "name": "response_queued", + "value": "response.queued", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "796", + "kind": "enumvalue", + "name": "response_reasoning_delta", + "value": "response.reasoning.delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "797", + "kind": "enumvalue", + "name": "response_reasoning_done", + "value": "response.reasoning.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "798", + "kind": "enumvalue", + "name": "response_reasoning_summary_delta", + "value": "response.reasoning_summary.delta", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + }, + { + "$id": "799", + "kind": "enumvalue", + "name": "response_reasoning_summary_done", + "value": "response.reasoning_summary.done", + "valueType": { + "$ref": "746" + }, + "enumType": { + "$ref": "745" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "800", + "kind": "enum", + "name": "CreateMessageRequestRole", + "crossLanguageDefinitionId": "OpenAI.CreateMessageRequest.role.anonymous", + "valueType": { + "$id": "801", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "802", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$ref": "801" + }, + "enumType": { + "$ref": "800" + }, + "decorators": [] + }, + { + "$id": "803", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "801" + }, + "enumType": { + "$ref": "800" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "804", + "kind": "enum", + "name": "MessageContentType", + "crossLanguageDefinitionId": "OpenAI.MessageContentType", + "valueType": { + "$id": "805", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "806", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "805" + }, + "enumType": { + "$ref": "804" + }, + "doc": "The content is a text message.", + "decorators": [] + }, + { + "$id": "807", + "kind": "enumvalue", + "name": "image_file", + "value": "image_file", + "valueType": { + "$ref": "805" + }, + "enumType": { + "$ref": "804" + }, + "doc": "The content is an image file.", + "decorators": [] + }, + { + "$id": "808", + "kind": "enumvalue", + "name": "image_url", + "value": "image_url", + "valueType": { + "$ref": "805" + }, + "enumType": { + "$ref": "804" + }, + "doc": "The content is an image URL.", + "decorators": [] + }, + { + "$id": "809", + "kind": "enumvalue", + "name": "refusal", + "value": "refusal", + "valueType": { + "$ref": "805" + }, + "enumType": { + "$ref": "804" + }, + "doc": "The content is a refusal message.", + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "810", + "kind": "enum", + "name": "MessageContentImageFileObjectImageFileDetail", + "crossLanguageDefinitionId": "OpenAI.MessageContentImageFileObject.image_file.detail.anonymous", + "valueType": { + "$id": "811", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "812", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "811" + }, + "enumType": { + "$ref": "810" + }, + "decorators": [] + }, + { + "$id": "813", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "811" + }, + "enumType": { + "$ref": "810" + }, + "decorators": [] + }, + { + "$id": "814", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "811" + }, + "enumType": { + "$ref": "810" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "815", + "kind": "enum", + "name": "MessageContentTextAnnotationType", + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationType", + "valueType": { + "$id": "816", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "817", + "kind": "enumvalue", + "name": "file_citation", + "value": "file_citation", + "valueType": { + "$ref": "816" + }, + "enumType": { + "$ref": "815" + }, + "decorators": [] + }, + { + "$id": "818", + "kind": "enumvalue", + "name": "file_path", + "value": "file_path", + "valueType": { + "$ref": "816" + }, + "enumType": { + "$ref": "815" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "819", + "kind": "enum", + "name": "MessageContentImageUrlObjectImageUrlDetail", + "crossLanguageDefinitionId": "OpenAI.MessageContentImageUrlObject.image_url.detail.anonymous", + "valueType": { + "$id": "820", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "821", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "820" + }, + "enumType": { + "$ref": "819" + }, + "decorators": [] + }, + { + "$id": "822", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "820" + }, + "enumType": { + "$ref": "819" + }, + "decorators": [] + }, + { + "$id": "823", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "820" + }, + "enumType": { + "$ref": "819" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "824", + "kind": "enum", + "name": "MessageObjectStatus", + "crossLanguageDefinitionId": "OpenAI.MessageObject.status.anonymous", + "valueType": { + "$id": "825", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "826", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "825" + }, + "enumType": { + "$ref": "824" + }, + "decorators": [] + }, + { + "$id": "827", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "825" + }, + "enumType": { + "$ref": "824" + }, + "decorators": [] + }, + { + "$id": "828", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "825" + }, + "enumType": { + "$ref": "824" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "829", + "kind": "enum", + "name": "MessageObjectIncompleteDetailsReason", + "crossLanguageDefinitionId": "OpenAI.MessageObject.incomplete_details.reason.anonymous", + "valueType": { + "$id": "830", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "831", + "kind": "enumvalue", + "name": "content_filter", + "value": "content_filter", + "valueType": { + "$ref": "830" + }, + "enumType": { + "$ref": "829" + }, + "decorators": [] + }, + { + "$id": "832", + "kind": "enumvalue", + "name": "max_tokens", + "value": "max_tokens", + "valueType": { + "$ref": "830" + }, + "enumType": { + "$ref": "829" + }, + "decorators": [] + }, + { + "$id": "833", + "kind": "enumvalue", + "name": "run_cancelled", + "value": "run_cancelled", + "valueType": { + "$ref": "830" + }, + "enumType": { + "$ref": "829" + }, + "decorators": [] + }, + { + "$id": "834", + "kind": "enumvalue", + "name": "run_expired", + "value": "run_expired", + "valueType": { + "$ref": "830" + }, + "enumType": { + "$ref": "829" + }, + "decorators": [] + }, + { + "$id": "835", + "kind": "enumvalue", + "name": "run_failed", + "value": "run_failed", + "valueType": { + "$ref": "830" + }, + "enumType": { + "$ref": "829" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "836", + "kind": "enum", + "name": "MessageObjectRole", + "crossLanguageDefinitionId": "OpenAI.MessageObject.role.anonymous", + "valueType": { + "$id": "837", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "838", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$ref": "837" + }, + "enumType": { + "$ref": "836" + }, + "decorators": [] + }, + { + "$id": "839", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "837" + }, + "enumType": { + "$ref": "836" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "840", + "kind": "enum", + "name": "CreateModerationRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.model.anonymous", + "valueType": { + "$id": "841", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "842", + "kind": "enumvalue", + "name": "omni-moderation-latest", + "value": "omni-moderation-latest", + "valueType": { + "$ref": "841" + }, + "enumType": { + "$ref": "840" + }, + "decorators": [] + }, + { + "$id": "843", + "kind": "enumvalue", + "name": "omni-moderation-2024-09-26", + "value": "omni-moderation-2024-09-26", + "valueType": { + "$ref": "841" + }, + "enumType": { + "$ref": "840" + }, + "decorators": [] + }, + { + "$id": "844", + "kind": "enumvalue", + "name": "text-moderation-latest", + "value": "text-moderation-latest", + "valueType": { + "$ref": "841" + }, + "enumType": { + "$ref": "840" + }, + "decorators": [] + }, + { + "$id": "845", + "kind": "enumvalue", + "name": "text-moderation-stable", + "value": "text-moderation-stable", + "valueType": { + "$ref": "841" + }, + "enumType": { + "$ref": "840" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "846", + "kind": "enum", + "name": "ModerationAppliedInputType", + "crossLanguageDefinitionId": "OpenAI.ModerationAppliedInputType", + "valueType": { + "$id": "847", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "848", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "847" + }, + "enumType": { + "$ref": "846" + }, + "decorators": [] + }, + { + "$id": "849", + "kind": "enumvalue", + "name": "image", + "value": "image", + "valueType": { + "$ref": "847" + }, + "enumType": { + "$ref": "846" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "850", + "kind": "enum", + "name": "TruncationObjectType", + "crossLanguageDefinitionId": "OpenAI.TruncationObject.type.anonymous", + "valueType": { + "$id": "851", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "852", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "851" + }, + "enumType": { + "$ref": "850" + }, + "decorators": [] + }, + { + "$id": "853", + "kind": "enumvalue", + "name": "last_messages", + "value": "last_messages", + "valueType": { + "$ref": "851" + }, + "enumType": { + "$ref": "850" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "854", + "kind": "enum", + "name": "CreateThreadAndRunRequestToolChoice1", + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.tool_choice.anonymous", + "valueType": { + "$id": "855", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "856", + "kind": "enumvalue", + "name": "none", + "value": "none", + "valueType": { + "$ref": "855" + }, + "enumType": { + "$ref": "854" + }, + "decorators": [] + }, + { + "$id": "857", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "855" + }, + "enumType": { + "$ref": "854" + }, + "decorators": [] + }, + { + "$id": "858", + "kind": "enumvalue", + "name": "required", + "value": "required", + "valueType": { + "$ref": "855" + }, + "enumType": { + "$ref": "854" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "859", + "kind": "enum", + "name": "AssistantsNamedToolChoiceType", + "crossLanguageDefinitionId": "OpenAI.AssistantsNamedToolChoice.type.anonymous", + "valueType": { + "$id": "860", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "861", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "860" + }, + "enumType": { + "$ref": "859" + }, + "decorators": [] + }, + { + "$id": "862", + "kind": "enumvalue", + "name": "code_interpreter", + "value": "code_interpreter", + "valueType": { + "$ref": "860" + }, + "enumType": { + "$ref": "859" + }, + "decorators": [] + }, + { + "$id": "863", + "kind": "enumvalue", + "name": "file_search", + "value": "file_search", + "valueType": { + "$ref": "860" + }, + "enumType": { + "$ref": "859" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "864", + "kind": "enum", + "name": "RunObjectStatus", + "crossLanguageDefinitionId": "OpenAI.RunObject.status.anonymous", + "valueType": { + "$id": "865", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "866", + "kind": "enumvalue", + "name": "queued", + "value": "queued", + "valueType": { + "$ref": "865" + }, + "enumType": { + "$ref": "864" + }, + "decorators": [] + }, + { + "$id": "867", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "865" + }, + "enumType": { + "$ref": "864" + }, + "decorators": [] + }, + { + "$id": "868", + "kind": "enumvalue", + "name": "requires_action", + "value": "requires_action", + "valueType": { + "$ref": "865" + }, + "enumType": { + "$ref": "864" + }, + "decorators": [] + }, + { + "$id": "869", + "kind": "enumvalue", + "name": "cancelling", + "value": "cancelling", + "valueType": { + "$ref": "865" + }, + "enumType": { + "$ref": "864" + }, + "decorators": [] + }, + { + "$id": "870", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "865" + }, + "enumType": { + "$ref": "864" + }, + "decorators": [] + }, + { + "$id": "871", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "865" + }, + "enumType": { + "$ref": "864" + }, + "decorators": [] + }, + { + "$id": "872", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "865" + }, + "enumType": { + "$ref": "864" + }, + "decorators": [] + }, + { + "$id": "873", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "865" + }, + "enumType": { + "$ref": "864" + }, + "decorators": [] + }, + { + "$id": "874", + "kind": "enumvalue", + "name": "expired", + "value": "expired", + "valueType": { + "$ref": "865" + }, + "enumType": { + "$ref": "864" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "875", + "kind": "enum", + "name": "RunObjectLastErrorCode", + "crossLanguageDefinitionId": "OpenAI.RunObject.last_error.code.anonymous", + "valueType": { + "$id": "876", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "877", + "kind": "enumvalue", + "name": "server_error", + "value": "server_error", + "valueType": { + "$ref": "876" + }, + "enumType": { + "$ref": "875" + }, + "decorators": [] + }, + { + "$id": "878", + "kind": "enumvalue", + "name": "rate_limit_exceeded", + "value": "rate_limit_exceeded", + "valueType": { + "$ref": "876" + }, + "enumType": { + "$ref": "875" + }, + "decorators": [] + }, + { + "$id": "879", + "kind": "enumvalue", + "name": "invalid_prompt", + "value": "invalid_prompt", + "valueType": { + "$ref": "876" + }, + "enumType": { + "$ref": "875" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "880", + "kind": "enum", + "name": "RunObjectIncompleteDetailsReason", + "crossLanguageDefinitionId": "OpenAI.RunObject.incomplete_details.reason.anonymous", + "valueType": { + "$id": "881", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "882", + "kind": "enumvalue", + "name": "max_completion_tokens", + "value": "max_completion_tokens", + "valueType": { + "$ref": "881" + }, + "enumType": { + "$ref": "880" + }, + "decorators": [] + }, + { + "$id": "883", + "kind": "enumvalue", + "name": "max_prompt_tokens", + "value": "max_prompt_tokens", + "valueType": { + "$ref": "881" + }, + "enumType": { + "$ref": "880" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "884", + "kind": "enum", + "name": "IncludedRunStepProperty", + "crossLanguageDefinitionId": "OpenAI.IncludedRunStepProperty", + "valueType": { + "$id": "885", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "886", + "kind": "enumvalue", + "name": "file_search_result_content", + "value": "step_details.tool_calls[*].file_search.results[*].content", + "valueType": { + "$ref": "885" + }, + "enumType": { + "$ref": "884" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "887", + "kind": "enum", + "name": "RunStepObjectType", + "crossLanguageDefinitionId": "OpenAI.RunStepObject.type.anonymous", + "valueType": { + "$id": "888", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "889", + "kind": "enumvalue", + "name": "message_creation", + "value": "message_creation", + "valueType": { + "$ref": "888" + }, + "enumType": { + "$ref": "887" + }, + "decorators": [] + }, + { + "$id": "890", + "kind": "enumvalue", + "name": "tool_calls", + "value": "tool_calls", + "valueType": { + "$ref": "888" + }, + "enumType": { + "$ref": "887" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "891", + "kind": "enum", + "name": "RunStepObjectStatus", + "crossLanguageDefinitionId": "OpenAI.RunStepObject.status.anonymous", + "valueType": { + "$id": "892", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "893", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "892" + }, + "enumType": { + "$ref": "891" + }, + "decorators": [] + }, + { + "$id": "894", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "892" + }, + "enumType": { + "$ref": "891" + }, + "decorators": [] + }, + { + "$id": "895", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "892" + }, + "enumType": { + "$ref": "891" + }, + "decorators": [] + }, + { + "$id": "896", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "892" + }, + "enumType": { + "$ref": "891" + }, + "decorators": [] + }, + { + "$id": "897", + "kind": "enumvalue", + "name": "expired", + "value": "expired", + "valueType": { + "$ref": "892" + }, + "enumType": { + "$ref": "891" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "898", + "kind": "enum", + "name": "RunStepDetailsType", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsType", + "valueType": { + "$id": "899", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "900", + "kind": "enumvalue", + "name": "message_creation", + "value": "message_creation", + "valueType": { + "$ref": "899" + }, + "enumType": { + "$ref": "898" + }, + "decorators": [] + }, + { + "$id": "901", + "kind": "enumvalue", + "name": "tool_calls", + "value": "tool_calls", + "valueType": { + "$ref": "899" + }, + "enumType": { + "$ref": "898" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "902", + "kind": "enum", + "name": "RunStepDetailsToolCallType", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallType", + "valueType": { + "$id": "903", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "904", + "kind": "enumvalue", + "name": "code_interpreter", + "value": "code_interpreter", + "valueType": { + "$ref": "903" + }, + "enumType": { + "$ref": "902" + }, + "decorators": [] + }, + { + "$id": "905", + "kind": "enumvalue", + "name": "file_search", + "value": "file_search", + "valueType": { + "$ref": "903" + }, + "enumType": { + "$ref": "902" + }, + "decorators": [] + }, + { + "$id": "906", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "903" + }, + "enumType": { + "$ref": "902" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "907", + "kind": "enum", + "name": "RunStepDetailsCodeInterpreterOutputType", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsCodeInterpreterOutputType", + "valueType": { + "$id": "908", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "909", + "kind": "enumvalue", + "name": "logs", + "value": "logs", + "valueType": { + "$ref": "908" + }, + "enumType": { + "$ref": "907" + }, + "decorators": [] + }, + { + "$id": "910", + "kind": "enumvalue", + "name": "image", + "value": "image", + "valueType": { + "$ref": "908" + }, + "enumType": { + "$ref": "907" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "911", + "kind": "enum", + "name": "RunStepDetailsToolCallsFileSearchResultObjectContentType", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentType", + "valueType": { + "$id": "912", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "913", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "912" + }, + "enumType": { + "$ref": "911" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "914", + "kind": "enum", + "name": "RunStepObjectLastErrorCode", + "crossLanguageDefinitionId": "OpenAI.RunStepObject.last_error.code.anonymous", + "valueType": { + "$id": "915", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "916", + "kind": "enumvalue", + "name": "server_error", + "value": "server_error", + "valueType": { + "$ref": "915" + }, + "enumType": { + "$ref": "914" + }, + "decorators": [] + }, + { + "$id": "917", + "kind": "enumvalue", + "name": "rate_limit_exceeded", + "value": "rate_limit_exceeded", + "valueType": { + "$ref": "915" + }, + "enumType": { + "$ref": "914" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "918", + "kind": "enum", + "name": "VectorStoreObjectStatus", + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.status.anonymous", + "valueType": { + "$id": "919", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "920", + "kind": "enumvalue", + "name": "expired", + "value": "expired", + "valueType": { + "$ref": "919" + }, + "enumType": { + "$ref": "918" + }, + "decorators": [] + }, + { + "$id": "921", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "919" + }, + "enumType": { + "$ref": "918" + }, + "decorators": [] + }, + { + "$id": "922", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "919" + }, + "enumType": { + "$ref": "918" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "923", + "kind": "enum", + "name": "VectorStoreExpirationAnchor", + "crossLanguageDefinitionId": "OpenAI.VectorStoreExpirationAnchor", + "valueType": { + "$id": "924", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "925", + "kind": "enumvalue", + "name": "last_active_at", + "value": "last_active_at", + "valueType": { + "$ref": "924" + }, + "enumType": { + "$ref": "923" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "926", + "kind": "enum", + "name": "VectorStoreFileBatchObjectStatus", + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.status.anonymous", + "valueType": { + "$id": "927", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "928", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "927" + }, + "enumType": { + "$ref": "926" + }, + "decorators": [] + }, + { + "$id": "929", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "927" + }, + "enumType": { + "$ref": "926" + }, + "decorators": [] + }, + { + "$id": "930", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "927" + }, + "enumType": { + "$ref": "926" + }, + "decorators": [] + }, + { + "$id": "931", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "927" + }, + "enumType": { + "$ref": "926" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "932", + "kind": "enum", + "name": "ListVectorStoreFilesFilter", + "crossLanguageDefinitionId": "OpenAI.ListVectorStoreFilesFilter", + "valueType": { + "$id": "933", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "934", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "933" + }, + "enumType": { + "$ref": "932" + }, + "decorators": [] + }, + { + "$id": "935", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "933" + }, + "enumType": { + "$ref": "932" + }, + "decorators": [] + }, + { + "$id": "936", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "933" + }, + "enumType": { + "$ref": "932" + }, + "decorators": [] + }, + { + "$id": "937", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "933" + }, + "enumType": { + "$ref": "932" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "938", + "kind": "enum", + "name": "VectorStoreFileObjectStatus", + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.status.anonymous", + "valueType": { + "$id": "939", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "940", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "939" + }, + "enumType": { + "$ref": "938" + }, + "decorators": [] + }, + { + "$id": "941", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "939" + }, + "enumType": { + "$ref": "938" + }, + "decorators": [] + }, + { + "$id": "942", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "939" + }, + "enumType": { + "$ref": "938" + }, + "decorators": [] + }, + { + "$id": "943", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "939" + }, + "enumType": { + "$ref": "938" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "944", + "kind": "enum", + "name": "VectorStoreFileObjectLastErrorCode", + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.last_error.code.anonymous", + "valueType": { + "$id": "945", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "946", + "kind": "enumvalue", + "name": "server_error", + "value": "server_error", + "valueType": { + "$ref": "945" + }, + "enumType": { + "$ref": "944" + }, + "decorators": [] + }, + { + "$id": "947", + "kind": "enumvalue", + "name": "unsupported_file", + "value": "unsupported_file", + "valueType": { + "$ref": "945" + }, + "enumType": { + "$ref": "944" + }, + "decorators": [] + }, + { + "$id": "948", + "kind": "enumvalue", + "name": "invalid_file", + "value": "invalid_file", + "valueType": { + "$ref": "945" + }, + "enumType": { + "$ref": "944" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "949", + "kind": "enum", + "name": "ChunkingStrategyResponseParamType", + "crossLanguageDefinitionId": "OpenAI.ChunkingStrategyResponseParam.type.anonymous", + "valueType": { + "$id": "950", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "951", + "kind": "enumvalue", + "name": "static", + "value": "static", + "valueType": { + "$ref": "950" + }, + "enumType": { + "$ref": "949" + }, + "decorators": [] + }, + { + "$id": "952", + "kind": "enumvalue", + "name": "other", + "value": "other", + "valueType": { + "$ref": "950" + }, + "enumType": { + "$ref": "949" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "953", + "kind": "enum", + "name": "VectorStoreSearchRequestRankingOptionsRanker", + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest.ranking_options.ranker.anonymous", + "valueType": { + "$id": "954", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "955", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "954" + }, + "enumType": { + "$ref": "953" + }, + "decorators": [] + }, + { + "$id": "956", + "kind": "enumvalue", + "name": "default-2024-11-15", + "value": "default-2024-11-15", + "valueType": { + "$ref": "954" + }, + "enumType": { + "$ref": "953" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "957", + "kind": "enum", + "name": "CreateCompletionRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.model.anonymous", + "valueType": { + "$id": "958", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "959", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-instruct", + "value": "gpt-3.5-turbo-instruct", + "valueType": { + "$ref": "958" + }, + "enumType": { + "$ref": "957" + }, + "decorators": [] + }, + { + "$id": "960", + "kind": "enumvalue", + "name": "davinci-002", + "value": "davinci-002", + "valueType": { + "$ref": "958" + }, + "enumType": { + "$ref": "957" + }, + "decorators": [] + }, + { + "$id": "961", + "kind": "enumvalue", + "name": "babbage-002", + "value": "babbage-002", + "valueType": { + "$ref": "958" + }, + "enumType": { + "$ref": "957" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "962", + "kind": "enum", + "name": "CreateCompletionResponseChoiceFinishReason", + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.finish_reason.anonymous", + "valueType": { + "$id": "963", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "964", + "kind": "enumvalue", + "name": "stop", + "value": "stop", + "valueType": { + "$ref": "963" + }, + "enumType": { + "$ref": "962" + }, + "decorators": [] + }, + { + "$id": "965", + "kind": "enumvalue", + "name": "length", + "value": "length", + "valueType": { + "$ref": "963" + }, + "enumType": { + "$ref": "962" + }, + "decorators": [] + }, + { + "$id": "966", + "kind": "enumvalue", + "name": "content_filter", + "value": "content_filter", + "valueType": { + "$ref": "963" + }, + "enumType": { + "$ref": "962" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "967", + "kind": "enum", + "name": "RealtimeClientEventType", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventType", + "valueType": { + "$id": "968", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "969", + "kind": "enumvalue", + "name": "session_update", + "value": "session.update", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "970", + "kind": "enumvalue", + "name": "input_audio_buffer_append", + "value": "input_audio_buffer.append", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "971", + "kind": "enumvalue", + "name": "input_audio_buffer_commit", + "value": "input_audio_buffer.commit", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "972", + "kind": "enumvalue", + "name": "input_audio_buffer_clear", + "value": "input_audio_buffer.clear", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "973", + "kind": "enumvalue", + "name": "output_audio_buffer_clear", + "value": "output_audio_buffer.clear", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "974", + "kind": "enumvalue", + "name": "conversation_item_create", + "value": "conversation.item.create", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "975", + "kind": "enumvalue", + "name": "conversation_item_retrieve", + "value": "conversation.item.retrieve", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "976", + "kind": "enumvalue", + "name": "conversation_item_truncate", + "value": "conversation.item.truncate", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "977", + "kind": "enumvalue", + "name": "conversation_item_delete", + "value": "conversation.item.delete", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "978", + "kind": "enumvalue", + "name": "response_create", + "value": "response.create", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "979", + "kind": "enumvalue", + "name": "response_cancel", + "value": "response.cancel", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + }, + { + "$id": "980", + "kind": "enumvalue", + "name": "transcription_session_update", + "value": "transcription_session.update", + "valueType": { + "$ref": "968" + }, + "enumType": { + "$ref": "967" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "981", + "kind": "enum", + "name": "RealtimeModality", + "crossLanguageDefinitionId": "OpenAI.RealtimeModality", + "valueType": { + "$id": "982", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "983", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "982" + }, + "enumType": { + "$ref": "981" + }, + "decorators": [] + }, + { + "$id": "984", + "kind": "enumvalue", + "name": "audio", + "value": "audio", + "valueType": { + "$ref": "982" + }, + "enumType": { + "$ref": "981" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "985", + "kind": "enum", + "name": "RealtimeRequestSessionModel", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.model.anonymous", + "valueType": { + "$id": "986", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "987", + "kind": "enumvalue", + "name": "gpt-4o-realtime-preview", + "value": "gpt-4o-realtime-preview", + "valueType": { + "$ref": "986" + }, + "enumType": { + "$ref": "985" + }, + "decorators": [] + }, + { + "$id": "988", + "kind": "enumvalue", + "name": "gpt-4o-realtime-preview-2024-10-01", + "value": "gpt-4o-realtime-preview-2024-10-01", + "valueType": { + "$ref": "986" + }, + "enumType": { + "$ref": "985" + }, + "decorators": [] + }, + { + "$id": "989", + "kind": "enumvalue", + "name": "gpt-4o-realtime-preview-2024-12-17", + "value": "gpt-4o-realtime-preview-2024-12-17", + "valueType": { + "$ref": "986" + }, + "enumType": { + "$ref": "985" + }, + "decorators": [] + }, + { + "$id": "990", + "kind": "enumvalue", + "name": "gpt-4o-mini-realtime-preview", + "value": "gpt-4o-mini-realtime-preview", + "valueType": { + "$ref": "986" + }, + "enumType": { + "$ref": "985" + }, + "decorators": [] + }, + { + "$id": "991", + "kind": "enumvalue", + "name": "gpt-4o-mini-realtime-preview-2024-12-17", + "value": "gpt-4o-mini-realtime-preview-2024-12-17", + "valueType": { + "$ref": "986" + }, + "enumType": { + "$ref": "985" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "992", + "kind": "enum", + "name": "RealtimeAudioFormat", + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioFormat", + "valueType": { + "$id": "993", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "994", + "kind": "enumvalue", + "name": "pcm16", + "value": "pcm16", + "valueType": { + "$ref": "993" + }, + "enumType": { + "$ref": "992" + }, + "decorators": [] + }, + { + "$id": "995", + "kind": "enumvalue", + "name": "g711_ulaw", + "value": "g711_ulaw", + "valueType": { + "$ref": "993" + }, + "enumType": { + "$ref": "992" + }, + "decorators": [] + }, + { + "$id": "996", + "kind": "enumvalue", + "name": "g711_alaw", + "value": "g711_alaw", + "valueType": { + "$ref": "993" + }, + "enumType": { + "$ref": "992" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "997", + "kind": "enum", + "name": "RealtimeAudioInputTranscriptionModel", + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioInputTranscriptionModel", + "valueType": { + "$id": "998", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "999", + "kind": "enumvalue", + "name": "whisper_1", + "value": "whisper-1", + "valueType": { + "$ref": "998" + }, + "enumType": { + "$ref": "997" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1000", + "kind": "enum", + "name": "RealtimeTurnDetectionType", + "crossLanguageDefinitionId": "OpenAI.RealtimeTurnDetectionType", + "valueType": { + "$id": "1001", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1002", + "kind": "enumvalue", + "name": "server_vad", + "value": "server_vad", + "valueType": { + "$ref": "1001" + }, + "enumType": { + "$ref": "1000" + }, + "doc": "Indicates that server-side voice activity detection (VAD) should be enabled, allowing the server to determine when\nadd_user_audio commands present ends of speech and should be automatically committed.\n\nThe API will also detect when the user begins talking, sending a generation_canceled command.", + "decorators": [] + }, + { + "$id": "1003", + "kind": "enumvalue", + "name": "semantic_vad", + "value": "semantic_vad", + "valueType": { + "$ref": "1001" + }, + "enumType": { + "$ref": "1000" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1004", + "kind": "enum", + "name": "RealtimeSemanticVadTurnDetectionEagerness", + "crossLanguageDefinitionId": "OpenAI.RealtimeSemanticVadTurnDetection.eagerness.anonymous", + "valueType": { + "$id": "1005", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1006", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "1005" + }, + "enumType": { + "$ref": "1004" + }, + "decorators": [] + }, + { + "$id": "1007", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "1005" + }, + "enumType": { + "$ref": "1004" + }, + "decorators": [] + }, + { + "$id": "1008", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "1005" + }, + "enumType": { + "$ref": "1004" + }, + "decorators": [] + }, + { + "$id": "1009", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1005" + }, + "enumType": { + "$ref": "1004" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1010", + "kind": "enum", + "name": "RealtimeAudioNoiseReductionType", + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioNoiseReductionType", + "valueType": { + "$id": "1011", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1012", + "kind": "enumvalue", + "name": "near_field", + "value": "near_field", + "valueType": { + "$ref": "1011" + }, + "enumType": { + "$ref": "1010" + }, + "decorators": [] + }, + { + "$id": "1013", + "kind": "enumvalue", + "name": "far_field", + "value": "far_field", + "valueType": { + "$ref": "1011" + }, + "enumType": { + "$ref": "1010" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1014", + "kind": "enum", + "name": "RealtimeToolType", + "crossLanguageDefinitionId": "OpenAI.RealtimeToolType", + "valueType": { + "$id": "1015", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1016", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "1015" + }, + "enumType": { + "$ref": "1014" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "The supported tool type discriminators for realtime tools.\nCurrently, only 'function' tools are supported.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1017", + "kind": "enum", + "name": "RealtimeToolChoiceLiteral", + "crossLanguageDefinitionId": "OpenAI.RealtimeToolChoiceLiteral", + "valueType": { + "$id": "1018", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1019", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1018" + }, + "enumType": { + "$ref": "1017" + }, + "doc": "Specifies that the model should freely determine which tool or tools, if any, to call.", + "decorators": [] + }, + { + "$id": "1020", + "kind": "enumvalue", + "name": "none", + "value": "none", + "valueType": { + "$ref": "1018" + }, + "enumType": { + "$ref": "1017" + }, + "doc": "Specifies that the model should call no tools whatsoever.", + "decorators": [] + }, + { + "$id": "1021", + "kind": "enumvalue", + "name": "required", + "value": "required", + "valueType": { + "$ref": "1018" + }, + "enumType": { + "$ref": "1017" + }, + "doc": "Specifies that the model should call at least one tool.", + "decorators": [] + } + ], + "namespace": "OpenAI", + "doc": "The available set of mode-level, string literal tool_choice options for the realtime endpoint.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1022", + "kind": "enum", + "name": "RealtimeItemType", + "crossLanguageDefinitionId": "OpenAI.RealtimeItemType", + "valueType": { + "$id": "1023", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1024", + "kind": "enumvalue", + "name": "message", + "value": "message", + "valueType": { + "$ref": "1023" + }, + "enumType": { + "$ref": "1022" + }, + "decorators": [] + }, + { + "$id": "1025", + "kind": "enumvalue", + "name": "function_call", + "value": "function_call", + "valueType": { + "$ref": "1023" + }, + "enumType": { + "$ref": "1022" + }, + "decorators": [] + }, + { + "$id": "1026", + "kind": "enumvalue", + "name": "function_call_output", + "value": "function_call_output", + "valueType": { + "$ref": "1023" + }, + "enumType": { + "$ref": "1022" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1027", + "kind": "enum", + "name": "RealtimeMessageRole", + "crossLanguageDefinitionId": "OpenAI.RealtimeMessageRole", + "valueType": { + "$id": "1028", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1029", + "kind": "enumvalue", + "name": "system", + "value": "system", + "valueType": { + "$ref": "1028" + }, + "enumType": { + "$ref": "1027" + }, + "decorators": [] + }, + { + "$id": "1030", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$ref": "1028" + }, + "enumType": { + "$ref": "1027" + }, + "decorators": [] + }, + { + "$id": "1031", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "1028" + }, + "enumType": { + "$ref": "1027" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1032", + "kind": "enum", + "name": "RealtimeItemStatus", + "crossLanguageDefinitionId": "OpenAI.RealtimeItemStatus", + "valueType": { + "$id": "1033", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1034", + "kind": "enumvalue", + "name": "in_progress", + "value": "in_progress", + "valueType": { + "$ref": "1033" + }, + "enumType": { + "$ref": "1032" + }, + "decorators": [] + }, + { + "$id": "1035", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "1033" + }, + "enumType": { + "$ref": "1032" + }, + "decorators": [] + }, + { + "$id": "1036", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "1033" + }, + "enumType": { + "$ref": "1032" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1037", + "kind": "enum", + "name": "RealtimeContentPartType", + "crossLanguageDefinitionId": "OpenAI.RealtimeContentPartType", + "valueType": { + "$id": "1038", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1039", + "kind": "enumvalue", + "name": "input_text", + "value": "input_text", + "valueType": { + "$ref": "1038" + }, + "enumType": { + "$ref": "1037" + }, + "decorators": [] + }, + { + "$id": "1040", + "kind": "enumvalue", + "name": "input_audio", + "value": "input_audio", + "valueType": { + "$ref": "1038" + }, + "enumType": { + "$ref": "1037" + }, + "decorators": [] + }, + { + "$id": "1041", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "1038" + }, + "enumType": { + "$ref": "1037" + }, + "decorators": [] + }, + { + "$id": "1042", + "kind": "enumvalue", + "name": "audio", + "value": "audio", + "valueType": { + "$ref": "1038" + }, + "enumType": { + "$ref": "1037" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "1043", + "kind": "enum", + "name": "RealtimeResponseCreateParamsConversation", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.conversation.anonymous", + "valueType": { + "$id": "1044", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1045", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1044" + }, + "enumType": { + "$ref": "1043" + }, + "decorators": [] + }, + { + "$id": "1046", + "kind": "enumvalue", + "name": "none", + "value": "none", + "valueType": { + "$ref": "1044" + }, + "enumType": { + "$ref": "1043" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1047", + "kind": "enum", + "name": "RealtimeTranscriptionSessionCreateRequestModality", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.modality.anonymous", + "valueType": { + "$id": "1048", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1049", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "1048" + }, + "enumType": { + "$ref": "1047" + }, + "decorators": [] + }, + { + "$id": "1050", + "kind": "enumvalue", + "name": "audio", + "value": "audio", + "valueType": { + "$ref": "1048" + }, + "enumType": { + "$ref": "1047" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1051", + "kind": "enum", + "name": "RealtimeTranscriptionSessionCreateRequestInputAudioFormat", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_format.anonymous", + "valueType": { + "$id": "1052", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1053", + "kind": "enumvalue", + "name": "pcm16", + "value": "pcm16", + "valueType": { + "$ref": "1052" + }, + "enumType": { + "$ref": "1051" + }, + "decorators": [] + }, + { + "$id": "1054", + "kind": "enumvalue", + "name": "g711_ulaw", + "value": "g711_ulaw", + "valueType": { + "$ref": "1052" + }, + "enumType": { + "$ref": "1051" + }, + "decorators": [] + }, + { + "$id": "1055", + "kind": "enumvalue", + "name": "g711_alaw", + "value": "g711_alaw", + "valueType": { + "$ref": "1052" + }, + "enumType": { + "$ref": "1051" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1056", + "kind": "enum", + "name": "RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_transcription.model.anonymous", + "valueType": { + "$id": "1057", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1058", + "kind": "enumvalue", + "name": "gpt-4o-transcribe", + "value": "gpt-4o-transcribe", + "valueType": { + "$ref": "1057" + }, + "enumType": { + "$ref": "1056" + }, + "decorators": [] + }, + { + "$id": "1059", + "kind": "enumvalue", + "name": "gpt-4o-mini-transcribe", + "value": "gpt-4o-mini-transcribe", + "valueType": { + "$ref": "1057" + }, + "enumType": { + "$ref": "1056" + }, + "decorators": [] + }, + { + "$id": "1060", + "kind": "enumvalue", + "name": "whisper-1", + "value": "whisper-1", + "valueType": { + "$ref": "1057" + }, + "enumType": { + "$ref": "1056" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1061", + "kind": "enum", + "name": "RealtimeTranscriptionSessionCreateRequestTurnDetectionType", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.type.anonymous", + "valueType": { + "$id": "1062", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1063", + "kind": "enumvalue", + "name": "server_vad", + "value": "server_vad", + "valueType": { + "$ref": "1062" + }, + "enumType": { + "$ref": "1061" + }, + "decorators": [] + }, + { + "$id": "1064", + "kind": "enumvalue", + "name": "semantic_vad", + "value": "semantic_vad", + "valueType": { + "$ref": "1062" + }, + "enumType": { + "$ref": "1061" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1065", + "kind": "enum", + "name": "RealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.eagerness.anonymous", + "valueType": { + "$id": "1066", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1067", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "1066" + }, + "enumType": { + "$ref": "1065" + }, + "decorators": [] + }, + { + "$id": "1068", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "1066" + }, + "enumType": { + "$ref": "1065" + }, + "decorators": [] + }, + { + "$id": "1069", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "1066" + }, + "enumType": { + "$ref": "1065" + }, + "decorators": [] + }, + { + "$id": "1070", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1066" + }, + "enumType": { + "$ref": "1065" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1071", + "kind": "enum", + "name": "RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_noise_reduction.type.anonymous", + "valueType": { + "$id": "1072", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1073", + "kind": "enumvalue", + "name": "near_field", + "value": "near_field", + "valueType": { + "$ref": "1072" + }, + "enumType": { + "$ref": "1071" + }, + "decorators": [] + }, + { + "$id": "1074", + "kind": "enumvalue", + "name": "far_field", + "value": "far_field", + "valueType": { + "$ref": "1072" + }, + "enumType": { + "$ref": "1071" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1075", + "kind": "enum", + "name": "RealtimeServerEventType", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventType", + "valueType": { + "$id": "1076", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1077", + "kind": "enumvalue", + "name": "error", + "value": "error", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1078", + "kind": "enumvalue", + "name": "session_created", + "value": "session.created", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1079", + "kind": "enumvalue", + "name": "session_updated", + "value": "session.updated", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1080", + "kind": "enumvalue", + "name": "conversation_created", + "value": "conversation.created", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1081", + "kind": "enumvalue", + "name": "conversation_item_input_audio_transcription_completed", + "value": "conversation.item.input_audio_transcription.completed", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1082", + "kind": "enumvalue", + "name": "conversation_item_input_audio_transcription_delta", + "value": "conversation.item.input_audio_transcription.delta", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1083", + "kind": "enumvalue", + "name": "conversation_item_input_audio_transcription_failed", + "value": "conversation.item.input_audio_transcription.failed", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1084", + "kind": "enumvalue", + "name": "conversation_item_created", + "value": "conversation.item.created", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1085", + "kind": "enumvalue", + "name": "conversation_item_retrieved", + "value": "conversation.item.retrieved", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1086", + "kind": "enumvalue", + "name": "conversation_item_truncated", + "value": "conversation.item.truncated", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1087", + "kind": "enumvalue", + "name": "conversation_item_deleted", + "value": "conversation.item.deleted", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1088", + "kind": "enumvalue", + "name": "input_audio_buffer_committed", + "value": "input_audio_buffer.committed", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1089", + "kind": "enumvalue", + "name": "input_audio_buffer_cleared", + "value": "input_audio_buffer.cleared", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1090", + "kind": "enumvalue", + "name": "input_audio_buffer_speech_started", + "value": "input_audio_buffer.speech_started", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1091", + "kind": "enumvalue", + "name": "input_audio_buffer_speech_stopped", + "value": "input_audio_buffer.speech_stopped", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1092", + "kind": "enumvalue", + "name": "output_audio_buffer_cleared", + "value": "output_audio_buffer.cleared", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1093", + "kind": "enumvalue", + "name": "output_audio_buffer_started", + "value": "output_audio_buffer.started", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1094", + "kind": "enumvalue", + "name": "output_audio_buffer_stopped", + "value": "output_audio_buffer.stopped", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1095", + "kind": "enumvalue", + "name": "response_created", + "value": "response.created", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1096", + "kind": "enumvalue", + "name": "response_done", + "value": "response.done", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1097", + "kind": "enumvalue", + "name": "response_output_item_added", + "value": "response.output_item.added", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1098", + "kind": "enumvalue", + "name": "response_output_item_done", + "value": "response.output_item.done", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1099", + "kind": "enumvalue", + "name": "response_content_part_added", + "value": "response.content_part.added", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1100", + "kind": "enumvalue", + "name": "response_content_part_done", + "value": "response.content_part.done", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1101", + "kind": "enumvalue", + "name": "response_text_delta", + "value": "response.text.delta", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1102", + "kind": "enumvalue", + "name": "response_text_done", + "value": "response.text.done", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1103", + "kind": "enumvalue", + "name": "response_audio_transcript_delta", + "value": "response.audio_transcript.delta", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1104", + "kind": "enumvalue", + "name": "response_audio_transcript_done", + "value": "response.audio_transcript.done", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1105", + "kind": "enumvalue", + "name": "response_audio_delta", + "value": "response.audio.delta", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1106", + "kind": "enumvalue", + "name": "response_audio_done", + "value": "response.audio.done", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1107", + "kind": "enumvalue", + "name": "response_function_call_arguments_delta", + "value": "response.function_call_arguments.delta", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1108", + "kind": "enumvalue", + "name": "response_function_call_arguments_done", + "value": "response.function_call_arguments.done", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1109", + "kind": "enumvalue", + "name": "transcription_session_updated", + "value": "transcription_session.updated", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + }, + { + "$id": "1110", + "kind": "enumvalue", + "name": "rate_limits_updated", + "value": "rate_limits.updated", + "valueType": { + "$ref": "1076" + }, + "enumType": { + "$ref": "1075" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "1111", + "kind": "enum", + "name": "RealtimeResponseStatus", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status.anonymous", + "valueType": { + "$id": "1112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1113", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "1112" + }, + "enumType": { + "$ref": "1111" + }, + "decorators": [] + }, + { + "$id": "1114", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "1112" + }, + "enumType": { + "$ref": "1111" + }, + "decorators": [] + }, + { + "$id": "1115", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "1112" + }, + "enumType": { + "$ref": "1111" + }, + "decorators": [] + }, + { + "$id": "1116", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "1112" + }, + "enumType": { + "$ref": "1111" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "1117", + "kind": "enum", + "name": "RealtimeResponseStatusDetailsType", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details.type.anonymous", + "valueType": { + "$id": "1118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1119", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "1118" + }, + "enumType": { + "$ref": "1117" + }, + "decorators": [] + }, + { + "$id": "1120", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "1118" + }, + "enumType": { + "$ref": "1117" + }, + "decorators": [] + }, + { + "$id": "1121", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$ref": "1118" + }, + "enumType": { + "$ref": "1117" + }, + "decorators": [] + }, + { + "$id": "1122", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$ref": "1118" + }, + "enumType": { + "$ref": "1117" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "1123", + "kind": "enum", + "name": "RealtimeResponseStatusDetailsReason", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details.reason.anonymous", + "valueType": { + "$id": "1124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1125", + "kind": "enumvalue", + "name": "turn_detected", + "value": "turn_detected", + "valueType": { + "$ref": "1124" + }, + "enumType": { + "$ref": "1123" + }, + "decorators": [] + }, + { + "$id": "1126", + "kind": "enumvalue", + "name": "client_cancelled", + "value": "client_cancelled", + "valueType": { + "$ref": "1124" + }, + "enumType": { + "$ref": "1123" + }, + "decorators": [] + }, + { + "$id": "1127", + "kind": "enumvalue", + "name": "max_output_tokens", + "value": "max_output_tokens", + "valueType": { + "$ref": "1124" + }, + "enumType": { + "$ref": "1123" + }, + "decorators": [] + }, + { + "$id": "1128", + "kind": "enumvalue", + "name": "content_filter", + "value": "content_filter", + "valueType": { + "$ref": "1124" + }, + "enumType": { + "$ref": "1123" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "1129", + "kind": "enum", + "name": "RealtimeResponseModality", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.modality.anonymous", + "valueType": { + "$id": "1130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1131", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "1130" + }, + "enumType": { + "$ref": "1129" + }, + "decorators": [] + }, + { + "$id": "1132", + "kind": "enumvalue", + "name": "audio", + "value": "audio", + "valueType": { + "$ref": "1130" + }, + "enumType": { + "$ref": "1129" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "1133", + "kind": "enum", + "name": "RealtimeResponseOutputAudioFormat", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.output_audio_format.anonymous", + "valueType": { + "$id": "1134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1135", + "kind": "enumvalue", + "name": "pcm16", + "value": "pcm16", + "valueType": { + "$ref": "1134" + }, + "enumType": { + "$ref": "1133" + }, + "decorators": [] + }, + { + "$id": "1136", + "kind": "enumvalue", + "name": "g711_ulaw", + "value": "g711_ulaw", + "valueType": { + "$ref": "1134" + }, + "enumType": { + "$ref": "1133" + }, + "decorators": [] + }, + { + "$id": "1137", + "kind": "enumvalue", + "name": "g711_alaw", + "value": "g711_alaw", + "valueType": { + "$ref": "1134" + }, + "enumType": { + "$ref": "1133" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "1138", + "kind": "enum", + "name": "RealtimeTranscriptionSessionCreateResponseModality", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.modality.anonymous", + "valueType": { + "$id": "1139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1140", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "1139" + }, + "enumType": { + "$ref": "1138" + }, + "decorators": [] + }, + { + "$id": "1141", + "kind": "enumvalue", + "name": "audio", + "value": "audio", + "valueType": { + "$ref": "1139" + }, + "enumType": { + "$ref": "1138" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "1142", + "kind": "enum", + "name": "RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.input_audio_transcription.model.anonymous", + "valueType": { + "$id": "1143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1144", + "kind": "enumvalue", + "name": "gpt-4o-transcribe", + "value": "gpt-4o-transcribe", + "valueType": { + "$ref": "1143" + }, + "enumType": { + "$ref": "1142" + }, + "decorators": [] + }, + { + "$id": "1145", + "kind": "enumvalue", + "name": "gpt-4o-mini-transcribe", + "value": "gpt-4o-mini-transcribe", + "valueType": { + "$ref": "1143" + }, + "enumType": { + "$ref": "1142" + }, + "decorators": [] + }, + { + "$id": "1146", + "kind": "enumvalue", + "name": "whisper-1", + "value": "whisper-1", + "valueType": { + "$ref": "1143" + }, + "enumType": { + "$ref": "1142" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "1147", + "kind": "enum", + "name": "RealtimeSessionCreateRequestModel", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.model.anonymous", + "valueType": { + "$id": "1148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1149", + "kind": "enumvalue", + "name": "gpt-4o-realtime-preview", + "value": "gpt-4o-realtime-preview", + "valueType": { + "$ref": "1148" + }, + "enumType": { + "$ref": "1147" + }, + "decorators": [] + }, + { + "$id": "1150", + "kind": "enumvalue", + "name": "gpt-4o-realtime-preview-2024-10-01", + "value": "gpt-4o-realtime-preview-2024-10-01", + "valueType": { + "$ref": "1148" + }, + "enumType": { + "$ref": "1147" + }, + "decorators": [] + }, + { + "$id": "1151", + "kind": "enumvalue", + "name": "gpt-4o-realtime-preview-2024-12-17", + "value": "gpt-4o-realtime-preview-2024-12-17", + "valueType": { + "$ref": "1148" + }, + "enumType": { + "$ref": "1147" + }, + "decorators": [] + }, + { + "$id": "1152", + "kind": "enumvalue", + "name": "gpt-4o-realtime-preview-2025-06-03", + "value": "gpt-4o-realtime-preview-2025-06-03", + "valueType": { + "$ref": "1148" + }, + "enumType": { + "$ref": "1147" + }, + "decorators": [] + }, + { + "$id": "1153", + "kind": "enumvalue", + "name": "gpt-4o-mini-realtime-preview", + "value": "gpt-4o-mini-realtime-preview", + "valueType": { + "$ref": "1148" + }, + "enumType": { + "$ref": "1147" + }, + "decorators": [] + }, + { + "$id": "1154", + "kind": "enumvalue", + "name": "gpt-4o-mini-realtime-preview-2024-12-17", + "value": "gpt-4o-mini-realtime-preview-2024-12-17", + "valueType": { + "$ref": "1148" + }, + "enumType": { + "$ref": "1147" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1155", + "kind": "enum", + "name": "RealtimeSessionCreateRequestTurnDetectionType", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.type.anonymous", + "valueType": { + "$id": "1156", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1157", + "kind": "enumvalue", + "name": "server_vad", + "value": "server_vad", + "valueType": { + "$ref": "1156" + }, + "enumType": { + "$ref": "1155" + }, + "decorators": [] + }, + { + "$id": "1158", + "kind": "enumvalue", + "name": "semantic_vad", + "value": "semantic_vad", + "valueType": { + "$ref": "1156" + }, + "enumType": { + "$ref": "1155" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1159", + "kind": "enum", + "name": "RealtimeSessionCreateRequestTurnDetectionEagerness", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.eagerness.anonymous", + "valueType": { + "$id": "1160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1161", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "1160" + }, + "enumType": { + "$ref": "1159" + }, + "decorators": [] + }, + { + "$id": "1162", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "1160" + }, + "enumType": { + "$ref": "1159" + }, + "decorators": [] + }, + { + "$id": "1163", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "1160" + }, + "enumType": { + "$ref": "1159" + }, + "decorators": [] + }, + { + "$id": "1164", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1160" + }, + "enumType": { + "$ref": "1159" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1165", + "kind": "enum", + "name": "RealtimeSessionCreateRequestInputAudioNoiseReductionType", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_noise_reduction.type.anonymous", + "valueType": { + "$id": "1166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1167", + "kind": "enumvalue", + "name": "near_field", + "value": "near_field", + "valueType": { + "$ref": "1166" + }, + "enumType": { + "$ref": "1165" + }, + "decorators": [] + }, + { + "$id": "1168", + "kind": "enumvalue", + "name": "far_field", + "value": "far_field", + "valueType": { + "$ref": "1166" + }, + "enumType": { + "$ref": "1165" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1169", + "kind": "enum", + "name": "CreateUploadRequestPurpose", + "crossLanguageDefinitionId": "OpenAI.CreateUploadRequest.purpose.anonymous", + "valueType": { + "$id": "1170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1171", + "kind": "enumvalue", + "name": "assistants", + "value": "assistants", + "valueType": { + "$ref": "1170" + }, + "enumType": { + "$ref": "1169" + }, + "decorators": [] + }, + { + "$id": "1172", + "kind": "enumvalue", + "name": "batch", + "value": "batch", + "valueType": { + "$ref": "1170" + }, + "enumType": { + "$ref": "1169" + }, + "decorators": [] + }, + { + "$id": "1173", + "kind": "enumvalue", + "name": "fine-tune", + "value": "fine-tune", + "valueType": { + "$ref": "1170" + }, + "enumType": { + "$ref": "1169" + }, + "decorators": [] + }, + { + "$id": "1174", + "kind": "enumvalue", + "name": "vision", + "value": "vision", + "valueType": { + "$ref": "1170" + }, + "enumType": { + "$ref": "1169" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "1175", + "kind": "enum", + "name": "UploadStatus", + "crossLanguageDefinitionId": "OpenAI.Upload.status.anonymous", + "valueType": { + "$id": "1176", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1177", + "kind": "enumvalue", + "name": "pending", + "value": "pending", + "valueType": { + "$ref": "1176" + }, + "enumType": { + "$ref": "1175" + }, + "decorators": [] + }, + { + "$id": "1178", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$ref": "1176" + }, + "enumType": { + "$ref": "1175" + }, + "decorators": [] + }, + { + "$id": "1179", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$ref": "1176" + }, + "enumType": { + "$ref": "1175" + }, + "decorators": [] + }, + { + "$id": "1180", + "kind": "enumvalue", + "name": "expired", + "value": "expired", + "valueType": { + "$ref": "1176" + }, + "enumType": { + "$ref": "1175" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "1181", + "kind": "enum", + "name": "FineTuneChatCompletionRequestAssistantMessageWeight", + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage.weight.anonymous", + "valueType": { + "$id": "1182", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1183", + "kind": "enumvalue", + "name": "0", + "value": "0", + "valueType": { + "$ref": "1182" + }, + "enumType": { + "$ref": "1181" + }, + "decorators": [] + }, + { + "$id": "1184", + "kind": "enumvalue", + "name": "1", + "value": "1", + "valueType": { + "$ref": "1182" + }, + "enumType": { + "$ref": "1181" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "1185", + "kind": "enum", + "name": "MessageDeltaContentImageFileObjectImageFileDetail", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageFileObject.image_file.detail.anonymous", + "valueType": { + "$id": "1186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1187", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1186" + }, + "enumType": { + "$ref": "1185" + }, + "decorators": [] + }, + { + "$id": "1188", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "1186" + }, + "enumType": { + "$ref": "1185" + }, + "decorators": [] + }, + { + "$id": "1189", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "1186" + }, + "enumType": { + "$ref": "1185" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "1190", + "kind": "enum", + "name": "MessageDeltaContentImageUrlObjectImageUrlDetail", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageUrlObject.image_url.detail.anonymous", + "valueType": { + "$id": "1191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1192", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1191" + }, + "enumType": { + "$ref": "1190" + }, + "decorators": [] + }, + { + "$id": "1193", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "1191" + }, + "enumType": { + "$ref": "1190" + }, + "decorators": [] + }, + { + "$id": "1194", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "1191" + }, + "enumType": { + "$ref": "1190" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "1195", + "kind": "enum", + "name": "MessageDeltaObjectDeltaRole", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaObject.delta.role.anonymous", + "valueType": { + "$id": "1196", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1197", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$ref": "1196" + }, + "enumType": { + "$ref": "1195" + }, + "decorators": [] + }, + { + "$id": "1198", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "1196" + }, + "enumType": { + "$ref": "1195" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "1199", + "kind": "enum", + "name": "ChatCompletionCollectionOrder", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionCollectionOrder", + "valueType": { + "$id": "1200", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1201", + "kind": "enumvalue", + "name": "Ascending", + "value": "asc", + "valueType": { + "$ref": "1200" + }, + "enumType": { + "$ref": "1199" + }, + "decorators": [] + }, + { + "$id": "1202", + "kind": "enumvalue", + "name": "Descending", + "value": "desc", + "valueType": { + "$ref": "1200" + }, + "enumType": { + "$ref": "1199" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "1203", + "kind": "enum", + "name": "ChatCompletionMessageCollectionOrder", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageCollectionOrder", + "valueType": { + "$id": "1204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1205", + "kind": "enumvalue", + "name": "Ascending", + "value": "asc", + "valueType": { + "$ref": "1204" + }, + "enumType": { + "$ref": "1203" + }, + "decorators": [] + }, + { + "$id": "1206", + "kind": "enumvalue", + "name": "Descending", + "value": "desc", + "valueType": { + "$ref": "1204" + }, + "enumType": { + "$ref": "1203" + }, + "decorators": [] + } + ], + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "1207", + "kind": "enum", + "name": "DotNetCombinedChunkingStrategyParamType", + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedChunkingStrategyParam.type.anonymous", + "valueType": { + "$id": "1208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1209", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1208" + }, + "enumType": { + "$ref": "1207" + }, + "decorators": [] + }, + { + "$id": "1210", + "kind": "enumvalue", + "name": "static", + "value": "static", + "valueType": { + "$ref": "1208" + }, + "enumType": { + "$ref": "1207" + }, + "decorators": [] + }, + { + "$id": "1211", + "kind": "enumvalue", + "name": "other", + "value": "other", + "valueType": { + "$ref": "1208" + }, + "enumType": { + "$ref": "1207" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output", + "decorators": [] + }, + { + "$id": "1212", + "kind": "enum", + "name": "CreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum", + "valueType": { + "$id": "1213", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1214", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1213" + }, + "enumType": { + "$ref": "1212" + }, + "decorators": [] + } + ], + "access": "public", + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "1215", + "kind": "enum", + "name": "CreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum", + "valueType": { + "$id": "1216", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1217", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1216" + }, + "enumType": { + "$ref": "1215" + }, + "decorators": [] + } + ], + "access": "public", + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "1218", + "kind": "enum", + "name": "CreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum", + "valueType": { + "$id": "1219", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1220", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1219" + }, + "enumType": { + "$ref": "1218" + }, + "decorators": [] + } + ], + "access": "public", + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "1221", + "kind": "enum", + "name": "CreateFineTuningJobRequestHyperparametersBetaChoiceEnum", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestHyperparametersBetaChoiceEnum", + "valueType": { + "$id": "1222", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1223", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "1222" + }, + "enumType": { + "$ref": "1221" + }, + "decorators": [] + } + ], + "access": "public", + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "1224", + "kind": "enum", + "name": "DotNetResponseReasoningEffortLevel", + "crossLanguageDefinitionId": "OpenAI.DotNetResponseReasoningEffortLevel", + "valueType": { + "$id": "1225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1226", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "1225" + }, + "enumType": { + "$ref": "1224" + }, + "decorators": [] + }, + { + "$id": "1227", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "1225" + }, + "enumType": { + "$ref": "1224" + }, + "decorators": [] + }, + { + "$id": "1228", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "1225" + }, + "enumType": { + "$ref": "1224" + }, + "decorators": [] + } + ], + "access": "public", + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output", + "decorators": [] + }, + { + "$id": "1229", + "kind": "enum", + "name": "DotNetResponseWebSearchContextSize", + "crossLanguageDefinitionId": "OpenAI.DotNetResponseWebSearchContextSize", + "valueType": { + "$id": "1230", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1231", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "1230" + }, + "enumType": { + "$ref": "1229" + }, + "decorators": [] + }, + { + "$id": "1232", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "1230" + }, + "enumType": { + "$ref": "1229" + }, + "decorators": [] + }, + { + "$id": "1233", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "1230" + }, + "enumType": { + "$ref": "1229" + }, + "decorators": [] + } + ], + "access": "public", + "namespace": "OpenAI", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output", + "decorators": [] + }, + { + "$id": "1234", + "kind": "enum", + "name": "DotNetAudioVoiceIds", + "crossLanguageDefinitionId": "OpenAI.DotNetAudioVoiceIds", + "valueType": { + "$id": "1235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1236", + "kind": "enumvalue", + "name": "alloy", + "value": "alloy", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1237", + "kind": "enumvalue", + "name": "ash", + "value": "ash", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1238", + "kind": "enumvalue", + "name": "ballad", + "value": "ballad", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1239", + "kind": "enumvalue", + "name": "coral", + "value": "coral", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1240", + "kind": "enumvalue", + "name": "echo", + "value": "echo", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1241", + "kind": "enumvalue", + "name": "fable", + "value": "fable", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1242", + "kind": "enumvalue", + "name": "onyx", + "value": "onyx", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1243", + "kind": "enumvalue", + "name": "nova", + "value": "nova", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1244", + "kind": "enumvalue", + "name": "sage", + "value": "sage", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1245", + "kind": "enumvalue", + "name": "shimmer", + "value": "shimmer", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + }, + { + "$id": "1246", + "kind": "enumvalue", + "name": "verse", + "value": "verse", + "valueType": { + "$ref": "1235" + }, + "enumType": { + "$ref": "1234" + }, + "decorators": [] + } + ], + "access": "public", + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output", + "decorators": [] + }, + { + "$id": "1247", + "kind": "enum", + "name": "DotNetChatVoiceIds", + "crossLanguageDefinitionId": "OpenAI.DotNetChatVoiceIds", + "valueType": { + "$id": "1248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1249", + "kind": "enumvalue", + "name": "alloy", + "value": "alloy", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1250", + "kind": "enumvalue", + "name": "ash", + "value": "ash", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1251", + "kind": "enumvalue", + "name": "ballad", + "value": "ballad", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1252", + "kind": "enumvalue", + "name": "coral", + "value": "coral", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1253", + "kind": "enumvalue", + "name": "echo", + "value": "echo", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1254", + "kind": "enumvalue", + "name": "fable", + "value": "fable", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1255", + "kind": "enumvalue", + "name": "onyx", + "value": "onyx", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1256", + "kind": "enumvalue", + "name": "nova", + "value": "nova", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1257", + "kind": "enumvalue", + "name": "sage", + "value": "sage", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1258", + "kind": "enumvalue", + "name": "shimmer", + "value": "shimmer", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + }, + { + "$id": "1259", + "kind": "enumvalue", + "name": "verse", + "value": "verse", + "valueType": { + "$ref": "1248" + }, + "enumType": { + "$ref": "1247" + }, + "decorators": [] + } + ], + "access": "public", + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output", + "decorators": [] + }, + { + "$id": "1260", + "kind": "enum", + "name": "DotNetRealtimeVoiceIds", + "crossLanguageDefinitionId": "OpenAI.DotNetRealtimeVoiceIds", + "valueType": { + "$id": "1261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "1262", + "kind": "enumvalue", + "name": "alloy", + "value": "alloy", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1263", + "kind": "enumvalue", + "name": "ash", + "value": "ash", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1264", + "kind": "enumvalue", + "name": "ballad", + "value": "ballad", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1265", + "kind": "enumvalue", + "name": "coral", + "value": "coral", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1266", + "kind": "enumvalue", + "name": "echo", + "value": "echo", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1267", + "kind": "enumvalue", + "name": "fable", + "value": "fable", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1268", + "kind": "enumvalue", + "name": "onyx", + "value": "onyx", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1269", + "kind": "enumvalue", + "name": "nova", + "value": "nova", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1270", + "kind": "enumvalue", + "name": "sage", + "value": "sage", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1271", + "kind": "enumvalue", + "name": "shimmer", + "value": "shimmer", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + }, + { + "$id": "1272", + "kind": "enumvalue", + "name": "verse", + "value": "verse", + "valueType": { + "$ref": "1261" + }, + "enumType": { + "$ref": "1260" + }, + "decorators": [] + } + ], + "access": "public", + "namespace": "OpenAI", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output", + "decorators": [] + } + ], + "constants": [ + { + "$id": "1273", + "kind": "constant", + "name": "ListAssistantsResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1275", + "kind": "constant", + "name": "AssistantObjectObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistant", + "decorators": [] + }, + { + "$id": "1277", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1279", + "kind": "constant", + "name": "DeleteAssistantResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1280", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistant.deleted", + "decorators": [] + }, + { + "$id": "1281", + "kind": "constant", + "name": "VadConfigType", + "namespace": "OpenAI", + "usage": "Input", + "valueType": { + "$id": "1282", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "server_vad", + "decorators": [] + }, + { + "$id": "1283", + "kind": "constant", + "name": "CreateTranscriptionResponseVerboseJsonTask", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1284", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "transcribe", + "decorators": [] + }, + { + "$id": "1285", + "kind": "constant", + "name": "CreateTranslationResponseVerboseJsonTask", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "translate", + "decorators": [] + }, + { + "$id": "1287", + "kind": "constant", + "name": "CreateBatchRequestCompletion_window", + "namespace": "", + "usage": "Spread,Json", + "valueType": { + "$id": "1288", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "24h", + "decorators": [] + }, + { + "$id": "1289", + "kind": "constant", + "name": "BatchObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "batch", + "decorators": [] + }, + { + "$id": "1291", + "kind": "constant", + "name": "BatchErrorsObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1292", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1293", + "kind": "constant", + "name": "ListBatchesResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1295", + "kind": "constant", + "name": "ChatCompletionListObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1297", + "kind": "constant", + "name": "ChatCompletionResponseMessageAnnotationType", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1298", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "url_citation", + "decorators": [] + }, + { + "$id": "1299", + "kind": "constant", + "name": "CreateChatCompletionResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1300", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "chat.completion", + "decorators": [] + }, + { + "$id": "1301", + "kind": "constant", + "name": "CreateChatCompletionRequestWebSearchOptionsUserLocation1Type", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1302", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "approximate", + "decorators": [] + }, + { + "$id": "1303", + "kind": "constant", + "name": "ChatCompletionNamedToolChoiceType", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1304", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "function", + "decorators": [] + }, + { + "$id": "1305", + "kind": "constant", + "name": "CreateChatCompletionRequestToolChoice1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "none", + "decorators": [] + }, + { + "$id": "1307", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1309", + "kind": "constant", + "name": "ChatCompletionMessageToolCallChunkType", + "namespace": "OpenAI", + "usage": "Output", + "valueType": { + "$id": "1310", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "function", + "decorators": [] + }, + { + "$id": "1311", + "kind": "constant", + "name": "CreateChatCompletionStreamResponseObject", + "namespace": "OpenAI", + "access": "public", + "usage": "Output", + "valueType": { + "$id": "1312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "chat.completion.chunk", + "decorators": [] + }, + { + "$id": "1313", + "kind": "constant", + "name": "ChatCompletionDeletedObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "chat.completion.deleted", + "decorators": [] + }, + { + "$id": "1315", + "kind": "constant", + "name": "ChatCompletionMessageListObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1317", + "kind": "constant", + "name": "EmbeddingObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1318", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "embedding", + "decorators": [] + }, + { + "$id": "1319", + "kind": "constant", + "name": "CreateEmbeddingResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1320", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1321", + "kind": "constant", + "name": "ListFilesResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1322", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1323", + "kind": "constant", + "name": "OpenAIFileObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1324", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "file", + "decorators": [] + }, + { + "$id": "1325", + "kind": "constant", + "name": "DeleteFileResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1326", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "file", + "decorators": [] + }, + { + "$id": "1327", + "kind": "constant", + "name": "FineTuningCheckpointPermissionObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1328", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "checkpoint.permission", + "decorators": [] + }, + { + "$id": "1329", + "kind": "constant", + "name": "ListFineTuningCheckpointPermissionResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1330", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1331", + "kind": "constant", + "name": "DeleteFineTuningCheckpointPermissionResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "checkpoint.permission", + "decorators": [] + }, + { + "$id": "1333", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1334", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1335", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1336", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1337", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1338", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1339", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1340", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1341", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1342", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1343", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1344", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1345", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1346", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1347", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1349", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1350", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1351", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1352", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1353", + "kind": "constant", + "name": "EvalItemType", + "namespace": "OpenAI", + "usage": "Input,Output,Json", + "valueType": { + "$id": "1354", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "message", + "decorators": [] + }, + { + "$id": "1355", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1356", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1357", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1358", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1359", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1360", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1361", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1362", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1363", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1364", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1365", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1367", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1368", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1369", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1370", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1371", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1372", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1373", + "kind": "constant", + "name": "FineTuningJobObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1374", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "fine_tuning.job", + "decorators": [] + }, + { + "$id": "1375", + "kind": "constant", + "name": "ListPaginatedFineTuningJobsResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1376", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1377", + "kind": "constant", + "name": "FineTuningJobCheckpointObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1378", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "fine_tuning.job.checkpoint", + "decorators": [] + }, + { + "$id": "1379", + "kind": "constant", + "name": "ListFineTuningJobCheckpointsResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1380", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1381", + "kind": "constant", + "name": "FineTuningJobEventObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1382", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "fine_tuning.job.event", + "decorators": [] + }, + { + "$id": "1383", + "kind": "constant", + "name": "ListFineTuningJobEventsResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1384", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1385", + "kind": "constant", + "name": "EvalListObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1387", + "kind": "constant", + "name": "EvalObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "eval", + "decorators": [] + }, + { + "$id": "1389", + "kind": "constant", + "name": "DeleteEvalResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1390", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "eval.deleted", + "decorators": [] + }, + { + "$id": "1391", + "kind": "constant", + "name": "EvalRunListObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1392", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1393", + "kind": "constant", + "name": "EvalRunObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1394", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "eval.run", + "decorators": [] + }, + { + "$id": "1395", + "kind": "constant", + "name": "EvalCompletionsRunDataSourceParamsInputMessages1Type", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1396", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "template", + "decorators": [] + }, + { + "$id": "1397", + "kind": "constant", + "name": "EvalCompletionsRunDataSourceParamsInputMessages2Type", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1398", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "item_reference", + "decorators": [] + }, + { + "$id": "1399", + "kind": "constant", + "name": "EvalResponsesRunDataSourceParamsInputMessages1Type", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1400", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "template", + "decorators": [] + }, + { + "$id": "1401", + "kind": "constant", + "name": "EvalResponsesRunDataSourceParamsInputMessages2Type", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "item_reference", + "decorators": [] + }, + { + "$id": "1403", + "kind": "constant", + "name": "CodeInterpreterToolAutoType", + "namespace": "OpenAI", + "usage": "Input,Output,Json", + "valueType": { + "$id": "1404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1405", + "kind": "constant", + "name": "ImageGenToolModel", + "namespace": "OpenAI", + "usage": "Input,Output,Json", + "valueType": { + "$id": "1406", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "gpt-image-1", + "decorators": [] + }, + { + "$id": "1407", + "kind": "constant", + "name": "MCPToolRequireApproval2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1408", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "always", + "decorators": [] + }, + { + "$id": "1409", + "kind": "constant", + "name": "MCPToolRequireApproval3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1410", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "never", + "decorators": [] + }, + { + "$id": "1411", + "kind": "constant", + "name": "DeleteEvalRunResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1412", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "eval_run.deleted", + "decorators": [] + }, + { + "$id": "1413", + "kind": "constant", + "name": "EvalRunOutputItemListObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1414", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1415", + "kind": "constant", + "name": "EvalRunOutputItemObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1416", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "eval.run.output_item", + "decorators": [] + }, + { + "$id": "1417", + "kind": "constant", + "name": "CodeInterpreterTextOutputType", + "namespace": "OpenAI", + "usage": "Input,Output,Json", + "valueType": { + "$id": "1418", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "logs", + "decorators": [] + }, + { + "$id": "1419", + "kind": "constant", + "name": "CodeInterpreterFileOutputType", + "namespace": "OpenAI", + "usage": "Input,Output,Json", + "valueType": { + "$id": "1420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "files", + "decorators": [] + }, + { + "$id": "1421", + "kind": "constant", + "name": "LocalShellExecActionType", + "namespace": "OpenAI", + "usage": "Input,Output,Json", + "valueType": { + "$id": "1422", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "exec", + "decorators": [] + }, + { + "$id": "1423", + "kind": "constant", + "name": "ResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "response", + "decorators": [] + }, + { + "$id": "1425", + "kind": "constant", + "name": "DeleteResponseResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1426", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "response", + "decorators": [] + }, + { + "$id": "1427", + "kind": "constant", + "name": "DeleteResponseResponseDeleted", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1428", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, + "decorators": [] + }, + { + "$id": "1429", + "kind": "constant", + "name": "ResponseItemListObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1430", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1431", + "kind": "constant", + "name": "AssistantToolsFileSearchTypeOnlyType", + "namespace": "OpenAI", + "usage": "Input,Output,Json", + "valueType": { + "$id": "1432", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "file_search", + "decorators": [] + }, + { + "$id": "1433", + "kind": "constant", + "name": "MessageObjectObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1434", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "thread.message", + "decorators": [] + }, + { + "$id": "1435", + "kind": "constant", + "name": "ListMessagesResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1436", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1437", + "kind": "constant", + "name": "DeleteMessageResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1438", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "thread.message.deleted", + "decorators": [] + }, + { + "$id": "1439", + "kind": "constant", + "name": "CreateModerationRequestInput2Type", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1440", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image_url", + "decorators": [] + }, + { + "$id": "1441", + "kind": "constant", + "name": "CreateModerationRequestInput3Type", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1442", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text", + "decorators": [] + }, + { + "$id": "1443", + "kind": "constant", + "name": "RunObjectObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1444", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "thread.run", + "decorators": [] + }, + { + "$id": "1445", + "kind": "constant", + "name": "RunObjectRequiredAction1Type", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1446", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "submit_tool_outputs", + "decorators": [] + }, + { + "$id": "1447", + "kind": "constant", + "name": "RunToolCallObjectType", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1448", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "function", + "decorators": [] + }, + { + "$id": "1449", + "kind": "constant", + "name": "ListRunsResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1450", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1451", + "kind": "constant", + "name": "ListRunStepsResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1452", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1453", + "kind": "constant", + "name": "RunStepObjectObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1454", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "thread.run.step", + "decorators": [] + }, + { + "$id": "1455", + "kind": "constant", + "name": "ThreadObjectObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1456", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "thread", + "decorators": [] + }, + { + "$id": "1457", + "kind": "constant", + "name": "DeleteThreadResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1458", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "thread.deleted", + "decorators": [] + }, + { + "$id": "1459", + "kind": "constant", + "name": "ListVectorStoresResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1460", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1461", + "kind": "constant", + "name": "VectorStoreObjectObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1462", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "vector_store", + "decorators": [] + }, + { + "$id": "1463", + "kind": "constant", + "name": "DeleteVectorStoreResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1464", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "vector_store.deleted", + "decorators": [] + }, + { + "$id": "1465", + "kind": "constant", + "name": "VectorStoreFileBatchObjectObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1466", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "vector_store.files_batch", + "decorators": [] + }, + { + "$id": "1467", + "kind": "constant", + "name": "ListVectorStoreFilesResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1468", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1469", + "kind": "constant", + "name": "VectorStoreFileObjectObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1470", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "vector_store.file", + "decorators": [] + }, + { + "$id": "1471", + "kind": "constant", + "name": "DeleteVectorStoreFileResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1472", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "vector_store.file.deleted", + "decorators": [] + }, + { + "$id": "1473", + "kind": "constant", + "name": "VectorStoreFileContentResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1474", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "vector_store.file_content.page", + "decorators": [] + }, + { + "$id": "1475", + "kind": "constant", + "name": "VectorStoreSearchResultsPageObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1476", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "vector_store.search_results.page", + "decorators": [] + }, + { + "$id": "1477", + "kind": "constant", + "name": "VectorStoreSearchResultContentObjectType", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1478", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text", + "decorators": [] + }, + { + "$id": "1479", + "kind": "constant", + "name": "CreateCompletionResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1480", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text_completion", + "decorators": [] + }, + { + "$id": "1481", + "kind": "constant", + "name": "ListModelsResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1482", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1483", + "kind": "constant", + "name": "ModelObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1484", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "model", + "decorators": [] + }, + { + "$id": "1485", + "kind": "constant", + "name": "DeleteModelResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1486", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "model", + "decorators": [] + }, + { + "$id": "1487", + "kind": "constant", + "name": "RealtimeRequestSessionMaxResponseOutputTokens1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "inf", + "decorators": [] + }, + { + "$id": "1489", + "kind": "constant", + "name": "RealtimeRequestSessionMaxResponseOutputTokens11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1490", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "inf", + "decorators": [] + }, + { + "$id": "1491", + "kind": "constant", + "name": "RealtimeTranscriptionSessionCreateRequestClientSecretExpiresAtAnchor", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1492", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "created_at", + "decorators": [] + }, + { + "$id": "1493", + "kind": "constant", + "name": "RealtimeResponseSessionObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1494", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "realtime.session", + "decorators": [] + }, + { + "$id": "1495", + "kind": "constant", + "name": "RealtimeRequestSessionMaxResponseOutputTokens12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1496", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "inf", + "decorators": [] + }, + { + "$id": "1497", + "kind": "constant", + "name": "RealtimeConversationResponseItemObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1498", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "realtime.item", + "decorators": [] + }, + { + "$id": "1499", + "kind": "constant", + "name": "RealtimeResponseObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1500", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "realtime.response", + "decorators": [] + }, + { + "$id": "1501", + "kind": "constant", + "name": "RealtimeRequestSessionMaxResponseOutputTokens13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1502", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "inf", + "decorators": [] + }, + { + "$id": "1503", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1504", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1505", + "kind": "constant", + "name": "RealtimeRequestSessionMaxResponseOutputTokens14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1506", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "inf", + "decorators": [] + }, + { + "$id": "1507", + "kind": "constant", + "name": "RealtimeSessionCreateRequestClientSecretExpiresAtAnchor", + "namespace": "OpenAI", + "usage": "Input,Json", + "valueType": { + "$id": "1508", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "created_at", + "decorators": [] + }, + { + "$id": "1509", + "kind": "constant", + "name": "FileSearchRankingOptionsRanker22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + { + "$id": "1511", + "kind": "constant", + "name": "RealtimeRequestSessionMaxResponseOutputTokens15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1512", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "inf", + "decorators": [] + }, + { + "$id": "1513", + "kind": "constant", + "name": "UploadObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1514", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "upload", + "decorators": [] + }, + { + "$id": "1515", + "kind": "constant", + "name": "UploadPartObject", + "namespace": "OpenAI", + "usage": "Output,Json", + "valueType": { + "$id": "1516", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "upload.part", + "decorators": [] + }, + { + "$id": "1517", + "kind": "constant", + "name": "BatchRequestInputMethod", + "namespace": "OpenAI", + "access": "public", + "usage": "Input", + "valueType": { + "$id": "1518", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "POST", + "decorators": [] + }, + { + "$id": "1519", + "kind": "constant", + "name": "MessageDeltaObjectObject", + "namespace": "OpenAI", + "access": "public", + "usage": "Output", + "valueType": { + "$id": "1520", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "thread.message.delta", + "decorators": [] + }, + { + "$id": "1521", + "kind": "constant", + "name": "RunStepDeltaObjectObject", + "namespace": "OpenAI", + "access": "public", + "usage": "Output", + "valueType": { + "$id": "1522", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "thread.run.step.delta", + "decorators": [] + }, + { + "$id": "1523", + "kind": "constant", + "name": "DotNetCombinedJsonTranscriptionResponseTask", + "namespace": "OpenAI", + "access": "public", + "usage": "Output", + "valueType": { + "$id": "1524", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "transcribe", + "decorators": [] + }, + { + "$id": "1525", + "kind": "constant", + "name": "ListAssistantsRequestAccept", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1526", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1527", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1528", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1529", + "kind": "constant", + "name": "ListAssistantsRequestAccept1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1530", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1531", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1532", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1533", + "kind": "constant", + "name": "ListAssistantsRequestAccept2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1534", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1535", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1536", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1537", + "kind": "constant", + "name": "createAssistantContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1538", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1539", + "kind": "constant", + "name": "ListAssistantsRequestAccept3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1540", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1541", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1542", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1543", + "kind": "constant", + "name": "ListAssistantsRequestAccept4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1544", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1545", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1546", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1547", + "kind": "constant", + "name": "ListAssistantsRequestAccept5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1548", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1549", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1550", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1551", + "kind": "constant", + "name": "ListAssistantsRequestAccept6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1552", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1553", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1554", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1555", + "kind": "constant", + "name": "modifyAssistantContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1556", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1557", + "kind": "constant", + "name": "ListAssistantsRequestAccept7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1558", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1559", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1560", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1561", + "kind": "constant", + "name": "ListAssistantsRequestAccept8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1562", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1563", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1565", + "kind": "constant", + "name": "ListAssistantsRequestAccept9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1566", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1567", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1568", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1569", + "kind": "constant", + "name": "CreateSpeechRequestAccept", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1570", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "1571", + "kind": "constant", + "name": "createSpeechContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1572", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1573", + "kind": "constant", + "name": "CreateSpeechRequestAccept1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1574", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "1575", + "kind": "constant", + "name": "CreateSpeechRequestAccept2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1576", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "1577", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1578", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1579", + "kind": "constant", + "name": "CreateTranscriptionRequestAccept1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1580", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/event-stream", + "decorators": [] + }, + { + "$id": "1581", + "kind": "constant", + "name": "CreateTranscriptionResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1582", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + }, + { + "$id": "1583", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1584", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1585", + "kind": "constant", + "name": "ListAssistantsRequestAccept10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1586", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1587", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1588", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1589", + "kind": "constant", + "name": "CreateTranscriptionResponseContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1590", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + }, + { + "$id": "1591", + "kind": "constant", + "name": "ListAssistantsRequestAccept11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1592", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1593", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType3", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1594", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1595", + "kind": "constant", + "name": "ListAssistantsRequestAccept12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1596", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1597", + "kind": "constant", + "name": "createBatchContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1598", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1599", + "kind": "constant", + "name": "ListAssistantsRequestAccept13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1600", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1601", + "kind": "constant", + "name": "CreateBatchRequestCompletionWindow", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1602", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "24h", + "decorators": [] + }, + { + "$id": "1603", + "kind": "constant", + "name": "ListAssistantsRequestAccept14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1604", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1605", + "kind": "constant", + "name": "ListAssistantsRequestAccept15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1606", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1607", + "kind": "constant", + "name": "ListAssistantsRequestAccept16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1608", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1609", + "kind": "constant", + "name": "ListAssistantsRequestAccept17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1610", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1611", + "kind": "constant", + "name": "ListAssistantsRequestAccept18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1612", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1613", + "kind": "constant", + "name": "ListAssistantsRequestAccept19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1614", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1615", + "kind": "constant", + "name": "listChatCompletionsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1616", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1617", + "kind": "constant", + "name": "ListAssistantsRequestAccept20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1618", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1619", + "kind": "constant", + "name": "createChatCompletionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1620", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1621", + "kind": "constant", + "name": "CreateTranscriptionRequestAccept11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1622", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/event-stream", + "decorators": [] + }, + { + "$id": "1623", + "kind": "constant", + "name": "ListAssistantsRequestAccept21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1624", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1625", + "kind": "constant", + "name": "getChatCompletionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1626", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1627", + "kind": "constant", + "name": "updateChatCompletionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1628", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1629", + "kind": "constant", + "name": "updateChatCompletionContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1630", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1631", + "kind": "constant", + "name": "deleteChatCompletionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1632", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1633", + "kind": "constant", + "name": "getChatCompletionMessagesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1634", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1635", + "kind": "constant", + "name": "listContainersContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1636", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1637", + "kind": "constant", + "name": "ListAssistantsResponseObject1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1638", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1639", + "kind": "constant", + "name": "ContainerResourceExpiresAfterAnchor", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1640", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "last_active_at", + "decorators": [] + }, + { + "$id": "1641", + "kind": "constant", + "name": "createContainerContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1642", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1643", + "kind": "constant", + "name": "createContainerContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1644", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1645", + "kind": "constant", + "name": "ContainerResourceExpiresAfterAnchor1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1646", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "last_active_at", + "decorators": [] + }, + { + "$id": "1647", + "kind": "constant", + "name": "retrieveContainerContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1648", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1649", + "kind": "constant", + "name": "deleteContainerContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1650", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1651", + "kind": "constant", + "name": "DeleteContainerResponseObject", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1652", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "container.deleted", + "decorators": [] + }, + { + "$id": "1653", + "kind": "constant", + "name": "DeleteContainerResponseDeleted", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1654", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, + "decorators": [] + }, + { + "$id": "1655", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1656", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1657", + "kind": "constant", + "name": "createContainerFileContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1658", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1659", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1661", + "kind": "constant", + "name": "listContainerFilesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1662", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1663", + "kind": "constant", + "name": "ListAssistantsResponseObject2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1664", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "list", + "decorators": [] + }, + { + "$id": "1665", + "kind": "constant", + "name": "retrieveContainerFileContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1666", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1667", + "kind": "constant", + "name": "deleteContainerFileContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1668", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1669", + "kind": "constant", + "name": "DeleteContainerFileResponseObject", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "container.file.deleted", + "decorators": [] + }, + { + "$id": "1671", + "kind": "constant", + "name": "DeleteContainerResponseDeleted1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1672", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, + "decorators": [] + }, + { + "$id": "1673", + "kind": "constant", + "name": "retrieveContainerFileContentContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1674", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + { + "$id": "1675", + "kind": "constant", + "name": "ListAssistantsRequestAccept22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1676", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1677", + "kind": "constant", + "name": "createEmbeddingContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1678", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1679", + "kind": "constant", + "name": "ListAssistantsRequestAccept23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1680", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1681", + "kind": "constant", + "name": "ListAssistantsRequestAccept24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1682", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1683", + "kind": "constant", + "name": "ListAssistantsRequestAccept25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1684", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1685", + "kind": "constant", + "name": "ListAssistantsRequestAccept26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1686", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1687", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1688", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1689", + "kind": "constant", + "name": "ListAssistantsRequestAccept27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1690", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1691", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1692", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1693", + "kind": "constant", + "name": "ListAssistantsRequestAccept28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1694", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1695", + "kind": "constant", + "name": "ListAssistantsRequestAccept29", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1696", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1697", + "kind": "constant", + "name": "ListAssistantsRequestAccept30", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1698", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1699", + "kind": "constant", + "name": "ListAssistantsRequestAccept31", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1700", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1701", + "kind": "constant", + "name": "ListAssistantsRequestAccept32", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1702", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1703", + "kind": "constant", + "name": "ListAssistantsRequestAccept33", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1704", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1705", + "kind": "constant", + "name": "listFineTuningCheckpointPermissionsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1706", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1707", + "kind": "constant", + "name": "createFineTuningCheckpointPermissionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1708", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1709", + "kind": "constant", + "name": "createFineTuningCheckpointPermissionContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1710", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1711", + "kind": "constant", + "name": "deleteFineTuningCheckpointPermissionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1712", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1713", + "kind": "constant", + "name": "ListAssistantsRequestAccept34", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1714", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1715", + "kind": "constant", + "name": "createFineTuningJobContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1716", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1717", + "kind": "constant", + "name": "ListAssistantsRequestAccept35", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1718", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1719", + "kind": "constant", + "name": "ListAssistantsRequestAccept36", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1720", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1721", + "kind": "constant", + "name": "ListAssistantsRequestAccept37", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1722", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1723", + "kind": "constant", + "name": "ListAssistantsRequestAccept38", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1724", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1725", + "kind": "constant", + "name": "ListAssistantsRequestAccept39", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1726", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1727", + "kind": "constant", + "name": "ListAssistantsRequestAccept40", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1728", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1729", + "kind": "constant", + "name": "ListAssistantsRequestAccept41", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1730", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1731", + "kind": "constant", + "name": "ListAssistantsRequestAccept42", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1732", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1733", + "kind": "constant", + "name": "ListAssistantsRequestAccept43", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1734", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1735", + "kind": "constant", + "name": "ListAssistantsRequestAccept44", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1736", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1737", + "kind": "constant", + "name": "ListAssistantsRequestAccept45", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1738", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1739", + "kind": "constant", + "name": "pauseFineTuningJobContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1740", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1741", + "kind": "constant", + "name": "resumeFineTuningJobContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1742", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1743", + "kind": "constant", + "name": "runGraderContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1744", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1745", + "kind": "constant", + "name": "runGraderContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1746", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1747", + "kind": "constant", + "name": "validateGraderContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1748", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1749", + "kind": "constant", + "name": "validateGraderContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1750", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1751", + "kind": "constant", + "name": "listEvalsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1752", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1753", + "kind": "constant", + "name": "createEvalContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1754", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1755", + "kind": "constant", + "name": "createEvalContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1756", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1757", + "kind": "constant", + "name": "getEvalContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1758", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1759", + "kind": "constant", + "name": "updateEvalContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1760", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1761", + "kind": "constant", + "name": "updateEvalContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1762", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1763", + "kind": "constant", + "name": "deleteEvalContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1764", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1765", + "kind": "constant", + "name": "getEvalRunsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1766", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1767", + "kind": "constant", + "name": "createEvalRunContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1768", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1769", + "kind": "constant", + "name": "createEvalRunContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1770", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1771", + "kind": "constant", + "name": "getEvalRunContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1772", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1773", + "kind": "constant", + "name": "cancelEvalRunContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1774", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1775", + "kind": "constant", + "name": "deleteEvalRunContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1776", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1777", + "kind": "constant", + "name": "getEvalRunOutputItemsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1778", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1779", + "kind": "constant", + "name": "getEvalRunOutputItemContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1780", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1781", + "kind": "constant", + "name": "createResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1782", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1783", + "kind": "constant", + "name": "CreateTranscriptionRequestAccept12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1784", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/event-stream", + "decorators": [] + }, + { + "$id": "1785", + "kind": "constant", + "name": "CreateTranscriptionRequestAccept13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1786", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/event-stream", + "decorators": [] + }, + { + "$id": "1787", + "kind": "constant", + "name": "deleteResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1788", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1789", + "kind": "constant", + "name": "cancelResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1790", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1791", + "kind": "constant", + "name": "listInputItemsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1792", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1793", + "kind": "constant", + "name": "ListAssistantsRequestAccept46", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1794", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1795", + "kind": "constant", + "name": "createImageContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1796", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1797", + "kind": "constant", + "name": "ListAssistantsRequestAccept47", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1798", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1799", + "kind": "constant", + "name": "ListAssistantsRequestAccept48", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1800", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1801", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType8", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1802", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1803", + "kind": "constant", + "name": "ListAssistantsRequestAccept49", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1804", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1805", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType9", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1806", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1807", + "kind": "constant", + "name": "ListAssistantsRequestAccept50", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1808", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1809", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1810", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1811", + "kind": "constant", + "name": "ListAssistantsRequestAccept51", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1812", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1813", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1814", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "1815", + "kind": "constant", + "name": "ListAssistantsRequestAccept52", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1816", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1817", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1818", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1819", + "kind": "constant", + "name": "createMessageContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1820", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1821", + "kind": "constant", + "name": "ListAssistantsRequestAccept53", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1822", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1823", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta11", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1824", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1825", + "kind": "constant", + "name": "ListAssistantsRequestAccept54", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1826", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1827", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1828", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1829", + "kind": "constant", + "name": "ListAssistantsRequestAccept55", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1830", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1831", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1832", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1833", + "kind": "constant", + "name": "ListAssistantsRequestAccept56", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1834", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1835", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta14", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1836", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1837", + "kind": "constant", + "name": "ListAssistantsRequestAccept57", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1838", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1839", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1840", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1841", + "kind": "constant", + "name": "ListAssistantsRequestAccept58", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1842", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1843", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1844", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1845", + "kind": "constant", + "name": "modifyMessageContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1846", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1847", + "kind": "constant", + "name": "ListAssistantsRequestAccept59", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1848", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1849", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1850", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1851", + "kind": "constant", + "name": "ListAssistantsRequestAccept60", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1852", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1853", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1854", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1855", + "kind": "constant", + "name": "ListAssistantsRequestAccept61", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1856", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1857", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1858", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1859", + "kind": "constant", + "name": "ListAssistantsRequestAccept62", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1860", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1861", + "kind": "constant", + "name": "createModerationContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1862", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1863", + "kind": "constant", + "name": "ListAssistantsRequestAccept63", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1864", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1865", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1866", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1867", + "kind": "constant", + "name": "createThreadAndRunContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1868", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1869", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1870", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1871", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1872", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1873", + "kind": "constant", + "name": "createRunContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1874", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1875", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1876", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1877", + "kind": "constant", + "name": "ListAssistantsRequestAccept64", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1878", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1879", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1880", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1881", + "kind": "constant", + "name": "ListAssistantsRequestAccept65", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1882", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1883", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1884", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1885", + "kind": "constant", + "name": "ListAssistantsRequestAccept66", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1886", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1887", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1888", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1889", + "kind": "constant", + "name": "ListAssistantsRequestAccept67", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1890", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1891", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1892", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1893", + "kind": "constant", + "name": "ListAssistantsRequestAccept68", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1894", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1895", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1896", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1897", + "kind": "constant", + "name": "modifyRunContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1898", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1899", + "kind": "constant", + "name": "ListAssistantsRequestAccept69", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1900", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1901", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta29", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1902", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1903", + "kind": "constant", + "name": "ListAssistantsRequestAccept70", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1904", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1905", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta30", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1906", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1907", + "kind": "constant", + "name": "ListAssistantsRequestAccept71", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1908", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1909", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta31", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1910", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1911", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta32", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1912", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1913", + "kind": "constant", + "name": "submitToolOutputsToRunContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1914", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1915", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta33", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1916", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1917", + "kind": "constant", + "name": "ListAssistantsRequestAccept72", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1918", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1919", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta34", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1920", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1921", + "kind": "constant", + "name": "ListAssistantsRequestAccept73", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1922", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1923", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta35", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1924", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1925", + "kind": "constant", + "name": "ListAssistantsRequestAccept74", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1926", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1927", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta36", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1928", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1929", + "kind": "constant", + "name": "ListAssistantsRequestAccept75", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1930", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1931", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta37", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1932", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1933", + "kind": "constant", + "name": "ListAssistantsRequestAccept76", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1934", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1935", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta38", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1936", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1937", + "kind": "constant", + "name": "createThreadContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1938", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1939", + "kind": "constant", + "name": "ListAssistantsRequestAccept77", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1940", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1941", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta39", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1942", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1943", + "kind": "constant", + "name": "ListAssistantsRequestAccept78", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1944", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1945", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta40", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1946", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1947", + "kind": "constant", + "name": "ListAssistantsRequestAccept79", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1948", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1949", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta41", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1950", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1951", + "kind": "constant", + "name": "ListAssistantsRequestAccept80", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1952", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1953", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta42", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1954", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1955", + "kind": "constant", + "name": "modifyThreadContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1956", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1957", + "kind": "constant", + "name": "ListAssistantsRequestAccept81", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1958", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1959", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta43", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1960", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1961", + "kind": "constant", + "name": "ListAssistantsRequestAccept82", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1962", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1963", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta44", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1964", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1965", + "kind": "constant", + "name": "ListAssistantsRequestAccept83", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1966", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1967", + "kind": "constant", + "name": "ListAssistantsRequestOpenAiBeta45", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1968", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "assistants=v2", + "decorators": [] + }, + { + "$id": "1969", + "kind": "constant", + "name": "ListAssistantsRequestAccept84", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1970", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1971", + "kind": "constant", + "name": "ListAssistantsRequestAccept85", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1972", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1973", + "kind": "constant", + "name": "ListAssistantsRequestAccept86", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1974", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1975", + "kind": "constant", + "name": "createVectorStoreContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1976", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1977", + "kind": "constant", + "name": "ListAssistantsRequestAccept87", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1978", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1979", + "kind": "constant", + "name": "ListAssistantsRequestAccept88", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1980", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1981", + "kind": "constant", + "name": "ListAssistantsRequestAccept89", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1982", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1983", + "kind": "constant", + "name": "ListAssistantsRequestAccept90", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1984", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1985", + "kind": "constant", + "name": "modifyVectorStoreContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1986", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1987", + "kind": "constant", + "name": "ListAssistantsRequestAccept91", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1988", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1989", + "kind": "constant", + "name": "ListAssistantsRequestAccept92", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1990", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1991", + "kind": "constant", + "name": "ListAssistantsRequestAccept93", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1992", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1993", + "kind": "constant", + "name": "ListAssistantsRequestAccept94", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1994", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1995", + "kind": "constant", + "name": "createVectorStoreFileBatchContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1996", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1997", + "kind": "constant", + "name": "ListAssistantsRequestAccept95", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "1998", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "1999", + "kind": "constant", + "name": "ListAssistantsRequestAccept96", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2000", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2001", + "kind": "constant", + "name": "ListAssistantsRequestAccept97", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2002", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2003", + "kind": "constant", + "name": "ListAssistantsRequestAccept98", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2004", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2005", + "kind": "constant", + "name": "ListAssistantsRequestAccept99", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2006", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2007", + "kind": "constant", + "name": "ListAssistantsRequestAccept100", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2008", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2009", + "kind": "constant", + "name": "ListAssistantsRequestAccept101", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2010", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2011", + "kind": "constant", + "name": "ListAssistantsRequestAccept102", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2012", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2013", + "kind": "constant", + "name": "ListAssistantsRequestAccept103", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2014", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2015", + "kind": "constant", + "name": "ListAssistantsRequestAccept104", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2016", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2017", + "kind": "constant", + "name": "createVectorStoreFileContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2018", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2019", + "kind": "constant", + "name": "ListAssistantsRequestAccept105", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2020", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2021", + "kind": "constant", + "name": "ListAssistantsRequestAccept106", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2022", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2023", + "kind": "constant", + "name": "ListAssistantsRequestAccept107", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2024", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2025", + "kind": "constant", + "name": "ListAssistantsRequestAccept108", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2026", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2027", + "kind": "constant", + "name": "ListAssistantsRequestAccept109", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2028", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2029", + "kind": "constant", + "name": "updateVectorStoreFileAttributesContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2030", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2031", + "kind": "constant", + "name": "updateVectorStoreFileAttributesContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2032", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2033", + "kind": "constant", + "name": "retrieveVectorStoreFileContentContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2034", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2035", + "kind": "constant", + "name": "searchVectorStoreContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2036", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2037", + "kind": "constant", + "name": "searchVectorStoreContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2038", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2039", + "kind": "constant", + "name": "ListAssistantsRequestAccept110", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2040", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2041", + "kind": "constant", + "name": "createCompletionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2042", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2043", + "kind": "constant", + "name": "ListAssistantsRequestAccept111", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2044", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2045", + "kind": "constant", + "name": "ListAssistantsRequestAccept112", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2046", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2047", + "kind": "constant", + "name": "ListAssistantsRequestAccept113", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2048", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2049", + "kind": "constant", + "name": "ListAssistantsRequestAccept114", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2050", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2051", + "kind": "constant", + "name": "ListAssistantsRequestAccept115", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2052", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2053", + "kind": "constant", + "name": "ListAssistantsRequestAccept116", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2054", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2055", + "kind": "constant", + "name": "ListAssistantsRequestAccept117", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2056", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2057", + "kind": "constant", + "name": "StartRealtimeSessionRequestOpenAiBeta", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2058", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "realtime=v1", + "decorators": [] + }, + { + "$id": "2059", + "kind": "constant", + "name": "startRealtimeSessionContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2060", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2061", + "kind": "constant", + "name": "startRealtimeSessionContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2062", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2063", + "kind": "constant", + "name": "StartRealtimeSessionRequestOpenAiBeta1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2064", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "realtime=v1", + "decorators": [] + }, + { + "$id": "2065", + "kind": "constant", + "name": "createEphemeralTokenContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2066", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2067", + "kind": "constant", + "name": "createEphemeralTokenContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2068", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2069", + "kind": "constant", + "name": "createEphemeralTranscriptionTokenContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2070", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2071", + "kind": "constant", + "name": "createEphemeralTranscriptionTokenContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2072", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2073", + "kind": "constant", + "name": "ListAssistantsRequestAccept118", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2074", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2075", + "kind": "constant", + "name": "createUploadContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2076", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2077", + "kind": "constant", + "name": "ListAssistantsRequestAccept119", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2078", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2079", + "kind": "constant", + "name": "ListAssistantsRequestAccept120", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2080", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2081", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2082", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "2083", + "kind": "constant", + "name": "ListAssistantsRequestAccept121", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2084", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2085", + "kind": "constant", + "name": "CreateTranscriptionRequestContentType13", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2086", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "2087", + "kind": "constant", + "name": "ListAssistantsRequestAccept122", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2088", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2089", + "kind": "constant", + "name": "completeUploadContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2090", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2091", + "kind": "constant", + "name": "ListAssistantsRequestAccept123", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2092", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2093", + "kind": "constant", + "name": "ListAssistantsRequestAccept124", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2094", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "2095", + "kind": "constant", + "name": "ListAssistantsRequestAccept125", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "2096", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "2097", + "kind": "model", + "name": "ListAssistantsResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListAssistantsResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2098", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1273" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListAssistantsResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "2099", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "2100", + "kind": "array", + "name": "ArrayAssistantObject", + "valueType": { + "$id": "2101", + "kind": "model", + "name": "AssistantObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantObject", + "usage": "Output,Json", + "doc": "Represents an `assistant` that can call the model and use tools.", + "decorators": [], + "properties": [ + { + "$id": "2102", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "2103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "2104", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `assistant`.", + "type": { + "$ref": "1275" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "2105", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the assistant was created.", + "type": { + "$id": "2106", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2107", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "2108", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the assistant. The maximum length is 256 characters.", + "type": { + "$id": "2109", + "kind": "nullable", + "type": { + "$id": "2110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2111", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the assistant. The maximum length is 512 characters.", + "type": { + "$id": "2112", + "kind": "nullable", + "type": { + "$id": "2113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "2114", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.", + "type": { + "$id": "2115", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "2116", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The system instructions that the assistant uses. The maximum length is 256,000 characters.", + "type": { + "$id": "2117", + "kind": "nullable", + "type": { + "$id": "2118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "2119", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.", + "type": { + "$id": "2120", + "kind": "array", + "name": "ArrayAssistantToolDefinition", + "valueType": { + "$id": "2121", + "kind": "model", + "name": "AssistantToolDefinition", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantToolDefinition", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "2122", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "5" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantToolDefinition.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "2122" + } + ], + "discriminatedSubtypes": { + "code_interpreter": { + "$id": "2123", + "kind": "model", + "name": "AssistantToolsCode", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantToolsCode", + "usage": "Input,Output,Json", + "discriminatorValue": "code_interpreter", + "decorators": [], + "baseModel": { + "$ref": "2121" + }, + "properties": [ + { + "$id": "2124", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool being defined: `code_interpreter`", + "type": { + "$ref": "7" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantToolsCode.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "file_search": { + "$id": "2125", + "kind": "model", + "name": "AssistantToolsFileSearch", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFileSearch", + "usage": "Input,Output,Json", + "discriminatorValue": "file_search", + "decorators": [], + "baseModel": { + "$ref": "2121" + }, + "properties": [ + { + "$id": "2126", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool being defined: `file_search`", + "type": { + "$ref": "8" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFileSearch.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2127", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "doc": "Overrides for the file search tool.", + "type": { + "$id": "2128", + "kind": "model", + "name": "AssistantToolsFileSearchFileSearch", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFileSearch.file_search.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2129", + "kind": "property", + "name": "max_num_results", + "serializedName": "max_num_results", + "doc": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.", + "type": { + "$id": "2130", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFileSearch.file_search.anonymous.max_num_results", + "serializationOptions": { + "json": { + "name": "max_num_results" + } + } + }, + { + "$id": "2131", + "kind": "property", + "name": "ranking_options", + "serializedName": "ranking_options", + "type": { + "$id": "2132", + "kind": "model", + "name": "FileSearchRankingOptions", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FileSearchRankingOptions", + "usage": "Input,Output,Json", + "doc": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.", + "decorators": [], + "properties": [ + { + "$id": "2133", + "kind": "property", + "name": "ranker", + "serializedName": "ranker", + "type": { + "$ref": "10" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchRankingOptions.ranker", + "serializationOptions": { + "json": { + "name": "ranker" + } + } + }, + { + "$id": "2134", + "kind": "property", + "name": "score_threshold", + "serializedName": "score_threshold", + "doc": "The score threshold for the file search. All values must be a floating point number between 0 and 1.", + "type": { + "$id": "2135", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchRankingOptions.score_threshold", + "serializationOptions": { + "json": { + "name": "score_threshold" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFileSearch.file_search.anonymous.ranking_options", + "serializationOptions": { + "json": { + "name": "ranking_options" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFileSearch.file_search", + "serializationOptions": { + "json": { + "name": "file_search" + } + } + } + ] + }, + "function": { + "$id": "2136", + "kind": "model", + "name": "AssistantToolsFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFunction", + "usage": "Input,Output,Json", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "2121" + }, + "properties": [ + { + "$id": "2137", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool being defined: `function`", + "type": { + "$ref": "9" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFunction.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2138", + "kind": "property", + "name": "function", + "serializedName": "function", + "type": { + "$id": "2139", + "kind": "model", + "name": "FunctionObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FunctionObject", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2140", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "A description of what the function does, used by the model to choose when and how to call the function.", + "type": { + "$id": "2141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionObject.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "2142", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.", + "type": { + "$id": "2143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionObject.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2144", + "kind": "property", + "name": "parameters", + "serializedName": "parameters", + "doc": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.\n\nOmitting `parameters` defines a function with an empty parameter list.", + "type": { + "$id": "2145", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionObject.parameters", + "serializationOptions": { + "json": { + "name": "parameters" + } + } + }, + { + "$id": "2146", + "kind": "property", + "name": "strict", + "serializedName": "strict", + "doc": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](docs/guides/function-calling).", + "type": { + "$id": "2147", + "kind": "nullable", + "type": { + "$id": "2148", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionObject.strict", + "serializationOptions": { + "json": { + "name": "strict" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFunction.function", + "serializationOptions": { + "json": { + "name": "function" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "2149", + "kind": "property", + "name": "tool_resources", + "serializedName": "tool_resources", + "doc": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$id": "2150", + "kind": "nullable", + "type": { + "$id": "2151", + "kind": "model", + "name": "AssistantObjectToolResources1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantObject.tool_resources.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2152", + "kind": "property", + "name": "code_interpreter", + "serializedName": "code_interpreter", + "type": { + "$id": "2153", + "kind": "model", + "name": "AssistantObjectToolResourcesCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantObject.tool_resources.code_interpreter.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2154", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter`` tool. There can be a maximum of 20 files associated with the tool.", + "type": { + "$id": "2155", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "2156", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.tool_resources.code_interpreter.anonymous.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.tool_resources.anonymous.code_interpreter", + "serializationOptions": { + "json": { + "name": "code_interpreter" + } + } + }, + { + "$id": "2157", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "type": { + "$id": "2158", + "kind": "model", + "name": "ToolResourcesFileSearchIdsOnly", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolResourcesFileSearchIdsOnly", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2159", + "kind": "property", + "name": "vector_store_ids", + "serializedName": "vector_store_ids", + "doc": "The [vector store](/docs/api-reference/vector-stores/object) attached to this assistant.\nThere can be a maximum of 1 vector store attached to the assistant.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolResourcesFileSearchIdsOnly.vector_store_ids", + "serializationOptions": { + "json": { + "name": "vector_store_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.tool_resources.anonymous.file_search", + "serializationOptions": { + "json": { + "name": "file_search" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.tool_resources", + "serializationOptions": { + "json": { + "name": "tool_resources" + } + } + }, + { + "$id": "2160", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$id": "2161", + "kind": "nullable", + "type": { + "$id": "2162", + "kind": "dict", + "keyType": { + "$id": "2163", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "2164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "2165", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "2166", + "kind": "nullable", + "type": { + "$id": "2167", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "2168", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "2169", + "kind": "nullable", + "type": { + "$id": "2170", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "2171", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "type": { + "$id": "2172", + "kind": "nullable", + "type": { + "$id": "2173", + "kind": "union", + "name": "AssistantsApiResponseFormatOption", + "variantTypes": [ + { + "$ref": "1277" + }, + { + "$id": "2174", + "kind": "model", + "name": "ResponseFormatText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFormatText", + "usage": "Input,Output,Json", + "doc": "Default response format. Used to generate text responses.", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$id": "2175", + "kind": "model", + "name": "ResponseFormat", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFormat", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "2176", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "14" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFormat.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "2176" + } + ], + "discriminatedSubtypes": { + "text": { + "$ref": "2174" + }, + "json_object": { + "$id": "2177", + "kind": "model", + "name": "ResponseFormatJsonObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonObject", + "usage": "Input,Output,Json", + "doc": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.", + "discriminatorValue": "json_object", + "decorators": [], + "baseModel": { + "$ref": "2175" + }, + "properties": [ + { + "$id": "2178", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of response format being defined. Always `json_object`.", + "type": { + "$ref": "17" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "json_schema": { + "$id": "2179", + "kind": "model", + "name": "ResponseFormatJsonSchema", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonSchema", + "usage": "Input,Output,Json", + "doc": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).", + "discriminatorValue": "json_schema", + "decorators": [], + "baseModel": { + "$ref": "2175" + }, + "properties": [ + { + "$id": "2180", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of response format being defined. Always `json_schema`.", + "type": { + "$ref": "18" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonSchema.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2181", + "kind": "property", + "name": "json_schema", + "serializedName": "json_schema", + "doc": "Structured Outputs configuration options, including a JSON Schema.", + "type": { + "$id": "2182", + "kind": "model", + "name": "ResponseFormatJsonSchemaJsonSchema", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonSchema.json_schema.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2183", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.", + "type": { + "$id": "2184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonSchema.json_schema.anonymous.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "2185", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.", + "type": { + "$id": "2186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonSchema.json_schema.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2187", + "kind": "property", + "name": "schema", + "serializedName": "schema", + "type": { + "$id": "2188", + "kind": "model", + "name": "ResponseFormatJsonSchemaSchema", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonSchemaSchema", + "usage": "Input,Output,Json", + "doc": "The schema for the response format, described as a JSON Schema object.\nLearn how to build JSON schemas [here](https://json-schema.org/).", + "decorators": [], + "additionalProperties": { + "$id": "2189", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "properties": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonSchema.json_schema.anonymous.schema", + "serializationOptions": { + "json": { + "name": "schema" + } + } + }, + { + "$id": "2190", + "kind": "property", + "name": "strict", + "serializedName": "strict", + "doc": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).", + "type": { + "$id": "2191", + "kind": "nullable", + "type": { + "$id": "2192", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonSchema.json_schema.anonymous.strict", + "serializationOptions": { + "json": { + "name": "strict" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFormatJsonSchema.json_schema", + "serializationOptions": { + "json": { + "name": "json_schema" + } + } + } + ] + } + } + }, + "properties": [ + { + "$id": "2193", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of response format being defined. Always `text`.", + "type": { + "$id": "2194", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "15" + }, + "enumType": { + "$ref": "14" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFormatText.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + { + "$ref": "2177" + }, + { + "$ref": "2179" + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantObject.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListAssistantsResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "2195", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "2196", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListAssistantsResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "2197", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "2198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListAssistantsResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "2199", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "2200", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListAssistantsResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "2101" + }, + { + "$ref": "2121" + }, + { + "$ref": "2123" + }, + { + "$ref": "2125" + }, + { + "$ref": "2128" + }, + { + "$ref": "2132" + }, + { + "$ref": "2136" + }, + { + "$ref": "2139" + }, + { + "$ref": "2151" + }, + { + "$ref": "2153" + }, + { + "$ref": "2158" + }, + { + "$ref": "2174" + }, + { + "$ref": "2175" + }, + { + "$ref": "2177" + }, + { + "$ref": "2179" + }, + { + "$ref": "2182" + }, + { + "$ref": "2188" + }, + { + "$id": "2201", + "kind": "model", + "name": "ErrorResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ErrorResponse", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "2202", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$id": "2203", + "kind": "model", + "name": "Error", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Error", + "usage": "Output,Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "2204", + "kind": "property", + "name": "code", + "serializedName": "code", + "type": { + "$id": "2205", + "kind": "nullable", + "type": { + "$id": "2206", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Error.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "2207", + "kind": "property", + "name": "message", + "serializedName": "message", + "type": { + "$id": "2208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Error.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + }, + { + "$id": "2209", + "kind": "property", + "name": "param", + "serializedName": "param", + "type": { + "$id": "2210", + "kind": "nullable", + "type": { + "$id": "2211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Error.param", + "serializationOptions": { + "json": { + "name": "param" + } + } + }, + { + "$id": "2212", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$id": "2213", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Error.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ErrorResponse.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + { + "$ref": "2203" + }, + { + "$id": "2214", + "kind": "model", + "name": "CreateAssistantRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2215", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.", + "type": { + "$ref": "19" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "2216", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the assistant. The maximum length is 256 characters.", + "type": { + "$id": "2217", + "kind": "nullable", + "type": { + "$id": "2218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2219", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the assistant. The maximum length is 512 characters.", + "type": { + "$id": "2220", + "kind": "nullable", + "type": { + "$id": "2221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "2222", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The system instructions that the assistant uses. The maximum length is 256,000 characters.", + "type": { + "$id": "2223", + "kind": "nullable", + "type": { + "$id": "2224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "2225", + "kind": "property", + "name": "reasoning_effort", + "serializedName": "reasoning_effort", + "type": { + "$id": "2226", + "kind": "nullable", + "type": { + "$ref": "57" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.reasoning_effort", + "serializationOptions": { + "json": { + "name": "reasoning_effort" + } + } + }, + { + "$id": "2227", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.", + "type": { + "$ref": "2120" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "2228", + "kind": "property", + "name": "tool_resources", + "serializedName": "tool_resources", + "doc": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$id": "2229", + "kind": "nullable", + "type": { + "$id": "2230", + "kind": "model", + "name": "CreateAssistantRequestToolResources1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.tool_resources.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2231", + "kind": "property", + "name": "code_interpreter", + "serializedName": "code_interpreter", + "type": { + "$id": "2232", + "kind": "model", + "name": "CreateAssistantRequestToolResourcesCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.tool_resources.code_interpreter.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2233", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.tool_resources.code_interpreter.anonymous.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.tool_resources.anonymous.code_interpreter", + "serializationOptions": { + "json": { + "name": "code_interpreter" + } + } + }, + { + "$id": "2234", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "type": { + "$id": "2235", + "kind": "model", + "name": "ToolResourcesFileSearch", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolResourcesFileSearch", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2236", + "kind": "property", + "name": "vector_store_ids", + "serializedName": "vector_store_ids", + "doc": "The [vector store](/docs/api-reference/vector-stores/object) attached to this assistant.\nThere can be a maximum of 1 vector store attached to the assistant.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolResourcesFileSearch.vector_store_ids", + "serializationOptions": { + "json": { + "name": "vector_store_ids" + } + } + }, + { + "$id": "2237", + "kind": "property", + "name": "vector_stores", + "serializedName": "vector_stores", + "doc": "A helper to create a [vector store](/docs/api-reference/vector-stores/object) with\nfile_ids and attach it to this assistant. There can be a maximum of 1 vector store\nattached to the assistant.", + "type": { + "$id": "2238", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "2239", + "kind": "model", + "name": "ToolResourcesFileSearchVectorStore", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolResourcesFileSearch.vector_store.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2240", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "A list of [file](/docs/api-reference/files) IDs to add to the vector store. There can be\na maximum of 10000 files in a vector store.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolResourcesFileSearch.vector_store.anonymous.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + }, + { + "$id": "2241", + "kind": "property", + "name": "chunking_strategy", + "serializedName": "chunking_strategy", + "doc": "The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.", + "type": { + "$id": "2242", + "kind": "model", + "name": "ChunkingStrategyRequestParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChunkingStrategyRequestParam", + "usage": "Input,Json", + "doc": "The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.", + "decorators": [], + "discriminatorProperty": { + "$id": "2243", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of chunking strategy.", + "type": { + "$ref": "62" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChunkingStrategyRequestParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "2243" + } + ], + "discriminatedSubtypes": { + "auto": { + "$id": "2244", + "kind": "model", + "name": "AutoChunkingStrategyRequestParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AutoChunkingStrategyRequestParam", + "usage": "Input,Json", + "doc": "The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`.", + "discriminatorValue": "auto", + "decorators": [], + "baseModel": { + "$ref": "2242" + }, + "properties": [ + { + "$id": "2245", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `auto`.", + "type": { + "$ref": "64" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AutoChunkingStrategyRequestParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "static": { + "$id": "2246", + "kind": "model", + "name": "StaticChunkingStrategyRequestParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.StaticChunkingStrategyRequestParam", + "usage": "Input,Json", + "doc": "Customize your own chunking strategy by setting chunk size and chunk overlap.", + "discriminatorValue": "static", + "decorators": [], + "baseModel": { + "$ref": "2242" + }, + "properties": [ + { + "$id": "2247", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `static`.", + "type": { + "$ref": "65" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.StaticChunkingStrategyRequestParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2248", + "kind": "property", + "name": "static", + "serializedName": "static", + "type": { + "$id": "2249", + "kind": "model", + "name": "StaticChunkingStrategy", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.StaticChunkingStrategy", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2250", + "kind": "property", + "name": "max_chunk_size_tokens", + "serializedName": "max_chunk_size_tokens", + "doc": "The maximum number of tokens in each chunk. The default value is `800`. The minimum value is `100` and the maximum value is `4096`.", + "type": { + "$id": "2251", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.StaticChunkingStrategy.max_chunk_size_tokens", + "serializationOptions": { + "json": { + "name": "max_chunk_size_tokens" + } + } + }, + { + "$id": "2252", + "kind": "property", + "name": "chunk_overlap_tokens", + "serializedName": "chunk_overlap_tokens", + "doc": "The number of tokens that overlap between chunks. The default value is `400`.\n\nNote that the overlap must not exceed half of `max_chunk_size_tokens`.", + "type": { + "$id": "2253", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.StaticChunkingStrategy.chunk_overlap_tokens", + "serializationOptions": { + "json": { + "name": "chunk_overlap_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.StaticChunkingStrategyRequestParam.static", + "serializationOptions": { + "json": { + "name": "static" + } + } + } + ] + } + } + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolResourcesFileSearch.vector_store.anonymous.chunking_strategy", + "serializationOptions": { + "json": { + "name": "chunking_strategy" + } + } + }, + { + "$id": "2254", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolResourcesFileSearch.vector_store.anonymous.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolResourcesFileSearch.vector_stores", + "serializationOptions": { + "json": { + "name": "vector_stores" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.tool_resources.anonymous.file_search", + "serializationOptions": { + "json": { + "name": "file_search" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.tool_resources", + "serializationOptions": { + "json": { + "name": "tool_resources" + } + } + }, + { + "$id": "2255", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "2256", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "2257", + "kind": "nullable", + "type": { + "$id": "2258", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "2259", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "2260", + "kind": "nullable", + "type": { + "$id": "2261", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "2262", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "type": { + "$id": "2263", + "kind": "nullable", + "type": { + "$ref": "2173" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateAssistantRequest.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + } + ] + }, + { + "$ref": "2230" + }, + { + "$ref": "2232" + }, + { + "$ref": "2235" + }, + { + "$ref": "2239" + }, + { + "$ref": "2242" + }, + { + "$ref": "2244" + }, + { + "$ref": "2246" + }, + { + "$ref": "2249" + }, + { + "$id": "2264", + "kind": "model", + "name": "ModifyAssistantRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2265", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.", + "type": { + "$ref": "19" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "2266", + "kind": "property", + "name": "reasoning_effort", + "serializedName": "reasoning_effort", + "type": { + "$id": "2267", + "kind": "nullable", + "type": { + "$ref": "57" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.reasoning_effort", + "serializationOptions": { + "json": { + "name": "reasoning_effort" + } + } + }, + { + "$id": "2268", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the assistant. The maximum length is 256 characters.", + "type": { + "$id": "2269", + "kind": "nullable", + "type": { + "$id": "2270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2271", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the assistant. The maximum length is 512 characters.", + "type": { + "$id": "2272", + "kind": "nullable", + "type": { + "$id": "2273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "2274", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The system instructions that the assistant uses. The maximum length is 256,000 characters.", + "type": { + "$id": "2275", + "kind": "nullable", + "type": { + "$id": "2276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "2277", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.", + "type": { + "$ref": "2120" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "2278", + "kind": "property", + "name": "tool_resources", + "serializedName": "tool_resources", + "doc": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$id": "2279", + "kind": "nullable", + "type": { + "$id": "2280", + "kind": "model", + "name": "ModifyAssistantRequestToolResources1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.tool_resources.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2281", + "kind": "property", + "name": "code_interpreter", + "serializedName": "code_interpreter", + "type": { + "$id": "2282", + "kind": "model", + "name": "ModifyAssistantRequestToolResourcesCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.tool_resources.code_interpreter.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2283", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "Overrides the list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.tool_resources.code_interpreter.anonymous.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.tool_resources.anonymous.code_interpreter", + "serializationOptions": { + "json": { + "name": "code_interpreter" + } + } + }, + { + "$id": "2284", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "type": { + "$ref": "2158" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.tool_resources.anonymous.file_search", + "serializationOptions": { + "json": { + "name": "file_search" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.tool_resources", + "serializationOptions": { + "json": { + "name": "tool_resources" + } + } + }, + { + "$id": "2285", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "2286", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "2287", + "kind": "nullable", + "type": { + "$id": "2288", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "2289", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "2290", + "kind": "nullable", + "type": { + "$id": "2291", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "2292", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "type": { + "$id": "2293", + "kind": "nullable", + "type": { + "$ref": "2173" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyAssistantRequest.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + } + ] + }, + { + "$ref": "2280" + }, + { + "$ref": "2282" + }, + { + "$id": "2294", + "kind": "model", + "name": "DeleteAssistantResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DeleteAssistantResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2295", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "2296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteAssistantResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "2297", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$id": "2298", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteAssistantResponse.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + }, + { + "$id": "2299", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1279" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteAssistantResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + { + "$id": "2300", + "kind": "model", + "name": "CreateSpeechRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateSpeechRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2301", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "One of the available [TTS models](/docs/models#tts): `tts-1`, `tts-1-hd` or `gpt-4o-mini-tts`.", + "type": { + "$ref": "66" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateSpeechRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "2302", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The text to generate audio for. The maximum length is 4096 characters.", + "type": { + "$id": "2303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateSpeechRequest.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "2304", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "Control the voice of your generated audio with additional instructions. Does not work with `tts-1` or `tts-1-hd`.", + "type": { + "$id": "2305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateSpeechRequest.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "2306", + "kind": "property", + "name": "voice", + "serializedName": "voice", + "doc": "The voice to use when generating the audio. Supported voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, and `verse`. Previews of the voices are available in the [Text to speech guide](/docs/guides/text-to-speech#voice-options).", + "type": { + "$ref": "71" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateSpeechRequest.voice", + "serializationOptions": { + "json": { + "name": "voice" + } + } + }, + { + "$id": "2307", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "doc": "The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`.", + "type": { + "$ref": "84" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateSpeechRequest.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + }, + { + "$id": "2308", + "kind": "property", + "name": "speed", + "serializedName": "speed", + "doc": "The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is the default. Does not work with `gpt-4o-mini-tts`.", + "type": { + "$id": "2309", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateSpeechRequest.speed", + "serializationOptions": { + "json": { + "name": "speed" + } + } + } + ] + }, + { + "$id": "2310", + "kind": "model", + "name": "CreateTranscriptionRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "2311", + "kind": "property", + "name": "file", + "serializedName": "file", + "doc": "The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.", + "type": { + "$id": "2312", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.file", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "file", + "headers": [] + } + } + }, + { + "$id": "2313", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).", + "type": { + "$ref": "96" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.model", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "model", + "headers": [] + } + } + }, + { + "$id": "2314", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format will improve accuracy and latency.", + "type": { + "$id": "2315", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.language", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "language", + "headers": [] + } + } + }, + { + "$id": "2316", + "kind": "property", + "name": "prompt", + "serializedName": "prompt", + "doc": "An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language.", + "type": { + "$id": "2317", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.prompt", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "prompt", + "headers": [] + } + } + }, + { + "$id": "2318", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "type": { + "$ref": "101" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.response_format", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "response_format", + "headers": [] + } + } + }, + { + "$id": "2319", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.", + "type": { + "$id": "2320", + "kind": "float32", + "name": "ZeroOrOneFloat", + "crossLanguageDefinitionId": "OpenAI.ZeroOrOneFloat", + "baseType": { + "$id": "2321", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.temperature", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "temperature", + "headers": [] + } + } + }, + { + "$id": "2322", + "kind": "property", + "name": "include[]", + "serializedName": "include[]", + "doc": "Additional information to include in the transcription response.\n`logprobs` will return the log probabilities of the tokens in the\nresponse to understand the model's confidence in the transcription.\n`logprobs` only works with response_format set to `json` and only with\nthe models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`.", + "type": { + "$id": "2323", + "kind": "array", + "name": "ArrayTranscriptionInclude", + "valueType": { + "$ref": "108" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.include[]", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "include[]", + "headers": [] + } + } + }, + { + "$id": "2324", + "kind": "property", + "name": "timestamp_granularities[]", + "serializedName": "timestamp_granularities[]", + "doc": "The timestamp granularities to populate for this transcription. `response_format` must be set `verbose_json` to use timestamp granularities. Either or both of these options are supported: `word`, or `segment`. Note: There is no additional latency for segment timestamps, but generating word timestamps incurs additional latency.", + "type": { + "$id": "2325", + "kind": "array", + "name": "Array2", + "valueType": { + "$ref": "111" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.timestamp_granularities[]", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "timestamp_granularities[]", + "headers": [] + } + } + }, + { + "$id": "2326", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section of the Speech-to-Text guide](/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)\nfor more information.\n\nNote: Streaming is not supported for the `whisper-1` model and will be ignored.", + "type": { + "$id": "2327", + "kind": "nullable", + "type": { + "$id": "2328", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.stream", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "stream", + "headers": [] + } + } + }, + { + "$id": "2329", + "kind": "property", + "name": "chunking_strategy", + "serializedName": "chunking_strategy", + "doc": "Controls how the audio is cut into chunks. When set to `\"auto\"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection parameters manually. If unset, the audio is transcribed as a single block.", + "type": { + "$id": "2330", + "kind": "nullable", + "type": { + "$id": "2331", + "kind": "model", + "name": "VadConfig", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VadConfig", + "usage": "Input", + "decorators": [], + "properties": [ + { + "$id": "2332", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Must be set to `server_vad` to enable manual chunking using server side VAD.", + "type": { + "$ref": "1281" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VadConfig.type", + "serializationOptions": {} + }, + { + "$id": "2333", + "kind": "property", + "name": "prefix_padding_ms", + "serializedName": "prefix_padding_ms", + "doc": "Amount of audio to include before the VAD detected speech (in\nmilliseconds).", + "type": { + "$id": "2334", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VadConfig.prefix_padding_ms", + "serializationOptions": {} + }, + { + "$id": "2335", + "kind": "property", + "name": "silence_duration_ms", + "serializedName": "silence_duration_ms", + "doc": "Duration of silence to detect speech stop (in milliseconds).\nWith shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.", + "type": { + "$id": "2336", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VadConfig.silence_duration_ms", + "serializationOptions": {} + }, + { + "$id": "2337", + "kind": "property", + "name": "threshold", + "serializedName": "threshold", + "doc": "Sensitivity threshold (0.0 to 1.0) for voice activity detection. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.", + "type": { + "$id": "2338", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VadConfig.threshold", + "serializationOptions": {} + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionRequest.chunking_strategy", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "chunking_strategy", + "headers": [] + } + } + } + ] + }, + { + "$ref": "2331" + }, + { + "$id": "2339", + "kind": "model", + "name": "CreateTranscriptionResponseVerboseJson", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseVerboseJson", + "usage": "Output,Json", + "doc": "Represents a verbose json transcription response returned by model, based on the provided input.", + "decorators": [], + "properties": [ + { + "$id": "2340", + "kind": "property", + "name": "task", + "serializedName": "task", + "doc": "The task label.", + "type": { + "$ref": "1283" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseVerboseJson.task", + "serializationOptions": { + "json": { + "name": "task" + } + } + }, + { + "$id": "2341", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "The language of the input audio.", + "type": { + "$id": "2342", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseVerboseJson.language", + "serializationOptions": { + "json": { + "name": "language" + } + } + }, + { + "$id": "2343", + "kind": "property", + "name": "duration", + "serializedName": "duration", + "doc": "The duration of the input audio.", + "type": { + "$id": "2344", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "2345", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseVerboseJson.duration", + "serializationOptions": { + "json": { + "name": "duration" + } + } + }, + { + "$id": "2346", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The transcribed text.", + "type": { + "$id": "2347", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseVerboseJson.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "2348", + "kind": "property", + "name": "words", + "serializedName": "words", + "doc": "Extracted words and their corresponding timestamps.", + "type": { + "$id": "2349", + "kind": "array", + "name": "ArrayTranscriptionWord", + "valueType": { + "$id": "2350", + "kind": "model", + "name": "TranscriptionWord", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.TranscriptionWord", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2351", + "kind": "property", + "name": "word", + "serializedName": "word", + "doc": "The text content of the word.", + "type": { + "$id": "2352", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionWord.word", + "serializationOptions": { + "json": { + "name": "word" + } + } + }, + { + "$id": "2353", + "kind": "property", + "name": "start", + "serializedName": "start", + "doc": "Start time of the word in seconds.", + "type": { + "$id": "2354", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "2355", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionWord.start", + "serializationOptions": { + "json": { + "name": "start" + } + } + }, + { + "$id": "2356", + "kind": "property", + "name": "end", + "serializedName": "end", + "doc": "End time of the word in seconds.", + "type": { + "$id": "2357", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "2358", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionWord.end", + "serializationOptions": { + "json": { + "name": "end" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseVerboseJson.words", + "serializationOptions": { + "json": { + "name": "words" + } + } + }, + { + "$id": "2359", + "kind": "property", + "name": "segments", + "serializedName": "segments", + "doc": "Segments of the transcribed text and their corresponding details.", + "type": { + "$id": "2360", + "kind": "array", + "name": "ArrayTranscriptionSegment", + "valueType": { + "$id": "2361", + "kind": "model", + "name": "TranscriptionSegment", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2362", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique identifier of the segment.", + "type": { + "$id": "2363", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "2364", + "kind": "property", + "name": "seek", + "serializedName": "seek", + "doc": "Seek offset of the segment.", + "type": { + "$id": "2365", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.seek", + "serializationOptions": { + "json": { + "name": "seek" + } + } + }, + { + "$id": "2366", + "kind": "property", + "name": "start", + "serializedName": "start", + "doc": "Start time of the segment in seconds.", + "type": { + "$id": "2367", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "2368", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.start", + "serializationOptions": { + "json": { + "name": "start" + } + } + }, + { + "$id": "2369", + "kind": "property", + "name": "end", + "serializedName": "end", + "doc": "End time of the segment in seconds.", + "type": { + "$id": "2370", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "2371", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.end", + "serializationOptions": { + "json": { + "name": "end" + } + } + }, + { + "$id": "2372", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "Text content of the segment.", + "type": { + "$id": "2373", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "2374", + "kind": "property", + "name": "tokens", + "serializedName": "tokens", + "doc": "Array of token IDs for the text content.", + "type": { + "$id": "2375", + "kind": "array", + "name": "Array3", + "valueType": { + "$id": "2376", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.tokens", + "serializationOptions": { + "json": { + "name": "tokens" + } + } + }, + { + "$id": "2377", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "Temperature parameter used for generating the segment.", + "type": { + "$id": "2378", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "2379", + "kind": "property", + "name": "avg_logprob", + "serializedName": "avg_logprob", + "doc": "Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.", + "type": { + "$id": "2380", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.avg_logprob", + "serializationOptions": { + "json": { + "name": "avg_logprob" + } + } + }, + { + "$id": "2381", + "kind": "property", + "name": "compression_ratio", + "serializedName": "compression_ratio", + "doc": "Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.", + "type": { + "$id": "2382", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.compression_ratio", + "serializationOptions": { + "json": { + "name": "compression_ratio" + } + } + }, + { + "$id": "2383", + "kind": "property", + "name": "no_speech_prob", + "serializedName": "no_speech_prob", + "doc": "Probability of no speech in the segment. If the value is higher than 1.0 and the `avg_logprob` is below -1, consider this segment silent.", + "type": { + "$id": "2384", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptionSegment.no_speech_prob", + "serializationOptions": { + "json": { + "name": "no_speech_prob" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseVerboseJson.segments", + "serializationOptions": { + "json": { + "name": "segments" + } + } + } + ] + }, + { + "$ref": "2350" + }, + { + "$ref": "2361" + }, + { + "$id": "2385", + "kind": "model", + "name": "CreateTranscriptionResponseJson", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseJson", + "usage": "Output,Json", + "doc": "Represents a transcription response returned by model, based on the provided input.", + "decorators": [], + "properties": [ + { + "$id": "2386", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The transcribed text.", + "type": { + "$id": "2387", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseJson.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "2388", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "doc": "The log probabilities of the tokens in the transcription. Only returned with the models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe` if `logprobs` is added to the `include` array.", + "type": { + "$id": "2389", + "kind": "array", + "name": "Array4", + "valueType": { + "$id": "2390", + "kind": "model", + "name": "CreateTranscriptionResponseJsonLogprob", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseJson.logprob.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2391", + "kind": "property", + "name": "token", + "serializedName": "token", + "doc": "The token in the transcription.", + "type": { + "$id": "2392", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseJson.logprob.anonymous.token", + "serializationOptions": { + "json": { + "name": "token" + } + } + }, + { + "$id": "2393", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "doc": "The log probability of the token.", + "type": { + "$id": "2394", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseJson.logprob.anonymous.logprob", + "serializationOptions": { + "json": { + "name": "logprob" + } + } + }, + { + "$id": "2395", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The bytes of the token.", + "type": { + "$id": "2396", + "kind": "array", + "name": "Array5", + "valueType": { + "$id": "2397", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseJson.logprob.anonymous.bytes", + "serializationOptions": { + "json": { + "name": "bytes" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseJson.logprobs", + "serializationOptions": { + "json": { + "name": "logprobs" + } + } + } + ] + }, + { + "$ref": "2390" + }, + { + "$id": "2398", + "kind": "model", + "name": "CreateTranscriptionResponseStreamEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseStreamEvent", + "usage": "Output", + "decorators": [], + "discriminatorProperty": { + "$id": "2399", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "115" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranscriptionResponseStreamEvent.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "2399" + } + ], + "discriminatedSubtypes": { + "transcript.text.delta": { + "$id": "2400", + "kind": "model", + "name": "TranscriptTextDeltaEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDeltaEvent", + "usage": "Output", + "doc": "Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.", + "discriminatorValue": "transcript.text.delta", + "decorators": [], + "baseModel": { + "$ref": "2398" + }, + "properties": [ + { + "$id": "2401", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `transcript.text.delta`.", + "type": { + "$ref": "117" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDeltaEvent.type", + "serializationOptions": {} + }, + { + "$id": "2402", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The text delta that was additionally transcribed.", + "type": { + "$id": "2403", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDeltaEvent.delta", + "serializationOptions": {} + }, + { + "$id": "2404", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "doc": "The log probabilities of the delta. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.", + "type": { + "$id": "2405", + "kind": "array", + "name": "Array6", + "valueType": { + "$id": "2406", + "kind": "model", + "name": "TranscriptTextDeltaEventLogprob", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDeltaEvent.logprob.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "2407", + "kind": "property", + "name": "token", + "serializedName": "token", + "doc": "The token that was used to generate the log probability.", + "type": { + "$id": "2408", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDeltaEvent.logprob.anonymous.token", + "serializationOptions": {} + }, + { + "$id": "2409", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "doc": "The log probability of the token.", + "type": { + "$id": "2410", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDeltaEvent.logprob.anonymous.logprob", + "serializationOptions": {} + }, + { + "$id": "2411", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The bytes that were used to generate the log probability.", + "type": { + "$ref": "2375" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDeltaEvent.logprob.anonymous.bytes", + "serializationOptions": {} + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDeltaEvent.logprobs", + "serializationOptions": {} + } + ] + }, + "transcript.text.done": { + "$id": "2412", + "kind": "model", + "name": "TranscriptTextDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDoneEvent", + "usage": "Output", + "doc": "Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.", + "discriminatorValue": "transcript.text.done", + "decorators": [], + "baseModel": { + "$ref": "2398" + }, + "properties": [ + { + "$id": "2413", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `transcript.text.done`.", + "type": { + "$ref": "118" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "2414", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text that was transcribed.", + "type": { + "$id": "2415", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDoneEvent.text", + "serializationOptions": {} + }, + { + "$id": "2416", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "doc": "The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.", + "type": { + "$id": "2417", + "kind": "array", + "name": "Array7", + "valueType": { + "$id": "2418", + "kind": "model", + "name": "TranscriptTextDoneEventLogprob", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDoneEvent.logprob.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "2419", + "kind": "property", + "name": "token", + "serializedName": "token", + "doc": "The token that was used to generate the log probability.", + "type": { + "$id": "2420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDoneEvent.logprob.anonymous.token", + "serializationOptions": {} + }, + { + "$id": "2421", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "doc": "The log probability of the token.", + "type": { + "$id": "2422", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDoneEvent.logprob.anonymous.logprob", + "serializationOptions": {} + }, + { + "$id": "2423", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The bytes that were used to generate the log probability.", + "type": { + "$ref": "2375" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDoneEvent.logprob.anonymous.bytes", + "serializationOptions": {} + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TranscriptTextDoneEvent.logprobs", + "serializationOptions": {} + } + ] + } + } + }, + { + "$ref": "2400" + }, + { + "$ref": "2406" + }, + { + "$ref": "2412" + }, + { + "$ref": "2418" + }, + { + "$id": "2424", + "kind": "model", + "name": "CreateTranslationRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "2425", + "kind": "property", + "name": "file", + "serializedName": "file", + "doc": "The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.", + "type": { + "$id": "2426", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.file", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "file", + "headers": [] + } + } + }, + { + "$id": "2427", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model) is currently available.", + "type": { + "$ref": "119" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.model", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "model", + "headers": [] + } + } + }, + { + "$id": "2428", + "kind": "property", + "name": "prompt", + "serializedName": "prompt", + "doc": "An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should be in English.", + "type": { + "$id": "2429", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.prompt", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "prompt", + "headers": [] + } + } + }, + { + "$id": "2430", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "doc": "The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.", + "type": { + "$ref": "122" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.response_format", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "response_format", + "headers": [] + } + } + }, + { + "$id": "2431", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.", + "type": { + "$id": "2432", + "kind": "float32", + "name": "ZeroOrOneFloat", + "crossLanguageDefinitionId": "OpenAI.ZeroOrOneFloat", + "baseType": { + "$id": "2433", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationRequest.temperature", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "temperature", + "headers": [] + } + } + } + ] + }, + { + "$id": "2434", + "kind": "model", + "name": "CreateTranslationResponseVerboseJson", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateTranslationResponseVerboseJson", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2435", + "kind": "property", + "name": "task", + "serializedName": "task", + "doc": "The task label.", + "type": { + "$ref": "1285" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationResponseVerboseJson.task", + "serializationOptions": { + "json": { + "name": "task" + } + } + }, + { + "$id": "2436", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "The language of the output translation (always `english`).", + "type": { + "$id": "2437", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationResponseVerboseJson.language", + "serializationOptions": { + "json": { + "name": "language" + } + } + }, + { + "$id": "2438", + "kind": "property", + "name": "duration", + "serializedName": "duration", + "doc": "The duration of the input audio.", + "type": { + "$id": "2439", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "2440", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationResponseVerboseJson.duration", + "serializationOptions": { + "json": { + "name": "duration" + } + } + }, + { + "$id": "2441", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The translated text.", + "type": { + "$id": "2442", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationResponseVerboseJson.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "2443", + "kind": "property", + "name": "segments", + "serializedName": "segments", + "doc": "Segments of the translated text and their corresponding details.", + "type": { + "$ref": "2360" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationResponseVerboseJson.segments", + "serializationOptions": { + "json": { + "name": "segments" + } + } + } + ] + }, + { + "$id": "2444", + "kind": "model", + "name": "CreateTranslationResponseJson", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateTranslationResponseJson", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2445", + "kind": "property", + "name": "text", + "serializedName": "text", + "type": { + "$id": "2446", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateTranslationResponseJson.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + { + "$id": "2447", + "kind": "model", + "name": "CreateBatchRequest", + "namespace": "", + "crossLanguageDefinitionId": "OpenAI.createBatch.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "2448", + "kind": "property", + "name": "input_file_id", + "serializedName": "input_file_id", + "doc": "The ID of an uploaded file that contains requests for the new batch.\n\nSee [upload file](/docs/api-reference/files/create) for how to upload a file.\n\nYour input file must be formatted as a [JSONL file](/docs/api-reference/batch/requestInput),\nand must be uploaded with the purpose `batch`.", + "type": { + "$id": "2449", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createBatch.Request.anonymous.input_file_id", + "serializationOptions": { + "json": { + "name": "input_file_id" + } + } + }, + { + "$id": "2450", + "kind": "property", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "The endpoint to be used for all requests in the batch. Currently `/v1/chat/completions` and\n`/v1/embeddings` are supported.", + "type": { + "$ref": "129" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createBatch.Request.anonymous.endpoint", + "serializationOptions": { + "json": { + "name": "endpoint" + } + } + }, + { + "$id": "2451", + "kind": "property", + "name": "completion_window", + "serializedName": "completion_window", + "doc": "The time frame within which the batch should be processed. Currently only `24h` is supported.", + "type": { + "$ref": "1287" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createBatch.Request.anonymous.completion_window", + "serializationOptions": { + "json": { + "name": "completion_window" + } + } + }, + { + "$id": "2452", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createBatch.Request.anonymous.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$id": "2453", + "kind": "model", + "name": "Batch", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Batch", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2454", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "2455", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "2456", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `batch`.", + "type": { + "$ref": "1289" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "2457", + "kind": "property", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "The OpenAI API endpoint used by the batch.", + "type": { + "$id": "2458", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.endpoint", + "serializationOptions": { + "json": { + "name": "endpoint" + } + } + }, + { + "$id": "2459", + "kind": "property", + "name": "errors", + "serializedName": "errors", + "type": { + "$id": "2460", + "kind": "model", + "name": "BatchErrors", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Batch.errors.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2461", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `list`.", + "type": { + "$ref": "1291" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.errors.anonymous.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "2462", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "2463", + "kind": "array", + "name": "Array8", + "valueType": { + "$id": "2464", + "kind": "model", + "name": "BatchErrorsDatum", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Batch.errors.datum.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2465", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "An error code identifying the error type.", + "type": { + "$id": "2466", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.errors.datum.anonymous.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "2467", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable message providing more details about the error.", + "type": { + "$id": "2468", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.errors.datum.anonymous.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + }, + { + "$id": "2469", + "kind": "property", + "name": "param", + "serializedName": "param", + "doc": "The name of the parameter that caused the error, if applicable.", + "type": { + "$id": "2470", + "kind": "nullable", + "type": { + "$id": "2471", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.errors.datum.anonymous.param", + "serializationOptions": { + "json": { + "name": "param" + } + } + }, + { + "$id": "2472", + "kind": "property", + "name": "line", + "serializedName": "line", + "doc": "The line number of the input file where the error occurred, if applicable.", + "type": { + "$id": "2473", + "kind": "nullable", + "type": { + "$id": "2474", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.errors.datum.anonymous.line", + "serializationOptions": { + "json": { + "name": "line" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.errors.anonymous.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.errors", + "serializationOptions": { + "json": { + "name": "errors" + } + } + }, + { + "$id": "2475", + "kind": "property", + "name": "input_file_id", + "serializedName": "input_file_id", + "doc": "The ID of the input file for the batch.", + "type": { + "$id": "2476", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.input_file_id", + "serializationOptions": { + "json": { + "name": "input_file_id" + } + } + }, + { + "$id": "2477", + "kind": "property", + "name": "completion_window", + "serializedName": "completion_window", + "doc": "The time frame within which the batch should be processed.", + "type": { + "$id": "2478", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.completion_window", + "serializationOptions": { + "json": { + "name": "completion_window" + } + } + }, + { + "$id": "2479", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The current status of the batch.", + "type": { + "$ref": "133" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "2480", + "kind": "property", + "name": "output_file_id", + "serializedName": "output_file_id", + "doc": "The ID of the file containing the outputs of successfully executed requests.", + "type": { + "$id": "2481", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.output_file_id", + "serializationOptions": { + "json": { + "name": "output_file_id" + } + } + }, + { + "$id": "2482", + "kind": "property", + "name": "error_file_id", + "serializedName": "error_file_id", + "doc": "The ID of the file containing the outputs of requests with errors.", + "type": { + "$id": "2483", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.error_file_id", + "serializationOptions": { + "json": { + "name": "error_file_id" + } + } + }, + { + "$id": "2484", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the batch was created.", + "type": { + "$id": "2485", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2486", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "2487", + "kind": "property", + "name": "in_progress_at", + "serializedName": "in_progress_at", + "doc": "The Unix timestamp (in seconds) for when the batch started processing.", + "type": { + "$id": "2488", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2489", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.in_progress_at", + "serializationOptions": { + "json": { + "name": "in_progress_at" + } + } + }, + { + "$id": "2490", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "The Unix timestamp (in seconds) for when the batch will expire.", + "type": { + "$id": "2491", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2492", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + }, + { + "$id": "2493", + "kind": "property", + "name": "finalizing_at", + "serializedName": "finalizing_at", + "doc": "The Unix timestamp (in seconds) for when the batch started finalizing.", + "type": { + "$id": "2494", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2495", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.finalizing_at", + "serializationOptions": { + "json": { + "name": "finalizing_at" + } + } + }, + { + "$id": "2496", + "kind": "property", + "name": "completed_at", + "serializedName": "completed_at", + "doc": "The Unix timestamp (in seconds) for when the batch was completed.", + "type": { + "$id": "2497", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2498", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.completed_at", + "serializationOptions": { + "json": { + "name": "completed_at" + } + } + }, + { + "$id": "2499", + "kind": "property", + "name": "failed_at", + "serializedName": "failed_at", + "doc": "The Unix timestamp (in seconds) for when the batch failed.", + "type": { + "$id": "2500", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2501", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.failed_at", + "serializationOptions": { + "json": { + "name": "failed_at" + } + } + }, + { + "$id": "2502", + "kind": "property", + "name": "expired_at", + "serializedName": "expired_at", + "doc": "The Unix timestamp (in seconds) for when the batch expired.", + "type": { + "$id": "2503", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2504", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.expired_at", + "serializationOptions": { + "json": { + "name": "expired_at" + } + } + }, + { + "$id": "2505", + "kind": "property", + "name": "cancelling_at", + "serializedName": "cancelling_at", + "doc": "The Unix timestamp (in seconds) for when the batch started cancelling.", + "type": { + "$id": "2506", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2507", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.cancelling_at", + "serializationOptions": { + "json": { + "name": "cancelling_at" + } + } + }, + { + "$id": "2508", + "kind": "property", + "name": "cancelled_at", + "serializedName": "cancelled_at", + "doc": "The Unix timestamp (in seconds) for when the batch was cancelled.", + "type": { + "$id": "2509", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2510", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.cancelled_at", + "serializationOptions": { + "json": { + "name": "cancelled_at" + } + } + }, + { + "$id": "2511", + "kind": "property", + "name": "request_counts", + "serializedName": "request_counts", + "doc": "The request counts for different statuses within the batch.", + "type": { + "$id": "2512", + "kind": "model", + "name": "BatchRequestCounts", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Batch.request_counts.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2513", + "kind": "property", + "name": "total", + "serializedName": "total", + "doc": "Total number of requests in the batch.", + "type": { + "$id": "2514", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.request_counts.anonymous.total", + "serializationOptions": { + "json": { + "name": "total" + } + } + }, + { + "$id": "2515", + "kind": "property", + "name": "completed", + "serializedName": "completed", + "doc": "Number of requests that have been completed successfully.", + "type": { + "$id": "2516", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.request_counts.anonymous.completed", + "serializationOptions": { + "json": { + "name": "completed" + } + } + }, + { + "$id": "2517", + "kind": "property", + "name": "failed", + "serializedName": "failed", + "doc": "Number of requests that have failed.", + "type": { + "$id": "2518", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.request_counts.anonymous.failed", + "serializationOptions": { + "json": { + "name": "failed" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.request_counts", + "serializationOptions": { + "json": { + "name": "request_counts" + } + } + }, + { + "$id": "2519", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batch.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "2460" + }, + { + "$ref": "2464" + }, + { + "$ref": "2512" + }, + { + "$id": "2520", + "kind": "model", + "name": "ListBatchesResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListBatchesResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2521", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "2522", + "kind": "array", + "name": "ArrayBatch", + "valueType": { + "$ref": "2453" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListBatchesResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "2523", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "2524", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListBatchesResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "2525", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "2526", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListBatchesResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "2527", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "2528", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListBatchesResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + }, + { + "$id": "2529", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1293" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListBatchesResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + { + "$id": "2530", + "kind": "model", + "name": "ChatCompletionList", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionList", + "usage": "Output,Json", + "doc": "An object representing a list of Chat Completions.", + "decorators": [], + "properties": [ + { + "$id": "2531", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of this object. It is always set to \"list\".", + "type": { + "$ref": "1295" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionList.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "2532", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "An array of chat completion objects.", + "type": { + "$id": "2533", + "kind": "array", + "name": "ArrayCreateChatCompletionResponse", + "valueType": { + "$id": "2534", + "kind": "model", + "name": "CreateChatCompletionResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse", + "usage": "Output,Json", + "doc": "Represents a chat completion response returned by model, based on the provided input.", + "decorators": [], + "properties": [ + { + "$id": "2535", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "A unique identifier for the chat completion.", + "type": { + "$id": "2536", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "2537", + "kind": "property", + "name": "choices", + "serializedName": "choices", + "doc": "A list of chat completion choices. Can be more than one if `n` is greater than 1.", + "type": { + "$id": "2538", + "kind": "array", + "name": "Array9", + "valueType": { + "$id": "2539", + "kind": "model", + "name": "CreateChatCompletionResponseChoice", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2540", + "kind": "property", + "name": "finish_reason", + "serializedName": "finish_reason", + "doc": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.", + "type": { + "$ref": "143" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.anonymous.finish_reason", + "serializationOptions": { + "json": { + "name": "finish_reason" + } + } + }, + { + "$id": "2541", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the choice in the list of choices.", + "type": { + "$id": "2542", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.anonymous.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + }, + { + "$id": "2543", + "kind": "property", + "name": "message", + "serializedName": "message", + "type": { + "$id": "2544", + "kind": "model", + "name": "ChatCompletionResponseMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage", + "usage": "Output,Json", + "doc": "A chat completion message generated by the model.", + "decorators": [], + "properties": [ + { + "$id": "2545", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the message.", + "type": { + "$id": "2546", + "kind": "nullable", + "type": { + "$id": "2547", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "2548", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "The refusal message generated by the model.", + "type": { + "$id": "2549", + "kind": "nullable", + "type": { + "$id": "2550", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.refusal", + "serializationOptions": { + "json": { + "name": "refusal" + } + } + }, + { + "$id": "2551", + "kind": "property", + "name": "tool_calls", + "serializedName": "tool_calls", + "type": { + "$id": "2552", + "kind": "array", + "name": "ChatCompletionMessageToolCalls", + "valueType": { + "$id": "2553", + "kind": "model", + "name": "ChatCompletionMessageToolCall", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCall", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2554", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call.", + "type": { + "$id": "2555", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCall.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "2556", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the tool. Currently, only `function` is supported.", + "type": { + "$id": "2557", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "151" + }, + "enumType": { + "$ref": "150" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCall.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2558", + "kind": "property", + "name": "function", + "serializedName": "function", + "doc": "The function that the model called.", + "type": { + "$id": "2559", + "kind": "model", + "name": "ChatCompletionMessageToolCallFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCall.function.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2560", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to call.", + "type": { + "$id": "2561", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCall.function.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2562", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.", + "type": { + "$id": "2563", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCall.function.anonymous.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCall.function", + "serializationOptions": { + "json": { + "name": "function" + } + } + } + ] + }, + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCalls", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.tool_calls", + "serializationOptions": { + "json": { + "name": "tool_calls" + } + } + }, + { + "$id": "2564", + "kind": "property", + "name": "annotations", + "serializedName": "annotations", + "doc": "Annotations for the message, when applicable, as when using the\n[web search tool](/docs/guides/tools-web-search?api-mode=chat).", + "type": { + "$id": "2565", + "kind": "array", + "name": "Array10", + "valueType": { + "$id": "2566", + "kind": "model", + "name": "ChatCompletionResponseMessageAnnotation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.annotation.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2567", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the URL citation. Always `url_citation`.", + "type": { + "$ref": "1297" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.annotation.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2568", + "kind": "property", + "name": "url_citation", + "serializedName": "url_citation", + "doc": "A URL citation when using web search.", + "type": { + "$id": "2569", + "kind": "model", + "name": "ChatCompletionResponseMessageAnnotationUrlCitation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.annotation.url_citation.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2570", + "kind": "property", + "name": "end_index", + "serializedName": "end_index", + "doc": "The index of the last character of the URL citation in the message.", + "type": { + "$id": "2571", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.annotation.url_citation.anonymous.end_index", + "serializationOptions": { + "json": { + "name": "end_index" + } + } + }, + { + "$id": "2572", + "kind": "property", + "name": "start_index", + "serializedName": "start_index", + "doc": "The index of the first character of the URL citation in the message.", + "type": { + "$id": "2573", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.annotation.url_citation.anonymous.start_index", + "serializationOptions": { + "json": { + "name": "start_index" + } + } + }, + { + "$id": "2574", + "kind": "property", + "name": "url", + "serializedName": "url", + "doc": "The URL of the web resource.", + "type": { + "$id": "2575", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.annotation.url_citation.anonymous.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + }, + { + "$id": "2576", + "kind": "property", + "name": "title", + "serializedName": "title", + "doc": "The title of the web resource.", + "type": { + "$id": "2577", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.annotation.url_citation.anonymous.title", + "serializationOptions": { + "json": { + "name": "title" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.annotation.anonymous.url_citation", + "serializationOptions": { + "json": { + "name": "url_citation" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.annotations", + "serializationOptions": { + "json": { + "name": "annotations" + } + } + }, + { + "$id": "2578", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the author of this message.", + "type": { + "$id": "2579", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "2580", + "kind": "property", + "name": "function_call", + "serializedName": "function_call", + "doc": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.", + "type": { + "$id": "2581", + "kind": "model", + "name": "ChatCompletionResponseMessageFunctionCall", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.function_call.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2582", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "2583", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.function_call.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2584", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "type": { + "$id": "2585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.function_call.anonymous.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.function_call", + "serializationOptions": { + "json": { + "name": "function_call" + } + } + }, + { + "$id": "2586", + "kind": "property", + "name": "audio", + "serializedName": "audio", + "doc": "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](/docs/guides/audio).", + "type": { + "$id": "2587", + "kind": "nullable", + "type": { + "$id": "2588", + "kind": "model", + "name": "ChatCompletionResponseMessageAudio1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.audio.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2589", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique identifier for this audio response.", + "type": { + "$id": "2590", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.audio.anonymous.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "2591", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "The Unix timestamp (in seconds) for when this audio response will\nno longer be accessible on the server for use in multi-turn\nconversations.", + "type": { + "$id": "2592", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2593", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.audio.anonymous.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + }, + { + "$id": "2594", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "Base64 encoded audio bytes generated by the model, in the format\nspecified in the request.", + "type": { + "$id": "2595", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.audio.anonymous.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "2596", + "kind": "property", + "name": "transcript", + "serializedName": "transcript", + "doc": "Transcript of the audio generated by the model.", + "type": { + "$id": "2597", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.audio.anonymous.transcript", + "serializationOptions": { + "json": { + "name": "transcript" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionResponseMessage.audio", + "serializationOptions": { + "json": { + "name": "audio" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.anonymous.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + }, + { + "$id": "2598", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "doc": "Log probability information for the choice.", + "type": { + "$id": "2599", + "kind": "nullable", + "type": { + "$id": "2600", + "kind": "model", + "name": "CreateChatCompletionResponseChoiceLogprobs1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.logprobs.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2601", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "A list of message content tokens with log probability information.", + "type": { + "$id": "2602", + "kind": "nullable", + "type": { + "$id": "2603", + "kind": "array", + "name": "ArrayChatCompletionTokenLogprob", + "valueType": { + "$id": "2604", + "kind": "model", + "name": "ChatCompletionTokenLogprob", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTokenLogprob", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2605", + "kind": "property", + "name": "token", + "serializedName": "token", + "doc": "The token.", + "type": { + "$id": "2606", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTokenLogprob.token", + "serializationOptions": { + "json": { + "name": "token" + } + } + }, + { + "$id": "2607", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "doc": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.", + "type": { + "$id": "2608", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTokenLogprob.logprob", + "serializationOptions": { + "json": { + "name": "logprob" + } + } + }, + { + "$id": "2609", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.", + "type": { + "$id": "2610", + "kind": "nullable", + "type": { + "$ref": "2375" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTokenLogprob.bytes", + "serializationOptions": { + "json": { + "name": "bytes" + } + } + }, + { + "$id": "2611", + "kind": "property", + "name": "top_logprobs", + "serializedName": "top_logprobs", + "doc": "List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.", + "type": { + "$id": "2612", + "kind": "array", + "name": "Array11", + "valueType": { + "$id": "2613", + "kind": "model", + "name": "ChatCompletionTokenLogprobTopLogprob", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTokenLogprob.top_logprob.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2614", + "kind": "property", + "name": "token", + "serializedName": "token", + "doc": "The token.", + "type": { + "$id": "2615", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTokenLogprob.top_logprob.anonymous.token", + "serializationOptions": { + "json": { + "name": "token" + } + } + }, + { + "$id": "2616", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "doc": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely.", + "type": { + "$id": "2617", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTokenLogprob.top_logprob.anonymous.logprob", + "serializationOptions": { + "json": { + "name": "logprob" + } + } + }, + { + "$id": "2618", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.", + "type": { + "$id": "2619", + "kind": "nullable", + "type": { + "$ref": "2375" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTokenLogprob.top_logprob.anonymous.bytes", + "serializationOptions": { + "json": { + "name": "bytes" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTokenLogprob.top_logprobs", + "serializationOptions": { + "json": { + "name": "top_logprobs" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.logprobs.anonymous.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "2620", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "A list of message refusal tokens with log probability information.", + "type": { + "$id": "2621", + "kind": "nullable", + "type": { + "$ref": "2603" + }, + "namespace": "" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.logprobs.anonymous.refusal", + "serializationOptions": { + "json": { + "name": "refusal" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choice.anonymous.logprobs", + "serializationOptions": { + "json": { + "name": "logprobs" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.choices", + "serializationOptions": { + "json": { + "name": "choices" + } + } + }, + { + "$id": "2622", + "kind": "property", + "name": "created", + "serializedName": "created", + "doc": "The Unix timestamp (in seconds) of when the chat completion was created.", + "type": { + "$id": "2623", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2624", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.created", + "serializationOptions": { + "json": { + "name": "created" + } + } + }, + { + "$id": "2625", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model used for the chat completion.", + "type": { + "$id": "2626", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "2627", + "kind": "property", + "name": "service_tier", + "serializedName": "service_tier", + "type": { + "$id": "2628", + "kind": "nullable", + "type": { + "$ref": "161" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.service_tier", + "serializationOptions": { + "json": { + "name": "service_tier" + } + } + }, + { + "$id": "2629", + "kind": "property", + "name": "system_fingerprint", + "serializedName": "system_fingerprint", + "doc": "This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.", + "type": { + "$id": "2630", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.system_fingerprint", + "serializationOptions": { + "json": { + "name": "system_fingerprint" + } + } + }, + { + "$id": "2631", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `chat.completion`.", + "type": { + "$ref": "1299" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "2632", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "type": { + "$id": "2633", + "kind": "model", + "name": "CompletionUsage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CompletionUsage", + "usage": "Output,Json", + "doc": "Usage statistics for the completion request.", + "decorators": [], + "properties": [ + { + "$id": "2634", + "kind": "property", + "name": "completion_tokens", + "serializedName": "completion_tokens", + "doc": "Number of tokens in the generated completion.", + "type": { + "$id": "2635", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.completion_tokens", + "serializationOptions": { + "json": { + "name": "completion_tokens" + } + } + }, + { + "$id": "2636", + "kind": "property", + "name": "prompt_tokens", + "serializedName": "prompt_tokens", + "doc": "Number of tokens in the prompt.", + "type": { + "$id": "2637", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.prompt_tokens", + "serializationOptions": { + "json": { + "name": "prompt_tokens" + } + } + }, + { + "$id": "2638", + "kind": "property", + "name": "total_tokens", + "serializedName": "total_tokens", + "doc": "Total number of tokens used in the request (prompt + completion).", + "type": { + "$id": "2639", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.total_tokens", + "serializationOptions": { + "json": { + "name": "total_tokens" + } + } + }, + { + "$id": "2640", + "kind": "property", + "name": "completion_tokens_details", + "serializedName": "completion_tokens_details", + "doc": "Breakdown of tokens used in a completion.", + "type": { + "$id": "2641", + "kind": "model", + "name": "CompletionUsageCompletionTokensDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.completion_tokens_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2642", + "kind": "property", + "name": "accepted_prediction_tokens", + "serializedName": "accepted_prediction_tokens", + "doc": "When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.", + "type": { + "$id": "2643", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.completion_tokens_details.anonymous.accepted_prediction_tokens", + "serializationOptions": { + "json": { + "name": "accepted_prediction_tokens" + } + } + }, + { + "$id": "2644", + "kind": "property", + "name": "audio_tokens", + "serializedName": "audio_tokens", + "doc": "Audio input tokens generated by the model.", + "type": { + "$id": "2645", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.completion_tokens_details.anonymous.audio_tokens", + "serializationOptions": { + "json": { + "name": "audio_tokens" + } + } + }, + { + "$id": "2646", + "kind": "property", + "name": "reasoning_tokens", + "serializedName": "reasoning_tokens", + "doc": "Tokens generated by the model for reasoning.", + "type": { + "$id": "2647", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.completion_tokens_details.anonymous.reasoning_tokens", + "serializationOptions": { + "json": { + "name": "reasoning_tokens" + } + } + }, + { + "$id": "2648", + "kind": "property", + "name": "rejected_prediction_tokens", + "serializedName": "rejected_prediction_tokens", + "doc": "When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.", + "type": { + "$id": "2649", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.completion_tokens_details.anonymous.rejected_prediction_tokens", + "serializationOptions": { + "json": { + "name": "rejected_prediction_tokens" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.completion_tokens_details", + "serializationOptions": { + "json": { + "name": "completion_tokens_details" + } + } + }, + { + "$id": "2650", + "kind": "property", + "name": "prompt_tokens_details", + "serializedName": "prompt_tokens_details", + "doc": "Breakdown of tokens used in the prompt.", + "type": { + "$id": "2651", + "kind": "model", + "name": "CompletionUsagePromptTokensDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.prompt_tokens_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2652", + "kind": "property", + "name": "audio_tokens", + "serializedName": "audio_tokens", + "doc": "Audio input tokens present in the prompt.", + "type": { + "$id": "2653", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.prompt_tokens_details.anonymous.audio_tokens", + "serializationOptions": { + "json": { + "name": "audio_tokens" + } + } + }, + { + "$id": "2654", + "kind": "property", + "name": "cached_tokens", + "serializedName": "cached_tokens", + "doc": "Cached tokens present in the prompt.", + "type": { + "$id": "2655", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.prompt_tokens_details.anonymous.cached_tokens", + "serializationOptions": { + "json": { + "name": "cached_tokens" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompletionUsage.prompt_tokens_details", + "serializationOptions": { + "json": { + "name": "prompt_tokens_details" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionResponse.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionList.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "2656", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "doc": "The identifier of the first chat completion in the data array.", + "type": { + "$id": "2657", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionList.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "2658", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "doc": "The identifier of the last chat completion in the data array.", + "type": { + "$id": "2659", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionList.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "2660", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Indicates whether there are more Chat Completions available.", + "type": { + "$id": "2661", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionList.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "2534" + }, + { + "$ref": "2539" + }, + { + "$ref": "2544" + }, + { + "$ref": "2553" + }, + { + "$ref": "2559" + }, + { + "$ref": "2566" + }, + { + "$ref": "2569" + }, + { + "$ref": "2581" + }, + { + "$ref": "2588" + }, + { + "$ref": "2600" + }, + { + "$ref": "2604" + }, + { + "$ref": "2613" + }, + { + "$ref": "2633" + }, + { + "$ref": "2641" + }, + { + "$ref": "2651" + }, + { + "$id": "2662", + "kind": "model", + "name": "CreateChatCompletionRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2663", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "2664", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.", + "type": { + "$id": "2665", + "kind": "nullable", + "type": { + "$id": "2666", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "2667", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.", + "type": { + "$id": "2668", + "kind": "nullable", + "type": { + "$id": "2669", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "2670", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).", + "type": { + "$id": "2671", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.user", + "serializationOptions": { + "json": { + "name": "user" + } + } + }, + { + "$id": "2672", + "kind": "property", + "name": "service_tier", + "serializedName": "service_tier", + "type": { + "$ref": "161" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.service_tier", + "serializationOptions": { + "json": { + "name": "service_tier" + } + } + }, + { + "$id": "2673", + "kind": "property", + "name": "messages", + "serializedName": "messages", + "doc": "A list of messages comprising the conversation so far. Depending on the\n[model](/docs/models) you use, different message types (modalities) are\nsupported, like [text](/docs/guides/text-generation),\n[images](/docs/guides/vision), and [audio](/docs/guides/audio).", + "type": { + "$id": "2674", + "kind": "array", + "name": "ArrayChatCompletionRequestMessage", + "valueType": { + "$id": "2675", + "kind": "model", + "name": "ChatCompletionRequestMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessage", + "usage": "Input,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "2676", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the author of this message.", + "type": { + "$ref": "153" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessage.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + "properties": [ + { + "$ref": "2676" + }, + { + "$id": "2677", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the message. Valid content part types vary per message role.", + "type": { + "$id": "2678", + "kind": "nullable", + "type": { + "$id": "2679", + "kind": "union", + "name": "ChatCompletionRequestMessageContent", + "variantTypes": [ + { + "$id": "2680", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "2681", + "kind": "array", + "name": "ArrayChatCompletionRequestMessageContentPart", + "valueType": { + "$id": "2682", + "kind": "model", + "name": "ChatCompletionRequestMessageContentPart", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPart", + "usage": "Input,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "2683", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "167" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPart.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "2683" + } + ], + "discriminatedSubtypes": { + "text": { + "$id": "2684", + "kind": "model", + "name": "ChatCompletionRequestMessageContentPartText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartText", + "usage": "Input,Json", + "doc": "Learn about [text inputs](/docs/guides/text-generation).", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "2682" + }, + "properties": [ + { + "$id": "2685", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the content part.", + "type": { + "$ref": "169" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartText.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2686", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text content.", + "type": { + "$id": "2687", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartText.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "image_url": { + "$id": "2688", + "kind": "model", + "name": "ChatCompletionRequestMessageContentPartImage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartImage", + "usage": "Input,Json", + "doc": "Learn about [image inputs](/docs/guides/vision).", + "discriminatorValue": "image_url", + "decorators": [], + "baseModel": { + "$ref": "2682" + }, + "properties": [ + { + "$id": "2689", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the content part.", + "type": { + "$ref": "172" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartImage.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2690", + "kind": "property", + "name": "image_url", + "serializedName": "image_url", + "type": { + "$id": "2691", + "kind": "model", + "name": "ChatCompletionRequestMessageContentPartImageImageUrl", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartImage.image_url.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2692", + "kind": "property", + "name": "url", + "serializedName": "url", + "doc": "Either a URL of the image or the base64 encoded image data.", + "type": { + "$id": "2693", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartImage.image_url.anonymous.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + }, + { + "$id": "2694", + "kind": "property", + "name": "detail", + "serializedName": "detail", + "doc": "Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).", + "type": { + "$ref": "174" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartImage.image_url.anonymous.detail", + "serializationOptions": { + "json": { + "name": "detail" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartImage.image_url", + "serializationOptions": { + "json": { + "name": "image_url" + } + } + } + ] + }, + "refusal": { + "$id": "2695", + "kind": "model", + "name": "ChatCompletionRequestMessageContentPartRefusal", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartRefusal", + "usage": "Input,Json", + "discriminatorValue": "refusal", + "decorators": [], + "baseModel": { + "$ref": "2682" + }, + "properties": [ + { + "$id": "2696", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the content part.", + "type": { + "$ref": "173" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartRefusal.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2697", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "The refusal message generated by the model.", + "type": { + "$id": "2698", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartRefusal.refusal", + "serializationOptions": { + "json": { + "name": "refusal" + } + } + } + ] + }, + "file": { + "$id": "2699", + "kind": "model", + "name": "ChatCompletionRequestMessageContentPartFile", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartFile", + "usage": "Input,Json", + "doc": "Learn about [file inputs](/docs/guides/text) for text generation.", + "discriminatorValue": "file", + "decorators": [], + "baseModel": { + "$ref": "2682" + }, + "properties": [ + { + "$id": "2700", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the content part. Always `file`.", + "type": { + "$ref": "170" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartFile.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2701", + "kind": "property", + "name": "file", + "serializedName": "file", + "type": { + "$id": "2702", + "kind": "model", + "name": "ChatCompletionRequestMessageContentPartFileFile", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartFile.file.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2703", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "doc": "The name of the file, used when passing the file to the model as a\nstring.", + "type": { + "$id": "2704", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartFile.file.anonymous.filename", + "serializationOptions": { + "json": { + "name": "filename" + } + } + }, + { + "$id": "2705", + "kind": "property", + "name": "file_data", + "serializedName": "file_data", + "doc": "The base64 encoded file data, used when passing the file to the model\nas a string.", + "type": { + "$id": "2706", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartFile.file.anonymous.file_data", + "serializationOptions": { + "json": { + "name": "file_data" + } + } + }, + { + "$id": "2707", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of an uploaded file to use as input.", + "type": { + "$id": "2708", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartFile.file.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartFile.file", + "serializationOptions": { + "json": { + "name": "file" + } + } + } + ] + }, + "input_audio": { + "$id": "2709", + "kind": "model", + "name": "ChatCompletionRequestMessageContentPartAudio", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartAudio", + "usage": "Input,Json", + "doc": "Learn about [audio inputs](/docs/guides/audio).", + "discriminatorValue": "input_audio", + "decorators": [], + "baseModel": { + "$ref": "2682" + }, + "properties": [ + { + "$id": "2710", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the content part. Always `input_audio`.", + "type": { + "$ref": "171" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartAudio.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2711", + "kind": "property", + "name": "input_audio", + "serializedName": "input_audio", + "type": { + "$id": "2712", + "kind": "model", + "name": "ChatCompletionRequestMessageContentPartAudioInputAudio", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartAudio.input_audio.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2713", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "Base64 encoded audio data.", + "type": { + "$id": "2714", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartAudio.input_audio.anonymous.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "2715", + "kind": "property", + "name": "format", + "serializedName": "format", + "doc": "The format of the encoded audio data. Currently supports \"wav\" and \"mp3\".", + "type": { + "$ref": "179" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartAudio.input_audio.anonymous.format", + "serializationOptions": { + "json": { + "name": "format" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessageContentPartAudio.input_audio", + "serializationOptions": { + "json": { + "name": "input_audio" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestMessage.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ], + "discriminatedSubtypes": { + "system": { + "$id": "2716", + "kind": "model", + "name": "ChatCompletionRequestSystemMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestSystemMessage", + "usage": "Input,Json", + "doc": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, use `developer` messages\nfor this purpose instead.", + "discriminatorValue": "system", + "decorators": [], + "baseModel": { + "$ref": "2675" + }, + "properties": [ + { + "$id": "2717", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the system message.", + "type": { + "$id": "2718", + "kind": "union", + "name": "ChatCompletionRequestSystemMessageContent", + "variantTypes": [ + { + "$id": "2719", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "2720", + "kind": "array", + "name": "ArrayChatCompletionRequestSystemMessageContentPart", + "valueType": { + "$id": "2721", + "kind": "union", + "name": "ChatCompletionRequestSystemMessageContentPart", + "variantTypes": [ + { + "$ref": "2684" + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestSystemMessage.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "2722", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the messages author, in this case `system`.", + "type": { + "$id": "2723", + "kind": "enumvalue", + "name": "system", + "value": "system", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestSystemMessage.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "2724", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.", + "type": { + "$id": "2725", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestSystemMessage.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + "developer": { + "$id": "2726", + "kind": "model", + "name": "ChatCompletionRequestDeveloperMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestDeveloperMessage", + "usage": "Input,Json", + "doc": "Developer-provided instructions that the model should follow, regardless of\nmessages sent by the user. With o1 models and newer, `developer` messages\nreplace the previous `system` messages.", + "discriminatorValue": "developer", + "decorators": [], + "baseModel": { + "$ref": "2675" + }, + "properties": [ + { + "$id": "2727", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the developer message.", + "type": { + "$id": "2728", + "kind": "union", + "name": "ChatCompletionRequestDeveloperMessageContent", + "variantTypes": [ + { + "$id": "2729", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "2730", + "kind": "array", + "name": "ArrayChatCompletionRequestMessageContentPartText", + "valueType": { + "$ref": "2684" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestDeveloperMessage.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "2731", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the messages author, in this case `developer`.", + "type": { + "$id": "2732", + "kind": "enumvalue", + "name": "developer", + "value": "developer", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestDeveloperMessage.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "2733", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.", + "type": { + "$id": "2734", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestDeveloperMessage.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + "user": { + "$id": "2735", + "kind": "model", + "name": "ChatCompletionRequestUserMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestUserMessage", + "usage": "Input,Json", + "doc": "Messages sent by an end user, containing prompts or additional context\ninformation.", + "discriminatorValue": "user", + "decorators": [], + "baseModel": { + "$ref": "2675" + }, + "properties": [ + { + "$id": "2736", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the user message.", + "type": { + "$id": "2737", + "kind": "union", + "name": "ChatCompletionRequestUserMessageContent", + "variantTypes": [ + { + "$id": "2738", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "2739", + "kind": "array", + "name": "ArrayChatCompletionRequestUserMessageContentPart", + "valueType": { + "$id": "2740", + "kind": "union", + "name": "ChatCompletionRequestUserMessageContentPart", + "variantTypes": [ + { + "$ref": "2684" + }, + { + "$ref": "2688" + }, + { + "$ref": "2709" + }, + { + "$ref": "2699" + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestUserMessage.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "2741", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the messages author, in this case `user`.", + "type": { + "$id": "2742", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestUserMessage.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "2743", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.", + "type": { + "$id": "2744", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestUserMessage.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + "assistant": { + "$id": "2745", + "kind": "model", + "name": "ChatCompletionRequestAssistantMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage", + "usage": "Input,Json", + "doc": "Messages sent by the model in response to user messages.", + "discriminatorValue": "assistant", + "decorators": [], + "baseModel": { + "$ref": "2675" + }, + "properties": [ + { + "$id": "2746", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.", + "type": { + "$id": "2747", + "kind": "nullable", + "type": { + "$id": "2748", + "kind": "union", + "name": "ChatCompletionRequestAssistantMessageContent", + "variantTypes": [ + { + "$id": "2749", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "2750", + "kind": "array", + "name": "ArrayChatCompletionRequestAssistantMessageContentPart", + "valueType": { + "$id": "2751", + "kind": "union", + "name": "ChatCompletionRequestAssistantMessageContentPart", + "variantTypes": [ + { + "$ref": "2684" + }, + { + "$ref": "2695" + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "2752", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "The refusal message by the assistant.", + "type": { + "$id": "2753", + "kind": "nullable", + "type": { + "$id": "2754", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.refusal", + "serializationOptions": { + "json": { + "name": "refusal" + } + } + }, + { + "$id": "2755", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the messages author, in this case `assistant`.", + "type": { + "$id": "2756", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "2757", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.", + "type": { + "$id": "2758", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2759", + "kind": "property", + "name": "audio", + "serializedName": "audio", + "doc": "Data about a previous audio response from the model.\n[Learn more](/docs/guides/audio).", + "type": { + "$id": "2760", + "kind": "nullable", + "type": { + "$id": "2761", + "kind": "model", + "name": "ChatCompletionRequestAssistantMessageAudio1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.audio.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2762", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique identifier for a previous audio response from the model.", + "type": { + "$id": "2763", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.audio.anonymous.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.audio", + "serializationOptions": { + "json": { + "name": "audio" + } + } + }, + { + "$id": "2764", + "kind": "property", + "name": "tool_calls", + "serializedName": "tool_calls", + "type": { + "$ref": "2552" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.tool_calls", + "serializationOptions": { + "json": { + "name": "tool_calls" + } + } + }, + { + "$id": "2765", + "kind": "property", + "name": "function_call", + "serializedName": "function_call", + "doc": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.", + "type": { + "$id": "2766", + "kind": "nullable", + "type": { + "$id": "2767", + "kind": "model", + "name": "ChatCompletionRequestAssistantMessageFunctionCall1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.function_call.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2768", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "2769", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.function_call.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2770", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "type": { + "$id": "2771", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.function_call.anonymous.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestAssistantMessage.function_call", + "serializationOptions": { + "json": { + "name": "function_call" + } + } + } + ] + }, + "tool": { + "$id": "2772", + "kind": "model", + "name": "ChatCompletionRequestToolMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestToolMessage", + "usage": "Input,Json", + "discriminatorValue": "tool", + "decorators": [], + "baseModel": { + "$ref": "2675" + }, + "properties": [ + { + "$id": "2773", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the messages author, in this case `tool`.", + "type": { + "$id": "2774", + "kind": "enumvalue", + "name": "tool", + "value": "tool", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestToolMessage.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "2775", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the tool message.", + "type": { + "$id": "2776", + "kind": "union", + "name": "ChatCompletionRequestToolMessageContent", + "variantTypes": [ + { + "$id": "2777", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "2778", + "kind": "array", + "name": "ArrayChatCompletionRequestToolMessageContentPart", + "valueType": { + "$id": "2779", + "kind": "union", + "name": "ChatCompletionRequestToolMessageContentPart", + "variantTypes": [ + { + "$ref": "2684" + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestToolMessage.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "2780", + "kind": "property", + "name": "tool_call_id", + "serializedName": "tool_call_id", + "doc": "Tool call that this message is responding to.", + "type": { + "$id": "2781", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestToolMessage.tool_call_id", + "serializationOptions": { + "json": { + "name": "tool_call_id" + } + } + } + ] + }, + "function": { + "$id": "2782", + "kind": "model", + "name": "ChatCompletionRequestFunctionMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestFunctionMessage", + "usage": "Input,Json", + "deprecation": "This field is marked as deprecated.", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "2675" + }, + "properties": [ + { + "$id": "2783", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the messages author, in this case `function`.", + "type": { + "$id": "2784", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestFunctionMessage.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "2785", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the function message.", + "type": { + "$id": "2786", + "kind": "nullable", + "type": { + "$id": "2787", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestFunctionMessage.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "2788", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to call.", + "type": { + "$id": "2789", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionRequestFunctionMessage.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.messages", + "serializationOptions": { + "json": { + "name": "messages" + } + } + }, + { + "$id": "2790", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.", + "type": { + "$ref": "183" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "2791", + "kind": "property", + "name": "modalities", + "serializedName": "modalities", + "type": { + "$id": "2792", + "kind": "nullable", + "type": { + "$id": "2793", + "kind": "array", + "name": "ResponseModalities", + "valueType": { + "$ref": "240" + }, + "crossLanguageDefinitionId": "OpenAI.ResponseModalities", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.modalities", + "serializationOptions": { + "json": { + "name": "modalities" + } + } + }, + { + "$id": "2794", + "kind": "property", + "name": "reasoning_effort", + "serializedName": "reasoning_effort", + "type": { + "$id": "2795", + "kind": "nullable", + "type": { + "$ref": "57" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.reasoning_effort", + "serializationOptions": { + "json": { + "name": "reasoning_effort" + } + } + }, + { + "$id": "2796", + "kind": "property", + "name": "max_completion_tokens", + "serializedName": "max_completion_tokens", + "doc": "An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).", + "type": { + "$id": "2797", + "kind": "nullable", + "type": { + "$id": "2798", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.max_completion_tokens", + "serializationOptions": { + "json": { + "name": "max_completion_tokens" + } + } + }, + { + "$id": "2799", + "kind": "property", + "name": "frequency_penalty", + "serializedName": "frequency_penalty", + "doc": "Number between -2.0 and 2.0. Positive values penalize new tokens based on\ntheir existing frequency in the text so far, decreasing the model's\nlikelihood to repeat the same line verbatim.", + "type": { + "$id": "2800", + "kind": "nullable", + "type": { + "$id": "2801", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.frequency_penalty", + "serializationOptions": { + "json": { + "name": "frequency_penalty" + } + } + }, + { + "$id": "2802", + "kind": "property", + "name": "presence_penalty", + "serializedName": "presence_penalty", + "doc": "Number between -2.0 and 2.0. Positive values penalize new tokens based on\nwhether they appear in the text so far, increasing the model's likelihood\nto talk about new topics.", + "type": { + "$id": "2803", + "kind": "nullable", + "type": { + "$id": "2804", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.presence_penalty", + "serializationOptions": { + "json": { + "name": "presence_penalty" + } + } + }, + { + "$id": "2805", + "kind": "property", + "name": "web_search_options", + "serializedName": "web_search_options", + "doc": "This tool searches the web for relevant results to use in a response.\nLearn more about the [web search tool](/docs/guides/tools-web-search?api-mode=chat).", + "type": { + "$id": "2806", + "kind": "model", + "name": "CreateChatCompletionRequestWebSearchOptions", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.web_search_options.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2807", + "kind": "property", + "name": "user_location", + "serializedName": "user_location", + "doc": "Approximate location parameters for the search.", + "type": { + "$id": "2808", + "kind": "nullable", + "type": { + "$id": "2809", + "kind": "model", + "name": "CreateChatCompletionRequestWebSearchOptionsUserLocation1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.web_search_options.user_location.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2810", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of location approximation. Always `approximate`.", + "type": { + "$ref": "1301" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.web_search_options.user_location.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2811", + "kind": "property", + "name": "approximate", + "serializedName": "approximate", + "type": { + "$id": "2812", + "kind": "model", + "name": "WebSearchLocation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.WebSearchLocation", + "usage": "Input,Json", + "doc": "Approximate location parameters for the search.", + "decorators": [], + "properties": [ + { + "$id": "2813", + "kind": "property", + "name": "country", + "serializedName": "country", + "doc": "The two-letter\n[ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user,\ne.g. `US`.", + "type": { + "$id": "2814", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchLocation.country", + "serializationOptions": { + "json": { + "name": "country" + } + } + }, + { + "$id": "2815", + "kind": "property", + "name": "region", + "serializedName": "region", + "doc": "Free text input for the region of the user, e.g. `California`.", + "type": { + "$id": "2816", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchLocation.region", + "serializationOptions": { + "json": { + "name": "region" + } + } + }, + { + "$id": "2817", + "kind": "property", + "name": "city", + "serializedName": "city", + "doc": "Free text input for the city of the user, e.g. `San Francisco`.", + "type": { + "$id": "2818", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchLocation.city", + "serializationOptions": { + "json": { + "name": "city" + } + } + }, + { + "$id": "2819", + "kind": "property", + "name": "timezone", + "serializedName": "timezone", + "doc": "The [IANA timezone](https://timeapi.io/documentation/iana-timezones)\nof the user, e.g. `America/Los_Angeles`.", + "type": { + "$id": "2820", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchLocation.timezone", + "serializationOptions": { + "json": { + "name": "timezone" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.web_search_options.user_location.anonymous.approximate", + "serializationOptions": { + "json": { + "name": "approximate" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.web_search_options.anonymous.user_location", + "serializationOptions": { + "json": { + "name": "user_location" + } + } + }, + { + "$id": "2821", + "kind": "property", + "name": "search_context_size", + "serializedName": "search_context_size", + "type": { + "$ref": "244" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.web_search_options.anonymous.search_context_size", + "serializationOptions": { + "json": { + "name": "search_context_size" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.web_search_options", + "serializationOptions": { + "json": { + "name": "web_search_options" + } + } + }, + { + "$id": "2822", + "kind": "property", + "name": "top_logprobs", + "serializedName": "top_logprobs", + "doc": "An integer between 0 and 20 specifying the number of most likely tokens to\nreturn at each token position, each with an associated log probability.\n`logprobs` must be set to `true` if this parameter is used.", + "type": { + "$id": "2823", + "kind": "nullable", + "type": { + "$id": "2824", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.top_logprobs", + "serializationOptions": { + "json": { + "name": "top_logprobs" + } + } + }, + { + "$id": "2825", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "doc": "An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.", + "type": { + "$ref": "2175" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + }, + { + "$id": "2826", + "kind": "property", + "name": "audio", + "serializedName": "audio", + "doc": "Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](/docs/guides/audio).", + "type": { + "$id": "2827", + "kind": "nullable", + "type": { + "$id": "2828", + "kind": "model", + "name": "CreateChatCompletionRequestAudio1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.audio.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2829", + "kind": "property", + "name": "voice", + "serializedName": "voice", + "doc": "The voice the model uses to respond. Supported voices are\n`alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, and `shimmer`.", + "type": { + "$ref": "71" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.audio.anonymous.voice", + "serializationOptions": { + "json": { + "name": "voice" + } + } + }, + { + "$id": "2830", + "kind": "property", + "name": "format", + "serializedName": "format", + "doc": "Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`,\n`opus`, or `pcm16`.", + "type": { + "$ref": "249" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.audio.anonymous.format", + "serializationOptions": { + "json": { + "name": "format" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.audio", + "serializationOptions": { + "json": { + "name": "audio" + } + } + }, + { + "$id": "2831", + "kind": "property", + "name": "store", + "serializedName": "store", + "doc": "Whether or not to store the output of this chat completion request for\nuse in our [model distillation](/docs/guides/distillation) or\n[evals](/docs/guides/evals) products.", + "type": { + "$id": "2832", + "kind": "nullable", + "type": { + "$id": "2833", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.store", + "serializationOptions": { + "json": { + "name": "store" + } + } + }, + { + "$id": "2834", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](/docs/api-reference/chat/streaming)\nfor more information, along with the [streaming responses](/docs/guides/streaming-responses)\nguide for more information on how to handle the streaming events.", + "type": { + "$id": "2835", + "kind": "nullable", + "type": { + "$id": "2836", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.stream", + "serializationOptions": { + "json": { + "name": "stream" + } + } + }, + { + "$id": "2837", + "kind": "property", + "name": "stop", + "serializedName": "stop", + "type": { + "$id": "2838", + "kind": "nullable", + "type": { + "$id": "2839", + "kind": "union", + "name": "StopConfiguration", + "variantTypes": [ + { + "$id": "2840", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$ref": "2155" + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.stop", + "serializationOptions": { + "json": { + "name": "stop" + } + } + }, + { + "$id": "2841", + "kind": "property", + "name": "logit_bias", + "serializedName": "logit_bias", + "doc": "Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the\ntokenizer) to an associated bias value from -100 to 100. Mathematically,\nthe bias is added to the logits generated by the model prior to sampling.\nThe exact effect will vary per model, but values between -1 and 1 should\ndecrease or increase likelihood of selection; values like -100 or 100\nshould result in a ban or exclusive selection of the relevant token.", + "type": { + "$id": "2842", + "kind": "nullable", + "type": { + "$id": "2843", + "kind": "dict", + "keyType": { + "$id": "2844", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "2845", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.logit_bias", + "serializationOptions": { + "json": { + "name": "logit_bias" + } + } + }, + { + "$id": "2846", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "doc": "Whether to return log probabilities of the output tokens or not. If true,\nreturns the log probabilities of each output token returned in the\n`content` of `message`.", + "type": { + "$id": "2847", + "kind": "nullable", + "type": { + "$id": "2848", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.logprobs", + "serializationOptions": { + "json": { + "name": "logprobs" + } + } + }, + { + "$id": "2849", + "kind": "property", + "name": "max_tokens", + "serializedName": "max_tokens", + "doc": "The maximum number of [tokens](/tokenizer) that can be generated in the\nchat completion. This value can be used to control\n[costs](https://openai.com/api/pricing/) for text generated via API.\n\nThis value is now deprecated in favor of `max_completion_tokens`, and is\nnot compatible with [o-series models](/docs/guides/reasoning).", + "type": { + "$id": "2850", + "kind": "nullable", + "type": { + "$id": "2851", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.max_tokens", + "serializationOptions": { + "json": { + "name": "max_tokens" + } + } + }, + { + "$id": "2852", + "kind": "property", + "name": "n", + "serializedName": "n", + "doc": "How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.", + "type": { + "$id": "2853", + "kind": "nullable", + "type": { + "$id": "2854", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.n", + "serializationOptions": { + "json": { + "name": "n" + } + } + }, + { + "$id": "2855", + "kind": "property", + "name": "prediction", + "serializedName": "prediction", + "doc": "Configuration for a [Predicted Output](/docs/guides/predicted-outputs),\nwhich can greatly improve response times when large parts of the model\nresponse are known ahead of time. This is most common when you are\nregenerating a file with only minor changes to most of the content.", + "type": { + "$id": "2856", + "kind": "nullable", + "type": { + "$id": "2857", + "kind": "model", + "name": "ChatOutputPrediction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatOutputPrediction", + "usage": "Input,Json", + "doc": "Base representation of predicted output from a model.", + "decorators": [], + "discriminatorProperty": { + "$id": "2858", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "257" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatOutputPrediction.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "2858" + } + ], + "discriminatedSubtypes": { + "content": { + "$id": "2859", + "kind": "model", + "name": "ChatOutputPredictionContent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatOutputPredictionContent", + "usage": "Input,Json", + "doc": "Static predicted output content, such as the content of a text file that is\nbeing regenerated.", + "discriminatorValue": "content", + "decorators": [], + "baseModel": { + "$ref": "2857" + }, + "properties": [ + { + "$id": "2860", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the predicted content you want to provide. This type is\ncurrently always `content`.", + "type": { + "$ref": "259" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatOutputPredictionContent.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2861", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content that should be matched when generating a model response.\nIf generated tokens would match this content, the entire model response\ncan be returned much more quickly.", + "type": { + "$id": "2862", + "kind": "union", + "name": "ChatOutputPredictionContentContent", + "variantTypes": [ + { + "$id": "2863", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$ref": "2730" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatOutputPredictionContent.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + } + } + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.prediction", + "serializationOptions": { + "json": { + "name": "prediction" + } + } + }, + { + "$id": "2864", + "kind": "property", + "name": "seed", + "serializedName": "seed", + "doc": "This feature is in Beta.\nIf specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.\nDeterminism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.", + "type": { + "$id": "2865", + "kind": "nullable", + "type": { + "$id": "2866", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.seed", + "serializationOptions": { + "json": { + "name": "seed" + } + } + }, + { + "$id": "2867", + "kind": "property", + "name": "stream_options", + "serializedName": "stream_options", + "type": { + "$id": "2868", + "kind": "nullable", + "type": { + "$id": "2869", + "kind": "model", + "name": "ChatCompletionStreamOptions", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamOptions", + "usage": "Input,Json", + "doc": "Options for streaming response. Only set this when you set `stream: true`.", + "decorators": [], + "properties": [ + { + "$id": "2870", + "kind": "property", + "name": "include_usage", + "serializedName": "include_usage", + "doc": "If set, an additional chunk will be streamed before the `data: [DONE]`\nmessage. The `usage` field on this chunk shows the token usage statistics\nfor the entire request, and the `choices` field will always be an empty\narray.\n\nAll other chunks will also include a `usage` field, but with a null\nvalue. **NOTE:** If the stream is interrupted, you may not receive the\nfinal usage chunk which contains the total token usage for the request.", + "type": { + "$id": "2871", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamOptions.include_usage", + "serializationOptions": { + "json": { + "name": "include_usage" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.stream_options", + "serializationOptions": { + "json": { + "name": "stream_options" + } + } + }, + { + "$id": "2872", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.", + "type": { + "$id": "2873", + "kind": "array", + "name": "ArrayChatCompletionTool", + "valueType": { + "$id": "2874", + "kind": "model", + "name": "ChatCompletionTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTool", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2875", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the tool. Currently, only `function` is supported.", + "type": { + "$id": "2876", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$ref": "261" + }, + "enumType": { + "$ref": "260" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2877", + "kind": "property", + "name": "function", + "serializedName": "function", + "type": { + "$ref": "2139" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionTool.function", + "serializationOptions": { + "json": { + "name": "function" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "2878", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "type": { + "$id": "2879", + "kind": "union", + "name": "ChatCompletionToolChoiceOption", + "variantTypes": [ + { + "$ref": "263" + }, + { + "$id": "2880", + "kind": "model", + "name": "ChatCompletionNamedToolChoice", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionNamedToolChoice", + "usage": "Input,Json", + "doc": "Specifies a tool the model should use. Use to force the model to call a specific function.", + "decorators": [], + "properties": [ + { + "$id": "2881", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the tool. Currently, only `function` is supported.", + "type": { + "$ref": "1303" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionNamedToolChoice.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "2882", + "kind": "property", + "name": "function", + "serializedName": "function", + "type": { + "$id": "2883", + "kind": "model", + "name": "ChatCompletionNamedToolChoiceFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionNamedToolChoice.function.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "2884", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to call.", + "type": { + "$id": "2885", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionNamedToolChoice.function.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionNamedToolChoice.function", + "serializationOptions": { + "json": { + "name": "function" + } + } + } + ] + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "2886", + "kind": "property", + "name": "parallel_tool_calls", + "serializedName": "parallel_tool_calls", + "type": { + "$id": "2887", + "kind": "boolean", + "name": "ParallelToolCalls", + "crossLanguageDefinitionId": "OpenAI.ParallelToolCalls", + "baseType": { + "$id": "2888", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.parallel_tool_calls", + "serializationOptions": { + "json": { + "name": "parallel_tool_calls" + } + } + }, + { + "$id": "2889", + "kind": "property", + "name": "function_call", + "serializedName": "function_call", + "doc": "Deprecated in favor of `tool_choice`.\n\nControls which (if any) function is called by the model.\n\n`none` means the model will not call a function and instead generates a\nmessage.\n\n`auto` means the model can pick between generating a message or calling a\nfunction.\n\nSpecifying a particular function via `{\"name\": \"my_function\"}` forces the\nmodel to call that function.\n\n`none` is the default when no functions are present. `auto` is the default\nif functions are present.", + "type": { + "$id": "2890", + "kind": "union", + "name": "CreateChatCompletionRequestFunctionCall", + "variantTypes": [ + { + "$ref": "1305" + }, + { + "$ref": "1307" + }, + { + "$id": "2891", + "kind": "model", + "name": "ChatCompletionFunctionCallOption", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctionCallOption", + "usage": "Input,Json", + "doc": "Specifying a particular function via `{\"name\": \"my_function\"}` forces the model to call that function.", + "decorators": [], + "properties": [ + { + "$id": "2892", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to call.", + "type": { + "$id": "2893", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctionCallOption.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.function_call", + "serializationOptions": { + "json": { + "name": "function_call" + } + } + }, + { + "$id": "2894", + "kind": "property", + "name": "functions", + "serializedName": "functions", + "doc": "Deprecated in favor of `tools`.\n\nA list of functions the model may generate JSON inputs for.", + "type": { + "$id": "2895", + "kind": "array", + "name": "ArrayChatCompletionFunctions", + "valueType": { + "$id": "2896", + "kind": "model", + "name": "ChatCompletionFunctions", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctions", + "usage": "Input,Json", + "deprecation": "This field is marked as deprecated.", + "decorators": [], + "properties": [ + { + "$id": "2897", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "A description of what the function does, used by the model to choose when and how to call the function.", + "type": { + "$id": "2898", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctions.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "2899", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.", + "type": { + "$id": "2900", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctions.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "2901", + "kind": "property", + "name": "parameters", + "serializedName": "parameters", + "doc": "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.\n\nOmitting `parameters` defines a function with an empty parameter list.", + "type": { + "$id": "2902", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctions.parameters", + "serializationOptions": { + "json": { + "name": "parameters" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionRequest.functions", + "serializationOptions": { + "json": { + "name": "functions" + } + } + } + ] + }, + { + "$ref": "2675" + }, + { + "$ref": "2682" + }, + { + "$ref": "2684" + }, + { + "$ref": "2688" + }, + { + "$ref": "2691" + }, + { + "$ref": "2695" + }, + { + "$ref": "2699" + }, + { + "$ref": "2702" + }, + { + "$ref": "2709" + }, + { + "$ref": "2712" + }, + { + "$ref": "2716" + }, + { + "$ref": "2726" + }, + { + "$ref": "2735" + }, + { + "$ref": "2745" + }, + { + "$ref": "2761" + }, + { + "$ref": "2767" + }, + { + "$ref": "2772" + }, + { + "$ref": "2782" + }, + { + "$ref": "2806" + }, + { + "$ref": "2809" + }, + { + "$ref": "2812" + }, + { + "$ref": "2828" + }, + { + "$ref": "2857" + }, + { + "$ref": "2859" + }, + { + "$ref": "2869" + }, + { + "$ref": "2874" + }, + { + "$ref": "2880" + }, + { + "$ref": "2883" + }, + { + "$ref": "2891" + }, + { + "$ref": "2896" + }, + { + "$id": "2903", + "kind": "model", + "name": "CreateChatCompletionStreamResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse", + "access": "public", + "usage": "Output", + "doc": "Represents a streamed chunk of a chat completion response returned\nby the model, based on the provided input.\n[Learn more](/docs/guides/streaming-responses).", + "decorators": [], + "properties": [ + { + "$id": "2904", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "A unique identifier for the chat completion. Each chunk has the same ID.", + "type": { + "$id": "2905", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.id", + "serializationOptions": {} + }, + { + "$id": "2906", + "kind": "property", + "name": "choices", + "serializedName": "choices", + "doc": "A list of chat completion choices. Can contain more than one elements if `n` is greater than 1. Can also be empty for the\nlast chunk if you set `stream_options: {\"include_usage\": true}`.", + "type": { + "$id": "2907", + "kind": "array", + "name": "Array12", + "valueType": { + "$id": "2908", + "kind": "model", + "name": "CreateChatCompletionStreamResponseChoice", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choice.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "2909", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "type": { + "$id": "2910", + "kind": "model", + "name": "ChatCompletionStreamResponseDelta", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta", + "usage": "Output", + "doc": "A chat completion delta generated by streamed model responses.", + "decorators": [], + "properties": [ + { + "$id": "2911", + "kind": "property", + "name": "audio", + "serializedName": "audio", + "doc": "Response audio associated with the streaming chat delta payload.", + "type": { + "$id": "2912", + "kind": "model", + "name": "ChatCompletionMessageAudioChunk", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageAudioChunk", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "2913", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "2914", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageAudioChunk.id", + "serializationOptions": {} + }, + { + "$id": "2915", + "kind": "property", + "name": "transcript", + "serializedName": "transcript", + "type": { + "$id": "2916", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageAudioChunk.transcript", + "serializationOptions": {} + }, + { + "$id": "2917", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "2918", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageAudioChunk.data", + "serializationOptions": {} + }, + { + "$id": "2919", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "type": { + "$id": "2920", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2921", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageAudioChunk.expires_at", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta.audio", + "serializationOptions": {} + }, + { + "$id": "2922", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the chunk message.", + "type": { + "$id": "2923", + "kind": "nullable", + "type": { + "$id": "2924", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta.content", + "serializationOptions": {} + }, + { + "$id": "2925", + "kind": "property", + "name": "function_call", + "serializedName": "function_call", + "doc": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.", + "type": { + "$id": "2926", + "kind": "model", + "name": "ChatCompletionStreamResponseDeltaFunctionCall", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta.function_call.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "2927", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "2928", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta.function_call.anonymous.name", + "serializationOptions": {} + }, + { + "$id": "2929", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "type": { + "$id": "2930", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta.function_call.anonymous.arguments", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta.function_call", + "serializationOptions": {} + }, + { + "$id": "2931", + "kind": "property", + "name": "tool_calls", + "serializedName": "tool_calls", + "type": { + "$id": "2932", + "kind": "array", + "name": "ArrayChatCompletionMessageToolCallChunk", + "valueType": { + "$id": "2933", + "kind": "model", + "name": "ChatCompletionMessageToolCallChunk", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCallChunk", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "2934", + "kind": "property", + "name": "index", + "serializedName": "index", + "type": { + "$id": "2935", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCallChunk.index", + "serializationOptions": {} + }, + { + "$id": "2936", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call.", + "type": { + "$id": "2937", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCallChunk.id", + "serializationOptions": {} + }, + { + "$id": "2938", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the tool. Currently, only `function` is supported.", + "type": { + "$ref": "1309" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCallChunk.type", + "serializationOptions": {} + }, + { + "$id": "2939", + "kind": "property", + "name": "function", + "serializedName": "function", + "type": { + "$id": "2940", + "kind": "model", + "name": "ChatCompletionMessageToolCallChunkFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCallChunk.function.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "2941", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to call.", + "type": { + "$id": "2942", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCallChunk.function.anonymous.name", + "serializationOptions": {} + }, + { + "$id": "2943", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.", + "type": { + "$id": "2944", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCallChunk.function.anonymous.arguments", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageToolCallChunk.function", + "serializationOptions": {} + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta.tool_calls", + "serializationOptions": {} + }, + { + "$id": "2945", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the author of this message.", + "type": { + "$ref": "153" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta.role", + "serializationOptions": {} + }, + { + "$id": "2946", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "The refusal message generated by the model.", + "type": { + "$id": "2947", + "kind": "nullable", + "type": { + "$id": "2948", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionStreamResponseDelta.refusal", + "serializationOptions": {} + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choice.anonymous.delta", + "serializationOptions": {} + }, + { + "$id": "2949", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "doc": "Log probability information for the choice.", + "type": { + "$id": "2950", + "kind": "nullable", + "type": { + "$id": "2951", + "kind": "model", + "name": "CreateChatCompletionStreamResponseChoiceLogprobs1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choice.logprobs.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "2952", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "A list of message content tokens with log probability information.", + "type": { + "$id": "2953", + "kind": "nullable", + "type": { + "$ref": "2603" + }, + "namespace": "" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choice.logprobs.anonymous.content", + "serializationOptions": {} + }, + { + "$id": "2954", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "A list of message refusal tokens with log probability information.", + "type": { + "$id": "2955", + "kind": "nullable", + "type": { + "$ref": "2603" + }, + "namespace": "" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choice.logprobs.anonymous.refusal", + "serializationOptions": {} + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choice.anonymous.logprobs", + "serializationOptions": {} + }, + { + "$id": "2956", + "kind": "property", + "name": "finish_reason", + "serializedName": "finish_reason", + "doc": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.", + "type": { + "$id": "2957", + "kind": "nullable", + "type": { + "$id": "2958", + "kind": "enum", + "name": "CreateChatCompletionStreamResponseChoiceFinishReason", + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choice.finish_reason.anonymous", + "valueType": { + "$id": "2959", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "2960", + "kind": "enumvalue", + "name": "stop", + "value": "stop", + "valueType": { + "$ref": "2959" + }, + "enumType": { + "$ref": "2958" + }, + "decorators": [] + }, + { + "$id": "2961", + "kind": "enumvalue", + "name": "length", + "value": "length", + "valueType": { + "$ref": "2959" + }, + "enumType": { + "$ref": "2958" + }, + "decorators": [] + }, + { + "$id": "2962", + "kind": "enumvalue", + "name": "tool_calls", + "value": "tool_calls", + "valueType": { + "$ref": "2959" + }, + "enumType": { + "$ref": "2958" + }, + "decorators": [] + }, + { + "$id": "2963", + "kind": "enumvalue", + "name": "content_filter", + "value": "content_filter", + "valueType": { + "$ref": "2959" + }, + "enumType": { + "$ref": "2958" + }, + "decorators": [] + }, + { + "$id": "2964", + "kind": "enumvalue", + "name": "function_call", + "value": "function_call", + "valueType": { + "$ref": "2959" + }, + "enumType": { + "$ref": "2958" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choice.anonymous.finish_reason", + "serializationOptions": {} + }, + { + "$id": "2965", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the choice in the list of choices.", + "type": { + "$id": "2966", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choice.anonymous.index", + "serializationOptions": {} + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.choices", + "serializationOptions": {} + }, + { + "$id": "2967", + "kind": "property", + "name": "created", + "serializedName": "created", + "doc": "The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.", + "type": { + "$id": "2968", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2969", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.created", + "serializationOptions": {} + }, + { + "$id": "2970", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to generate the completion.", + "type": { + "$id": "2971", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.model", + "serializationOptions": {} + }, + { + "$id": "2972", + "kind": "property", + "name": "service_tier", + "serializedName": "service_tier", + "type": { + "$id": "2973", + "kind": "nullable", + "type": { + "$ref": "161" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.service_tier", + "serializationOptions": {} + }, + { + "$id": "2974", + "kind": "property", + "name": "system_fingerprint", + "serializedName": "system_fingerprint", + "doc": "This fingerprint represents the backend configuration that the model runs with.\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.", + "type": { + "$id": "2975", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.system_fingerprint", + "serializationOptions": {} + }, + { + "$id": "2976", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `chat.completion.chunk`.", + "type": { + "$ref": "1311" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.object", + "serializationOptions": {} + }, + { + "$id": "2977", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "An optional field that will only be present when you set\n`stream_options: {\"include_usage\": true}` in your request. When present, it\ncontains a null value **except for the last chunk** which contains the\ntoken usage statistics for the entire request.\n\n**NOTE:** If the stream is interrupted or cancelled, you may not\nreceive the final usage chunk which contains the total token usage for\nthe request.", + "type": { + "$id": "2978", + "kind": "nullable", + "type": { + "$ref": "2633" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateChatCompletionStreamResponse.usage", + "serializationOptions": {} + } + ] + }, + { + "$ref": "2908" + }, + { + "$ref": "2910" + }, + { + "$ref": "2912" + }, + { + "$ref": "2926" + }, + { + "$ref": "2933" + }, + { + "$ref": "2940" + }, + { + "$ref": "2951" + }, + { + "$id": "2979", + "kind": "model", + "name": "UpdateChatCompletionRequest", + "namespace": "", + "crossLanguageDefinitionId": "OpenAI.updateChatCompletion.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "2980", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateChatCompletion.Request.anonymous.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$id": "2981", + "kind": "model", + "name": "ChatCompletionDeleted", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionDeleted", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2982", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of object being deleted.", + "type": { + "$ref": "1313" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionDeleted.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "2983", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the chat completion that was deleted.", + "type": { + "$id": "2984", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionDeleted.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "2985", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "doc": "Whether the chat completion was deleted.", + "type": { + "$id": "2986", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionDeleted.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + } + ] + }, + { + "$id": "2987", + "kind": "model", + "name": "ChatCompletionMessageList", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList", + "usage": "Output,Json", + "doc": "An object representing a list of chat completion messages.", + "decorators": [], + "properties": [ + { + "$id": "2988", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of this object. It is always set to \"list\".", + "type": { + "$ref": "1315" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "2989", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "An array of chat completion message objects.", + "type": { + "$id": "2990", + "kind": "array", + "name": "Array13", + "valueType": { + "$id": "2991", + "kind": "model", + "name": "ChatCompletionMessageListDatum", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.datum.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "2992", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the message.", + "type": { + "$ref": "2546" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.datum.anonymous.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "2993", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "The refusal message generated by the model.", + "type": { + "$ref": "2549" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.datum.anonymous.refusal", + "serializationOptions": { + "json": { + "name": "refusal" + } + } + }, + { + "$id": "2994", + "kind": "property", + "name": "tool_calls", + "serializedName": "tool_calls", + "type": { + "$ref": "2552" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.datum.anonymous.tool_calls", + "serializationOptions": { + "json": { + "name": "tool_calls" + } + } + }, + { + "$id": "2995", + "kind": "property", + "name": "annotations", + "serializedName": "annotations", + "doc": "Annotations for the message, when applicable, as when using the\n[web search tool](/docs/guides/tools-web-search?api-mode=chat).", + "type": { + "$ref": "2565" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.datum.anonymous.annotations", + "serializationOptions": { + "json": { + "name": "annotations" + } + } + }, + { + "$id": "2996", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the author of this message.", + "type": { + "$id": "2997", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.datum.anonymous.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "2998", + "kind": "property", + "name": "function_call", + "serializedName": "function_call", + "doc": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.", + "type": { + "$ref": "2581" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.datum.anonymous.function_call", + "serializationOptions": { + "json": { + "name": "function_call" + } + } + }, + { + "$id": "2999", + "kind": "property", + "name": "audio", + "serializedName": "audio", + "doc": "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](/docs/guides/audio).", + "type": { + "$ref": "2587" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.datum.anonymous.audio", + "serializationOptions": { + "json": { + "name": "audio" + } + } + }, + { + "$id": "3000", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier of the chat message.", + "type": { + "$id": "3001", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.datum.anonymous.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "3002", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "doc": "The identifier of the first chat message in the data array.", + "type": { + "$id": "3003", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "3004", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "doc": "The identifier of the last chat message in the data array.", + "type": { + "$id": "3005", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "3006", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Indicates whether there are more chat messages available.", + "type": { + "$id": "3007", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageList.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "2991" + }, + { + "$id": "3008", + "kind": "model", + "name": "CreateEmbeddingRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3009", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens for all embedding models), cannot be an empty string, and any array must be 2048 dimensions or less. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens. In addition to the per-input token limit, all embedding models enforce a maximum of 300,000 tokens summed across all inputs in a single request.", + "type": { + "$id": "3010", + "kind": "union", + "name": "CreateEmbeddingRequestInput", + "variantTypes": [ + { + "$id": "3011", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$ref": "2155" + }, + { + "$ref": "2375" + }, + { + "$id": "3012", + "kind": "array", + "name": "ArrayArray", + "valueType": { + "$ref": "2375" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3013", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.", + "type": { + "$ref": "268" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3014", + "kind": "property", + "name": "encoding_format", + "serializedName": "encoding_format", + "doc": "The format to return the embeddings in. Can be either `float` or [`base64`](https://pypi.org/project/pybase64/).", + "type": { + "$ref": "273" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest.encoding_format", + "serializationOptions": { + "json": { + "name": "encoding_format" + } + } + }, + { + "$id": "3015", + "kind": "property", + "name": "dimensions", + "serializedName": "dimensions", + "doc": "The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models.", + "type": { + "$id": "3016", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest.dimensions", + "serializationOptions": { + "json": { + "name": "dimensions" + } + } + }, + { + "$id": "3017", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).", + "type": { + "$id": "3018", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingRequest.user", + "serializationOptions": { + "json": { + "name": "user" + } + } + } + ] + }, + { + "$id": "3019", + "kind": "model", + "name": "CreateEmbeddingResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3020", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The list of embeddings generated by the model.", + "type": { + "$id": "3021", + "kind": "array", + "name": "ArrayEmbedding", + "valueType": { + "$id": "3022", + "kind": "model", + "name": "Embedding", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Embedding", + "usage": "Output,Json", + "doc": "Represents an embedding vector returned by embedding endpoint.", + "decorators": [], + "properties": [ + { + "$id": "3023", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the embedding in the list of embeddings.", + "type": { + "$id": "3024", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Embedding.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + }, + { + "$id": "3025", + "kind": "property", + "name": "embedding", + "serializedName": "embedding", + "doc": "The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](/docs/guides/embeddings).", + "type": { + "$id": "3026", + "kind": "union", + "name": "EmbeddingEmbedding", + "variantTypes": [ + { + "$id": "3027", + "kind": "array", + "name": "Array14", + "valueType": { + "$id": "3028", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + { + "$id": "3029", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Embedding.embedding", + "serializationOptions": { + "json": { + "name": "embedding" + } + } + }, + { + "$id": "3030", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"embedding\".", + "type": { + "$ref": "1317" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Embedding.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "3031", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The name of the model used to generate the embedding.", + "type": { + "$id": "3032", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3033", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"list\".", + "type": { + "$ref": "1319" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3034", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "The usage information for the request.", + "type": { + "$id": "3035", + "kind": "model", + "name": "CreateEmbeddingResponseUsage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.usage.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3036", + "kind": "property", + "name": "prompt_tokens", + "serializedName": "prompt_tokens", + "doc": "The number of tokens used by the prompt.", + "type": { + "$id": "3037", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.usage.anonymous.prompt_tokens", + "serializationOptions": { + "json": { + "name": "prompt_tokens" + } + } + }, + { + "$id": "3038", + "kind": "property", + "name": "total_tokens", + "serializedName": "total_tokens", + "doc": "The total number of tokens used by the request.", + "type": { + "$id": "3039", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.usage.anonymous.total_tokens", + "serializationOptions": { + "json": { + "name": "total_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEmbeddingResponse.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + } + } + ] + }, + { + "$ref": "3022" + }, + { + "$ref": "3035" + }, + { + "$id": "3040", + "kind": "model", + "name": "ListFilesResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListFilesResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3041", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1321" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFilesResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3042", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "3043", + "kind": "array", + "name": "ArrayOpenAiFile", + "valueType": { + "$id": "3044", + "kind": "model", + "name": "OpenAIFile", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.OpenAIFile", + "usage": "Output,Json", + "doc": "The `File` object represents a document that has been uploaded to OpenAI.", + "decorators": [], + "properties": [ + { + "$id": "3045", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The file identifier, which can be referenced in the API endpoints.", + "type": { + "$id": "3046", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3047", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The size of the file, in bytes.", + "type": { + "$id": "3048", + "kind": "nullable", + "type": { + "$id": "3049", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.bytes", + "serializationOptions": { + "json": { + "name": "bytes" + } + } + }, + { + "$id": "3050", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the file was created.", + "type": { + "$id": "3051", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3052", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "3053", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "The Unix timestamp (in seconds) for when the file will expire.", + "type": { + "$id": "3054", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3055", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + }, + { + "$id": "3056", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "doc": "The name of the file.", + "type": { + "$id": "3057", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.filename", + "serializationOptions": { + "json": { + "name": "filename" + } + } + }, + { + "$id": "3058", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `file`.", + "type": { + "$ref": "1323" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3059", + "kind": "property", + "name": "purpose", + "serializedName": "purpose", + "doc": "The intended purpose of the file. Supported values are `assistants`, `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results` and `vision`.", + "type": { + "$ref": "277" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.purpose", + "serializationOptions": { + "json": { + "name": "purpose" + } + } + }, + { + "$id": "3060", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.", + "type": { + "$ref": "288" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "3061", + "kind": "property", + "name": "status_details", + "serializedName": "status_details", + "doc": "Deprecated. For details on why a fine-tuning training file failed validation, see the `error` field on `fine_tuning.job`.", + "type": { + "$id": "3062", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OpenAIFile.status_details", + "serializationOptions": { + "json": { + "name": "status_details" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFilesResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "3063", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "3064", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFilesResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "3065", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "3066", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFilesResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "3067", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "3068", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFilesResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "3044" + }, + { + "$id": "3069", + "kind": "model", + "name": "CreateFileRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateFileRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "3070", + "kind": "property", + "name": "file", + "serializedName": "file", + "doc": "The File object (not file name) to be uploaded.", + "type": { + "$id": "3071", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFileRequest.file", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "file", + "headers": [] + } + } + }, + { + "$id": "3072", + "kind": "property", + "name": "purpose", + "serializedName": "purpose", + "doc": "The intended purpose of the uploaded file. One of: - `assistants`: Used in the Assistants API - `batch`: Used in the Batch API - `fine-tune`: Used for fine-tuning - `vision`: Images used for vision fine-tuning - `user_data`: Flexible file type for any purpose - `evals`: Used for eval data sets", + "type": { + "$ref": "293" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFileRequest.purpose", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "purpose", + "headers": [] + } + } + } + ] + }, + { + "$id": "3073", + "kind": "model", + "name": "DeleteFileResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DeleteFileResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3074", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "3075", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteFileResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3076", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1325" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteFileResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3077", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$id": "3078", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteFileResponse.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + } + ] + }, + { + "$id": "3079", + "kind": "model", + "name": "ListFineTuningCheckpointPermissionResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListFineTuningCheckpointPermissionResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3080", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "3081", + "kind": "array", + "name": "ArrayFineTuningCheckpointPermission", + "valueType": { + "$id": "3082", + "kind": "model", + "name": "FineTuningCheckpointPermission", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningCheckpointPermission", + "usage": "Output,Json", + "doc": "The `checkpoint.permission` object represents a permission for a fine-tuned model checkpoint.", + "decorators": [], + "properties": [ + { + "$id": "3083", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The permission identifier, which can be referenced in the API endpoints.", + "type": { + "$id": "3084", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningCheckpointPermission.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3085", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the permission was created.", + "type": { + "$id": "3086", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3087", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningCheckpointPermission.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "3088", + "kind": "property", + "name": "project_id", + "serializedName": "project_id", + "doc": "The project identifier that the permission is for.", + "type": { + "$id": "3089", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningCheckpointPermission.project_id", + "serializationOptions": { + "json": { + "name": "project_id" + } + } + }, + { + "$id": "3090", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"checkpoint.permission\".", + "type": { + "$ref": "1327" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningCheckpointPermission.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningCheckpointPermissionResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "3091", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1329" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningCheckpointPermissionResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3092", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "3093", + "kind": "nullable", + "type": { + "$id": "3094", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningCheckpointPermissionResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "3095", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "3096", + "kind": "nullable", + "type": { + "$id": "3097", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningCheckpointPermissionResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "3098", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "3099", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningCheckpointPermissionResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "3082" + }, + { + "$id": "3100", + "kind": "model", + "name": "CreateFineTuningCheckpointPermissionRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningCheckpointPermissionRequest", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "3101", + "kind": "property", + "name": "project_ids", + "serializedName": "project_ids", + "doc": "The project identifiers to grant access to.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningCheckpointPermissionRequest.project_ids", + "serializationOptions": { + "json": { + "name": "project_ids" + } + } + } + ] + }, + { + "$id": "3102", + "kind": "model", + "name": "DeleteFineTuningCheckpointPermissionResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DeleteFineTuningCheckpointPermissionResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3103", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the fine-tuned model checkpoint permission that was deleted.", + "type": { + "$id": "3104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteFineTuningCheckpointPermissionResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3105", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"checkpoint.permission\".", + "type": { + "$ref": "1331" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteFineTuningCheckpointPermissionResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3106", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "doc": "Whether the fine-tuned model checkpoint permission was successfully deleted.", + "type": { + "$id": "3107", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteFineTuningCheckpointPermissionResponse.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + } + ] + }, + { + "$id": "3108", + "kind": "model", + "name": "CreateFineTuningJobRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3109", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The name of the model to fine-tune. You can select one of the\n[supported models](/docs/guides/fine-tuning#which-models-can-be-fine-tuned).", + "type": { + "$ref": "301" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3110", + "kind": "property", + "name": "training_file", + "serializedName": "training_file", + "doc": "The ID of an uploaded file that contains training data.\n\nSee [upload file](/docs/api-reference/files/create) for how to upload a file.\n\nYour dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.\n\nThe contents of the file should differ depending on if the model uses the [chat](/docs/api-reference/fine-tuning/chat-input), [completions](/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](/docs/api-reference/fine-tuning/preference-input) format.\n\nSee the [fine-tuning guide](/docs/guides/model-optimization) for more details.", + "type": { + "$id": "3111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.training_file", + "serializationOptions": { + "json": { + "name": "training_file" + } + } + }, + { + "$id": "3112", + "kind": "property", + "name": "hyperparameters", + "serializedName": "hyperparameters", + "doc": "The hyperparameters used for the fine-tuning job.\nThis value is now deprecated in favor of `method`, and should be passed in under the `method` parameter.", + "type": { + "$id": "3113", + "kind": "model", + "name": "CreateFineTuningJobRequestHyperparameters", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.hyperparameters.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3114", + "kind": "property", + "name": "batch_size", + "serializedName": "batch_size", + "doc": "Number of examples in each batch. A larger batch size means that model parameters\nare updated less frequently, but with lower variance.", + "type": { + "$id": "3115", + "kind": "union", + "name": "CreateFineTuningJobRequestHyperparametersBatchSize", + "variantTypes": [ + { + "$ref": "1333" + }, + { + "$id": "3116", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.hyperparameters.anonymous.batch_size", + "serializationOptions": { + "json": { + "name": "batch_size" + } + } + }, + { + "$id": "3117", + "kind": "property", + "name": "learning_rate_multiplier", + "serializedName": "learning_rate_multiplier", + "doc": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid\noverfitting.", + "type": { + "$id": "3118", + "kind": "union", + "name": "CreateFineTuningJobRequestHyperparametersLearningRateMultiplier", + "variantTypes": [ + { + "$ref": "1335" + }, + { + "$id": "3119", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.hyperparameters.anonymous.learning_rate_multiplier", + "serializationOptions": { + "json": { + "name": "learning_rate_multiplier" + } + } + }, + { + "$id": "3120", + "kind": "property", + "name": "n_epochs", + "serializedName": "n_epochs", + "doc": "The number of epochs to train the model for. An epoch refers to one full cycle\nthrough the training dataset.", + "type": { + "$id": "3121", + "kind": "union", + "name": "CreateFineTuningJobRequestHyperparametersNEpochs", + "variantTypes": [ + { + "$ref": "1337" + }, + { + "$id": "3122", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.hyperparameters.anonymous.n_epochs", + "serializationOptions": { + "json": { + "name": "n_epochs" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.hyperparameters", + "serializationOptions": { + "json": { + "name": "hyperparameters" + } + } + }, + { + "$id": "3123", + "kind": "property", + "name": "suffix", + "serializedName": "suffix", + "doc": "A string of up to 64 characters that will be added to your fine-tuned model name.\n\nFor example, a `suffix` of \"custom-model-name\" would produce a model name like `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`.", + "type": { + "$id": "3124", + "kind": "nullable", + "type": { + "$id": "3125", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.suffix", + "serializationOptions": { + "json": { + "name": "suffix" + } + } + }, + { + "$id": "3126", + "kind": "property", + "name": "validation_file", + "serializedName": "validation_file", + "doc": "The ID of an uploaded file that contains validation data.\n\nIf you provide this file, the data is used to generate validation\nmetrics periodically during fine-tuning. These metrics can be viewed in\nthe fine-tuning results file.\nThe same data should not be present in both train and validation files.\n\nYour dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/model-optimization) for more details.", + "type": { + "$id": "3127", + "kind": "nullable", + "type": { + "$id": "3128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.validation_file", + "serializationOptions": { + "json": { + "name": "validation_file" + } + } + }, + { + "$id": "3129", + "kind": "property", + "name": "integrations", + "serializedName": "integrations", + "doc": "A list of integrations to enable for your fine-tuning job.", + "type": { + "$id": "3130", + "kind": "nullable", + "type": { + "$id": "3131", + "kind": "array", + "name": "ArrayCreateFineTuningJobRequestIntegration", + "valueType": { + "$id": "3132", + "kind": "model", + "name": "CreateFineTuningJobRequestIntegration", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestIntegration", + "usage": "Input,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3133", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "307" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestIntegration.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3133" + } + ], + "discriminatedSubtypes": { + "wandb": { + "$id": "3134", + "kind": "model", + "name": "CreateFineTuningJobRequestWandbIntegration", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestWandbIntegration", + "usage": "Input,Json", + "discriminatorValue": "wandb", + "decorators": [], + "baseModel": { + "$ref": "3132" + }, + "properties": [ + { + "$id": "3135", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "309" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestWandbIntegration.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3136", + "kind": "property", + "name": "wandb", + "serializedName": "wandb", + "type": { + "$id": "3137", + "kind": "model", + "name": "CreateFineTuningJobRequestWandbIntegrationWandb", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestWandbIntegration.wandb.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3138", + "kind": "property", + "name": "project", + "serializedName": "project", + "type": { + "$id": "3139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestWandbIntegration.wandb.anonymous.project", + "serializationOptions": { + "json": { + "name": "project" + } + } + }, + { + "$id": "3140", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "3141", + "kind": "nullable", + "type": { + "$id": "3142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestWandbIntegration.wandb.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3143", + "kind": "property", + "name": "entity", + "serializedName": "entity", + "type": { + "$id": "3144", + "kind": "nullable", + "type": { + "$id": "3145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestWandbIntegration.wandb.anonymous.entity", + "serializationOptions": { + "json": { + "name": "entity" + } + } + }, + { + "$id": "3146", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestWandbIntegration.wandb.anonymous.tags", + "serializationOptions": { + "json": { + "name": "tags" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequestWandbIntegration.wandb", + "serializationOptions": { + "json": { + "name": "wandb" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.integrations", + "serializationOptions": { + "json": { + "name": "integrations" + } + } + }, + { + "$id": "3147", + "kind": "property", + "name": "seed", + "serializedName": "seed", + "doc": "The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases.\nIf a seed is not specified, one will be generated for you.", + "type": { + "$id": "3148", + "kind": "nullable", + "type": { + "$id": "3149", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.seed", + "serializationOptions": { + "json": { + "name": "seed" + } + } + }, + { + "$id": "3150", + "kind": "property", + "name": "method", + "serializedName": "method", + "type": { + "$id": "3151", + "kind": "model", + "name": "FineTuneMethod", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuneMethod", + "usage": "Input,Output,Json", + "doc": "The method used for fine-tuning.", + "decorators": [], + "properties": [ + { + "$id": "3152", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of method. Is either `supervised`, `dpo`, or `reinforcement`.", + "type": { + "$ref": "310" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneMethod.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3153", + "kind": "property", + "name": "supervised", + "serializedName": "supervised", + "type": { + "$id": "3154", + "kind": "model", + "name": "FineTuneSupervisedMethod", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuneSupervisedMethod", + "usage": "Input,Output,Json", + "doc": "Configuration for the supervised fine-tuning method.", + "decorators": [], + "properties": [ + { + "$id": "3155", + "kind": "property", + "name": "hyperparameters", + "serializedName": "hyperparameters", + "type": { + "$id": "3156", + "kind": "model", + "name": "FineTuneSupervisedHyperparameters", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuneSupervisedHyperparameters", + "usage": "Input,Output,Json", + "doc": "The hyperparameters used for the fine-tuning job.", + "decorators": [], + "properties": [ + { + "$id": "3157", + "kind": "property", + "name": "batch_size", + "serializedName": "batch_size", + "doc": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.", + "type": { + "$id": "3158", + "kind": "union", + "name": "FineTuneSupervisedHyperparametersBatchSize", + "variantTypes": [ + { + "$ref": "1339" + }, + { + "$id": "3159", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneSupervisedHyperparameters.batch_size", + "serializationOptions": { + "json": { + "name": "batch_size" + } + } + }, + { + "$id": "3160", + "kind": "property", + "name": "learning_rate_multiplier", + "serializedName": "learning_rate_multiplier", + "doc": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.", + "type": { + "$id": "3161", + "kind": "union", + "name": "FineTuneSupervisedHyperparametersLearningRateMultiplier", + "variantTypes": [ + { + "$ref": "1341" + }, + { + "$id": "3162", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneSupervisedHyperparameters.learning_rate_multiplier", + "serializationOptions": { + "json": { + "name": "learning_rate_multiplier" + } + } + }, + { + "$id": "3163", + "kind": "property", + "name": "n_epochs", + "serializedName": "n_epochs", + "doc": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.", + "type": { + "$id": "3164", + "kind": "union", + "name": "FineTuneSupervisedHyperparametersNEpochs", + "variantTypes": [ + { + "$ref": "1343" + }, + { + "$id": "3165", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneSupervisedHyperparameters.n_epochs", + "serializationOptions": { + "json": { + "name": "n_epochs" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneSupervisedMethod.hyperparameters", + "serializationOptions": { + "json": { + "name": "hyperparameters" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneMethod.supervised", + "serializationOptions": { + "json": { + "name": "supervised" + } + } + }, + { + "$id": "3166", + "kind": "property", + "name": "dpo", + "serializedName": "dpo", + "type": { + "$id": "3167", + "kind": "model", + "name": "FineTuneDPOMethod", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuneDPOMethod", + "usage": "Input,Output,Json", + "doc": "Configuration for the DPO fine-tuning method.", + "decorators": [], + "properties": [ + { + "$id": "3168", + "kind": "property", + "name": "hyperparameters", + "serializedName": "hyperparameters", + "type": { + "$id": "3169", + "kind": "model", + "name": "FineTuneDPOHyperparameters", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuneDPOHyperparameters", + "usage": "Input,Output,Json", + "doc": "The hyperparameters used for the DPO fine-tuning job.", + "decorators": [], + "properties": [ + { + "$id": "3170", + "kind": "property", + "name": "beta", + "serializedName": "beta", + "doc": "The beta value for the DPO method. A higher beta value will increase the weight of the penalty between the policy and reference model.", + "type": { + "$id": "3171", + "kind": "union", + "name": "FineTuneDPOHyperparametersBeta", + "variantTypes": [ + { + "$ref": "1345" + }, + { + "$id": "3172", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneDPOHyperparameters.beta", + "serializationOptions": { + "json": { + "name": "beta" + } + } + }, + { + "$id": "3173", + "kind": "property", + "name": "batch_size", + "serializedName": "batch_size", + "doc": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.", + "type": { + "$id": "3174", + "kind": "union", + "name": "FineTuneDPOHyperparametersBatchSize", + "variantTypes": [ + { + "$ref": "1347" + }, + { + "$id": "3175", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneDPOHyperparameters.batch_size", + "serializationOptions": { + "json": { + "name": "batch_size" + } + } + }, + { + "$id": "3176", + "kind": "property", + "name": "learning_rate_multiplier", + "serializedName": "learning_rate_multiplier", + "doc": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.", + "type": { + "$id": "3177", + "kind": "union", + "name": "FineTuneDPOHyperparametersLearningRateMultiplier", + "variantTypes": [ + { + "$ref": "1349" + }, + { + "$id": "3178", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneDPOHyperparameters.learning_rate_multiplier", + "serializationOptions": { + "json": { + "name": "learning_rate_multiplier" + } + } + }, + { + "$id": "3179", + "kind": "property", + "name": "n_epochs", + "serializedName": "n_epochs", + "doc": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.", + "type": { + "$id": "3180", + "kind": "union", + "name": "FineTuneDPOHyperparametersNEpochs", + "variantTypes": [ + { + "$ref": "1351" + }, + { + "$id": "3181", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneDPOHyperparameters.n_epochs", + "serializationOptions": { + "json": { + "name": "n_epochs" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneDPOMethod.hyperparameters", + "serializationOptions": { + "json": { + "name": "hyperparameters" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneMethod.dpo", + "serializationOptions": { + "json": { + "name": "dpo" + } + } + }, + { + "$id": "3182", + "kind": "property", + "name": "reinforcement", + "serializedName": "reinforcement", + "type": { + "$id": "3183", + "kind": "model", + "name": "FineTuneReinforcementMethod", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementMethod", + "usage": "Input,Output,Json", + "doc": "Configuration for the reinforcement fine-tuning method.", + "decorators": [], + "properties": [ + { + "$id": "3184", + "kind": "property", + "name": "grader", + "serializedName": "grader", + "doc": "The grader used for the fine-tuning job.", + "type": { + "$id": "3185", + "kind": "union", + "name": "FineTuneReinforcementMethodGrader", + "variantTypes": [ + { + "$id": "3186", + "kind": "model", + "name": "GraderStringCheck", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.GraderStringCheck", + "usage": "Input,Output,Json", + "doc": "A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.", + "discriminatorValue": "string_check", + "decorators": [], + "baseModel": { + "$id": "3187", + "kind": "model", + "name": "Grader", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Grader", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3188", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "315" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Grader.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3188" + } + ], + "discriminatedSubtypes": { + "string_check": { + "$ref": "3186" + }, + "text_similarity": { + "$id": "3189", + "kind": "model", + "name": "GraderTextSimilarity", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.GraderTextSimilarity", + "usage": "Input,Output,Json", + "doc": "A TextSimilarityGrader object which grades text based on similarity metrics.", + "discriminatorValue": "text_similarity", + "decorators": [], + "baseModel": { + "$ref": "3187" + }, + "properties": [ + { + "$id": "3190", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of grader.", + "type": { + "$ref": "318" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderTextSimilarity.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3191", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3192", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderTextSimilarity.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3193", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The text being graded.", + "type": { + "$id": "3194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderTextSimilarity.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3195", + "kind": "property", + "name": "reference", + "serializedName": "reference", + "doc": "The text being graded against.", + "type": { + "$id": "3196", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderTextSimilarity.reference", + "serializationOptions": { + "json": { + "name": "reference" + } + } + }, + { + "$id": "3197", + "kind": "property", + "name": "evaluation_metric", + "serializedName": "evaluation_metric", + "doc": "The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.", + "type": { + "$ref": "329" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderTextSimilarity.evaluation_metric", + "serializationOptions": { + "json": { + "name": "evaluation_metric" + } + } + } + ] + }, + "python": { + "$id": "3198", + "kind": "model", + "name": "GraderPython", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.GraderPython", + "usage": "Input,Output,Json", + "doc": "A PythonGrader object that runs a python script on the input.", + "discriminatorValue": "python", + "decorators": [], + "baseModel": { + "$ref": "3187" + }, + "properties": [ + { + "$id": "3199", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `python`.", + "type": { + "$ref": "321" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderPython.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3200", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3201", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderPython.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3202", + "kind": "property", + "name": "source", + "serializedName": "source", + "doc": "The source code of the python script.", + "type": { + "$id": "3203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderPython.source", + "serializationOptions": { + "json": { + "name": "source" + } + } + }, + { + "$id": "3204", + "kind": "property", + "name": "image_tag", + "serializedName": "image_tag", + "doc": "The image tag to use for the python script.", + "type": { + "$id": "3205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderPython.image_tag", + "serializationOptions": { + "json": { + "name": "image_tag" + } + } + } + ] + }, + "score_model": { + "$id": "3206", + "kind": "model", + "name": "GraderScoreModel", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.GraderScoreModel", + "usage": "Input,Output,Json", + "doc": "A ScoreModelGrader object that uses a model to assign a score to the input.", + "discriminatorValue": "score_model", + "decorators": [], + "baseModel": { + "$ref": "3187" + }, + "properties": [ + { + "$id": "3207", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `score_model`.", + "type": { + "$ref": "319" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderScoreModel.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3208", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderScoreModel.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3210", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for the evaluation.", + "type": { + "$id": "3211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderScoreModel.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3212", + "kind": "property", + "name": "sampling_params", + "serializedName": "sampling_params", + "doc": "The sampling parameters for the model.", + "type": { + "$id": "3213", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderScoreModel.sampling_params", + "serializationOptions": { + "json": { + "name": "sampling_params" + } + } + }, + { + "$id": "3214", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The input text. This may include template strings.", + "type": { + "$id": "3215", + "kind": "array", + "name": "ArrayEvalItem", + "valueType": { + "$id": "3216", + "kind": "model", + "name": "EvalItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalItem", + "usage": "Input,Output,Json", + "doc": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.", + "decorators": [], + "properties": [ + { + "$id": "3217", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.", + "type": { + "$ref": "341" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalItem.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "3218", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "Text inputs to the model - can contain template strings.", + "type": { + "$id": "3219", + "kind": "union", + "name": "EvalItemContent1", + "variantTypes": [ + { + "$id": "3220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "3221", + "kind": "model", + "name": "EvalItemContent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalItemContent", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3222", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "347" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalItemContent.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3222" + } + ], + "discriminatedSubtypes": { + "input_text": { + "$id": "3223", + "kind": "model", + "name": "EvalItemContentInputText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalItemContentInputText", + "usage": "Input,Output,Json", + "discriminatorValue": "input_text", + "decorators": [], + "baseModel": { + "$ref": "3221" + }, + "properties": [ + { + "$id": "3224", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "349" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalItemContentInputText.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3225", + "kind": "property", + "name": "text", + "serializedName": "text", + "type": { + "$id": "3226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalItemContentInputText.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "output_text": { + "$id": "3227", + "kind": "model", + "name": "EvalItemContentOutputText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalItemContentOutputText", + "usage": "Input,Output,Json", + "discriminatorValue": "output_text", + "decorators": [], + "baseModel": { + "$ref": "3221" + }, + "properties": [ + { + "$id": "3228", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "350" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalItemContentOutputText.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3229", + "kind": "property", + "name": "text", + "serializedName": "text", + "type": { + "$id": "3230", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalItemContentOutputText.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + } + } + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalItem.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "3231", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the message input. Always `message`.", + "type": { + "$ref": "1353" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalItem.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderScoreModel.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3232", + "kind": "property", + "name": "range", + "serializedName": "range", + "doc": "The range of the score. Defaults to `[0, 1]`.", + "type": { + "$ref": "2396" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderScoreModel.range", + "serializationOptions": { + "json": { + "name": "range" + } + } + } + ] + }, + "multi": { + "$id": "3233", + "kind": "model", + "name": "GraderMulti", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.GraderMulti", + "usage": "Input,Output,Json", + "doc": "A MultiGrader object combines the output of multiple graders to produce a single score.", + "discriminatorValue": "multi", + "decorators": [], + "baseModel": { + "$ref": "3187" + }, + "properties": [ + { + "$id": "3234", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `multi`.", + "type": { + "$ref": "322" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderMulti.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3235", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderMulti.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3237", + "kind": "property", + "name": "graders", + "serializedName": "graders", + "type": { + "$id": "3238", + "kind": "union", + "name": "GraderMultiGraders", + "variantTypes": [ + { + "$ref": "3186" + }, + { + "$ref": "3189" + }, + { + "$ref": "3198" + }, + { + "$ref": "3206" + }, + { + "$id": "3239", + "kind": "model", + "name": "GraderLabelModel", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.GraderLabelModel", + "usage": "Input,Output,Json", + "doc": "A LabelModelGrader object which uses a model to assign labels to each item\nin the evaluation.", + "discriminatorValue": "label_model", + "decorators": [], + "baseModel": { + "$ref": "3187" + }, + "properties": [ + { + "$id": "3240", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `label_model`.", + "type": { + "$ref": "320" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderLabelModel.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3241", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderLabelModel.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3243", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for the evaluation. Must support structured outputs.", + "type": { + "$id": "3244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderLabelModel.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3245", + "kind": "property", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "3215" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderLabelModel.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3246", + "kind": "property", + "name": "labels", + "serializedName": "labels", + "doc": "The labels to assign to each item in the evaluation.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderLabelModel.labels", + "serializationOptions": { + "json": { + "name": "labels" + } + } + }, + { + "$id": "3247", + "kind": "property", + "name": "passing_labels", + "serializedName": "passing_labels", + "doc": "The labels that indicate a passing result. Must be a subset of labels.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderLabelModel.passing_labels", + "serializationOptions": { + "json": { + "name": "passing_labels" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderMulti.graders", + "serializationOptions": { + "json": { + "name": "graders" + } + } + }, + { + "$id": "3248", + "kind": "property", + "name": "calculate_output", + "serializedName": "calculate_output", + "doc": "A formula to calculate the output based on grader results.", + "type": { + "$id": "3249", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderMulti.calculate_output", + "serializationOptions": { + "json": { + "name": "calculate_output" + } + } + } + ] + }, + "label_model": { + "$ref": "3239" + } + } + }, + "properties": [ + { + "$id": "3250", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `string_check`.", + "type": { + "$id": "3251", + "kind": "enumvalue", + "name": "string_check", + "value": "string_check", + "valueType": { + "$ref": "316" + }, + "enumType": { + "$ref": "315" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderStringCheck.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3252", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderStringCheck.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3254", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The input text. This may include template strings.", + "type": { + "$id": "3255", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderStringCheck.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3256", + "kind": "property", + "name": "reference", + "serializedName": "reference", + "doc": "The reference text. This may include template strings.", + "type": { + "$id": "3257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderStringCheck.reference", + "serializationOptions": { + "json": { + "name": "reference" + } + } + }, + { + "$id": "3258", + "kind": "property", + "name": "operation", + "serializedName": "operation", + "doc": "The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.", + "type": { + "$ref": "323" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.GraderStringCheck.operation", + "serializationOptions": { + "json": { + "name": "operation" + } + } + } + ] + }, + { + "$ref": "3189" + }, + { + "$ref": "3198" + }, + { + "$ref": "3206" + }, + { + "$ref": "3233" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementMethod.grader", + "serializationOptions": { + "json": { + "name": "grader" + } + } + }, + { + "$id": "3259", + "kind": "property", + "name": "hyperparameters", + "serializedName": "hyperparameters", + "type": { + "$id": "3260", + "kind": "model", + "name": "FineTuneReinforcementHyperparameters", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementHyperparameters", + "usage": "Input,Output,Json", + "doc": "The hyperparameters used for the reinforcement fine-tuning job.", + "decorators": [], + "properties": [ + { + "$id": "3261", + "kind": "property", + "name": "batch_size", + "serializedName": "batch_size", + "doc": "Number of examples in each batch. A larger batch size means that model parameters are updated less frequently, but with lower variance.", + "type": { + "$id": "3262", + "kind": "union", + "name": "FineTuneReinforcementHyperparametersBatchSize", + "variantTypes": [ + { + "$ref": "1355" + }, + { + "$id": "3263", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementHyperparameters.batch_size", + "serializationOptions": { + "json": { + "name": "batch_size" + } + } + }, + { + "$id": "3264", + "kind": "property", + "name": "learning_rate_multiplier", + "serializedName": "learning_rate_multiplier", + "doc": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid overfitting.", + "type": { + "$id": "3265", + "kind": "union", + "name": "FineTuneReinforcementHyperparametersLearningRateMultiplier", + "variantTypes": [ + { + "$ref": "1357" + }, + { + "$id": "3266", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementHyperparameters.learning_rate_multiplier", + "serializationOptions": { + "json": { + "name": "learning_rate_multiplier" + } + } + }, + { + "$id": "3267", + "kind": "property", + "name": "n_epochs", + "serializedName": "n_epochs", + "doc": "The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.", + "type": { + "$id": "3268", + "kind": "union", + "name": "FineTuneReinforcementHyperparametersNEpochs", + "variantTypes": [ + { + "$ref": "1359" + }, + { + "$id": "3269", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementHyperparameters.n_epochs", + "serializationOptions": { + "json": { + "name": "n_epochs" + } + } + }, + { + "$id": "3270", + "kind": "property", + "name": "reasoning_effort", + "serializedName": "reasoning_effort", + "doc": "Level of reasoning effort.", + "type": { + "$ref": "351" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementHyperparameters.reasoning_effort", + "serializationOptions": { + "json": { + "name": "reasoning_effort" + } + } + }, + { + "$id": "3271", + "kind": "property", + "name": "compute_multiplier", + "serializedName": "compute_multiplier", + "doc": "Multiplier on amount of compute used for exploring search space during training.", + "type": { + "$id": "3272", + "kind": "union", + "name": "FineTuneReinforcementHyperparametersComputeMultiplier", + "variantTypes": [ + { + "$ref": "1361" + }, + { + "$id": "3273", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementHyperparameters.compute_multiplier", + "serializationOptions": { + "json": { + "name": "compute_multiplier" + } + } + }, + { + "$id": "3274", + "kind": "property", + "name": "eval_interval", + "serializedName": "eval_interval", + "doc": "The number of training steps between evaluation runs.", + "type": { + "$id": "3275", + "kind": "union", + "name": "FineTuneReinforcementHyperparametersEvalInterval", + "variantTypes": [ + { + "$ref": "1363" + }, + { + "$id": "3276", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementHyperparameters.eval_interval", + "serializationOptions": { + "json": { + "name": "eval_interval" + } + } + }, + { + "$id": "3277", + "kind": "property", + "name": "eval_samples", + "serializedName": "eval_samples", + "doc": "Number of evaluation samples to generate per training step.", + "type": { + "$id": "3278", + "kind": "union", + "name": "FineTuneReinforcementHyperparametersEvalSamples", + "variantTypes": [ + { + "$ref": "1365" + }, + { + "$id": "3279", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementHyperparameters.eval_samples", + "serializationOptions": { + "json": { + "name": "eval_samples" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneReinforcementMethod.hyperparameters", + "serializationOptions": { + "json": { + "name": "hyperparameters" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneMethod.reinforcement", + "serializationOptions": { + "json": { + "name": "reinforcement" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.method", + "serializationOptions": { + "json": { + "name": "method" + } + } + }, + { + "$id": "3280", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateFineTuningJobRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "3113" + }, + { + "$ref": "3132" + }, + { + "$ref": "3134" + }, + { + "$ref": "3137" + }, + { + "$ref": "3151" + }, + { + "$ref": "3154" + }, + { + "$ref": "3156" + }, + { + "$ref": "3167" + }, + { + "$ref": "3169" + }, + { + "$ref": "3183" + }, + { + "$ref": "3186" + }, + { + "$ref": "3187" + }, + { + "$ref": "3189" + }, + { + "$ref": "3198" + }, + { + "$ref": "3206" + }, + { + "$ref": "3216" + }, + { + "$ref": "3221" + }, + { + "$ref": "3223" + }, + { + "$ref": "3227" + }, + { + "$ref": "3233" + }, + { + "$ref": "3239" + }, + { + "$ref": "3260" + }, + { + "$id": "3281", + "kind": "model", + "name": "FineTuningJob", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningJob", + "usage": "Output,Json", + "doc": "The `fine_tuning.job` object represents a fine-tuning job that has been created through the API.", + "decorators": [], + "properties": [ + { + "$id": "3282", + "kind": "property", + "name": "user_provided_suffix", + "serializedName": "user_provided_suffix", + "doc": "The descriptive suffix applied to the job, as specified in the job creation request.", + "type": { + "$id": "3283", + "kind": "nullable", + "type": { + "$id": "3284", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.user_provided_suffix", + "serializationOptions": { + "json": { + "name": "user_provided_suffix" + } + } + }, + { + "$id": "3285", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The object identifier, which can be referenced in the API endpoints.", + "type": { + "$id": "3286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3287", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the fine-tuning job was created.", + "type": { + "$id": "3288", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3289", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "3290", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "For fine-tuning jobs that have `failed`, this will contain more information on the cause of the failure.", + "type": { + "$id": "3291", + "kind": "nullable", + "type": { + "$id": "3292", + "kind": "model", + "name": "FineTuningJobError1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.error.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3293", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "A machine-readable error code.", + "type": { + "$id": "3294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.error.anonymous.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "3295", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable error message.", + "type": { + "$id": "3296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.error.anonymous.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + }, + { + "$id": "3297", + "kind": "property", + "name": "param", + "serializedName": "param", + "doc": "The parameter that was invalid, usually `training_file` or `validation_file`. This field will be null if the failure was not parameter-specific.", + "type": { + "$id": "3298", + "kind": "nullable", + "type": { + "$id": "3299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.error.anonymous.param", + "serializationOptions": { + "json": { + "name": "param" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + }, + { + "$id": "3300", + "kind": "property", + "name": "fine_tuned_model", + "serializedName": "fine_tuned_model", + "doc": "The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.", + "type": { + "$id": "3301", + "kind": "nullable", + "type": { + "$id": "3302", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.fine_tuned_model", + "serializationOptions": { + "json": { + "name": "fine_tuned_model" + } + } + }, + { + "$id": "3303", + "kind": "property", + "name": "finished_at", + "serializedName": "finished_at", + "doc": "The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.", + "type": { + "$id": "3304", + "kind": "nullable", + "type": { + "$id": "3305", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3306", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.finished_at", + "serializationOptions": { + "json": { + "name": "finished_at" + } + } + }, + { + "$id": "3307", + "kind": "property", + "name": "hyperparameters", + "serializedName": "hyperparameters", + "doc": "The hyperparameters used for the fine-tuning job. This value will only be returned when running `supervised` jobs.", + "type": { + "$id": "3308", + "kind": "model", + "name": "FineTuningJobHyperparameters", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.hyperparameters.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3309", + "kind": "property", + "name": "batch_size", + "serializedName": "batch_size", + "doc": "Number of examples in each batch. A larger batch size means that model parameters\nare updated less frequently, but with lower variance.", + "type": { + "$id": "3310", + "kind": "nullable", + "type": { + "$id": "3311", + "kind": "union", + "name": "FineTuningJobHyperparametersBatchSize", + "variantTypes": [ + { + "$ref": "1367" + }, + { + "$id": "3312", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.hyperparameters.anonymous.batch_size", + "serializationOptions": { + "json": { + "name": "batch_size" + } + } + }, + { + "$id": "3313", + "kind": "property", + "name": "learning_rate_multiplier", + "serializedName": "learning_rate_multiplier", + "doc": "Scaling factor for the learning rate. A smaller learning rate may be useful to avoid\noverfitting.", + "type": { + "$id": "3314", + "kind": "union", + "name": "FineTuningJobHyperparametersLearningRateMultiplier", + "variantTypes": [ + { + "$ref": "1369" + }, + { + "$id": "3315", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.hyperparameters.anonymous.learning_rate_multiplier", + "serializationOptions": { + "json": { + "name": "learning_rate_multiplier" + } + } + }, + { + "$id": "3316", + "kind": "property", + "name": "n_epochs", + "serializedName": "n_epochs", + "doc": "The number of epochs to train the model for. An epoch refers to one full cycle\nthrough the training dataset.", + "type": { + "$id": "3317", + "kind": "union", + "name": "FineTuningJobHyperparametersNEpochs", + "variantTypes": [ + { + "$ref": "1371" + }, + { + "$id": "3318", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.hyperparameters.anonymous.n_epochs", + "serializationOptions": { + "json": { + "name": "n_epochs" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.hyperparameters", + "serializationOptions": { + "json": { + "name": "hyperparameters" + } + } + }, + { + "$id": "3319", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The base model that is being fine-tuned.", + "type": { + "$id": "3320", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3321", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"fine_tuning.job\".", + "type": { + "$ref": "1373" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3322", + "kind": "property", + "name": "organization_id", + "serializedName": "organization_id", + "doc": "The organization that owns the fine-tuning job.", + "type": { + "$id": "3323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.organization_id", + "serializationOptions": { + "json": { + "name": "organization_id" + } + } + }, + { + "$id": "3324", + "kind": "property", + "name": "result_files", + "serializedName": "result_files", + "doc": "The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.result_files", + "serializationOptions": { + "json": { + "name": "result_files" + } + } + }, + { + "$id": "3325", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`.", + "type": { + "$ref": "357" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "3326", + "kind": "property", + "name": "trained_tokens", + "serializedName": "trained_tokens", + "doc": "The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.", + "type": { + "$id": "3327", + "kind": "nullable", + "type": { + "$id": "3328", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.trained_tokens", + "serializationOptions": { + "json": { + "name": "trained_tokens" + } + } + }, + { + "$id": "3329", + "kind": "property", + "name": "training_file", + "serializedName": "training_file", + "doc": "The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).", + "type": { + "$id": "3330", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.training_file", + "serializationOptions": { + "json": { + "name": "training_file" + } + } + }, + { + "$id": "3331", + "kind": "property", + "name": "validation_file", + "serializedName": "validation_file", + "doc": "The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).", + "type": { + "$id": "3332", + "kind": "nullable", + "type": { + "$id": "3333", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.validation_file", + "serializationOptions": { + "json": { + "name": "validation_file" + } + } + }, + { + "$id": "3334", + "kind": "property", + "name": "integrations", + "serializedName": "integrations", + "doc": "A list of integrations to enable for this fine-tuning job.", + "type": { + "$id": "3335", + "kind": "nullable", + "type": { + "$id": "3336", + "kind": "array", + "name": "ArrayFineTuningIntegration", + "valueType": { + "$id": "3337", + "kind": "model", + "name": "FineTuningIntegration", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegration", + "usage": "Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3338", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "365" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegration.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3338" + } + ], + "discriminatedSubtypes": { + "wandb": { + "$id": "3339", + "kind": "model", + "name": "FineTuningIntegrationWandb", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegrationWandb", + "usage": "Output,Json", + "discriminatorValue": "wandb", + "decorators": [], + "baseModel": { + "$ref": "3337" + }, + "properties": [ + { + "$id": "3340", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the integration being enabled for the fine-tuning job", + "type": { + "$ref": "367" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegrationWandb.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3341", + "kind": "property", + "name": "wandb", + "serializedName": "wandb", + "doc": "The settings for your integration with Weights and Biases. This payload specifies the project that\nmetrics will be sent to. Optionally, you can set an explicit display name for your run, add tags\nto your run, and set a default entity (team, username, etc) to be associated with your run.", + "type": { + "$id": "3342", + "kind": "model", + "name": "FineTuningIntegrationWandbWandb", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegrationWandb.wandb.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3343", + "kind": "property", + "name": "project", + "serializedName": "project", + "doc": "The name of the project that the new run will be created under.", + "type": { + "$id": "3344", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegrationWandb.wandb.anonymous.project", + "serializationOptions": { + "json": { + "name": "project" + } + } + }, + { + "$id": "3345", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "A display name to set for the run. If not set, we will use the Job ID as the name.", + "type": { + "$id": "3346", + "kind": "nullable", + "type": { + "$id": "3347", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegrationWandb.wandb.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3348", + "kind": "property", + "name": "entity", + "serializedName": "entity", + "doc": "The entity to use for the run. This allows you to set the team or username of the WandB user that you would\nlike associated with the run. If not set, the default entity for the registered WandB API key is used.", + "type": { + "$id": "3349", + "kind": "nullable", + "type": { + "$id": "3350", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegrationWandb.wandb.anonymous.entity", + "serializationOptions": { + "json": { + "name": "entity" + } + } + }, + { + "$id": "3351", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "doc": "A list of tags to be attached to the newly created run. These tags are passed through directly to WandB. Some\ndefault tags are generated by OpenAI: \"openai/finetune\", \"openai/{base-model}\", \"openai/{ftjob-abcdef}\".", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegrationWandb.wandb.anonymous.tags", + "serializationOptions": { + "json": { + "name": "tags" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningIntegrationWandb.wandb", + "serializationOptions": { + "json": { + "name": "wandb" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.integrations", + "serializationOptions": { + "json": { + "name": "integrations" + } + } + }, + { + "$id": "3352", + "kind": "property", + "name": "seed", + "serializedName": "seed", + "doc": "The seed used for the fine-tuning job.", + "type": { + "$id": "3353", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.seed", + "serializationOptions": { + "json": { + "name": "seed" + } + } + }, + { + "$id": "3354", + "kind": "property", + "name": "estimated_finish", + "serializedName": "estimated_finish", + "doc": "The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.", + "type": { + "$id": "3355", + "kind": "nullable", + "type": { + "$id": "3356", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3357", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.estimated_finish", + "serializationOptions": { + "json": { + "name": "estimated_finish" + } + } + }, + { + "$id": "3358", + "kind": "property", + "name": "method", + "serializedName": "method", + "type": { + "$ref": "3151" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.method", + "serializationOptions": { + "json": { + "name": "method" + } + } + }, + { + "$id": "3359", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJob.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "3292" + }, + { + "$ref": "3308" + }, + { + "$ref": "3337" + }, + { + "$ref": "3339" + }, + { + "$ref": "3342" + }, + { + "$id": "3360", + "kind": "model", + "name": "ListPaginatedFineTuningJobsResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListPaginatedFineTuningJobsResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3361", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "3362", + "kind": "array", + "name": "ArrayFineTuningJob", + "valueType": { + "$ref": "3281" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListPaginatedFineTuningJobsResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "3363", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "3364", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListPaginatedFineTuningJobsResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + }, + { + "$id": "3365", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1375" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListPaginatedFineTuningJobsResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + { + "$id": "3366", + "kind": "model", + "name": "ListFineTuningJobCheckpointsResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobCheckpointsResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3367", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "3368", + "kind": "array", + "name": "ArrayFineTuningJobCheckpoint", + "valueType": { + "$id": "3369", + "kind": "model", + "name": "FineTuningJobCheckpoint", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint", + "usage": "Output,Json", + "doc": "The `fine_tuning.job.checkpoint` object represents a model checkpoint for a fine-tuning job that is ready to use.", + "decorators": [], + "properties": [ + { + "$id": "3370", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The checkpoint identifier, which can be referenced in the API endpoints.", + "type": { + "$id": "3371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3372", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the checkpoint was created.", + "type": { + "$id": "3373", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3374", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "3375", + "kind": "property", + "name": "fine_tuned_model_checkpoint", + "serializedName": "fine_tuned_model_checkpoint", + "doc": "The name of the fine-tuned checkpoint model that is created.", + "type": { + "$id": "3376", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.fine_tuned_model_checkpoint", + "serializationOptions": { + "json": { + "name": "fine_tuned_model_checkpoint" + } + } + }, + { + "$id": "3377", + "kind": "property", + "name": "step_number", + "serializedName": "step_number", + "doc": "The step number that the checkpoint was created at.", + "type": { + "$id": "3378", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.step_number", + "serializationOptions": { + "json": { + "name": "step_number" + } + } + }, + { + "$id": "3379", + "kind": "property", + "name": "metrics", + "serializedName": "metrics", + "doc": "Metrics at the step number during the fine-tuning job.", + "type": { + "$id": "3380", + "kind": "model", + "name": "FineTuningJobCheckpointMetrics", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.metrics.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3381", + "kind": "property", + "name": "step", + "serializedName": "step", + "type": { + "$id": "3382", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.metrics.anonymous.step", + "serializationOptions": { + "json": { + "name": "step" + } + } + }, + { + "$id": "3383", + "kind": "property", + "name": "train_loss", + "serializedName": "train_loss", + "type": { + "$id": "3384", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.metrics.anonymous.train_loss", + "serializationOptions": { + "json": { + "name": "train_loss" + } + } + }, + { + "$id": "3385", + "kind": "property", + "name": "train_mean_token_accuracy", + "serializedName": "train_mean_token_accuracy", + "type": { + "$id": "3386", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.metrics.anonymous.train_mean_token_accuracy", + "serializationOptions": { + "json": { + "name": "train_mean_token_accuracy" + } + } + }, + { + "$id": "3387", + "kind": "property", + "name": "valid_loss", + "serializedName": "valid_loss", + "type": { + "$id": "3388", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.metrics.anonymous.valid_loss", + "serializationOptions": { + "json": { + "name": "valid_loss" + } + } + }, + { + "$id": "3389", + "kind": "property", + "name": "valid_mean_token_accuracy", + "serializedName": "valid_mean_token_accuracy", + "type": { + "$id": "3390", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.metrics.anonymous.valid_mean_token_accuracy", + "serializationOptions": { + "json": { + "name": "valid_mean_token_accuracy" + } + } + }, + { + "$id": "3391", + "kind": "property", + "name": "full_valid_loss", + "serializedName": "full_valid_loss", + "type": { + "$id": "3392", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.metrics.anonymous.full_valid_loss", + "serializationOptions": { + "json": { + "name": "full_valid_loss" + } + } + }, + { + "$id": "3393", + "kind": "property", + "name": "full_valid_mean_token_accuracy", + "serializedName": "full_valid_mean_token_accuracy", + "type": { + "$id": "3394", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.metrics.anonymous.full_valid_mean_token_accuracy", + "serializationOptions": { + "json": { + "name": "full_valid_mean_token_accuracy" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.metrics", + "serializationOptions": { + "json": { + "name": "metrics" + } + } + }, + { + "$id": "3395", + "kind": "property", + "name": "fine_tuning_job_id", + "serializedName": "fine_tuning_job_id", + "doc": "The name of the fine-tuning job that this checkpoint was created from.", + "type": { + "$id": "3396", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.fine_tuning_job_id", + "serializationOptions": { + "json": { + "name": "fine_tuning_job_id" + } + } + }, + { + "$id": "3397", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"fine_tuning.job.checkpoint\".", + "type": { + "$ref": "1377" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobCheckpoint.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobCheckpointsResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "3398", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1379" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobCheckpointsResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3399", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "3400", + "kind": "nullable", + "type": { + "$id": "3401", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobCheckpointsResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "3402", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "3403", + "kind": "nullable", + "type": { + "$id": "3404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobCheckpointsResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "3405", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "3406", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobCheckpointsResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "3369" + }, + { + "$ref": "3380" + }, + { + "$id": "3407", + "kind": "model", + "name": "ListFineTuningJobEventsResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobEventsResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3408", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "3409", + "kind": "array", + "name": "ArrayFineTuningJobEvent", + "valueType": { + "$id": "3410", + "kind": "model", + "name": "FineTuningJobEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent", + "usage": "Output,Json", + "doc": "Fine-tuning job event object", + "decorators": [], + "properties": [ + { + "$id": "3411", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"fine_tuning.job.event\".", + "type": { + "$ref": "1381" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3412", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The object identifier.", + "type": { + "$id": "3413", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3414", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the fine-tuning job was created.", + "type": { + "$id": "3415", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3416", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "3417", + "kind": "property", + "name": "level", + "serializedName": "level", + "doc": "The log level of the event.", + "type": { + "$ref": "368" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.level", + "serializationOptions": { + "json": { + "name": "level" + } + } + }, + { + "$id": "3418", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "The message of the event.", + "type": { + "$id": "3419", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + }, + { + "$id": "3420", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of event.", + "type": { + "$ref": "373" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3421", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The data associated with the event.", + "type": { + "$id": "3422", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobEvent.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobEventsResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "3423", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1383" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobEventsResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3424", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "3425", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListFineTuningJobEventsResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "3410" + }, + { + "$id": "3426", + "kind": "model", + "name": "EvalList", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalList", + "usage": "Output,Json", + "doc": "An object representing a list of evals.", + "decorators": [], + "properties": [ + { + "$id": "3427", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of this object. It is always set to \"list\".", + "type": { + "$ref": "1385" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalList.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3428", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "An array of eval objects.", + "type": { + "$id": "3429", + "kind": "array", + "name": "ArrayEval", + "valueType": { + "$id": "3430", + "kind": "model", + "name": "Eval", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Eval", + "usage": "Output,Json", + "doc": "An Eval object with a data source config and testing criteria.\nAn Eval represents a task to be done for your LLM integration.\nLike:\n- Improve the quality of my chatbot\n- See how well my chatbot handles customer support\n- Check if o4-mini is better at my usecase than gpt-4o", + "decorators": [], + "properties": [ + { + "$id": "3431", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type.", + "type": { + "$ref": "1387" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Eval.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3432", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique identifier for the evaluation.", + "type": { + "$id": "3433", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Eval.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3434", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the evaluation.", + "type": { + "$id": "3435", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Eval.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3436", + "kind": "property", + "name": "data_source_config", + "serializedName": "data_source_config", + "doc": "Configuration of data sources used in runs of the evaluation.", + "type": { + "$id": "3437", + "kind": "model", + "name": "EvalDataSourceConfigResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalDataSourceConfigResource", + "usage": "Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3438", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "385" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalDataSourceConfigResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3438" + } + ], + "discriminatedSubtypes": { + "custom": { + "$id": "3439", + "kind": "model", + "name": "EvalCustomDataSourceConfigResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalCustomDataSourceConfigResource", + "usage": "Output,Json", + "doc": "A CustomDataSourceConfig which specifies the schema of your `item` and optionally `sample` namespaces.\nThe response schema defines the shape of the data that will be:\n- Used to define your testing criteria and\n- What data is required when creating a run", + "discriminatorValue": "custom", + "decorators": [], + "baseModel": { + "$ref": "3437" + }, + "properties": [ + { + "$id": "3440", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of data source. Always `custom`.", + "type": { + "$ref": "387" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCustomDataSourceConfigResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3441", + "kind": "property", + "name": "schema", + "serializedName": "schema", + "doc": "The json schema for the run data source items.\nLearn how to build JSON schemas [here](https://json-schema.org/).", + "type": { + "$id": "3442", + "kind": "dict", + "keyType": { + "$id": "3443", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "3444", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCustomDataSourceConfigResource.schema", + "serializationOptions": { + "json": { + "name": "schema" + } + } + } + ] + }, + "stored_completions": { + "$id": "3445", + "kind": "model", + "name": "EvalStoredCompletionsDataSourceConfigResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalStoredCompletionsDataSourceConfigResource", + "usage": "Output,Json", + "deprecation": "This field is marked as deprecated.", + "doc": "Deprecated in favor of LogsDataSourceConfig.", + "discriminatorValue": "stored_completions", + "decorators": [], + "baseModel": { + "$ref": "3437" + }, + "properties": [ + { + "$id": "3446", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of data source. Always `stored_completions`.", + "type": { + "$ref": "389" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalStoredCompletionsDataSourceConfigResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3447", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalStoredCompletionsDataSourceConfigResource.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "3448", + "kind": "property", + "name": "schema", + "serializedName": "schema", + "doc": "The json schema for the run data source items.\nLearn how to build JSON schemas [here](https://json-schema.org/).", + "type": { + "$ref": "3442" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalStoredCompletionsDataSourceConfigResource.schema", + "serializationOptions": { + "json": { + "name": "schema" + } + } + } + ] + }, + "logs": { + "$id": "3449", + "kind": "model", + "name": "EvalLogsDataSourceConfigResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalLogsDataSourceConfigResource", + "usage": "Output,Json", + "doc": "A LogsDataSourceConfig which specifies the metadata property of your logs query.\nThis is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc.\nThe schema returned by this data source config is used to defined what variables are available in your evals.\n`item` and `sample` are both defined when using this data source config.", + "discriminatorValue": "logs", + "decorators": [], + "baseModel": { + "$ref": "3437" + }, + "properties": [ + { + "$id": "3450", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of data source. Always `logs`.", + "type": { + "$ref": "388" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalLogsDataSourceConfigResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3451", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalLogsDataSourceConfigResource.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "3452", + "kind": "property", + "name": "schema", + "serializedName": "schema", + "doc": "The json schema for the run data source items.\nLearn how to build JSON schemas [here](https://json-schema.org/).", + "type": { + "$ref": "3442" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalLogsDataSourceConfigResource.schema", + "serializationOptions": { + "json": { + "name": "schema" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Eval.data_source_config", + "serializationOptions": { + "json": { + "name": "data_source_config" + } + } + }, + { + "$id": "3453", + "kind": "property", + "name": "testing_criteria", + "serializedName": "testing_criteria", + "doc": "A list of testing criteria.", + "type": { + "$id": "3454", + "kind": "nullable", + "type": { + "$id": "3455", + "kind": "array", + "name": "ArrayEvalGraderResource", + "valueType": { + "$id": "3456", + "kind": "model", + "name": "EvalGraderResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderResource", + "usage": "Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3457", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "315" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3457" + } + ], + "discriminatedSubtypes": { + "label_model": { + "$id": "3458", + "kind": "model", + "name": "EvalGraderLabelModelResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelResource", + "usage": "Output,Json", + "discriminatorValue": "label_model", + "decorators": [], + "baseModel": { + "$ref": "3456" + }, + "properties": [ + { + "$id": "3459", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `label_model`.", + "type": { + "$ref": "320" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3460", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3461", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelResource.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3462", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for the evaluation. Must support structured outputs.", + "type": { + "$id": "3463", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelResource.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3464", + "kind": "property", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "3215" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelResource.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3465", + "kind": "property", + "name": "labels", + "serializedName": "labels", + "doc": "The labels to assign to each item in the evaluation.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelResource.labels", + "serializationOptions": { + "json": { + "name": "labels" + } + } + }, + { + "$id": "3466", + "kind": "property", + "name": "passing_labels", + "serializedName": "passing_labels", + "doc": "The labels that indicate a passing result. Must be a subset of labels.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelResource.passing_labels", + "serializationOptions": { + "json": { + "name": "passing_labels" + } + } + } + ] + }, + "text_similarity": { + "$id": "3467", + "kind": "model", + "name": "EvalGraderTextSimilarityResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityResource", + "usage": "Output,Json", + "discriminatorValue": "text_similarity", + "decorators": [], + "baseModel": { + "$ref": "3456" + }, + "properties": [ + { + "$id": "3468", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of grader.", + "type": { + "$ref": "318" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3469", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3470", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityResource.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3471", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The text being graded.", + "type": { + "$id": "3472", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityResource.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3473", + "kind": "property", + "name": "reference", + "serializedName": "reference", + "doc": "The text being graded against.", + "type": { + "$id": "3474", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityResource.reference", + "serializationOptions": { + "json": { + "name": "reference" + } + } + }, + { + "$id": "3475", + "kind": "property", + "name": "evaluation_metric", + "serializedName": "evaluation_metric", + "doc": "The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.", + "type": { + "$ref": "329" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityResource.evaluation_metric", + "serializationOptions": { + "json": { + "name": "evaluation_metric" + } + } + }, + { + "$id": "3476", + "kind": "property", + "name": "pass_threshold", + "serializedName": "pass_threshold", + "doc": "The threshold for the score.", + "type": { + "$id": "3477", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityResource.pass_threshold", + "serializationOptions": { + "json": { + "name": "pass_threshold" + } + } + } + ] + }, + "python": { + "$id": "3478", + "kind": "model", + "name": "EvalGraderPythonResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonResource", + "usage": "Output,Json", + "discriminatorValue": "python", + "decorators": [], + "baseModel": { + "$ref": "3456" + }, + "properties": [ + { + "$id": "3479", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `python`.", + "type": { + "$ref": "321" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3480", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3481", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonResource.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3482", + "kind": "property", + "name": "source", + "serializedName": "source", + "doc": "The source code of the python script.", + "type": { + "$id": "3483", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonResource.source", + "serializationOptions": { + "json": { + "name": "source" + } + } + }, + { + "$id": "3484", + "kind": "property", + "name": "image_tag", + "serializedName": "image_tag", + "doc": "The image tag to use for the python script.", + "type": { + "$id": "3485", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonResource.image_tag", + "serializationOptions": { + "json": { + "name": "image_tag" + } + } + }, + { + "$id": "3486", + "kind": "property", + "name": "pass_threshold", + "serializedName": "pass_threshold", + "doc": "The threshold for the score.", + "type": { + "$id": "3487", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonResource.pass_threshold", + "serializationOptions": { + "json": { + "name": "pass_threshold" + } + } + } + ] + }, + "score_model": { + "$id": "3488", + "kind": "model", + "name": "EvalGraderScoreModelResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelResource", + "usage": "Output,Json", + "discriminatorValue": "score_model", + "decorators": [], + "baseModel": { + "$ref": "3456" + }, + "properties": [ + { + "$id": "3489", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `score_model`.", + "type": { + "$ref": "319" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3490", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3491", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelResource.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3492", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for the evaluation.", + "type": { + "$id": "3493", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelResource.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3494", + "kind": "property", + "name": "sampling_params", + "serializedName": "sampling_params", + "doc": "The sampling parameters for the model.", + "type": { + "$id": "3495", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelResource.sampling_params", + "serializationOptions": { + "json": { + "name": "sampling_params" + } + } + }, + { + "$id": "3496", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The input text. This may include template strings.", + "type": { + "$ref": "3215" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelResource.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3497", + "kind": "property", + "name": "range", + "serializedName": "range", + "doc": "The range of the score. Defaults to `[0, 1]`.", + "type": { + "$ref": "2396" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelResource.range", + "serializationOptions": { + "json": { + "name": "range" + } + } + }, + { + "$id": "3498", + "kind": "property", + "name": "pass_threshold", + "serializedName": "pass_threshold", + "doc": "The threshold for the score.", + "type": { + "$id": "3499", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelResource.pass_threshold", + "serializationOptions": { + "json": { + "name": "pass_threshold" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Eval.testing_criteria", + "serializationOptions": { + "json": { + "name": "testing_criteria" + } + } + }, + { + "$id": "3500", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the eval was created.", + "type": { + "$id": "3501", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3502", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Eval.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "3503", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Eval.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalList.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "3504", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "doc": "The identifier of the first eval in the data array.", + "type": { + "$id": "3505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalList.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "3506", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "doc": "The identifier of the last eval in the data array.", + "type": { + "$id": "3507", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalList.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "3508", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Indicates whether there are more evals available.", + "type": { + "$id": "3509", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalList.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "3430" + }, + { + "$ref": "3437" + }, + { + "$ref": "3439" + }, + { + "$ref": "3445" + }, + { + "$ref": "3449" + }, + { + "$ref": "3456" + }, + { + "$ref": "3458" + }, + { + "$ref": "3467" + }, + { + "$ref": "3478" + }, + { + "$ref": "3488" + }, + { + "$id": "3510", + "kind": "model", + "name": "CreateEvalRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateEvalRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3511", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the evaluation.", + "type": { + "$id": "3512", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEvalRequest.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3513", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEvalRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "3514", + "kind": "property", + "name": "data_source_config", + "serializedName": "data_source_config", + "doc": "The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation.", + "type": { + "$id": "3515", + "kind": "model", + "name": "EvalDataSourceConfigParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalDataSourceConfigParams", + "usage": "Input,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3516", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "385" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalDataSourceConfigParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3516" + } + ], + "discriminatedSubtypes": { + "custom": { + "$id": "3517", + "kind": "model", + "name": "EvalCustomDataSourceConfigParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalCustomDataSourceConfigParams", + "usage": "Input,Json", + "doc": "A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs.\nThis schema is used to define the shape of the data that will be:\n- Used to define your testing criteria and\n- What data is required when creating a run", + "discriminatorValue": "custom", + "decorators": [], + "baseModel": { + "$ref": "3515" + }, + "properties": [ + { + "$id": "3518", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of data source. Always `custom`.", + "type": { + "$ref": "387" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCustomDataSourceConfigParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3519", + "kind": "property", + "name": "item_schema", + "serializedName": "item_schema", + "doc": "The json schema for each row in the data source.", + "type": { + "$ref": "3442" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCustomDataSourceConfigParams.item_schema", + "serializationOptions": { + "json": { + "name": "item_schema" + } + } + }, + { + "$id": "3520", + "kind": "property", + "name": "include_sample_schema", + "serializedName": "include_sample_schema", + "doc": "Whether the eval should expect you to populate the sample namespace (ie, by generating responses off of your data source)", + "type": { + "$id": "3521", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCustomDataSourceConfigParams.include_sample_schema", + "serializationOptions": { + "json": { + "name": "include_sample_schema" + } + } + } + ] + }, + "logs": { + "$id": "3522", + "kind": "model", + "name": "EvalLogsDataSourceConfigParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalLogsDataSourceConfigParams", + "usage": "Input,Json", + "doc": "A data source config which specifies the metadata property of your logs query.\nThis is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc.", + "discriminatorValue": "logs", + "decorators": [], + "baseModel": { + "$ref": "3515" + }, + "properties": [ + { + "$id": "3523", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of data source. Always `logs`.", + "type": { + "$ref": "388" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalLogsDataSourceConfigParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3524", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalLogsDataSourceConfigParams.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + "stored_completions": { + "$id": "3525", + "kind": "model", + "name": "EvalStoredCompletionsDataSourceConfigParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalStoredCompletionsDataSourceConfigParams", + "usage": "Input,Json", + "deprecation": "This field is marked as deprecated.", + "doc": "Deprecated in favor of LogsDataSourceConfig.", + "discriminatorValue": "stored_completions", + "decorators": [], + "baseModel": { + "$ref": "3515" + }, + "properties": [ + { + "$id": "3526", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of data source. Always `stored_completions`.", + "type": { + "$ref": "389" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalStoredCompletionsDataSourceConfigParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3527", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Metadata filters for the stored completions data source.", + "type": { + "$ref": "3442" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalStoredCompletionsDataSourceConfigParams.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEvalRequest.data_source_config", + "serializationOptions": { + "json": { + "name": "data_source_config" + } + } + }, + { + "$id": "3528", + "kind": "property", + "name": "testing_criteria", + "serializedName": "testing_criteria", + "doc": "A list of graders for all eval runs in this group. Graders can reference variables in the data source using double curly braces notation, like `{{item.variable_name}}`. To reference the model's output, use the `sample` namespace (ie, `{{sample.output_text}}`).", + "type": { + "$id": "3529", + "kind": "array", + "name": "ArrayEvalGraderParams", + "valueType": { + "$id": "3530", + "kind": "model", + "name": "EvalGraderParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderParams", + "usage": "Input,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3531", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "315" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3531" + } + ], + "discriminatedSubtypes": { + "label_model": { + "$id": "3532", + "kind": "model", + "name": "EvalGraderLabelModelParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams", + "usage": "Input,Json", + "doc": "A LabelModelGrader object which uses a model to assign labels to each item\nin the evaluation.", + "discriminatorValue": "label_model", + "decorators": [], + "baseModel": { + "$ref": "3530" + }, + "properties": [ + { + "$id": "3533", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `label_model`.", + "type": { + "$ref": "320" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3534", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3535", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3536", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for the evaluation. Must support structured outputs.", + "type": { + "$id": "3537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3538", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "A list of chat messages forming the prompt or context. May include variable references to the `item` namespace, ie {{item.name}}.", + "type": { + "$id": "3539", + "kind": "array", + "name": "ArrayCreateEvalItem", + "valueType": { + "$id": "3540", + "kind": "union", + "name": "CreateEvalItem", + "variantTypes": [ + { + "$id": "3541", + "kind": "model", + "name": "EvalGraderLabelModelParamsInput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams.input.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3542", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message (e.g. \"system\", \"assistant\", \"user\").", + "type": { + "$id": "3543", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams.input.anonymous.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "3544", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the message.", + "type": { + "$id": "3545", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams.input.anonymous.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + { + "$ref": "3216" + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3546", + "kind": "property", + "name": "labels", + "serializedName": "labels", + "doc": "The labels to classify to each item in the evaluation.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams.labels", + "serializationOptions": { + "json": { + "name": "labels" + } + } + }, + { + "$id": "3547", + "kind": "property", + "name": "passing_labels", + "serializedName": "passing_labels", + "doc": "The labels that indicate a passing result. Must be a subset of labels.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderLabelModelParams.passing_labels", + "serializationOptions": { + "json": { + "name": "passing_labels" + } + } + } + ] + }, + "string_check": { + "$id": "3548", + "kind": "model", + "name": "EvalGraderStringCheckParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderStringCheckParams", + "usage": "Input,Json", + "discriminatorValue": "string_check", + "decorators": [], + "baseModel": { + "$ref": "3530" + }, + "properties": [ + { + "$id": "3549", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `string_check`.", + "type": { + "$ref": "3251" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderStringCheckParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3550", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3551", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderStringCheckParams.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3552", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The input text. This may include template strings.", + "type": { + "$id": "3553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderStringCheckParams.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3554", + "kind": "property", + "name": "reference", + "serializedName": "reference", + "doc": "The reference text. This may include template strings.", + "type": { + "$id": "3555", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderStringCheckParams.reference", + "serializationOptions": { + "json": { + "name": "reference" + } + } + }, + { + "$id": "3556", + "kind": "property", + "name": "operation", + "serializedName": "operation", + "doc": "The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.", + "type": { + "$ref": "323" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderStringCheckParams.operation", + "serializationOptions": { + "json": { + "name": "operation" + } + } + } + ] + }, + "text_similarity": { + "$id": "3557", + "kind": "model", + "name": "EvalGraderTextSimilarityParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityParams", + "usage": "Input,Json", + "discriminatorValue": "text_similarity", + "decorators": [], + "baseModel": { + "$ref": "3530" + }, + "properties": [ + { + "$id": "3558", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of grader.", + "type": { + "$ref": "318" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3559", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3560", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityParams.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3561", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The text being graded.", + "type": { + "$id": "3562", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityParams.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3563", + "kind": "property", + "name": "reference", + "serializedName": "reference", + "doc": "The text being graded against.", + "type": { + "$id": "3564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityParams.reference", + "serializationOptions": { + "json": { + "name": "reference" + } + } + }, + { + "$id": "3565", + "kind": "property", + "name": "evaluation_metric", + "serializedName": "evaluation_metric", + "doc": "The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.", + "type": { + "$ref": "329" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityParams.evaluation_metric", + "serializationOptions": { + "json": { + "name": "evaluation_metric" + } + } + }, + { + "$id": "3566", + "kind": "property", + "name": "pass_threshold", + "serializedName": "pass_threshold", + "doc": "The threshold for the score.", + "type": { + "$id": "3567", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderTextSimilarityParams.pass_threshold", + "serializationOptions": { + "json": { + "name": "pass_threshold" + } + } + } + ] + }, + "python": { + "$id": "3568", + "kind": "model", + "name": "EvalGraderPythonParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonParams", + "usage": "Input,Json", + "discriminatorValue": "python", + "decorators": [], + "baseModel": { + "$ref": "3530" + }, + "properties": [ + { + "$id": "3569", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `python`.", + "type": { + "$ref": "321" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3570", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3571", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonParams.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3572", + "kind": "property", + "name": "source", + "serializedName": "source", + "doc": "The source code of the python script.", + "type": { + "$id": "3573", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonParams.source", + "serializationOptions": { + "json": { + "name": "source" + } + } + }, + { + "$id": "3574", + "kind": "property", + "name": "image_tag", + "serializedName": "image_tag", + "doc": "The image tag to use for the python script.", + "type": { + "$id": "3575", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonParams.image_tag", + "serializationOptions": { + "json": { + "name": "image_tag" + } + } + }, + { + "$id": "3576", + "kind": "property", + "name": "pass_threshold", + "serializedName": "pass_threshold", + "doc": "The threshold for the score.", + "type": { + "$id": "3577", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderPythonParams.pass_threshold", + "serializationOptions": { + "json": { + "name": "pass_threshold" + } + } + } + ] + }, + "score_model": { + "$id": "3578", + "kind": "model", + "name": "EvalGraderScoreModelParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelParams", + "usage": "Input,Json", + "discriminatorValue": "score_model", + "decorators": [], + "baseModel": { + "$ref": "3530" + }, + "properties": [ + { + "$id": "3579", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always `score_model`.", + "type": { + "$ref": "319" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3580", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the grader.", + "type": { + "$id": "3581", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelParams.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3582", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for the evaluation.", + "type": { + "$id": "3583", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelParams.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3584", + "kind": "property", + "name": "sampling_params", + "serializedName": "sampling_params", + "doc": "The sampling parameters for the model.", + "type": { + "$id": "3585", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelParams.sampling_params", + "serializationOptions": { + "json": { + "name": "sampling_params" + } + } + }, + { + "$id": "3586", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The input text. This may include template strings.", + "type": { + "$ref": "3215" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelParams.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3587", + "kind": "property", + "name": "range", + "serializedName": "range", + "doc": "The range of the score. Defaults to `[0, 1]`.", + "type": { + "$ref": "2396" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelParams.range", + "serializationOptions": { + "json": { + "name": "range" + } + } + }, + { + "$id": "3588", + "kind": "property", + "name": "pass_threshold", + "serializedName": "pass_threshold", + "doc": "The threshold for the score.", + "type": { + "$id": "3589", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalGraderScoreModelParams.pass_threshold", + "serializationOptions": { + "json": { + "name": "pass_threshold" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEvalRequest.testing_criteria", + "serializationOptions": { + "json": { + "name": "testing_criteria" + } + } + } + ] + }, + { + "$ref": "3515" + }, + { + "$ref": "3517" + }, + { + "$ref": "3522" + }, + { + "$ref": "3525" + }, + { + "$ref": "3530" + }, + { + "$ref": "3532" + }, + { + "$ref": "3541" + }, + { + "$ref": "3548" + }, + { + "$ref": "3557" + }, + { + "$ref": "3568" + }, + { + "$ref": "3578" + }, + { + "$id": "3590", + "kind": "model", + "name": "UpdateEvalRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.updateEval.Request.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3591", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "3592", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.updateEval.Request.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3593", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "type": { + "$id": "3594", + "kind": "model", + "name": "MetadataPropertyForRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MetadataPropertyForRequest", + "usage": "Input,Json", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "decorators": [], + "properties": [ + { + "$id": "3595", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MetadataPropertyForRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.updateEval.Request.anonymous.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "3594" + }, + { + "$id": "3596", + "kind": "model", + "name": "DeleteEvalResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.deleteEval.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3597", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1389" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteEval.Response.anonymous.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3598", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$id": "3599", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteEval.Response.anonymous.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + }, + { + "$id": "3600", + "kind": "property", + "name": "eval_id", + "serializedName": "eval_id", + "type": { + "$id": "3601", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteEval.Response.anonymous.eval_id", + "serializationOptions": { + "json": { + "name": "eval_id" + } + } + } + ] + }, + { + "$id": "3602", + "kind": "model", + "name": "EvalRunList", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunList", + "usage": "Output,Json", + "doc": "An object representing a list of runs for an evaluation.", + "decorators": [], + "properties": [ + { + "$id": "3603", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of this object. It is always set to \"list\".", + "type": { + "$ref": "1391" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunList.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3604", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "An array of eval run objects.", + "type": { + "$id": "3605", + "kind": "array", + "name": "ArrayEvalRun", + "valueType": { + "$id": "3606", + "kind": "model", + "name": "EvalRun", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRun", + "usage": "Output,Json", + "doc": "A schema representing an evaluation run.", + "decorators": [], + "properties": [ + { + "$id": "3607", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of the object. Always \"eval.run\".", + "type": { + "$ref": "1393" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3608", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique identifier for the evaluation run.", + "type": { + "$id": "3609", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3610", + "kind": "property", + "name": "eval_id", + "serializedName": "eval_id", + "doc": "The identifier of the associated evaluation.", + "type": { + "$id": "3611", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.eval_id", + "serializationOptions": { + "json": { + "name": "eval_id" + } + } + }, + { + "$id": "3612", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the evaluation run.", + "type": { + "$id": "3613", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "3614", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model that is evaluated, if applicable.", + "type": { + "$id": "3615", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3616", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the evaluation run.", + "type": { + "$id": "3617", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3618", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "Unix timestamp (in seconds) when the evaluation run was created.", + "type": { + "$id": "3619", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3620", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "3621", + "kind": "property", + "name": "report_url", + "serializedName": "report_url", + "doc": "The URL to the rendered evaluation run report on the UI dashboard.", + "type": { + "$id": "3622", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.report_url", + "serializationOptions": { + "json": { + "name": "report_url" + } + } + }, + { + "$id": "3623", + "kind": "property", + "name": "result_counts", + "serializedName": "result_counts", + "doc": "Counters summarizing the outcomes of the evaluation run.", + "type": { + "$id": "3624", + "kind": "model", + "name": "EvalRunResultCounts", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRun.result_counts.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3625", + "kind": "property", + "name": "total", + "serializedName": "total", + "doc": "Total number of executed output items.", + "type": { + "$id": "3626", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.result_counts.anonymous.total", + "serializationOptions": { + "json": { + "name": "total" + } + } + }, + { + "$id": "3627", + "kind": "property", + "name": "errored", + "serializedName": "errored", + "doc": "Number of output items that resulted in an error.", + "type": { + "$id": "3628", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.result_counts.anonymous.errored", + "serializationOptions": { + "json": { + "name": "errored" + } + } + }, + { + "$id": "3629", + "kind": "property", + "name": "failed", + "serializedName": "failed", + "doc": "Number of output items that failed to pass the evaluation.", + "type": { + "$id": "3630", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.result_counts.anonymous.failed", + "serializationOptions": { + "json": { + "name": "failed" + } + } + }, + { + "$id": "3631", + "kind": "property", + "name": "passed", + "serializedName": "passed", + "doc": "Number of output items that passed the evaluation.", + "type": { + "$id": "3632", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.result_counts.anonymous.passed", + "serializationOptions": { + "json": { + "name": "passed" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.result_counts", + "serializationOptions": { + "json": { + "name": "result_counts" + } + } + }, + { + "$id": "3633", + "kind": "property", + "name": "per_model_usage", + "serializedName": "per_model_usage", + "doc": "Usage statistics for each model during the evaluation run.", + "type": { + "$id": "3634", + "kind": "array", + "name": "Array15", + "valueType": { + "$id": "3635", + "kind": "model", + "name": "EvalRunPerModelUsage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_model_usage.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3636", + "kind": "property", + "name": "model_name", + "serializedName": "model_name", + "doc": "The name of the model.", + "type": { + "$id": "3637", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_model_usage.anonymous.model_name", + "serializationOptions": { + "json": { + "name": "model_name" + } + } + }, + { + "$id": "3638", + "kind": "property", + "name": "invocation_count", + "serializedName": "invocation_count", + "doc": "The number of invocations.", + "type": { + "$id": "3639", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_model_usage.anonymous.invocation_count", + "serializationOptions": { + "json": { + "name": "invocation_count" + } + } + }, + { + "$id": "3640", + "kind": "property", + "name": "prompt_tokens", + "serializedName": "prompt_tokens", + "doc": "The number of prompt tokens used.", + "type": { + "$id": "3641", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_model_usage.anonymous.prompt_tokens", + "serializationOptions": { + "json": { + "name": "prompt_tokens" + } + } + }, + { + "$id": "3642", + "kind": "property", + "name": "completion_tokens", + "serializedName": "completion_tokens", + "doc": "The number of completion tokens generated.", + "type": { + "$id": "3643", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_model_usage.anonymous.completion_tokens", + "serializationOptions": { + "json": { + "name": "completion_tokens" + } + } + }, + { + "$id": "3644", + "kind": "property", + "name": "total_tokens", + "serializedName": "total_tokens", + "doc": "The total number of tokens used.", + "type": { + "$id": "3645", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_model_usage.anonymous.total_tokens", + "serializationOptions": { + "json": { + "name": "total_tokens" + } + } + }, + { + "$id": "3646", + "kind": "property", + "name": "cached_tokens", + "serializedName": "cached_tokens", + "doc": "The number of tokens retrieved from cache.", + "type": { + "$id": "3647", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_model_usage.anonymous.cached_tokens", + "serializationOptions": { + "json": { + "name": "cached_tokens" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_model_usage", + "serializationOptions": { + "json": { + "name": "per_model_usage" + } + } + }, + { + "$id": "3648", + "kind": "property", + "name": "per_testing_criteria_results", + "serializedName": "per_testing_criteria_results", + "doc": "Results per testing criteria applied during the evaluation run.", + "type": { + "$id": "3649", + "kind": "array", + "name": "Array16", + "valueType": { + "$id": "3650", + "kind": "model", + "name": "EvalRunPerTestingCriteriaResult", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_testing_criteria_result.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3651", + "kind": "property", + "name": "testing_criteria", + "serializedName": "testing_criteria", + "doc": "A description of the testing criteria.", + "type": { + "$id": "3652", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_testing_criteria_result.anonymous.testing_criteria", + "serializationOptions": { + "json": { + "name": "testing_criteria" + } + } + }, + { + "$id": "3653", + "kind": "property", + "name": "passed", + "serializedName": "passed", + "doc": "Number of tests passed for this criteria.", + "type": { + "$id": "3654", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_testing_criteria_result.anonymous.passed", + "serializationOptions": { + "json": { + "name": "passed" + } + } + }, + { + "$id": "3655", + "kind": "property", + "name": "failed", + "serializedName": "failed", + "doc": "Number of tests failed for this criteria.", + "type": { + "$id": "3656", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_testing_criteria_result.anonymous.failed", + "serializationOptions": { + "json": { + "name": "failed" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.per_testing_criteria_results", + "serializationOptions": { + "json": { + "name": "per_testing_criteria_results" + } + } + }, + { + "$id": "3657", + "kind": "property", + "name": "data_source", + "serializedName": "data_source", + "doc": "Information about the run's data source.", + "type": { + "$id": "3658", + "kind": "model", + "name": "EvalRunDataSourceResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunDataSourceResource", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3659", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "401" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunDataSourceResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.data_source", + "serializationOptions": { + "json": { + "name": "data_source" + } + } + }, + { + "$id": "3660", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "3661", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$id": "3662", + "kind": "model", + "name": "EvalApiError", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalApiError", + "usage": "Output,Json", + "doc": "An object representing an error response from the Eval API.", + "decorators": [], + "properties": [ + { + "$id": "3663", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "The error code.", + "type": { + "$id": "3664", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalApiError.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "3665", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "The error message.", + "type": { + "$id": "3666", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalApiError.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRun.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunList.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "3667", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "doc": "The identifier of the first eval run in the data array.", + "type": { + "$id": "3668", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunList.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "3669", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "doc": "The identifier of the last eval run in the data array.", + "type": { + "$id": "3670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunList.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "3671", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Indicates whether there are more evals available.", + "type": { + "$id": "3672", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunList.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "3606" + }, + { + "$ref": "3624" + }, + { + "$ref": "3635" + }, + { + "$ref": "3650" + }, + { + "$ref": "3658" + }, + { + "$ref": "3662" + }, + { + "$id": "3673", + "kind": "model", + "name": "CreateEvalRunRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateEvalRunRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3674", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the run.", + "type": { + "$id": "3675", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEvalRunRequest.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3676", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEvalRunRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "3677", + "kind": "property", + "name": "data_source", + "serializedName": "data_source", + "doc": "Details about the run's data source.", + "type": { + "$id": "3678", + "kind": "model", + "name": "EvalRunDataSourceParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunDataSourceParams", + "usage": "Input,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3679", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "401" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunDataSourceParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3679" + } + ], + "discriminatedSubtypes": { + "jsonl": { + "$id": "3680", + "kind": "model", + "name": "EvalJsonlRunDataSourceParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalJsonlRunDataSourceParams", + "usage": "Input,Json", + "doc": "A JsonlRunDataSource object with that specifies a JSONL file that matches the eval", + "discriminatorValue": "jsonl", + "decorators": [], + "baseModel": { + "$ref": "3678" + }, + "properties": [ + { + "$id": "3681", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of data source. Always `jsonl`.", + "type": { + "$ref": "403" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalJsonlRunDataSourceParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3682", + "kind": "property", + "name": "source", + "serializedName": "source", + "doc": "Determines what populates the `item` namespace in the data source.", + "type": { + "$id": "3683", + "kind": "union", + "name": "EvalJsonlRunDataSourceParamsSource", + "variantTypes": [ + { + "$id": "3684", + "kind": "model", + "name": "EvalRunFileContentDataContentSource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunFileContentDataContentSource", + "usage": "Input,Json", + "discriminatorValue": "file_content", + "decorators": [], + "baseModel": { + "$id": "3685", + "kind": "model", + "name": "EvalRunDataContentSource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunDataContentSource", + "usage": "Input,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3686", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "406" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunDataContentSource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3686" + } + ], + "discriminatedSubtypes": { + "file_content": { + "$ref": "3684" + }, + "file_id": { + "$id": "3687", + "kind": "model", + "name": "EvalRunFileIdDataContentSource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunFileIdDataContentSource", + "usage": "Input,Json", + "discriminatorValue": "file_id", + "decorators": [], + "baseModel": { + "$ref": "3685" + }, + "properties": [ + { + "$id": "3688", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of jsonl source. Always `file_id`.", + "type": { + "$ref": "408" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunFileIdDataContentSource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3689", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier of the file.", + "type": { + "$id": "3690", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunFileIdDataContentSource.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ] + }, + "stored_completions": { + "$id": "3691", + "kind": "model", + "name": "EvalRunStoredCompletionsDataContentSource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunStoredCompletionsDataContentSource", + "usage": "Input,Json", + "doc": "A StoredCompletionsRunDataSource configuration describing a set of filters", + "discriminatorValue": "stored_completions", + "decorators": [], + "baseModel": { + "$ref": "3685" + }, + "properties": [ + { + "$id": "3692", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of source. Always `stored_completions`.", + "type": { + "$ref": "410" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunStoredCompletionsDataContentSource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3693", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunStoredCompletionsDataContentSource.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "3694", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "An optional model to filter by (e.g., 'gpt-4o').", + "type": { + "$id": "3695", + "kind": "nullable", + "type": { + "$id": "3696", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunStoredCompletionsDataContentSource.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3697", + "kind": "property", + "name": "created_after", + "serializedName": "created_after", + "doc": "An optional Unix timestamp to filter items created after this time.", + "type": { + "$id": "3698", + "kind": "nullable", + "type": { + "$id": "3699", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunStoredCompletionsDataContentSource.created_after", + "serializationOptions": { + "json": { + "name": "created_after" + } + } + }, + { + "$id": "3700", + "kind": "property", + "name": "created_before", + "serializedName": "created_before", + "doc": "An optional Unix timestamp to filter items created before this time.", + "type": { + "$id": "3701", + "kind": "nullable", + "type": { + "$id": "3702", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunStoredCompletionsDataContentSource.created_before", + "serializationOptions": { + "json": { + "name": "created_before" + } + } + }, + { + "$id": "3703", + "kind": "property", + "name": "limit", + "serializedName": "limit", + "doc": "An optional maximum number of items to return.", + "type": { + "$id": "3704", + "kind": "nullable", + "type": { + "$id": "3705", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunStoredCompletionsDataContentSource.limit", + "serializationOptions": { + "json": { + "name": "limit" + } + } + } + ] + }, + "responses": { + "$id": "3706", + "kind": "model", + "name": "EvalRunResponsesDataContentSource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource", + "usage": "Input,Json", + "doc": "A EvalResponsesSource object describing a run data source configuration.", + "discriminatorValue": "responses", + "decorators": [], + "baseModel": { + "$ref": "3685" + }, + "properties": [ + { + "$id": "3707", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of run data source. Always `responses`.", + "type": { + "$ref": "411" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3708", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "3709", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The name of the model to find responses for. This is a query parameter used to select responses.", + "type": { + "$id": "3710", + "kind": "nullable", + "type": { + "$id": "3711", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3712", + "kind": "property", + "name": "instructions_search", + "serializedName": "instructions_search", + "doc": "Optional string to search the 'instructions' field. This is a query parameter used to select responses.", + "type": { + "$id": "3713", + "kind": "nullable", + "type": { + "$id": "3714", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.instructions_search", + "serializationOptions": { + "json": { + "name": "instructions_search" + } + } + }, + { + "$id": "3715", + "kind": "property", + "name": "created_after", + "serializedName": "created_after", + "doc": "Only include items created after this timestamp (inclusive). This is a query parameter used to select responses.", + "type": { + "$id": "3716", + "kind": "nullable", + "type": { + "$id": "3717", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.created_after", + "serializationOptions": { + "json": { + "name": "created_after" + } + } + }, + { + "$id": "3718", + "kind": "property", + "name": "created_before", + "serializedName": "created_before", + "doc": "Only include items created before this timestamp (inclusive). This is a query parameter used to select responses.", + "type": { + "$id": "3719", + "kind": "nullable", + "type": { + "$id": "3720", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.created_before", + "serializationOptions": { + "json": { + "name": "created_before" + } + } + }, + { + "$id": "3721", + "kind": "property", + "name": "reasoning_effort", + "serializedName": "reasoning_effort", + "doc": "Optional reasoning effort parameter. This is a query parameter used to select responses.", + "type": { + "$id": "3722", + "kind": "nullable", + "type": { + "$ref": "57" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.reasoning_effort", + "serializationOptions": { + "json": { + "name": "reasoning_effort" + } + } + }, + { + "$id": "3723", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "Sampling temperature. This is a query parameter used to select responses.", + "type": { + "$id": "3724", + "kind": "nullable", + "type": { + "$id": "3725", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "3726", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "Nucleus sampling parameter. This is a query parameter used to select responses.", + "type": { + "$id": "3727", + "kind": "nullable", + "type": { + "$id": "3728", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "3729", + "kind": "property", + "name": "users", + "serializedName": "users", + "doc": "List of user identifiers. This is a query parameter used to select responses.", + "type": { + "$id": "3730", + "kind": "nullable", + "type": { + "$ref": "2155" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.users", + "serializationOptions": { + "json": { + "name": "users" + } + } + }, + { + "$id": "3731", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "List of tool names. This is a query parameter used to select responses.", + "type": { + "$id": "3732", + "kind": "nullable", + "type": { + "$ref": "2155" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunResponsesDataContentSource.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + } + ] + } + } + }, + "properties": [ + { + "$id": "3733", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of jsonl source. Always `file_content`.", + "type": { + "$id": "3734", + "kind": "enumvalue", + "name": "file_content", + "value": "file_content", + "valueType": { + "$ref": "407" + }, + "enumType": { + "$ref": "406" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunFileContentDataContentSource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3735", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the jsonl file.", + "type": { + "$id": "3736", + "kind": "array", + "name": "Array17", + "valueType": { + "$id": "3737", + "kind": "model", + "name": "EvalRunFileContentDataContentSourceContent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunFileContentDataContentSource.content.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3738", + "kind": "property", + "name": "item", + "serializedName": "item", + "type": { + "$ref": "3442" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunFileContentDataContentSource.content.anonymous.item", + "serializationOptions": { + "json": { + "name": "item" + } + } + }, + { + "$id": "3739", + "kind": "property", + "name": "sample", + "serializedName": "sample", + "type": { + "$ref": "3442" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunFileContentDataContentSource.content.anonymous.sample", + "serializationOptions": { + "json": { + "name": "sample" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunFileContentDataContentSource.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + { + "$ref": "3687" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalJsonlRunDataSourceParams.source", + "serializationOptions": { + "json": { + "name": "source" + } + } + } + ] + }, + "completions": { + "$id": "3740", + "kind": "model", + "name": "EvalCompletionsRunDataSourceParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams", + "usage": "Input,Json", + "doc": "A CompletionsRunDataSource object describing a model sampling configuration.", + "discriminatorValue": "completions", + "decorators": [], + "baseModel": { + "$ref": "3678" + }, + "properties": [ + { + "$id": "3741", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of run data source. Always `completions`.", + "type": { + "$ref": "404" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3742", + "kind": "property", + "name": "input_messages", + "serializedName": "input_messages", + "doc": "Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace.", + "type": { + "$id": "3743", + "kind": "union", + "name": "EvalCompletionsRunDataSourceParamsInputMessages", + "variantTypes": [ + { + "$id": "3744", + "kind": "model", + "name": "EvalCompletionsRunDataSourceParamsInputMessages1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.input_messages.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3745", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of input messages. Always `template`.", + "type": { + "$ref": "1395" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.input_messages.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3746", + "kind": "property", + "name": "template", + "serializedName": "template", + "doc": "A list of chat messages forming the prompt or context. May include variable references to the `item` namespace, ie {{item.name}}.", + "type": { + "$id": "3747", + "kind": "array", + "name": "Array18", + "valueType": { + "$id": "3748", + "kind": "union", + "name": "EvalCompletionsRunDataSourceParamsInputMessagesTemplate", + "variantTypes": [ + { + "$id": "3749", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + { + "$ref": "3216" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.input_messages.anonymous.template", + "serializationOptions": { + "json": { + "name": "template" + } + } + } + ] + }, + { + "$id": "3750", + "kind": "model", + "name": "EvalCompletionsRunDataSourceParamsInputMessages2", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.input_messages.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3751", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of input messages. Always `item_reference`.", + "type": { + "$ref": "1397" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.input_messages.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3752", + "kind": "property", + "name": "item_reference", + "serializedName": "item_reference", + "doc": "A reference to a variable in the `item` namespace. Ie, \"item.input_trajectory\"", + "type": { + "$id": "3753", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.input_messages.anonymous.item_reference", + "serializationOptions": { + "json": { + "name": "item_reference" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.input_messages", + "serializationOptions": { + "json": { + "name": "input_messages" + } + } + }, + { + "$id": "3754", + "kind": "property", + "name": "sampling_params", + "serializedName": "sampling_params", + "type": { + "$id": "3755", + "kind": "model", + "name": "EvalCompletionsRunDataSourceParamsSamplingParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.sampling_params.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3756", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "A higher temperature increases randomness in the outputs.", + "type": { + "$id": "3757", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.sampling_params.anonymous.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "3758", + "kind": "property", + "name": "max_completion_tokens", + "serializedName": "max_completion_tokens", + "doc": "The maximum number of tokens in the generated output.", + "type": { + "$id": "3759", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.sampling_params.anonymous.max_completion_tokens", + "serializationOptions": { + "json": { + "name": "max_completion_tokens" + } + } + }, + { + "$id": "3760", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to temperature for nucleus sampling; 1.0 includes all tokens.", + "type": { + "$id": "3761", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.sampling_params.anonymous.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "3762", + "kind": "property", + "name": "seed", + "serializedName": "seed", + "doc": "A seed value to initialize the randomness, during sampling.", + "type": { + "$id": "3763", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.sampling_params.anonymous.seed", + "serializationOptions": { + "json": { + "name": "seed" + } + } + }, + { + "$id": "3764", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "doc": "An object specifying the format that the model must output.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables\nStructured Outputs which ensures the model will match your supplied JSON\nschema. Learn more in the [Structured Outputs\nguide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it.", + "type": { + "$id": "3765", + "kind": "model", + "name": "ResponseTextFormatConfiguration", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfiguration", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3766", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "412" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfiguration.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3766" + } + ], + "discriminatedSubtypes": { + "text": { + "$id": "3767", + "kind": "model", + "name": "ResponseTextFormatConfigurationText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationText", + "usage": "Input,Output,Json", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "3765" + }, + "properties": [ + { + "$id": "3768", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "414" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationText.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "json_object": { + "$id": "3769", + "kind": "model", + "name": "ResponseTextFormatConfigurationJsonObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationJsonObject", + "usage": "Input,Output,Json", + "discriminatorValue": "json_object", + "decorators": [], + "baseModel": { + "$ref": "3765" + }, + "properties": [ + { + "$id": "3770", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "416" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationJsonObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "json_schema": { + "$id": "3771", + "kind": "model", + "name": "ResponseTextFormatConfigurationJsonSchema", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationJsonSchema", + "usage": "Input,Output,Json", + "doc": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).", + "discriminatorValue": "json_schema", + "decorators": [], + "baseModel": { + "$ref": "3765" + }, + "properties": [ + { + "$id": "3772", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of response format being defined. Always `json_schema`.", + "type": { + "$ref": "415" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationJsonSchema.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3773", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.", + "type": { + "$id": "3774", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationJsonSchema.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "3775", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.", + "type": { + "$id": "3776", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationJsonSchema.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3777", + "kind": "property", + "name": "schema", + "serializedName": "schema", + "type": { + "$ref": "2188" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationJsonSchema.schema", + "serializationOptions": { + "json": { + "name": "schema" + } + } + }, + { + "$id": "3778", + "kind": "property", + "name": "strict", + "serializedName": "strict", + "doc": "Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`. To learn more, read the [Structured Outputs\nguide](/docs/guides/structured-outputs).", + "type": { + "$id": "3779", + "kind": "nullable", + "type": { + "$id": "3780", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextFormatConfigurationJsonSchema.strict", + "serializationOptions": { + "json": { + "name": "strict" + } + } + } + ] + } + } + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.sampling_params.anonymous.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + }, + { + "$id": "3781", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.", + "type": { + "$ref": "2873" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.sampling_params.anonymous.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.sampling_params", + "serializationOptions": { + "json": { + "name": "sampling_params" + } + } + }, + { + "$id": "3782", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The name of the model to use for generating completions (e.g. \"o3-mini\").", + "type": { + "$id": "3783", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3784", + "kind": "property", + "name": "source", + "serializedName": "source", + "doc": "Determines what populates the `item` namespace in this run's data source.", + "type": { + "$id": "3785", + "kind": "union", + "name": "EvalCompletionsRunDataSourceParamsSource", + "variantTypes": [ + { + "$ref": "3684" + }, + { + "$ref": "3687" + }, + { + "$ref": "3691" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalCompletionsRunDataSourceParams.source", + "serializationOptions": { + "json": { + "name": "source" + } + } + } + ] + }, + "responses": { + "$id": "3786", + "kind": "model", + "name": "EvalResponsesRunDataSourceParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams", + "usage": "Input,Json", + "doc": "A ResponsesRunDataSource object describing a model sampling configuration.", + "discriminatorValue": "responses", + "decorators": [], + "baseModel": { + "$ref": "3678" + }, + "properties": [ + { + "$id": "3787", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of run data source. Always `responses`.", + "type": { + "$ref": "405" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3788", + "kind": "property", + "name": "input_messages", + "serializedName": "input_messages", + "doc": "Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, `item.input_trajectory`), or a template with variable references to the `item` namespace.", + "type": { + "$id": "3789", + "kind": "union", + "name": "EvalResponsesRunDataSourceParamsInputMessages", + "variantTypes": [ + { + "$id": "3790", + "kind": "model", + "name": "EvalResponsesRunDataSourceParamsInputMessages1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3791", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of input messages. Always `template`.", + "type": { + "$ref": "1399" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3792", + "kind": "property", + "name": "template", + "serializedName": "template", + "doc": "A list of chat messages forming the prompt or context. May include variable references to the `item` namespace, ie {{item.name}}.", + "type": { + "$id": "3793", + "kind": "array", + "name": "Array19", + "valueType": { + "$id": "3794", + "kind": "union", + "name": "EvalResponsesRunDataSourceParamsInputMessagesTemplate", + "variantTypes": [ + { + "$id": "3795", + "kind": "model", + "name": "EvalResponsesRunDataSourceParamsInputMessagesTemplate1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages.template.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3796", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message (e.g. \"system\", \"assistant\", \"user\").", + "type": { + "$id": "3797", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages.template.anonymous.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "3798", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the message.", + "type": { + "$id": "3799", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages.template.anonymous.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + { + "$ref": "3216" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages.anonymous.template", + "serializationOptions": { + "json": { + "name": "template" + } + } + } + ] + }, + { + "$id": "3800", + "kind": "model", + "name": "EvalResponsesRunDataSourceParamsInputMessages2", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3801", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of input messages. Always `item_reference`.", + "type": { + "$ref": "1401" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3802", + "kind": "property", + "name": "item_reference", + "serializedName": "item_reference", + "doc": "A reference to a variable in the `item` namespace. Ie, \"item.name\"", + "type": { + "$id": "3803", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages.anonymous.item_reference", + "serializationOptions": { + "json": { + "name": "item_reference" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.input_messages", + "serializationOptions": { + "json": { + "name": "input_messages" + } + } + }, + { + "$id": "3804", + "kind": "property", + "name": "sampling_params", + "serializedName": "sampling_params", + "type": { + "$id": "3805", + "kind": "model", + "name": "EvalResponsesRunDataSourceParamsSamplingParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3806", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "A higher temperature increases randomness in the outputs.", + "type": { + "$id": "3807", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params.anonymous.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "3808", + "kind": "property", + "name": "max_completion_tokens", + "serializedName": "max_completion_tokens", + "doc": "The maximum number of tokens in the generated output.", + "type": { + "$id": "3809", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params.anonymous.max_completion_tokens", + "serializationOptions": { + "json": { + "name": "max_completion_tokens" + } + } + }, + { + "$id": "3810", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to temperature for nucleus sampling; 1.0 includes all tokens.", + "type": { + "$id": "3811", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params.anonymous.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "3812", + "kind": "property", + "name": "seed", + "serializedName": "seed", + "doc": "A seed value to initialize the randomness, during sampling.", + "type": { + "$id": "3813", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params.anonymous.seed", + "serializationOptions": { + "json": { + "name": "seed" + } + } + }, + { + "$id": "3814", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "An array of tools the model may call while generating a response. You\ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n model's capabilities, like [web search](/docs/guides/tools-web-search)\n or [file search](/docs/guides/tools-file-search). Learn more about\n [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n enabling the model to call your own code. Learn more about\n [function calling](/docs/guides/function-calling).", + "type": { + "$id": "3815", + "kind": "array", + "name": "ArrayTool", + "valueType": { + "$id": "3816", + "kind": "model", + "name": "Tool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Tool", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3817", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "417" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Tool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3817" + } + ], + "discriminatedSubtypes": { + "function": { + "$id": "3818", + "kind": "model", + "name": "FunctionTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FunctionTool", + "usage": "Input,Output,Json", + "doc": "Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "3816" + }, + "properties": [ + { + "$id": "3819", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the function tool. Always `function`.", + "type": { + "$ref": "420" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3820", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to call.", + "type": { + "$id": "3821", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionTool.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "3822", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "A description of the function. Used by the model to determine whether or not to call the function.", + "type": { + "$id": "3823", + "kind": "nullable", + "type": { + "$id": "3824", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionTool.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "3825", + "kind": "property", + "name": "parameters", + "serializedName": "parameters", + "doc": "A JSON schema object describing the parameters of the function.", + "type": { + "$id": "3826", + "kind": "nullable", + "type": { + "$id": "3827", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionTool.parameters", + "serializationOptions": { + "json": { + "name": "parameters" + } + } + }, + { + "$id": "3828", + "kind": "property", + "name": "strict", + "serializedName": "strict", + "doc": "Whether to enforce strict parameter validation. Default `true`.", + "type": { + "$id": "3829", + "kind": "nullable", + "type": { + "$id": "3830", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionTool.strict", + "serializationOptions": { + "json": { + "name": "strict" + } + } + } + ] + }, + "file_search": { + "$id": "3831", + "kind": "model", + "name": "FileSearchTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FileSearchTool", + "usage": "Input,Output,Json", + "doc": "A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).", + "discriminatorValue": "file_search", + "decorators": [], + "baseModel": { + "$ref": "3816" + }, + "properties": [ + { + "$id": "3832", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the file search tool. Always `file_search`.", + "type": { + "$ref": "419" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3833", + "kind": "property", + "name": "vector_store_ids", + "serializedName": "vector_store_ids", + "doc": "The IDs of the vector stores to search.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchTool.vector_store_ids", + "serializationOptions": { + "json": { + "name": "vector_store_ids" + } + } + }, + { + "$id": "3834", + "kind": "property", + "name": "max_num_results", + "serializedName": "max_num_results", + "doc": "The maximum number of results to return. This number should be between 1 and 50 inclusive.", + "type": { + "$id": "3835", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchTool.max_num_results", + "serializationOptions": { + "json": { + "name": "max_num_results" + } + } + }, + { + "$id": "3836", + "kind": "property", + "name": "ranking_options", + "serializedName": "ranking_options", + "doc": "Ranking options for search.", + "type": { + "$id": "3837", + "kind": "model", + "name": "RankingOptions", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RankingOptions", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3838", + "kind": "property", + "name": "ranker", + "serializedName": "ranker", + "doc": "The ranker to use for the file search.", + "type": { + "$ref": "427" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RankingOptions.ranker", + "serializationOptions": { + "json": { + "name": "ranker" + } + } + }, + { + "$id": "3839", + "kind": "property", + "name": "score_threshold", + "serializedName": "score_threshold", + "doc": "The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.", + "type": { + "$id": "3840", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RankingOptions.score_threshold", + "serializationOptions": { + "json": { + "name": "score_threshold" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchTool.ranking_options", + "serializationOptions": { + "json": { + "name": "ranking_options" + } + } + }, + { + "$id": "3841", + "kind": "property", + "name": "filters", + "serializedName": "filters", + "doc": "A filter to apply.", + "type": { + "$id": "3842", + "kind": "nullable", + "type": { + "$id": "3843", + "kind": "union", + "name": "Filters", + "variantTypes": [ + { + "$id": "3844", + "kind": "model", + "name": "ComparisonFilter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComparisonFilter", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3845", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "431" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComparisonFilter.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3845" + }, + { + "$id": "3846", + "kind": "property", + "name": "key", + "serializedName": "key", + "type": { + "$id": "3847", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComparisonFilter.key", + "serializationOptions": { + "json": { + "name": "key" + } + } + }, + { + "$id": "3848", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$id": "3849", + "kind": "union", + "name": "ComparisonFilterValue", + "variantTypes": [ + { + "$id": "3850", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "3851", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + { + "$id": "3852", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComparisonFilter.value", + "serializationOptions": { + "json": { + "name": "value" + } + } + } + ], + "discriminatedSubtypes": { + "eq": { + "$id": "3853", + "kind": "model", + "name": "ComparisonFilterEquals", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterEquals", + "usage": "Input,Output,Json", + "discriminatorValue": "eq", + "decorators": [], + "baseModel": { + "$ref": "3844" + }, + "properties": [ + { + "$id": "3854", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "433" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterEquals.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "ne": { + "$id": "3855", + "kind": "model", + "name": "ComparisonFilterNotEquals", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterNotEquals", + "usage": "Input,Output,Json", + "discriminatorValue": "ne", + "decorators": [], + "baseModel": { + "$ref": "3844" + }, + "properties": [ + { + "$id": "3856", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "434" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterNotEquals.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "gt": { + "$id": "3857", + "kind": "model", + "name": "ComparisonFilterGreaterThan", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterGreaterThan", + "usage": "Input,Output,Json", + "discriminatorValue": "gt", + "decorators": [], + "baseModel": { + "$ref": "3844" + }, + "properties": [ + { + "$id": "3858", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "435" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterGreaterThan.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "gte": { + "$id": "3859", + "kind": "model", + "name": "ComparisonFilterGreaterThanOrEquals", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterGreaterThanOrEquals", + "usage": "Input,Output,Json", + "discriminatorValue": "gte", + "decorators": [], + "baseModel": { + "$ref": "3844" + }, + "properties": [ + { + "$id": "3860", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "436" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterGreaterThanOrEquals.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "lt": { + "$id": "3861", + "kind": "model", + "name": "ComparisonFilterLessThan", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterLessThan", + "usage": "Input,Output,Json", + "discriminatorValue": "lt", + "decorators": [], + "baseModel": { + "$ref": "3844" + }, + "properties": [ + { + "$id": "3862", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "437" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterLessThan.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "lte": { + "$id": "3863", + "kind": "model", + "name": "ComparisonFilterLessThanOrEquals", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterLessThanOrEquals", + "usage": "Input,Output,Json", + "discriminatorValue": "lte", + "decorators": [], + "baseModel": { + "$ref": "3844" + }, + "properties": [ + { + "$id": "3864", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "438" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComparisonFilterLessThanOrEquals.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + } + } + }, + { + "$id": "3865", + "kind": "model", + "name": "CompoundFilter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CompoundFilter", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3866", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "439" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompoundFilter.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3866" + }, + { + "$id": "3867", + "kind": "property", + "name": "filters", + "serializedName": "filters", + "type": { + "$id": "3868", + "kind": "array", + "name": "Array20", + "valueType": { + "$id": "3869", + "kind": "union", + "name": "CompoundFilterFilter", + "variantTypes": [ + { + "$ref": "3844" + }, + { + "$ref": "3865" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompoundFilter.filters", + "serializationOptions": { + "json": { + "name": "filters" + } + } + } + ], + "discriminatedSubtypes": { + "and": { + "$id": "3870", + "kind": "model", + "name": "CompoundFilterAnd", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CompoundFilterAnd", + "usage": "Input,Output,Json", + "discriminatorValue": "and", + "decorators": [], + "baseModel": { + "$ref": "3865" + }, + "properties": [ + { + "$id": "3871", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "441" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompoundFilterAnd.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "or": { + "$id": "3872", + "kind": "model", + "name": "CompoundFilterOr", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CompoundFilterOr", + "usage": "Input,Output,Json", + "discriminatorValue": "or", + "decorators": [], + "baseModel": { + "$ref": "3865" + }, + "properties": [ + { + "$id": "3873", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "442" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompoundFilterOr.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + } + } + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchTool.filters", + "serializationOptions": { + "json": { + "name": "filters" + } + } + } + ] + }, + "computer_use_preview": { + "$id": "3874", + "kind": "model", + "name": "ComputerUsePreviewTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerUsePreviewTool", + "usage": "Input,Output,Json", + "doc": "A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).", + "discriminatorValue": "computer_use_preview", + "decorators": [], + "baseModel": { + "$ref": "3816" + }, + "properties": [ + { + "$id": "3875", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the computer use tool. Always `computer_use_preview`.", + "type": { + "$ref": "421" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerUsePreviewTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3876", + "kind": "property", + "name": "environment", + "serializedName": "environment", + "doc": "The type of computer environment to control.", + "type": { + "$ref": "443" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerUsePreviewTool.environment", + "serializationOptions": { + "json": { + "name": "environment" + } + } + }, + { + "$id": "3877", + "kind": "property", + "name": "display_width", + "serializedName": "display_width", + "doc": "The width of the computer display.", + "type": { + "$id": "3878", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerUsePreviewTool.display_width", + "serializationOptions": { + "json": { + "name": "display_width" + } + } + }, + { + "$id": "3879", + "kind": "property", + "name": "display_height", + "serializedName": "display_height", + "doc": "The height of the computer display.", + "type": { + "$id": "3880", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerUsePreviewTool.display_height", + "serializationOptions": { + "json": { + "name": "display_height" + } + } + } + ] + }, + "web_search_preview": { + "$id": "3881", + "kind": "model", + "name": "WebSearchPreviewTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.WebSearchPreviewTool", + "usage": "Input,Output,Json", + "doc": "This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).", + "discriminatorValue": "web_search_preview", + "decorators": [], + "baseModel": { + "$ref": "3816" + }, + "properties": [ + { + "$id": "3882", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.", + "type": { + "$ref": "422" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchPreviewTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3883", + "kind": "property", + "name": "user_location", + "serializedName": "user_location", + "doc": "The user's location.", + "type": { + "$id": "3884", + "kind": "nullable", + "type": { + "$id": "3885", + "kind": "model", + "name": "Location", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Location", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "3886", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "450" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Location.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "3886" + } + ], + "discriminatedSubtypes": { + "approximate": { + "$id": "3887", + "kind": "model", + "name": "ApproximateLocation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ApproximateLocation", + "usage": "Input,Output,Json", + "discriminatorValue": "approximate", + "decorators": [], + "baseModel": { + "$ref": "3885" + }, + "properties": [ + { + "$id": "3888", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "452" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ApproximateLocation.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3889", + "kind": "property", + "name": "country", + "serializedName": "country", + "type": { + "$id": "3890", + "kind": "nullable", + "type": { + "$id": "3891", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ApproximateLocation.country", + "serializationOptions": { + "json": { + "name": "country" + } + } + }, + { + "$id": "3892", + "kind": "property", + "name": "region", + "serializedName": "region", + "type": { + "$id": "3893", + "kind": "nullable", + "type": { + "$id": "3894", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ApproximateLocation.region", + "serializationOptions": { + "json": { + "name": "region" + } + } + }, + { + "$id": "3895", + "kind": "property", + "name": "city", + "serializedName": "city", + "type": { + "$id": "3896", + "kind": "nullable", + "type": { + "$id": "3897", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ApproximateLocation.city", + "serializationOptions": { + "json": { + "name": "city" + } + } + }, + { + "$id": "3898", + "kind": "property", + "name": "timezone", + "serializedName": "timezone", + "type": { + "$id": "3899", + "kind": "nullable", + "type": { + "$id": "3900", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ApproximateLocation.timezone", + "serializationOptions": { + "json": { + "name": "timezone" + } + } + } + ] + } + } + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchPreviewTool.user_location", + "serializationOptions": { + "json": { + "name": "user_location" + } + } + }, + { + "$id": "3901", + "kind": "property", + "name": "search_context_size", + "serializedName": "search_context_size", + "doc": "High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.", + "type": { + "$ref": "453" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchPreviewTool.search_context_size", + "serializationOptions": { + "json": { + "name": "search_context_size" + } + } + } + ] + }, + "code_interpreter": { + "$id": "3902", + "kind": "model", + "name": "CodeInterpreterTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterTool", + "usage": "Input,Output,Json", + "doc": "A tool that runs Python code to help generate a response to a prompt.", + "discriminatorValue": "code_interpreter", + "decorators": [], + "baseModel": { + "$ref": "3816" + }, + "properties": [ + { + "$id": "3903", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the code interpreter tool. Always `code_interpreter`.", + "type": { + "$ref": "424" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3904", + "kind": "property", + "name": "container", + "serializedName": "container", + "doc": "The code interpreter container. Can be a container ID or an object that\nspecifies uploaded file IDs to make available to your code.", + "type": { + "$id": "3905", + "kind": "union", + "name": "CodeInterpreterToolContainer", + "variantTypes": [ + { + "$id": "3906", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "3907", + "kind": "model", + "name": "CodeInterpreterToolAuto", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolAuto", + "usage": "Input,Output,Json", + "doc": "Configuration for a code interpreter container. Optionally specify the IDs\nof the files to run the code on.", + "decorators": [], + "properties": [ + { + "$id": "3908", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `auto`.", + "type": { + "$ref": "1403" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolAuto.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3909", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "An optional list of uploaded files to make available to your code.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolAuto.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterTool.container", + "serializationOptions": { + "json": { + "name": "container" + } + } + } + ] + }, + "image_generation": { + "$id": "3910", + "kind": "model", + "name": "ImageGenTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ImageGenTool", + "usage": "Input,Output,Json", + "doc": "A tool that generates images using a model like `gpt-image-1`.", + "discriminatorValue": "image_generation", + "decorators": [], + "baseModel": { + "$ref": "3816" + }, + "properties": [ + { + "$id": "3911", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the image generation tool. Always `image_generation`.", + "type": { + "$ref": "425" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3912", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The image generation model to use. Default: `gpt-image-1`.", + "type": { + "$ref": "1405" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3913", + "kind": "property", + "name": "quality", + "serializedName": "quality", + "doc": "The quality of the generated image. One of `low`, `medium`, `high`,\nor `auto`. Default: `auto`.", + "type": { + "$ref": "458" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.quality", + "serializationOptions": { + "json": { + "name": "quality" + } + } + }, + { + "$id": "3914", + "kind": "property", + "name": "size", + "serializedName": "size", + "doc": "The size of the generated image. One of `1024x1024`, `1024x1536`,\n`1536x1024`, or `auto`. Default: `auto`.", + "type": { + "$ref": "464" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.size", + "serializationOptions": { + "json": { + "name": "size" + } + } + }, + { + "$id": "3915", + "kind": "property", + "name": "output_format", + "serializedName": "output_format", + "doc": "The output format of the generated image. One of `png`, `webp`, or\n`jpeg`. Default: `png`.", + "type": { + "$ref": "470" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.output_format", + "serializationOptions": { + "json": { + "name": "output_format" + } + } + }, + { + "$id": "3916", + "kind": "property", + "name": "output_compression", + "serializedName": "output_compression", + "doc": "Compression level for the output image. Default: 100.", + "type": { + "$id": "3917", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.output_compression", + "serializationOptions": { + "json": { + "name": "output_compression" + } + } + }, + { + "$id": "3918", + "kind": "property", + "name": "moderation", + "serializedName": "moderation", + "doc": "Moderation level for the generated image. Default: `auto`.", + "type": { + "$ref": "475" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.moderation", + "serializationOptions": { + "json": { + "name": "moderation" + } + } + }, + { + "$id": "3919", + "kind": "property", + "name": "background", + "serializedName": "background", + "doc": "Background type for the generated image. One of `transparent`,\n`opaque`, or `auto`. Default: `auto`.", + "type": { + "$ref": "479" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.background", + "serializationOptions": { + "json": { + "name": "background" + } + } + }, + { + "$id": "3920", + "kind": "property", + "name": "input_image_mask", + "serializedName": "input_image_mask", + "doc": "Optional mask for inpainting. Contains `image_url`\n(string, optional) and `file_id` (string, optional).", + "type": { + "$id": "3921", + "kind": "model", + "name": "ImageGenToolInputImageMask", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.input_image_mask.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3922", + "kind": "property", + "name": "image_url", + "serializedName": "image_url", + "doc": "Base64-encoded mask image.", + "type": { + "$id": "3923", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.input_image_mask.anonymous.image_url", + "serializationOptions": { + "json": { + "name": "image_url" + } + } + }, + { + "$id": "3924", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "File ID for the mask image.", + "type": { + "$id": "3925", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.input_image_mask.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.input_image_mask", + "serializationOptions": { + "json": { + "name": "input_image_mask" + } + } + }, + { + "$id": "3926", + "kind": "property", + "name": "partial_images", + "serializedName": "partial_images", + "doc": "Number of partial images to generate in streaming mode, from 0 (default value) to 3.", + "type": { + "$id": "3927", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenTool.partial_images", + "serializationOptions": { + "json": { + "name": "partial_images" + } + } + } + ] + }, + "local_shell": { + "$id": "3928", + "kind": "model", + "name": "LocalShellTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.LocalShellTool", + "usage": "Input,Output,Json", + "doc": "A tool that allows the model to execute shell commands in a local environment.", + "discriminatorValue": "local_shell", + "decorators": [], + "baseModel": { + "$ref": "3816" + }, + "properties": [ + { + "$id": "3929", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the local shell tool. Always `local_shell`.", + "type": { + "$ref": "426" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "mcp": { + "$id": "3930", + "kind": "model", + "name": "MCPTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPTool", + "usage": "Input,Output,Json", + "doc": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).", + "discriminatorValue": "mcp", + "decorators": [], + "baseModel": { + "$ref": "3816" + }, + "properties": [ + { + "$id": "3931", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the MCP tool. Always `mcp`.", + "type": { + "$ref": "423" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "3932", + "kind": "property", + "name": "server_label", + "serializedName": "server_label", + "doc": "A label for this MCP server, used to identify it in tool calls.", + "type": { + "$id": "3933", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.server_label", + "serializationOptions": { + "json": { + "name": "server_label" + } + } + }, + { + "$id": "3934", + "kind": "property", + "name": "server_url", + "serializedName": "server_url", + "doc": "The URL for the MCP server.", + "type": { + "$id": "3935", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.server_url", + "serializationOptions": { + "json": { + "name": "server_url" + } + } + }, + { + "$id": "3936", + "kind": "property", + "name": "headers", + "serializedName": "headers", + "doc": "Optional HTTP headers to send to the MCP server. Use for authentication\nor other purposes.", + "type": { + "$id": "3937", + "kind": "nullable", + "type": { + "$ref": "2162" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.headers", + "serializationOptions": { + "json": { + "name": "headers" + } + } + }, + { + "$id": "3938", + "kind": "property", + "name": "allowed_tools", + "serializedName": "allowed_tools", + "doc": "List of allowed tool names or a filter object.", + "type": { + "$id": "3939", + "kind": "nullable", + "type": { + "$id": "3940", + "kind": "union", + "name": "MCPToolAllowedTools", + "variantTypes": [ + { + "$ref": "2155" + }, + { + "$id": "3941", + "kind": "model", + "name": "MCPToolAllowedTools1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPTool.allowed_tools.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3942", + "kind": "property", + "name": "tool_names", + "serializedName": "tool_names", + "doc": "List of allowed tool names.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.allowed_tools.anonymous.tool_names", + "serializationOptions": { + "json": { + "name": "tool_names" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.allowed_tools", + "serializationOptions": { + "json": { + "name": "allowed_tools" + } + } + }, + { + "$id": "3943", + "kind": "property", + "name": "require_approval", + "serializedName": "require_approval", + "doc": "Specify which of the MCP server's tools require approval.", + "type": { + "$id": "3944", + "kind": "nullable", + "type": { + "$id": "3945", + "kind": "union", + "name": "MCPToolRequireApproval", + "variantTypes": [ + { + "$id": "3946", + "kind": "model", + "name": "MCPToolRequireApproval1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPTool.require_approval.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3947", + "kind": "property", + "name": "always", + "serializedName": "always", + "doc": "A list of tools that always require approval.", + "type": { + "$id": "3948", + "kind": "model", + "name": "MCPToolRequireApprovalAlways", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPTool.require_approval.always.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3949", + "kind": "property", + "name": "tool_names", + "serializedName": "tool_names", + "doc": "List of tools that require approval.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.require_approval.always.anonymous.tool_names", + "serializationOptions": { + "json": { + "name": "tool_names" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.require_approval.anonymous.always", + "serializationOptions": { + "json": { + "name": "always" + } + } + }, + { + "$id": "3950", + "kind": "property", + "name": "never", + "serializedName": "never", + "doc": "A list of tools that never require approval.", + "type": { + "$id": "3951", + "kind": "model", + "name": "MCPToolRequireApprovalNever", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPTool.require_approval.never.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3952", + "kind": "property", + "name": "tool_names", + "serializedName": "tool_names", + "doc": "List of tools that do not require approval.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.require_approval.never.anonymous.tool_names", + "serializationOptions": { + "json": { + "name": "tool_names" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.require_approval.anonymous.never", + "serializationOptions": { + "json": { + "name": "never" + } + } + } + ] + }, + { + "$ref": "1407" + }, + { + "$ref": "1409" + } + ], + "namespace": "", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPTool.require_approval", + "serializationOptions": { + "json": { + "name": "require_approval" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params.anonymous.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "3953", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)", + "type": { + "$id": "3954", + "kind": "model", + "name": "EvalResponsesRunDataSourceParamsSamplingParamsText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params.text.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "3955", + "kind": "property", + "name": "format", + "serializedName": "format", + "type": { + "$ref": "3765" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params.text.anonymous.format", + "serializationOptions": { + "json": { + "name": "format" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params.anonymous.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.sampling_params", + "serializationOptions": { + "json": { + "name": "sampling_params" + } + } + }, + { + "$id": "3956", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The name of the model to use for generating completions (e.g. \"o3-mini\").", + "type": { + "$id": "3957", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "3958", + "kind": "property", + "name": "source", + "serializedName": "source", + "doc": "Determines what populates the `item` namespace in this run's data source.", + "type": { + "$id": "3959", + "kind": "union", + "name": "EvalResponsesRunDataSourceParamsSource", + "variantTypes": [ + { + "$ref": "3684" + }, + { + "$ref": "3687" + }, + { + "$ref": "3706" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalResponsesRunDataSourceParams.source", + "serializationOptions": { + "json": { + "name": "source" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateEvalRunRequest.data_source", + "serializationOptions": { + "json": { + "name": "data_source" + } + } + } + ] + }, + { + "$ref": "3678" + }, + { + "$ref": "3680" + }, + { + "$ref": "3684" + }, + { + "$ref": "3737" + }, + { + "$ref": "3685" + }, + { + "$ref": "3687" + }, + { + "$ref": "3691" + }, + { + "$ref": "3706" + }, + { + "$ref": "3740" + }, + { + "$ref": "3744" + }, + { + "$ref": "3750" + }, + { + "$ref": "3755" + }, + { + "$ref": "3765" + }, + { + "$ref": "3767" + }, + { + "$ref": "3769" + }, + { + "$ref": "3771" + }, + { + "$ref": "3786" + }, + { + "$ref": "3790" + }, + { + "$ref": "3795" + }, + { + "$ref": "3800" + }, + { + "$ref": "3805" + }, + { + "$ref": "3816" + }, + { + "$ref": "3818" + }, + { + "$ref": "3831" + }, + { + "$ref": "3837" + }, + { + "$ref": "3844" + }, + { + "$ref": "3853" + }, + { + "$ref": "3855" + }, + { + "$ref": "3857" + }, + { + "$ref": "3859" + }, + { + "$ref": "3861" + }, + { + "$ref": "3863" + }, + { + "$ref": "3865" + }, + { + "$ref": "3870" + }, + { + "$ref": "3872" + }, + { + "$ref": "3874" + }, + { + "$ref": "3881" + }, + { + "$ref": "3885" + }, + { + "$ref": "3887" + }, + { + "$ref": "3902" + }, + { + "$ref": "3907" + }, + { + "$ref": "3910" + }, + { + "$ref": "3921" + }, + { + "$ref": "3928" + }, + { + "$ref": "3930" + }, + { + "$ref": "3941" + }, + { + "$ref": "3946" + }, + { + "$ref": "3948" + }, + { + "$ref": "3951" + }, + { + "$ref": "3954" + }, + { + "$id": "3960", + "kind": "model", + "name": "DeleteEvalRunResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.deleteEvalRun.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3961", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1411" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteEvalRun.Response.anonymous.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3962", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$id": "3963", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteEvalRun.Response.anonymous.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + }, + { + "$id": "3964", + "kind": "property", + "name": "eval_run_id", + "serializedName": "eval_run_id", + "type": { + "$id": "3965", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteEvalRun.Response.anonymous.eval_run_id", + "serializationOptions": { + "json": { + "name": "eval_run_id" + } + } + } + ] + }, + { + "$id": "3966", + "kind": "model", + "name": "EvalRunOutputItemList", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItemList", + "usage": "Output,Json", + "doc": "An object representing a list of output items for an evaluation run.", + "decorators": [], + "properties": [ + { + "$id": "3967", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of this object. It is always set to \"list\".", + "type": { + "$ref": "1413" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItemList.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3968", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "An array of eval run output item objects.", + "type": { + "$id": "3969", + "kind": "array", + "name": "ArrayEvalRunOutputItem", + "valueType": { + "$id": "3970", + "kind": "model", + "name": "EvalRunOutputItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem", + "usage": "Output,Json", + "doc": "A schema representing an evaluation run output item.", + "decorators": [], + "properties": [ + { + "$id": "3971", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of the object. Always \"eval.run.output_item\".", + "type": { + "$ref": "1415" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "3972", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique identifier for the evaluation run output item.", + "type": { + "$id": "3973", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "3974", + "kind": "property", + "name": "run_id", + "serializedName": "run_id", + "doc": "The identifier of the evaluation run associated with this output item.", + "type": { + "$id": "3975", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.run_id", + "serializationOptions": { + "json": { + "name": "run_id" + } + } + }, + { + "$id": "3976", + "kind": "property", + "name": "eval_id", + "serializedName": "eval_id", + "doc": "The identifier of the evaluation group.", + "type": { + "$id": "3977", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.eval_id", + "serializationOptions": { + "json": { + "name": "eval_id" + } + } + }, + { + "$id": "3978", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "Unix timestamp (in seconds) when the evaluation run was created.", + "type": { + "$id": "3979", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "3980", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "3981", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the evaluation run.", + "type": { + "$id": "3982", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "3983", + "kind": "property", + "name": "datasource_item_id", + "serializedName": "datasource_item_id", + "doc": "The identifier for the data source item.", + "type": { + "$id": "3984", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.datasource_item_id", + "serializationOptions": { + "json": { + "name": "datasource_item_id" + } + } + }, + { + "$id": "3985", + "kind": "property", + "name": "datasource_item", + "serializedName": "datasource_item", + "doc": "Details of the input data source item.", + "type": { + "$ref": "3442" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.datasource_item", + "serializationOptions": { + "json": { + "name": "datasource_item" + } + } + }, + { + "$id": "3986", + "kind": "property", + "name": "results", + "serializedName": "results", + "doc": "A list of results from the evaluation run.", + "type": { + "$id": "3987", + "kind": "array", + "name": "ArrayRecord", + "valueType": { + "$ref": "3442" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.results", + "serializationOptions": { + "json": { + "name": "results" + } + } + }, + { + "$id": "3988", + "kind": "property", + "name": "sample", + "serializedName": "sample", + "doc": "A sample containing the input and output of the evaluation run.", + "type": { + "$id": "3989", + "kind": "model", + "name": "EvalRunOutputItemSample", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3990", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "An array of input messages.", + "type": { + "$id": "3991", + "kind": "array", + "name": "Array21", + "valueType": { + "$id": "3992", + "kind": "model", + "name": "EvalRunOutputItemSampleInput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.input.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "3993", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message sender (e.g., system, user, developer).", + "type": { + "$id": "3994", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.input.anonymous.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "3995", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the message.", + "type": { + "$id": "3996", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.input.anonymous.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "3997", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "An array of output messages.", + "type": { + "$id": "3998", + "kind": "array", + "name": "Array22", + "valueType": { + "$id": "3999", + "kind": "model", + "name": "EvalRunOutputItemSampleOutput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.output.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4000", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message (e.g. \"system\", \"assistant\", \"user\").", + "type": { + "$id": "4001", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.output.anonymous.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "4002", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the message.", + "type": { + "$id": "4003", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.output.anonymous.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + }, + { + "$id": "4004", + "kind": "property", + "name": "finish_reason", + "serializedName": "finish_reason", + "doc": "The reason why the sample generation was finished.", + "type": { + "$id": "4005", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.finish_reason", + "serializationOptions": { + "json": { + "name": "finish_reason" + } + } + }, + { + "$id": "4006", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model used for generating the sample.", + "type": { + "$id": "4007", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "4008", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "Token usage details for the sample.", + "type": { + "$id": "4009", + "kind": "model", + "name": "EvalRunOutputItemSampleUsage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.usage.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4010", + "kind": "property", + "name": "total_tokens", + "serializedName": "total_tokens", + "doc": "The total number of tokens used.", + "type": { + "$id": "4011", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.usage.anonymous.total_tokens", + "serializationOptions": { + "json": { + "name": "total_tokens" + } + } + }, + { + "$id": "4012", + "kind": "property", + "name": "completion_tokens", + "serializedName": "completion_tokens", + "doc": "The number of completion tokens generated.", + "type": { + "$id": "4013", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.usage.anonymous.completion_tokens", + "serializationOptions": { + "json": { + "name": "completion_tokens" + } + } + }, + { + "$id": "4014", + "kind": "property", + "name": "prompt_tokens", + "serializedName": "prompt_tokens", + "doc": "The number of prompt tokens used.", + "type": { + "$id": "4015", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.usage.anonymous.prompt_tokens", + "serializationOptions": { + "json": { + "name": "prompt_tokens" + } + } + }, + { + "$id": "4016", + "kind": "property", + "name": "cached_tokens", + "serializedName": "cached_tokens", + "doc": "The number of tokens retrieved from cache.", + "type": { + "$id": "4017", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.usage.anonymous.cached_tokens", + "serializationOptions": { + "json": { + "name": "cached_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + } + }, + { + "$id": "4018", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$ref": "3662" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + }, + { + "$id": "4019", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "The sampling temperature used.", + "type": { + "$id": "4020", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "4021", + "kind": "property", + "name": "max_completion_tokens", + "serializedName": "max_completion_tokens", + "doc": "The maximum number of tokens allowed for completion.", + "type": { + "$id": "4022", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.max_completion_tokens", + "serializationOptions": { + "json": { + "name": "max_completion_tokens" + } + } + }, + { + "$id": "4023", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "The top_p value used for sampling.", + "type": { + "$id": "4024", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "4025", + "kind": "property", + "name": "seed", + "serializedName": "seed", + "doc": "The seed used for generating the sample.", + "type": { + "$id": "4026", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample.anonymous.seed", + "serializationOptions": { + "json": { + "name": "seed" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItem.sample", + "serializationOptions": { + "json": { + "name": "sample" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItemList.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "4027", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "doc": "The identifier of the first eval run output item in the data array.", + "type": { + "$id": "4028", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItemList.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "4029", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "doc": "The identifier of the last eval run output item in the data array.", + "type": { + "$id": "4030", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItemList.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "4031", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Indicates whether there are more eval run output items available.", + "type": { + "$id": "4032", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.EvalRunOutputItemList.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "3970" + }, + { + "$ref": "3989" + }, + { + "$ref": "3992" + }, + { + "$ref": "3999" + }, + { + "$ref": "4009" + }, + { + "$id": "4033", + "kind": "model", + "name": "CreateResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateResponse", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "4034", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "4035", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.", + "type": { + "$ref": "2665" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "4036", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.", + "type": { + "$ref": "2668" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "4037", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).", + "type": { + "$id": "4038", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.user", + "serializationOptions": { + "json": { + "name": "user" + } + } + }, + { + "$id": "4039", + "kind": "property", + "name": "service_tier", + "serializedName": "service_tier", + "type": { + "$ref": "161" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.service_tier", + "serializationOptions": { + "json": { + "name": "service_tier" + } + } + }, + { + "$id": "4040", + "kind": "property", + "name": "previous_response_id", + "serializedName": "previous_response_id", + "doc": "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about\n[conversation state](/docs/guides/conversation-state).", + "type": { + "$id": "4041", + "kind": "nullable", + "type": { + "$id": "4042", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.previous_response_id", + "serializationOptions": { + "json": { + "name": "previous_response_id" + } + } + }, + { + "$id": "4043", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.", + "type": { + "$ref": "492" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "4044", + "kind": "property", + "name": "reasoning", + "serializedName": "reasoning", + "type": { + "$id": "4045", + "kind": "nullable", + "type": { + "$id": "4046", + "kind": "model", + "name": "Reasoning", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Reasoning", + "usage": "Input,Output,Json", + "doc": "**o-series models only**\n\nConfiguration options for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).", + "decorators": [], + "properties": [ + { + "$id": "4047", + "kind": "property", + "name": "effort", + "serializedName": "effort", + "type": { + "$id": "4048", + "kind": "nullable", + "type": { + "$ref": "57" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Reasoning.effort", + "serializationOptions": { + "json": { + "name": "effort" + } + } + }, + { + "$id": "4049", + "kind": "property", + "name": "summary", + "serializedName": "summary", + "doc": "A summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.", + "type": { + "$id": "4050", + "kind": "nullable", + "type": { + "$id": "4051", + "kind": "enum", + "name": "ReasoningSummary", + "crossLanguageDefinitionId": "OpenAI.Reasoning.summary.anonymous", + "valueType": { + "$id": "4052", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "4053", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "4052" + }, + "enumType": { + "$ref": "4051" + }, + "decorators": [] + }, + { + "$id": "4054", + "kind": "enumvalue", + "name": "concise", + "value": "concise", + "valueType": { + "$ref": "4052" + }, + "enumType": { + "$ref": "4051" + }, + "decorators": [] + }, + { + "$id": "4055", + "kind": "enumvalue", + "name": "detailed", + "value": "detailed", + "valueType": { + "$ref": "4052" + }, + "enumType": { + "$ref": "4051" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Reasoning.summary", + "serializationOptions": { + "json": { + "name": "summary" + } + } + }, + { + "$id": "4056", + "kind": "property", + "name": "generate_summary", + "serializedName": "generate_summary", + "doc": "**Deprecated:** use `summary` instead.\n\nA summary of the reasoning performed by the model. This can be\nuseful for debugging and understanding the model's reasoning process.\nOne of `auto`, `concise`, or `detailed`.", + "type": { + "$id": "4057", + "kind": "nullable", + "type": { + "$id": "4058", + "kind": "enum", + "name": "ReasoningGenerateSummary", + "crossLanguageDefinitionId": "OpenAI.Reasoning.generate_summary.anonymous", + "valueType": { + "$id": "4059", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "4060", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "4059" + }, + "enumType": { + "$ref": "4058" + }, + "decorators": [] + }, + { + "$id": "4061", + "kind": "enumvalue", + "name": "concise", + "value": "concise", + "valueType": { + "$ref": "4059" + }, + "enumType": { + "$ref": "4058" + }, + "decorators": [] + }, + { + "$id": "4062", + "kind": "enumvalue", + "name": "detailed", + "value": "detailed", + "valueType": { + "$ref": "4059" + }, + "enumType": { + "$ref": "4058" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Reasoning.generate_summary", + "serializationOptions": { + "json": { + "name": "generate_summary" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.reasoning", + "serializationOptions": { + "json": { + "name": "reasoning" + } + } + }, + { + "$id": "4063", + "kind": "property", + "name": "background", + "serializedName": "background", + "doc": "Whether to run the model response in the background.\n[Learn more](/docs/guides/background).", + "type": { + "$id": "4064", + "kind": "nullable", + "type": { + "$id": "4065", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.background", + "serializationOptions": { + "json": { + "name": "background" + } + } + }, + { + "$id": "4066", + "kind": "property", + "name": "max_output_tokens", + "serializedName": "max_output_tokens", + "doc": "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).", + "type": { + "$id": "4067", + "kind": "nullable", + "type": { + "$id": "4068", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.max_output_tokens", + "serializationOptions": { + "json": { + "name": "max_output_tokens" + } + } + }, + { + "$id": "4069", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.", + "type": { + "$id": "4070", + "kind": "nullable", + "type": { + "$id": "4071", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "4072", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)", + "type": { + "$id": "4073", + "kind": "model", + "name": "CreateResponseText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateResponse.text.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4074", + "kind": "property", + "name": "format", + "serializedName": "format", + "type": { + "$ref": "3765" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.text.anonymous.format", + "serializationOptions": { + "json": { + "name": "format" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "4075", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "An array of tools the model may call while generating a response. You\ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n model's capabilities, like [web search](/docs/guides/tools-web-search)\n or [file search](/docs/guides/tools-file-search). Learn more about\n [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n enabling the model to call your own code. Learn more about\n [function calling](/docs/guides/function-calling).", + "type": { + "$ref": "3815" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "4076", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "doc": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.", + "type": { + "$id": "4077", + "kind": "union", + "name": "CreateResponseToolChoice", + "variantTypes": [ + { + "$ref": "555" + }, + { + "$id": "4078", + "kind": "model", + "name": "ToolChoiceObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObject", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "4079", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "560" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "4079" + } + ], + "discriminatedSubtypes": { + "file_search": { + "$id": "4080", + "kind": "model", + "name": "ToolChoiceObjectFileSearch", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectFileSearch", + "usage": "Input,Output,Json", + "discriminatorValue": "file_search", + "decorators": [], + "baseModel": { + "$ref": "4078" + }, + "properties": [ + { + "$id": "4081", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "562" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectFileSearch.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "computer_use_preview": { + "$id": "4082", + "kind": "model", + "name": "ToolChoiceObjectComputer", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectComputer", + "usage": "Input,Output,Json", + "discriminatorValue": "computer_use_preview", + "decorators": [], + "baseModel": { + "$ref": "4078" + }, + "properties": [ + { + "$id": "4083", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "564" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectComputer.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "web_search_preview": { + "$id": "4084", + "kind": "model", + "name": "ToolChoiceObjectWebSearch", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectWebSearch", + "usage": "Input,Output,Json", + "discriminatorValue": "web_search_preview", + "decorators": [], + "baseModel": { + "$ref": "4078" + }, + "properties": [ + { + "$id": "4085", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "565" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectWebSearch.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "image_generation": { + "$id": "4086", + "kind": "model", + "name": "ToolChoiceObjectImageGen", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectImageGen", + "usage": "Input,Output,Json", + "discriminatorValue": "image_generation", + "decorators": [], + "baseModel": { + "$ref": "4078" + }, + "properties": [ + { + "$id": "4087", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "566" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectImageGen.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "code_interpreter": { + "$id": "4088", + "kind": "model", + "name": "ToolChoiceObjectCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectCodeInterpreter", + "usage": "Input,Output,Json", + "discriminatorValue": "code_interpreter", + "decorators": [], + "baseModel": { + "$ref": "4078" + }, + "properties": [ + { + "$id": "4089", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "567" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectCodeInterpreter.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "mcp": { + "$id": "4090", + "kind": "model", + "name": "ToolChoiceObjectMCP", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectMCP", + "usage": "Input,Output,Json", + "discriminatorValue": "mcp", + "decorators": [], + "baseModel": { + "$ref": "4078" + }, + "properties": [ + { + "$id": "4091", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "568" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectMCP.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "function": { + "$id": "4092", + "kind": "model", + "name": "ToolChoiceObjectFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectFunction", + "usage": "Input,Output,Json", + "doc": "Use this option to force the model to call a specific function.", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "4078" + }, + "properties": [ + { + "$id": "4093", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "For function calling, the type is always `function`.", + "type": { + "$ref": "563" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectFunction.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4094", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to call.", + "type": { + "$id": "4095", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ToolChoiceObjectFunction.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + } + } + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "4096", + "kind": "property", + "name": "truncation", + "serializedName": "truncation", + "doc": "The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n the model's context window size, the model will truncate the\n response to fit the context window by dropping input items in the\n middle of the conversation.\n- `disabled` (default): If a model response will exceed the context window\n size for a model, the request will fail with a 400 error.", + "type": { + "$id": "4097", + "kind": "nullable", + "type": { + "$id": "4098", + "kind": "enum", + "name": "CreateResponseTruncation", + "crossLanguageDefinitionId": "OpenAI.CreateResponse.truncation.anonymous", + "valueType": { + "$id": "4099", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "4100", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "4099" + }, + "enumType": { + "$ref": "4098" + }, + "decorators": [] + }, + { + "$id": "4101", + "kind": "enumvalue", + "name": "disabled", + "value": "disabled", + "valueType": { + "$ref": "4099" + }, + "enumType": { + "$ref": "4098" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.truncation", + "serializationOptions": { + "json": { + "name": "truncation" + } + } + }, + { + "$id": "4102", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "Text, image, or file inputs to the model, used to generate a response.\n\nLearn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Image inputs](/docs/guides/images)\n- [File inputs](/docs/guides/pdf-files)\n- [Conversation state](/docs/guides/conversation-state)\n- [Function calling](/docs/guides/function-calling)", + "type": { + "$id": "4103", + "kind": "union", + "name": "CreateResponseInput", + "variantTypes": [ + { + "$id": "4104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "4105", + "kind": "array", + "name": "Array23", + "valueType": { + "$id": "4106", + "kind": "union", + "name": "CreateResponseInput1", + "variantTypes": [ + { + "$id": "4107", + "kind": "model", + "name": "ImplicitUserMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ImplicitUserMessage", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "4108", + "kind": "property", + "name": "content", + "serializedName": "content", + "type": { + "$id": "4109", + "kind": "union", + "name": "ImplicitUserMessageContent", + "variantTypes": [ + { + "$id": "4110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "4111", + "kind": "array", + "name": "ArrayItemContent", + "valueType": { + "$id": "4112", + "kind": "model", + "name": "ItemContent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemContent", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "4113", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "569" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContent.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "4113" + } + ], + "discriminatedSubtypes": { + "input_audio": { + "$id": "4114", + "kind": "model", + "name": "ItemContentInputAudio", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemContentInputAudio", + "usage": "Input,Output,Json", + "doc": "An audio input to the model.", + "discriminatorValue": "input_audio", + "decorators": [], + "baseModel": { + "$ref": "4112" + }, + "properties": [ + { + "$id": "4115", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the input item. Always `input_audio`.", + "type": { + "$ref": "572" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputAudio.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4116", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "Base64-encoded audio data.", + "type": { + "$id": "4117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputAudio.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "4118", + "kind": "property", + "name": "format", + "serializedName": "format", + "doc": "The format of the audio data. Currently supported formats are `mp3` and\n`wav`.", + "type": { + "$ref": "578" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputAudio.format", + "serializationOptions": { + "json": { + "name": "format" + } + } + } + ] + }, + "output_audio": { + "$id": "4119", + "kind": "model", + "name": "ItemContentOutputAudio", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemContentOutputAudio", + "usage": "Input,Output,Json", + "doc": "An audio output from the model.", + "discriminatorValue": "output_audio", + "decorators": [], + "baseModel": { + "$ref": "4112" + }, + "properties": [ + { + "$id": "4120", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the output audio. Always `output_audio`.", + "type": { + "$ref": "576" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentOutputAudio.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4121", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "Base64-encoded audio data from the model.", + "type": { + "$id": "4122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentOutputAudio.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "4123", + "kind": "property", + "name": "transcript", + "serializedName": "transcript", + "doc": "The transcript of the audio data from the model.", + "type": { + "$id": "4124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentOutputAudio.transcript", + "serializationOptions": { + "json": { + "name": "transcript" + } + } + } + ] + }, + "refusal": { + "$id": "4125", + "kind": "model", + "name": "ItemContentRefusal", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemContentRefusal", + "usage": "Input,Output,Json", + "doc": "A refusal from the model.", + "discriminatorValue": "refusal", + "decorators": [], + "baseModel": { + "$ref": "4112" + }, + "properties": [ + { + "$id": "4126", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the refusal. Always `refusal`.", + "type": { + "$ref": "577" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentRefusal.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4127", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "The refusal explanationfrom the model.", + "type": { + "$id": "4128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentRefusal.refusal", + "serializationOptions": { + "json": { + "name": "refusal" + } + } + } + ] + }, + "input_text": { + "$id": "4129", + "kind": "model", + "name": "ItemContentInputText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemContentInputText", + "usage": "Input,Output,Json", + "doc": "A text input to the model.", + "discriminatorValue": "input_text", + "decorators": [], + "baseModel": { + "$ref": "4112" + }, + "properties": [ + { + "$id": "4130", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the input item. Always `input_text`.", + "type": { + "$ref": "571" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputText.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4131", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text input to the model.", + "type": { + "$id": "4132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputText.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "input_image": { + "$id": "4133", + "kind": "model", + "name": "ItemContentInputImage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemContentInputImage", + "usage": "Input,Output,Json", + "doc": "An image input to the model. Learn about [image inputs](/docs/guides/vision).", + "discriminatorValue": "input_image", + "decorators": [], + "baseModel": { + "$ref": "4112" + }, + "properties": [ + { + "$id": "4134", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the input item. Always `input_image`.", + "type": { + "$ref": "573" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputImage.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4135", + "kind": "property", + "name": "image_url", + "serializedName": "image_url", + "doc": "The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.", + "type": { + "$id": "4136", + "kind": "nullable", + "type": { + "$id": "4137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputImage.image_url", + "serializationOptions": { + "json": { + "name": "image_url" + } + } + }, + { + "$id": "4138", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file to be sent to the model.", + "type": { + "$id": "4139", + "kind": "nullable", + "type": { + "$id": "4140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputImage.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "4141", + "kind": "property", + "name": "detail", + "serializedName": "detail", + "doc": "The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.", + "type": { + "$ref": "582" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputImage.detail", + "serializationOptions": { + "json": { + "name": "detail" + } + } + } + ] + }, + "input_file": { + "$id": "4142", + "kind": "model", + "name": "ItemContentInputFile", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemContentInputFile", + "usage": "Input,Output,Json", + "doc": "A file input to the model.", + "discriminatorValue": "input_file", + "decorators": [], + "baseModel": { + "$ref": "4112" + }, + "properties": [ + { + "$id": "4143", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the input item. Always `input_file`.", + "type": { + "$ref": "574" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputFile.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4144", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file to be sent to the model.", + "type": { + "$id": "4145", + "kind": "nullable", + "type": { + "$id": "4146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputFile.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "4147", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "doc": "The name of the file to be sent to the model.", + "type": { + "$id": "4148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputFile.filename", + "serializationOptions": { + "json": { + "name": "filename" + } + } + }, + { + "$id": "4149", + "kind": "property", + "name": "file_data", + "serializedName": "file_data", + "doc": "The content of the file to be sent to the model.", + "type": { + "$id": "4150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentInputFile.file_data", + "serializationOptions": { + "json": { + "name": "file_data" + } + } + } + ] + }, + "output_text": { + "$id": "4151", + "kind": "model", + "name": "ItemContentOutputText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemContentOutputText", + "usage": "Input,Output,Json", + "doc": "A text output from the model.", + "discriminatorValue": "output_text", + "decorators": [], + "baseModel": { + "$ref": "4112" + }, + "properties": [ + { + "$id": "4152", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the output text. Always `output_text`.", + "type": { + "$ref": "575" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentOutputText.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4153", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text output from the model.", + "type": { + "$id": "4154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentOutputText.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "4155", + "kind": "property", + "name": "annotations", + "serializedName": "annotations", + "doc": "The annotations of the text output.", + "type": { + "$id": "4156", + "kind": "array", + "name": "ArrayAnnotation", + "valueType": { + "$id": "4157", + "kind": "model", + "name": "Annotation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Annotation", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "4158", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "587" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Annotation.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "4158" + } + ], + "discriminatedSubtypes": { + "file_citation": { + "$id": "4159", + "kind": "model", + "name": "AnnotationFileCitation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AnnotationFileCitation", + "usage": "Input,Output,Json", + "doc": "A citation to a file.", + "discriminatorValue": "file_citation", + "decorators": [], + "baseModel": { + "$ref": "4157" + }, + "properties": [ + { + "$id": "4160", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the file citation. Always `file_citation`.", + "type": { + "$ref": "589" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationFileCitation.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4161", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file.", + "type": { + "$id": "4162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationFileCitation.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "4163", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the file in the list of files.", + "type": { + "$id": "4164", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationFileCitation.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + } + ] + }, + "url_citation": { + "$id": "4165", + "kind": "model", + "name": "AnnotationUrlCitation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AnnotationUrlCitation", + "usage": "Input,Output,Json", + "doc": "A citation for a web resource used to generate a model response.", + "discriminatorValue": "url_citation", + "decorators": [], + "baseModel": { + "$ref": "4157" + }, + "properties": [ + { + "$id": "4166", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the URL citation. Always `url_citation`.", + "type": { + "$ref": "590" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationUrlCitation.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4167", + "kind": "property", + "name": "url", + "serializedName": "url", + "doc": "The URL of the web resource.", + "type": { + "$id": "4168", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationUrlCitation.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + }, + { + "$id": "4169", + "kind": "property", + "name": "start_index", + "serializedName": "start_index", + "doc": "The index of the first character of the URL citation in the message.", + "type": { + "$id": "4170", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationUrlCitation.start_index", + "serializationOptions": { + "json": { + "name": "start_index" + } + } + }, + { + "$id": "4171", + "kind": "property", + "name": "end_index", + "serializedName": "end_index", + "doc": "The index of the last character of the URL citation in the message.", + "type": { + "$id": "4172", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationUrlCitation.end_index", + "serializationOptions": { + "json": { + "name": "end_index" + } + } + }, + { + "$id": "4173", + "kind": "property", + "name": "title", + "serializedName": "title", + "doc": "The title of the web resource.", + "type": { + "$id": "4174", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationUrlCitation.title", + "serializationOptions": { + "json": { + "name": "title" + } + } + } + ] + }, + "file_path": { + "$id": "4175", + "kind": "model", + "name": "AnnotationFilePath", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AnnotationFilePath", + "usage": "Input,Output,Json", + "doc": "A path to a file.", + "discriminatorValue": "file_path", + "decorators": [], + "baseModel": { + "$ref": "4157" + }, + "properties": [ + { + "$id": "4176", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the file path. Always `file_path`.", + "type": { + "$ref": "591" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationFilePath.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4177", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file.", + "type": { + "$id": "4178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationFilePath.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "4179", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the file in the list of files.", + "type": { + "$id": "4180", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AnnotationFilePath.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentOutputText.annotations", + "serializationOptions": { + "json": { + "name": "annotations" + } + } + }, + { + "$id": "4181", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "type": { + "$id": "4182", + "kind": "array", + "name": "ArrayLogProb", + "valueType": { + "$id": "4183", + "kind": "model", + "name": "LogProb", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.LogProb", + "usage": "Input,Output,Json", + "doc": "The log probability of a token.", + "decorators": [], + "properties": [ + { + "$id": "4184", + "kind": "property", + "name": "token", + "serializedName": "token", + "type": { + "$id": "4185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LogProb.token", + "serializationOptions": { + "json": { + "name": "token" + } + } + }, + { + "$id": "4186", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "type": { + "$id": "4187", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LogProb.logprob", + "serializationOptions": { + "json": { + "name": "logprob" + } + } + }, + { + "$id": "4188", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "type": { + "$ref": "2375" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LogProb.bytes", + "serializationOptions": { + "json": { + "name": "bytes" + } + } + }, + { + "$id": "4189", + "kind": "property", + "name": "top_logprobs", + "serializedName": "top_logprobs", + "type": { + "$id": "4190", + "kind": "array", + "name": "ArrayTopLogProb", + "valueType": { + "$id": "4191", + "kind": "model", + "name": "TopLogProb", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.TopLogProb", + "usage": "Input,Output,Json", + "doc": "The top log probability of a token.", + "decorators": [], + "properties": [ + { + "$id": "4192", + "kind": "property", + "name": "token", + "serializedName": "token", + "type": { + "$id": "4193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TopLogProb.token", + "serializationOptions": { + "json": { + "name": "token" + } + } + }, + { + "$id": "4194", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "type": { + "$id": "4195", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TopLogProb.logprob", + "serializationOptions": { + "json": { + "name": "logprob" + } + } + }, + { + "$id": "4196", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "type": { + "$ref": "2375" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TopLogProb.bytes", + "serializationOptions": { + "json": { + "name": "bytes" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LogProb.top_logprobs", + "serializationOptions": { + "json": { + "name": "top_logprobs" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemContentOutputText.logprobs", + "serializationOptions": { + "json": { + "name": "logprobs" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImplicitUserMessage.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + { + "$id": "4197", + "kind": "model", + "name": "ItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemParam", + "usage": "Input,Json", + "doc": "Content item used to generate a response.", + "decorators": [], + "discriminatorProperty": { + "$id": "4198", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "593" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "4198" + } + ], + "discriminatedSubtypes": { + "file_search_call": { + "$id": "4199", + "kind": "model", + "name": "FileSearchToolCallItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam", + "usage": "Input,Json", + "doc": "The results of a file search tool call. See the\n[file search guide](/docs/guides/tools-file-search) for more information.\n", + "discriminatorValue": "file_search_call", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4200", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "596" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4201", + "kind": "property", + "name": "queries", + "serializedName": "queries", + "doc": "The queries used to search for files.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam.queries", + "serializationOptions": { + "json": { + "name": "queries" + } + } + }, + { + "$id": "4202", + "kind": "property", + "name": "results", + "serializedName": "results", + "doc": "The results of the file search tool call.", + "type": { + "$id": "4203", + "kind": "nullable", + "type": { + "$id": "4204", + "kind": "array", + "name": "Array24", + "valueType": { + "$id": "4205", + "kind": "model", + "name": "FileSearchToolCallItemParamResult", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam.result.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4206", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The unique ID of the file.", + "type": { + "$id": "4207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam.result.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "4208", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text that was retrieved from the file.", + "type": { + "$id": "4209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam.result.anonymous.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "4210", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "doc": "The name of the file.", + "type": { + "$id": "4211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam.result.anonymous.filename", + "serializationOptions": { + "json": { + "name": "filename" + } + } + }, + { + "$id": "4212", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "type": { + "$ref": "3442" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam.result.anonymous.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + } + }, + { + "$id": "4213", + "kind": "property", + "name": "score", + "serializedName": "score", + "doc": "The relevance score of the file - a value between 0 and 1.", + "type": { + "$id": "4214", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam.result.anonymous.score", + "serializationOptions": { + "json": { + "name": "score" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemParam.results", + "serializationOptions": { + "json": { + "name": "results" + } + } + } + ] + }, + "computer_call": { + "$id": "4215", + "kind": "model", + "name": "ComputerToolCallItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemParam", + "usage": "Input,Json", + "doc": "A tool call to a computer use tool. See the\n[computer use guide](/docs/guides/tools-computer-use) for more information.\n", + "discriminatorValue": "computer_call", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4216", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "599" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4217", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "An identifier used when responding to the tool call with output.", + "type": { + "$id": "4218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemParam.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4219", + "kind": "property", + "name": "action", + "serializedName": "action", + "type": { + "$id": "4220", + "kind": "model", + "name": "ComputerAction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerAction", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "4221", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "612" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerAction.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "4221" + } + ], + "discriminatedSubtypes": { + "click": { + "$id": "4222", + "kind": "model", + "name": "ComputerActionClick", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerActionClick", + "usage": "Input,Output,Json", + "doc": "A click action.", + "discriminatorValue": "click", + "decorators": [], + "baseModel": { + "$ref": "4220" + }, + "properties": [ + { + "$id": "4223", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Specifies the event type. For a click action, this property is\nalways set to `click`.", + "type": { + "$ref": "615" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionClick.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4224", + "kind": "property", + "name": "button", + "serializedName": "button", + "doc": "Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.", + "type": { + "$ref": "623" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionClick.button", + "serializationOptions": { + "json": { + "name": "button" + } + } + }, + { + "$id": "4225", + "kind": "property", + "name": "x", + "serializedName": "x", + "doc": "The x-coordinate where the click occurred.", + "type": { + "$id": "4226", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionClick.x", + "serializationOptions": { + "json": { + "name": "x" + } + } + }, + { + "$id": "4227", + "kind": "property", + "name": "y", + "serializedName": "y", + "doc": "The y-coordinate where the click occurred.", + "type": { + "$id": "4228", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionClick.y", + "serializationOptions": { + "json": { + "name": "y" + } + } + } + ] + }, + "double_click": { + "$id": "4229", + "kind": "model", + "name": "ComputerActionDoubleClick", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerActionDoubleClick", + "usage": "Input,Output,Json", + "doc": "A double click action.", + "discriminatorValue": "double_click", + "decorators": [], + "baseModel": { + "$ref": "4220" + }, + "properties": [ + { + "$id": "4230", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Specifies the event type. For a double click action, this property is\nalways set to `double_click`.", + "type": { + "$ref": "616" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionDoubleClick.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4231", + "kind": "property", + "name": "x", + "serializedName": "x", + "doc": "The x-coordinate where the double click occurred.", + "type": { + "$id": "4232", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionDoubleClick.x", + "serializationOptions": { + "json": { + "name": "x" + } + } + }, + { + "$id": "4233", + "kind": "property", + "name": "y", + "serializedName": "y", + "doc": "The y-coordinate where the double click occurred.", + "type": { + "$id": "4234", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionDoubleClick.y", + "serializationOptions": { + "json": { + "name": "y" + } + } + } + ] + }, + "drag": { + "$id": "4235", + "kind": "model", + "name": "ComputerActionDrag", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerActionDrag", + "usage": "Input,Output,Json", + "doc": "A drag action.", + "discriminatorValue": "drag", + "decorators": [], + "baseModel": { + "$ref": "4220" + }, + "properties": [ + { + "$id": "4236", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Specifies the event type. For a drag action, this property is\nalways set to `drag`.", + "type": { + "$ref": "621" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionDrag.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4237", + "kind": "property", + "name": "path", + "serializedName": "path", + "doc": "An array of coordinates representing the path of the drag action. Coordinates will appear as an array\nof objects, eg\n```\n[\n { x: 100, y: 200 },\n { x: 200, y: 300 }\n]\n```", + "type": { + "$id": "4238", + "kind": "array", + "name": "ArrayCoordinate", + "valueType": { + "$id": "4239", + "kind": "model", + "name": "Coordinate", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Coordinate", + "usage": "Input,Output,Json", + "doc": "An x/y coordinate pair, e.g. `{ x: 100, y: 200 }`.", + "decorators": [], + "properties": [ + { + "$id": "4240", + "kind": "property", + "name": "x", + "serializedName": "x", + "doc": "The x-coordinate.", + "type": { + "$id": "4241", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Coordinate.x", + "serializationOptions": { + "json": { + "name": "x" + } + } + }, + { + "$id": "4242", + "kind": "property", + "name": "y", + "serializedName": "y", + "doc": "The y-coordinate.", + "type": { + "$id": "4243", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Coordinate.y", + "serializationOptions": { + "json": { + "name": "y" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionDrag.path", + "serializationOptions": { + "json": { + "name": "path" + } + } + } + ] + }, + "move": { + "$id": "4244", + "kind": "model", + "name": "ComputerActionMove", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerActionMove", + "usage": "Input,Output,Json", + "doc": "A mouse move action.", + "discriminatorValue": "move", + "decorators": [], + "baseModel": { + "$ref": "4220" + }, + "properties": [ + { + "$id": "4245", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Specifies the event type. For a move action, this property is\nalways set to `move`.", + "type": { + "$ref": "622" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionMove.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4246", + "kind": "property", + "name": "x", + "serializedName": "x", + "doc": "The x-coordinate to move to.", + "type": { + "$id": "4247", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionMove.x", + "serializationOptions": { + "json": { + "name": "x" + } + } + }, + { + "$id": "4248", + "kind": "property", + "name": "y", + "serializedName": "y", + "doc": "The y-coordinate to move to.", + "type": { + "$id": "4249", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionMove.y", + "serializationOptions": { + "json": { + "name": "y" + } + } + } + ] + }, + "screenshot": { + "$id": "4250", + "kind": "model", + "name": "ComputerActionScreenshot", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerActionScreenshot", + "usage": "Input,Output,Json", + "doc": "A screenshot action.", + "discriminatorValue": "screenshot", + "decorators": [], + "baseModel": { + "$ref": "4220" + }, + "properties": [ + { + "$id": "4251", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Specifies the event type. For a screenshot action, this property is\nalways set to `screenshot`.", + "type": { + "$ref": "614" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionScreenshot.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "scroll": { + "$id": "4252", + "kind": "model", + "name": "ComputerActionScroll", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerActionScroll", + "usage": "Input,Output,Json", + "doc": "A scroll action.", + "discriminatorValue": "scroll", + "decorators": [], + "baseModel": { + "$ref": "4220" + }, + "properties": [ + { + "$id": "4253", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Specifies the event type. For a scroll action, this property is\nalways set to `scroll`.", + "type": { + "$ref": "617" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionScroll.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4254", + "kind": "property", + "name": "x", + "serializedName": "x", + "doc": "The x-coordinate where the scroll occurred.", + "type": { + "$id": "4255", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionScroll.x", + "serializationOptions": { + "json": { + "name": "x" + } + } + }, + { + "$id": "4256", + "kind": "property", + "name": "y", + "serializedName": "y", + "doc": "The y-coordinate where the scroll occurred.", + "type": { + "$id": "4257", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionScroll.y", + "serializationOptions": { + "json": { + "name": "y" + } + } + }, + { + "$id": "4258", + "kind": "property", + "name": "scroll_x", + "serializedName": "scroll_x", + "doc": "The horizontal scroll distance.", + "type": { + "$id": "4259", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionScroll.scroll_x", + "serializationOptions": { + "json": { + "name": "scroll_x" + } + } + }, + { + "$id": "4260", + "kind": "property", + "name": "scroll_y", + "serializedName": "scroll_y", + "doc": "The vertical scroll distance.", + "type": { + "$id": "4261", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionScroll.scroll_y", + "serializationOptions": { + "json": { + "name": "scroll_y" + } + } + } + ] + }, + "type": { + "$id": "4262", + "kind": "model", + "name": "ComputerActionTypeKeys", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerActionTypeKeys", + "usage": "Input,Output,Json", + "doc": "An action to type in text.", + "discriminatorValue": "type", + "decorators": [], + "baseModel": { + "$ref": "4220" + }, + "properties": [ + { + "$id": "4263", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Specifies the event type. For a type action, this property is\nalways set to `type`.", + "type": { + "$ref": "618" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionTypeKeys.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4264", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text to type.", + "type": { + "$id": "4265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionTypeKeys.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "wait": { + "$id": "4266", + "kind": "model", + "name": "ComputerActionWait", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerActionWait", + "usage": "Input,Output,Json", + "doc": "A wait action.", + "discriminatorValue": "wait", + "decorators": [], + "baseModel": { + "$ref": "4220" + }, + "properties": [ + { + "$id": "4267", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Specifies the event type. For a wait action, this property is\nalways set to `wait`.", + "type": { + "$ref": "619" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionWait.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "keypress": { + "$id": "4268", + "kind": "model", + "name": "ComputerActionKeyPress", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerActionKeyPress", + "usage": "Input,Output,Json", + "doc": "A collection of keypresses the model would like to perform.", + "discriminatorValue": "keypress", + "decorators": [], + "baseModel": { + "$ref": "4220" + }, + "properties": [ + { + "$id": "4269", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Specifies the event type. For a keypress action, this property is\nalways set to `keypress`.", + "type": { + "$ref": "620" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionKeyPress.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4270", + "kind": "property", + "name": "keys", + "serializedName": "keys", + "doc": "The combination of keys the model is requesting to be pressed. This is an\narray of strings, each representing a key.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerActionKeyPress.keys", + "serializationOptions": { + "json": { + "name": "keys" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemParam.action", + "serializationOptions": { + "json": { + "name": "action" + } + } + }, + { + "$id": "4271", + "kind": "property", + "name": "pending_safety_checks", + "serializedName": "pending_safety_checks", + "doc": "The pending safety checks for the computer call.", + "type": { + "$id": "4272", + "kind": "array", + "name": "ArrayComputerToolCallSafetyCheck", + "valueType": { + "$id": "4273", + "kind": "model", + "name": "ComputerToolCallSafetyCheck", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallSafetyCheck", + "usage": "Input,Output,Json", + "doc": "A pending safety check for the computer call.", + "decorators": [], + "properties": [ + { + "$id": "4274", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the pending safety check.", + "type": { + "$id": "4275", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallSafetyCheck.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "4276", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "The type of the pending safety check.", + "type": { + "$id": "4277", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallSafetyCheck.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "4278", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "Details about the pending safety check.", + "type": { + "$id": "4279", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallSafetyCheck.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemParam.pending_safety_checks", + "serializationOptions": { + "json": { + "name": "pending_safety_checks" + } + } + } + ] + }, + "computer_call_output": { + "$id": "4280", + "kind": "model", + "name": "ComputerToolCallOutputItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemParam", + "usage": "Input,Json", + "doc": "The output of a computer tool call.\n", + "discriminatorValue": "computer_call_output", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4281", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "600" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4282", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The ID of the computer tool call that produced the output.", + "type": { + "$id": "4283", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemParam.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4284", + "kind": "property", + "name": "acknowledged_safety_checks", + "serializedName": "acknowledged_safety_checks", + "doc": "The safety checks reported by the API that have been acknowledged by the\ndeveloper.", + "type": { + "$ref": "4272" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemParam.acknowledged_safety_checks", + "serializationOptions": { + "json": { + "name": "acknowledged_safety_checks" + } + } + }, + { + "$id": "4285", + "kind": "property", + "name": "output", + "serializedName": "output", + "type": { + "$id": "4286", + "kind": "model", + "name": "ComputerToolCallOutputItemOutput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemOutput", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "4287", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "630" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemOutput.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "4287" + } + ], + "discriminatedSubtypes": { + "computer_screenshot": { + "$id": "4288", + "kind": "model", + "name": "ComputerToolCallOutputItemOutputComputerScreenshot", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemOutputComputerScreenshot", + "usage": "Input,Output,Json", + "discriminatorValue": "computer_screenshot", + "decorators": [], + "baseModel": { + "$ref": "4286" + }, + "properties": [ + { + "$id": "4289", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "632" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemOutputComputerScreenshot.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4290", + "kind": "property", + "name": "image_url", + "serializedName": "image_url", + "type": { + "$id": "4291", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemOutputComputerScreenshot.image_url", + "serializationOptions": { + "json": { + "name": "image_url" + } + } + }, + { + "$id": "4292", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "type": { + "$id": "4293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemOutputComputerScreenshot.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemParam.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + }, + "web_search_call": { + "$id": "4294", + "kind": "model", + "name": "WebSearchToolCallItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.WebSearchToolCallItemParam", + "usage": "Input,Json", + "doc": "The results of a web search tool call. See the\n[web search guide](/docs/guides/tools-web-search) for more information.\n", + "discriminatorValue": "web_search_call", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4295", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "601" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchToolCallItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "function_call": { + "$id": "4296", + "kind": "model", + "name": "FunctionToolCallItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemParam", + "usage": "Input,Json", + "doc": "A tool call to run a function. See the\n[function calling guide](/docs/guides/function-calling) for more information.\n", + "discriminatorValue": "function_call", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4297", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "597" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4298", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The unique ID of the function tool call generated by the model.", + "type": { + "$id": "4299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemParam.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4300", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to run.", + "type": { + "$id": "4301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemParam.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "4302", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "A JSON string of the arguments to pass to the function.", + "type": { + "$id": "4303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemParam.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + } + ] + }, + "function_call_output": { + "$id": "4304", + "kind": "model", + "name": "FunctionToolCallOutputItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemParam", + "usage": "Input,Json", + "doc": "The output of a function tool call.\n", + "discriminatorValue": "function_call_output", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4305", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "598" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4306", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The unique ID of the function tool call generated by the model.", + "type": { + "$id": "4307", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemParam.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4308", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "A JSON string of the output of the function tool call.", + "type": { + "$id": "4309", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemParam.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + }, + "reasoning": { + "$id": "4310", + "kind": "model", + "name": "ReasoningItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ReasoningItemParam", + "usage": "Input,Json", + "doc": "A description of the chain of thought used by a reasoning model while generating\na response. Be sure to include these items in your `input` to the Responses API\nfor subsequent turns of a conversation if you are manually\n[managing context](/docs/guides/conversation-state).\n", + "discriminatorValue": "reasoning", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4311", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "602" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4312", + "kind": "property", + "name": "encrypted_content", + "serializedName": "encrypted_content", + "doc": "The encrypted content of the reasoning item - populated when a response is\ngenerated with `reasoning.encrypted_content` in the `include` parameter.", + "type": { + "$id": "4313", + "kind": "nullable", + "type": { + "$id": "4314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemParam.encrypted_content", + "serializationOptions": { + "json": { + "name": "encrypted_content" + } + } + }, + { + "$id": "4315", + "kind": "property", + "name": "summary", + "serializedName": "summary", + "doc": "Reasoning text contents.", + "type": { + "$id": "4316", + "kind": "array", + "name": "ArrayReasoningItemSummaryPart", + "valueType": { + "$id": "4317", + "kind": "model", + "name": "ReasoningItemSummaryPart", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ReasoningItemSummaryPart", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "4318", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "633" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemSummaryPart.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "4318" + } + ], + "discriminatedSubtypes": { + "summary_text": { + "$id": "4319", + "kind": "model", + "name": "ReasoningItemSummaryTextPart", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ReasoningItemSummaryTextPart", + "usage": "Input,Output,Json", + "discriminatorValue": "summary_text", + "decorators": [], + "baseModel": { + "$ref": "4317" + }, + "properties": [ + { + "$id": "4320", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "635" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemSummaryTextPart.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4321", + "kind": "property", + "name": "text", + "serializedName": "text", + "type": { + "$id": "4322", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemSummaryTextPart.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemParam.summary", + "serializationOptions": { + "json": { + "name": "summary" + } + } + } + ] + }, + "item_reference": { + "$id": "4323", + "kind": "model", + "name": "ItemReferenceItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemReferenceItemParam", + "usage": "Input,Json", + "doc": "An internal identifier for an item to reference.", + "discriminatorValue": "item_reference", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4324", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "603" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemReferenceItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4325", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The service-originated ID of the previously generated response item being referenced.", + "type": { + "$id": "4326", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemReferenceItemParam.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ] + }, + "image_generation_call": { + "$id": "4327", + "kind": "model", + "name": "ImageGenToolCallItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ImageGenToolCallItemParam", + "usage": "Input,Json", + "doc": "An image generation request made by the model.\n", + "discriminatorValue": "image_generation_call", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4328", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "604" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenToolCallItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4329", + "kind": "property", + "name": "result", + "serializedName": "result", + "doc": "The generated image encoded in base64.", + "type": { + "$id": "4330", + "kind": "nullable", + "type": { + "$id": "4331", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenToolCallItemParam.result", + "serializationOptions": { + "json": { + "name": "result" + } + } + } + ] + }, + "code_interpreter_call": { + "$id": "4332", + "kind": "model", + "name": "CodeInterpreterToolCallItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemParam", + "usage": "Input,Json", + "doc": "A tool call to run code.\n", + "discriminatorValue": "code_interpreter_call", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4333", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "605" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4334", + "kind": "property", + "name": "container_id", + "serializedName": "container_id", + "doc": "The ID of the container used to run the code.", + "type": { + "$id": "4335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemParam.container_id", + "serializationOptions": { + "json": { + "name": "container_id" + } + } + }, + { + "$id": "4336", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "The code to run.", + "type": { + "$id": "4337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemParam.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "4338", + "kind": "property", + "name": "results", + "serializedName": "results", + "doc": "The results of the code interpreter tool call.", + "type": { + "$id": "4339", + "kind": "array", + "name": "ArrayCodeInterpreterToolOutput", + "valueType": { + "$id": "4340", + "kind": "union", + "name": "CodeInterpreterToolOutput", + "variantTypes": [ + { + "$id": "4341", + "kind": "model", + "name": "CodeInterpreterTextOutput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterTextOutput", + "usage": "Input,Output,Json", + "doc": "The output of a code interpreter tool call that is text.", + "decorators": [], + "properties": [ + { + "$id": "4342", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the code interpreter text output. Always `logs`.", + "type": { + "$ref": "1417" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterTextOutput.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4343", + "kind": "property", + "name": "logs", + "serializedName": "logs", + "doc": "The logs of the code interpreter tool call.", + "type": { + "$id": "4344", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterTextOutput.logs", + "serializationOptions": { + "json": { + "name": "logs" + } + } + } + ] + }, + { + "$id": "4345", + "kind": "model", + "name": "CodeInterpreterFileOutput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterFileOutput", + "usage": "Input,Output,Json", + "doc": "The output of a code interpreter tool call that is a file.", + "decorators": [], + "properties": [ + { + "$id": "4346", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the code interpreter file output. Always `files`.", + "type": { + "$ref": "1419" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterFileOutput.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4347", + "kind": "property", + "name": "files", + "serializedName": "files", + "type": { + "$id": "4348", + "kind": "array", + "name": "Array25", + "valueType": { + "$id": "4349", + "kind": "model", + "name": "CodeInterpreterFileOutputFile", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterFileOutput.file.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4350", + "kind": "property", + "name": "mime_type", + "serializedName": "mime_type", + "doc": "The MIME type of the file.", + "type": { + "$id": "4351", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterFileOutput.file.anonymous.mime_type", + "serializationOptions": { + "json": { + "name": "mime_type" + } + } + }, + { + "$id": "4352", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file.", + "type": { + "$id": "4353", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterFileOutput.file.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterFileOutput.files", + "serializationOptions": { + "json": { + "name": "files" + } + } + } + ] + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemParam.results", + "serializationOptions": { + "json": { + "name": "results" + } + } + } + ] + }, + "local_shell_call": { + "$id": "4354", + "kind": "model", + "name": "LocalShellToolCallItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemParam", + "usage": "Input,Json", + "doc": "A tool call to run a command on the local shell.\n", + "discriminatorValue": "local_shell_call", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4355", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "606" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4356", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The unique ID of the local shell tool call generated by the model.", + "type": { + "$id": "4357", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemParam.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4358", + "kind": "property", + "name": "action", + "serializedName": "action", + "type": { + "$id": "4359", + "kind": "model", + "name": "LocalShellExecAction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.LocalShellExecAction", + "usage": "Input,Output,Json", + "doc": "Execute a shell command on the server.", + "decorators": [], + "properties": [ + { + "$id": "4360", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the local shell action. Always `exec`.", + "type": { + "$ref": "1421" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellExecAction.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4361", + "kind": "property", + "name": "command", + "serializedName": "command", + "doc": "The command to run.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellExecAction.command", + "serializationOptions": { + "json": { + "name": "command" + } + } + }, + { + "$id": "4362", + "kind": "property", + "name": "timeout_ms", + "serializedName": "timeout_ms", + "doc": "Optional timeout in milliseconds for the command.", + "type": { + "$id": "4363", + "kind": "nullable", + "type": { + "$id": "4364", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellExecAction.timeout_ms", + "serializationOptions": { + "json": { + "name": "timeout_ms" + } + } + }, + { + "$id": "4365", + "kind": "property", + "name": "working_directory", + "serializedName": "working_directory", + "doc": "Optional working directory to run the command in.", + "type": { + "$id": "4366", + "kind": "nullable", + "type": { + "$id": "4367", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellExecAction.working_directory", + "serializationOptions": { + "json": { + "name": "working_directory" + } + } + }, + { + "$id": "4368", + "kind": "property", + "name": "env", + "serializedName": "env", + "doc": "Environment variables to set for the command.", + "type": { + "$ref": "2162" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellExecAction.env", + "serializationOptions": { + "json": { + "name": "env" + } + } + }, + { + "$id": "4369", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "Optional user to run the command as.", + "type": { + "$id": "4370", + "kind": "nullable", + "type": { + "$id": "4371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellExecAction.user", + "serializationOptions": { + "json": { + "name": "user" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemParam.action", + "serializationOptions": { + "json": { + "name": "action" + } + } + } + ] + }, + "local_shell_call_output": { + "$id": "4372", + "kind": "model", + "name": "LocalShellToolCallOutputItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallOutputItemParam", + "usage": "Input,Json", + "doc": "The output of a local shell tool call.\n", + "discriminatorValue": "local_shell_call_output", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4373", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "607" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallOutputItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4374", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "A JSON string of the output of the local shell tool call.", + "type": { + "$id": "4375", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallOutputItemParam.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + }, + "mcp_list_tools": { + "$id": "4376", + "kind": "model", + "name": "MCPListToolsItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemParam", + "usage": "Input,Json", + "doc": "A list of tools available on an MCP server.\n", + "discriminatorValue": "mcp_list_tools", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4377", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "608" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4378", + "kind": "property", + "name": "server_label", + "serializedName": "server_label", + "doc": "The label of the MCP server.", + "type": { + "$id": "4379", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemParam.server_label", + "serializationOptions": { + "json": { + "name": "server_label" + } + } + }, + { + "$id": "4380", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The tools available on the server.", + "type": { + "$id": "4381", + "kind": "array", + "name": "ArrayMcpListToolsTool", + "valueType": { + "$id": "4382", + "kind": "model", + "name": "MCPListToolsTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPListToolsTool", + "usage": "Input,Output,Json", + "doc": "A tool available on an MCP server.", + "decorators": [], + "properties": [ + { + "$id": "4383", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the tool.", + "type": { + "$id": "4384", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsTool.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "4385", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the tool.", + "type": { + "$id": "4386", + "kind": "nullable", + "type": { + "$id": "4387", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsTool.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "4388", + "kind": "property", + "name": "input_schema", + "serializedName": "input_schema", + "doc": "The JSON schema describing the tool's input.", + "type": { + "$id": "4389", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsTool.input_schema", + "serializationOptions": { + "json": { + "name": "input_schema" + } + } + }, + { + "$id": "4390", + "kind": "property", + "name": "annotations", + "serializedName": "annotations", + "doc": "Additional annotations about the tool.", + "type": { + "$id": "4391", + "kind": "nullable", + "type": { + "$id": "4392", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsTool.annotations", + "serializationOptions": { + "json": { + "name": "annotations" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemParam.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "4393", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "Error message if the server could not list tools.", + "type": { + "$id": "4394", + "kind": "nullable", + "type": { + "$id": "4395", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemParam.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + "mcp_approval_request": { + "$id": "4396", + "kind": "model", + "name": "MCPApprovalRequestItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemParam", + "usage": "Input,Json", + "doc": "A request for human approval of a tool invocation.\n", + "discriminatorValue": "mcp_approval_request", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4397", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "609" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4398", + "kind": "property", + "name": "server_label", + "serializedName": "server_label", + "doc": "The label of the MCP server making the request.", + "type": { + "$id": "4399", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemParam.server_label", + "serializationOptions": { + "json": { + "name": "server_label" + } + } + }, + { + "$id": "4400", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the tool to run.", + "type": { + "$id": "4401", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemParam.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "4402", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "A JSON string of arguments for the tool.", + "type": { + "$id": "4403", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemParam.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + } + ] + }, + "mcp_approval_response": { + "$id": "4404", + "kind": "model", + "name": "MCPApprovalResponseItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemParam", + "usage": "Input,Json", + "doc": "A response to an MCP approval request.\n", + "discriminatorValue": "mcp_approval_response", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4405", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "610" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4406", + "kind": "property", + "name": "approval_request_id", + "serializedName": "approval_request_id", + "doc": "The ID of the approval request being answered.", + "type": { + "$id": "4407", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemParam.approval_request_id", + "serializationOptions": { + "json": { + "name": "approval_request_id" + } + } + }, + { + "$id": "4408", + "kind": "property", + "name": "approve", + "serializedName": "approve", + "doc": "Whether the request was approved.", + "type": { + "$id": "4409", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemParam.approve", + "serializationOptions": { + "json": { + "name": "approve" + } + } + }, + { + "$id": "4410", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "Optional reason for the decision.", + "type": { + "$id": "4411", + "kind": "nullable", + "type": { + "$id": "4412", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemParam.reason", + "serializationOptions": { + "json": { + "name": "reason" + } + } + } + ] + }, + "mcp_call": { + "$id": "4413", + "kind": "model", + "name": "MCPCallItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPCallItemParam", + "usage": "Input,Json", + "doc": "An invocation of a tool on an MCP server.\n", + "discriminatorValue": "mcp_call", + "decorators": [], + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4414", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "611" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4415", + "kind": "property", + "name": "server_label", + "serializedName": "server_label", + "doc": "The label of the MCP server running the tool.", + "type": { + "$id": "4416", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemParam.server_label", + "serializationOptions": { + "json": { + "name": "server_label" + } + } + }, + { + "$id": "4417", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the tool that was run.", + "type": { + "$id": "4418", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemParam.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "4419", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "A JSON string of the arguments passed to the tool.", + "type": { + "$id": "4420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemParam.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + }, + { + "$id": "4421", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "The output from the tool call.", + "type": { + "$id": "4422", + "kind": "nullable", + "type": { + "$id": "4423", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemParam.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + }, + { + "$id": "4424", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "The error from the tool call, if any.", + "type": { + "$id": "4425", + "kind": "nullable", + "type": { + "$id": "4426", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemParam.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + "message": { + "$id": "4427", + "kind": "model", + "name": "ResponsesMessageItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesMessageItemParam", + "usage": "Input,Json", + "doc": "A response message item, representing a role and content, as provided as client request parameters.", + "discriminatorValue": "message", + "decorators": [], + "discriminatorProperty": { + "$id": "4428", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role associated with the message.", + "type": { + "$ref": "636" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesMessageItemParam.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + "baseModel": { + "$ref": "4197" + }, + "properties": [ + { + "$id": "4429", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the responses item, which is always 'message'.", + "type": { + "$ref": "595" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesMessageItemParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$ref": "4428" + } + ], + "discriminatedSubtypes": { + "user": { + "$id": "4430", + "kind": "model", + "name": "ResponsesUserMessageItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesUserMessageItemParam", + "usage": "Input,Json", + "doc": "A message parameter item with the `user` role.", + "discriminatorValue": "user", + "decorators": [], + "baseModel": { + "$ref": "4427" + }, + "properties": [ + { + "$id": "4431", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message, which is always `user`.", + "type": { + "$ref": "640" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesUserMessageItemParam.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "4432", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content associated with the message.", + "type": { + "$ref": "4111" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesUserMessageItemParam.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "system": { + "$id": "4433", + "kind": "model", + "name": "ResponsesSystemMessageItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesSystemMessageItemParam", + "usage": "Input,Json", + "doc": "A message parameter item with the `system` role.", + "discriminatorValue": "system", + "decorators": [], + "baseModel": { + "$ref": "4427" + }, + "properties": [ + { + "$id": "4434", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message, which is always `system`.", + "type": { + "$ref": "638" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesSystemMessageItemParam.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "4435", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content associated with the message.", + "type": { + "$ref": "4111" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesSystemMessageItemParam.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "developer": { + "$id": "4436", + "kind": "model", + "name": "ResponsesDeveloperMessageItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesDeveloperMessageItemParam", + "usage": "Input,Json", + "doc": "A message parameter item with the `developer` role.", + "discriminatorValue": "developer", + "decorators": [], + "baseModel": { + "$ref": "4427" + }, + "properties": [ + { + "$id": "4437", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message, which is always `developer`.", + "type": { + "$ref": "639" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesDeveloperMessageItemParam.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "4438", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content associated with the message.", + "type": { + "$ref": "4111" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesDeveloperMessageItemParam.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "assistant": { + "$id": "4439", + "kind": "model", + "name": "ResponsesAssistantMessageItemParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesAssistantMessageItemParam", + "usage": "Input,Json", + "doc": "A message parameter item with the `assistant` role.", + "discriminatorValue": "assistant", + "decorators": [], + "baseModel": { + "$ref": "4427" + }, + "properties": [ + { + "$id": "4440", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message, which is always `assistant`.", + "type": { + "$ref": "641" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesAssistantMessageItemParam.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "4441", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content associated with the message.", + "type": { + "$ref": "4111" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesAssistantMessageItemParam.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + } + } + } + } + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "4442", + "kind": "property", + "name": "include", + "serializedName": "include", + "doc": "Specify additional output data to include in the model response. Currently\nsupported values are:\n- `file_search_call.results`: Include the search results of\n the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n- `reasoning.encrypted_content`: Includes an encrypted version of reasoning\n tokens in reasoning item outputs. This enables reasoning items to be used in\n multi-turn conversations when using the Responses API statelessly (like\n when the `store` parameter is set to `false`, or when an organization is\n enrolled in the zero data retention program).\n- `code_interpreter_call.outputs`: Includes the outputs of python code execution\n in code interpreter tool call items.", + "type": { + "$id": "4443", + "kind": "nullable", + "type": { + "$id": "4444", + "kind": "array", + "name": "ArrayIncludable", + "valueType": { + "$ref": "642" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.include", + "serializationOptions": { + "json": { + "name": "include" + } + } + }, + { + "$id": "4445", + "kind": "property", + "name": "parallel_tool_calls", + "serializedName": "parallel_tool_calls", + "doc": "Whether to allow the model to run tool calls in parallel.", + "type": { + "$id": "4446", + "kind": "nullable", + "type": { + "$id": "4447", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.parallel_tool_calls", + "serializationOptions": { + "json": { + "name": "parallel_tool_calls" + } + } + }, + { + "$id": "4448", + "kind": "property", + "name": "store", + "serializedName": "store", + "doc": "Whether to store the generated model response for later retrieval via\nAPI.", + "type": { + "$id": "4449", + "kind": "nullable", + "type": { + "$id": "4450", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.store", + "serializationOptions": { + "json": { + "name": "store" + } + } + }, + { + "$id": "4451", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](/docs/api-reference/responses-streaming)\nfor more information.", + "type": { + "$id": "4452", + "kind": "nullable", + "type": { + "$id": "4453", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateResponse.stream", + "serializationOptions": { + "json": { + "name": "stream" + } + } + } + ] + }, + { + "$ref": "4046" + }, + { + "$ref": "4073" + }, + { + "$ref": "4078" + }, + { + "$ref": "4080" + }, + { + "$ref": "4082" + }, + { + "$ref": "4084" + }, + { + "$ref": "4086" + }, + { + "$ref": "4088" + }, + { + "$ref": "4090" + }, + { + "$ref": "4092" + }, + { + "$ref": "4107" + }, + { + "$ref": "4112" + }, + { + "$ref": "4114" + }, + { + "$ref": "4119" + }, + { + "$ref": "4125" + }, + { + "$ref": "4129" + }, + { + "$ref": "4133" + }, + { + "$ref": "4142" + }, + { + "$ref": "4151" + }, + { + "$ref": "4157" + }, + { + "$ref": "4159" + }, + { + "$ref": "4165" + }, + { + "$ref": "4175" + }, + { + "$ref": "4183" + }, + { + "$ref": "4191" + }, + { + "$ref": "4197" + }, + { + "$ref": "4199" + }, + { + "$ref": "4205" + }, + { + "$ref": "4215" + }, + { + "$ref": "4220" + }, + { + "$ref": "4222" + }, + { + "$ref": "4229" + }, + { + "$ref": "4235" + }, + { + "$ref": "4239" + }, + { + "$ref": "4244" + }, + { + "$ref": "4250" + }, + { + "$ref": "4252" + }, + { + "$ref": "4262" + }, + { + "$ref": "4266" + }, + { + "$ref": "4268" + }, + { + "$ref": "4273" + }, + { + "$ref": "4280" + }, + { + "$ref": "4286" + }, + { + "$ref": "4288" + }, + { + "$ref": "4294" + }, + { + "$ref": "4296" + }, + { + "$ref": "4304" + }, + { + "$ref": "4310" + }, + { + "$ref": "4317" + }, + { + "$ref": "4319" + }, + { + "$ref": "4323" + }, + { + "$ref": "4327" + }, + { + "$ref": "4332" + }, + { + "$ref": "4341" + }, + { + "$ref": "4345" + }, + { + "$ref": "4349" + }, + { + "$ref": "4354" + }, + { + "$ref": "4359" + }, + { + "$ref": "4372" + }, + { + "$ref": "4376" + }, + { + "$ref": "4382" + }, + { + "$ref": "4396" + }, + { + "$ref": "4404" + }, + { + "$ref": "4413" + }, + { + "$ref": "4427" + }, + { + "$ref": "4430" + }, + { + "$ref": "4433" + }, + { + "$ref": "4436" + }, + { + "$ref": "4439" + }, + { + "$id": "4454", + "kind": "model", + "name": "Response", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Response", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4455", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "4456", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.", + "type": { + "$id": "4457", + "kind": "nullable", + "type": { + "$id": "4458", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "4459", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.", + "type": { + "$id": "4460", + "kind": "nullable", + "type": { + "$id": "4461", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "4462", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).", + "type": { + "$id": "4463", + "kind": "nullable", + "type": { + "$id": "4464", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.user", + "serializationOptions": { + "json": { + "name": "user" + } + } + }, + { + "$id": "4465", + "kind": "property", + "name": "service_tier", + "serializedName": "service_tier", + "type": { + "$ref": "161" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.service_tier", + "serializationOptions": { + "json": { + "name": "service_tier" + } + } + }, + { + "$id": "4466", + "kind": "property", + "name": "previous_response_id", + "serializedName": "previous_response_id", + "doc": "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about\n[conversation state](/docs/guides/conversation-state).", + "type": { + "$ref": "4041" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.previous_response_id", + "serializationOptions": { + "json": { + "name": "previous_response_id" + } + } + }, + { + "$id": "4467", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.", + "type": { + "$ref": "492" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "4468", + "kind": "property", + "name": "reasoning", + "serializedName": "reasoning", + "type": { + "$ref": "4045" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.reasoning", + "serializationOptions": { + "json": { + "name": "reasoning" + } + } + }, + { + "$id": "4469", + "kind": "property", + "name": "background", + "serializedName": "background", + "doc": "Whether to run the model response in the background.\n[Learn more](/docs/guides/background).", + "type": { + "$ref": "4064" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.background", + "serializationOptions": { + "json": { + "name": "background" + } + } + }, + { + "$id": "4470", + "kind": "property", + "name": "max_output_tokens", + "serializedName": "max_output_tokens", + "doc": "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).", + "type": { + "$ref": "4067" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.max_output_tokens", + "serializationOptions": { + "json": { + "name": "max_output_tokens" + } + } + }, + { + "$id": "4471", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "Inserts a system (or developer) message as the first item in the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.", + "type": { + "$ref": "4070" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "4472", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)", + "type": { + "$ref": "4073" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "4473", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "An array of tools the model may call while generating a response. You\ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n model's capabilities, like [web search](/docs/guides/tools-web-search)\n or [file search](/docs/guides/tools-file-search). Learn more about\n [built-in tools](/docs/guides/tools).\n- **Function calls (custom tools)**: Functions that are defined by you,\n enabling the model to call your own code. Learn more about\n [function calling](/docs/guides/function-calling).", + "type": { + "$ref": "3815" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "4474", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "doc": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call.", + "type": { + "$ref": "4077" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "4475", + "kind": "property", + "name": "truncation", + "serializedName": "truncation", + "doc": "The truncation strategy to use for the model response.\n- `auto`: If the context of this response and previous ones exceeds\n the model's context window size, the model will truncate the\n response to fit the context window by dropping input items in the\n middle of the conversation.\n- `disabled` (default): If a model response will exceed the context window\n size for a model, the request will fail with a 400 error.", + "type": { + "$ref": "4097" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.truncation", + "serializationOptions": { + "json": { + "name": "truncation" + } + } + }, + { + "$id": "4476", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique identifier for this Response.", + "type": { + "$id": "4477", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "4478", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type of this resource - always set to `response`.", + "type": { + "$ref": "1423" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "4479", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the response generation. One of `completed`, `failed`,\n`in_progress`, `cancelled`, `queued`, or `incomplete`.", + "type": { + "$ref": "649" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4480", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "Unix timestamp (in seconds) of when this Response was created.", + "type": { + "$id": "4481", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "4482", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "4483", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$id": "4484", + "kind": "nullable", + "type": { + "$id": "4485", + "kind": "model", + "name": "ResponseError", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseError", + "usage": "Output,Json,Exception", + "doc": "An error object returned when the model fails to generate a Response.", + "decorators": [], + "properties": [ + { + "$id": "4486", + "kind": "property", + "name": "code", + "serializedName": "code", + "type": { + "$ref": "657" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseError.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "4487", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable description of the error.", + "type": { + "$id": "4488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseError.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + }, + { + "$id": "4489", + "kind": "property", + "name": "incomplete_details", + "serializedName": "incomplete_details", + "doc": "Details about why the response is incomplete.", + "type": { + "$id": "4490", + "kind": "nullable", + "type": { + "$id": "4491", + "kind": "model", + "name": "ResponseIncompleteDetails1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Response.incomplete_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4492", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "The reason why the response is incomplete.", + "type": { + "$ref": "677" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.incomplete_details.anonymous.reason", + "serializationOptions": { + "json": { + "name": "reason" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.incomplete_details", + "serializationOptions": { + "json": { + "name": "incomplete_details" + } + } + }, + { + "$id": "4493", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "An array of content items generated by the model.\n\n- The length and order of items in the `output` array is dependent\n on the model's response.\n- Rather than accessing the first item in the `output` array and\n assuming it's an `assistant` message with the content generated by\n the model, you might consider using the `output_text` property where\n supported in SDKs.", + "type": { + "$id": "4494", + "kind": "array", + "name": "ArrayItemResource", + "valueType": { + "$id": "4495", + "kind": "model", + "name": "ItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ItemResource", + "usage": "Input,Output,Json", + "doc": "Content item used to generate a response.", + "decorators": [], + "discriminatorProperty": { + "$id": "4496", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "593" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "4496" + }, + { + "$id": "4497", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "4498", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ItemResource.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ], + "discriminatedSubtypes": { + "file_search_call": { + "$id": "4499", + "kind": "model", + "name": "FileSearchToolCallItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemResource", + "usage": "Output,Json", + "doc": "The results of a file search tool call. See the\n[file search guide](/docs/guides/tools-file-search) for more information.\n", + "discriminatorValue": "file_search_call", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4500", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "596" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4501", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the file search tool call. One of `in_progress`, \n`searching`, `incomplete` or `failed`,", + "type": { + "$ref": "681" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4502", + "kind": "property", + "name": "queries", + "serializedName": "queries", + "doc": "The queries used to search for files.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemResource.queries", + "serializationOptions": { + "json": { + "name": "queries" + } + } + }, + { + "$id": "4503", + "kind": "property", + "name": "results", + "serializedName": "results", + "doc": "The results of the file search tool call.", + "type": { + "$ref": "4203" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FileSearchToolCallItemResource.results", + "serializationOptions": { + "json": { + "name": "results" + } + } + } + ] + }, + "computer_call": { + "$id": "4504", + "kind": "model", + "name": "ComputerToolCallItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemResource", + "usage": "Output,Json", + "doc": "A tool call to a computer use tool. See the\n[computer use guide](/docs/guides/tools-computer-use) for more information.\n", + "discriminatorValue": "computer_call", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4505", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "599" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4506", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.", + "type": { + "$ref": "688" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4507", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "An identifier used when responding to the tool call with output.", + "type": { + "$id": "4508", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemResource.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4509", + "kind": "property", + "name": "action", + "serializedName": "action", + "type": { + "$ref": "4220" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemResource.action", + "serializationOptions": { + "json": { + "name": "action" + } + } + }, + { + "$id": "4510", + "kind": "property", + "name": "pending_safety_checks", + "serializedName": "pending_safety_checks", + "doc": "The pending safety checks for the computer call.", + "type": { + "$ref": "4272" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallItemResource.pending_safety_checks", + "serializationOptions": { + "json": { + "name": "pending_safety_checks" + } + } + } + ] + }, + "computer_call_output": { + "$id": "4511", + "kind": "model", + "name": "ComputerToolCallOutputItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemResource", + "usage": "Output,Json", + "doc": "The output of a computer tool call.\n", + "discriminatorValue": "computer_call_output", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4512", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "600" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4513", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.", + "type": { + "$ref": "693" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4514", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The ID of the computer tool call that produced the output.", + "type": { + "$id": "4515", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemResource.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4516", + "kind": "property", + "name": "acknowledged_safety_checks", + "serializedName": "acknowledged_safety_checks", + "doc": "The safety checks reported by the API that have been acknowledged by the\ndeveloper.", + "type": { + "$ref": "4272" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemResource.acknowledged_safety_checks", + "serializationOptions": { + "json": { + "name": "acknowledged_safety_checks" + } + } + }, + { + "$id": "4517", + "kind": "property", + "name": "output", + "serializedName": "output", + "type": { + "$ref": "4286" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ComputerToolCallOutputItemResource.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + }, + "web_search_call": { + "$id": "4518", + "kind": "model", + "name": "WebSearchToolCallItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.WebSearchToolCallItemResource", + "usage": "Output,Json", + "doc": "The results of a web search tool call. See the\n[web search guide](/docs/guides/tools-web-search) for more information.\n", + "discriminatorValue": "web_search_call", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4519", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "601" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchToolCallItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4520", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the web search tool call.", + "type": { + "$ref": "698" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.WebSearchToolCallItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + } + ] + }, + "function_call": { + "$id": "4521", + "kind": "model", + "name": "FunctionToolCallItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemResource", + "usage": "Output,Json", + "doc": "A tool call to run a function. See the\n[function calling guide](/docs/guides/function-calling) for more information.\n", + "discriminatorValue": "function_call", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4522", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "597" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4523", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.", + "type": { + "$ref": "704" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4524", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The unique ID of the function tool call generated by the model.", + "type": { + "$id": "4525", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemResource.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4526", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to run.", + "type": { + "$id": "4527", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemResource.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "4528", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "A JSON string of the arguments to pass to the function.", + "type": { + "$id": "4529", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallItemResource.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + } + ] + }, + "function_call_output": { + "$id": "4530", + "kind": "model", + "name": "FunctionToolCallOutputItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemResource", + "usage": "Output,Json", + "doc": "The output of a function tool call.\n", + "discriminatorValue": "function_call_output", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4531", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "598" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4532", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.", + "type": { + "$ref": "709" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4533", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The unique ID of the function tool call generated by the model.", + "type": { + "$id": "4534", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemResource.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4535", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "A JSON string of the output of the function tool call.", + "type": { + "$id": "4536", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FunctionToolCallOutputItemResource.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + }, + "reasoning": { + "$id": "4537", + "kind": "model", + "name": "ReasoningItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ReasoningItemResource", + "usage": "Output,Json", + "doc": "A description of the chain of thought used by a reasoning model while generating\na response. Be sure to include these items in your `input` to the Responses API\nfor subsequent turns of a conversation if you are manually\n[managing context](/docs/guides/conversation-state).\n", + "discriminatorValue": "reasoning", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4538", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "602" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4539", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.", + "type": { + "$ref": "714" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4540", + "kind": "property", + "name": "encrypted_content", + "serializedName": "encrypted_content", + "doc": "The encrypted content of the reasoning item - populated when a response is\ngenerated with `reasoning.encrypted_content` in the `include` parameter.", + "type": { + "$ref": "4313" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemResource.encrypted_content", + "serializationOptions": { + "json": { + "name": "encrypted_content" + } + } + }, + { + "$id": "4541", + "kind": "property", + "name": "summary", + "serializedName": "summary", + "doc": "Reasoning text contents.", + "type": { + "$ref": "4316" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ReasoningItemResource.summary", + "serializationOptions": { + "json": { + "name": "summary" + } + } + } + ] + }, + "image_generation_call": { + "$id": "4542", + "kind": "model", + "name": "ImageGenToolCallItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ImageGenToolCallItemResource", + "usage": "Output,Json", + "doc": "An image generation request made by the model.\n", + "discriminatorValue": "image_generation_call", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4543", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "604" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenToolCallItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4544", + "kind": "property", + "name": "status", + "serializedName": "status", + "type": { + "$ref": "719" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenToolCallItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4545", + "kind": "property", + "name": "result", + "serializedName": "result", + "doc": "The generated image encoded in base64.", + "type": { + "$ref": "4330" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImageGenToolCallItemResource.result", + "serializationOptions": { + "json": { + "name": "result" + } + } + } + ] + }, + "code_interpreter_call": { + "$id": "4546", + "kind": "model", + "name": "CodeInterpreterToolCallItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemResource", + "usage": "Output,Json", + "doc": "A tool call to run code.\n", + "discriminatorValue": "code_interpreter_call", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4547", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "605" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4548", + "kind": "property", + "name": "status", + "serializedName": "status", + "type": { + "$ref": "725" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4549", + "kind": "property", + "name": "container_id", + "serializedName": "container_id", + "doc": "The ID of the container used to run the code.", + "type": { + "$id": "4550", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemResource.container_id", + "serializationOptions": { + "json": { + "name": "container_id" + } + } + }, + { + "$id": "4551", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "The code to run.", + "type": { + "$id": "4552", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemResource.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "4553", + "kind": "property", + "name": "results", + "serializedName": "results", + "doc": "The results of the code interpreter tool call.", + "type": { + "$ref": "4339" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CodeInterpreterToolCallItemResource.results", + "serializationOptions": { + "json": { + "name": "results" + } + } + } + ] + }, + "local_shell_call": { + "$id": "4554", + "kind": "model", + "name": "LocalShellToolCallItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemResource", + "usage": "Output,Json", + "doc": "A tool call to run a command on the local shell.\n", + "discriminatorValue": "local_shell_call", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4555", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "606" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4556", + "kind": "property", + "name": "status", + "serializedName": "status", + "type": { + "$ref": "730" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4557", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The unique ID of the local shell tool call generated by the model.", + "type": { + "$id": "4558", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemResource.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "4559", + "kind": "property", + "name": "action", + "serializedName": "action", + "type": { + "$ref": "4359" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallItemResource.action", + "serializationOptions": { + "json": { + "name": "action" + } + } + } + ] + }, + "local_shell_call_output": { + "$id": "4560", + "kind": "model", + "name": "LocalShellToolCallOutputItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallOutputItemResource", + "usage": "Output,Json", + "doc": "The output of a local shell tool call.\n", + "discriminatorValue": "local_shell_call_output", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4561", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "607" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallOutputItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4562", + "kind": "property", + "name": "status", + "serializedName": "status", + "type": { + "$ref": "735" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallOutputItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "4563", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "A JSON string of the output of the local shell tool call.", + "type": { + "$id": "4564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LocalShellToolCallOutputItemResource.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + }, + "mcp_list_tools": { + "$id": "4565", + "kind": "model", + "name": "MCPListToolsItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemResource", + "usage": "Output,Json", + "doc": "A list of tools available on an MCP server.\n", + "discriminatorValue": "mcp_list_tools", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4566", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "608" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4567", + "kind": "property", + "name": "server_label", + "serializedName": "server_label", + "doc": "The label of the MCP server.", + "type": { + "$id": "4568", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemResource.server_label", + "serializationOptions": { + "json": { + "name": "server_label" + } + } + }, + { + "$id": "4569", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The tools available on the server.", + "type": { + "$ref": "4381" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemResource.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "4570", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "Error message if the server could not list tools.", + "type": { + "$ref": "4394" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPListToolsItemResource.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + "mcp_approval_request": { + "$id": "4571", + "kind": "model", + "name": "MCPApprovalRequestItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemResource", + "usage": "Output,Json", + "doc": "A request for human approval of a tool invocation.\n", + "discriminatorValue": "mcp_approval_request", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4572", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "609" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4573", + "kind": "property", + "name": "server_label", + "serializedName": "server_label", + "doc": "The label of the MCP server making the request.", + "type": { + "$id": "4574", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemResource.server_label", + "serializationOptions": { + "json": { + "name": "server_label" + } + } + }, + { + "$id": "4575", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the tool to run.", + "type": { + "$id": "4576", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemResource.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "4577", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "A JSON string of arguments for the tool.", + "type": { + "$id": "4578", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalRequestItemResource.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + } + ] + }, + "mcp_approval_response": { + "$id": "4579", + "kind": "model", + "name": "MCPApprovalResponseItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemResource", + "usage": "Output,Json", + "doc": "A response to an MCP approval request.\n", + "discriminatorValue": "mcp_approval_response", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4580", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "610" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4581", + "kind": "property", + "name": "approval_request_id", + "serializedName": "approval_request_id", + "doc": "The ID of the approval request being answered.", + "type": { + "$id": "4582", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemResource.approval_request_id", + "serializationOptions": { + "json": { + "name": "approval_request_id" + } + } + }, + { + "$id": "4583", + "kind": "property", + "name": "approve", + "serializedName": "approve", + "doc": "Whether the request was approved.", + "type": { + "$id": "4584", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemResource.approve", + "serializationOptions": { + "json": { + "name": "approve" + } + } + }, + { + "$id": "4585", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "Optional reason for the decision.", + "type": { + "$ref": "4411" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPApprovalResponseItemResource.reason", + "serializationOptions": { + "json": { + "name": "reason" + } + } + } + ] + }, + "mcp_call": { + "$id": "4586", + "kind": "model", + "name": "MCPCallItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MCPCallItemResource", + "usage": "Output,Json", + "doc": "An invocation of a tool on an MCP server.\n", + "discriminatorValue": "mcp_call", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4587", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "611" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4588", + "kind": "property", + "name": "server_label", + "serializedName": "server_label", + "doc": "The label of the MCP server running the tool.", + "type": { + "$id": "4589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemResource.server_label", + "serializationOptions": { + "json": { + "name": "server_label" + } + } + }, + { + "$id": "4590", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the tool that was run.", + "type": { + "$id": "4591", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemResource.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "4592", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "A JSON string of the arguments passed to the tool.", + "type": { + "$id": "4593", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemResource.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + }, + { + "$id": "4594", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "The output from the tool call.", + "type": { + "$ref": "4422" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemResource.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + }, + { + "$id": "4595", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "The error from the tool call, if any.", + "type": { + "$ref": "4425" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MCPCallItemResource.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + "message": { + "$id": "4596", + "kind": "model", + "name": "ResponsesMessageItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesMessageItemResource", + "usage": "Output,Json", + "doc": "A response message resource item, representing a role and content, as provided on service responses.", + "discriminatorValue": "message", + "decorators": [], + "discriminatorProperty": { + "$id": "4597", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role associated with the message.", + "type": { + "$ref": "636" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesMessageItemResource.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4598", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the responses item, which is always 'message'.", + "type": { + "$ref": "595" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesMessageItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "4599", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the item. One of `in_progress`, `completed`, or\n`incomplete`. Populated when items are returned via API.", + "type": { + "$ref": "740" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesMessageItemResource.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$ref": "4597" + } + ], + "discriminatedSubtypes": { + "user": { + "$id": "4600", + "kind": "model", + "name": "ResponsesUserMessageItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesUserMessageItemResource", + "usage": "Output,Json", + "doc": "A message resource item with the `user` role.", + "discriminatorValue": "user", + "decorators": [], + "baseModel": { + "$ref": "4596" + }, + "properties": [ + { + "$id": "4601", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message, which is always `user`.", + "type": { + "$ref": "640" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesUserMessageItemResource.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "4602", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content associated with the message.", + "type": { + "$ref": "4111" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesUserMessageItemResource.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "system": { + "$id": "4603", + "kind": "model", + "name": "ResponsesSystemMessageItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesSystemMessageItemResource", + "usage": "Output,Json", + "doc": "A message resource item with the `system` role.", + "discriminatorValue": "system", + "decorators": [], + "baseModel": { + "$ref": "4596" + }, + "properties": [ + { + "$id": "4604", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message, which is always `system`.", + "type": { + "$ref": "638" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesSystemMessageItemResource.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "4605", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content associated with the message.", + "type": { + "$ref": "4111" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesSystemMessageItemResource.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "developer": { + "$id": "4606", + "kind": "model", + "name": "ResponsesDeveloperMessageItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesDeveloperMessageItemResource", + "usage": "Output,Json", + "doc": "A message resource item with the `developer` role.", + "discriminatorValue": "developer", + "decorators": [], + "baseModel": { + "$ref": "4596" + }, + "properties": [ + { + "$id": "4607", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message, which is always `developer`.", + "type": { + "$ref": "639" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesDeveloperMessageItemResource.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "4608", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content associated with the message.", + "type": { + "$ref": "4111" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesDeveloperMessageItemResource.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "assistant": { + "$id": "4609", + "kind": "model", + "name": "ResponsesAssistantMessageItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponsesAssistantMessageItemResource", + "usage": "Output,Json", + "doc": "A message resource item with the `assistant` role.", + "discriminatorValue": "assistant", + "decorators": [], + "baseModel": { + "$ref": "4596" + }, + "properties": [ + { + "$id": "4610", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the message, which is always `assistant`.", + "type": { + "$ref": "641" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesAssistantMessageItemResource.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "4611", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content associated with the message.", + "type": { + "$ref": "4111" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponsesAssistantMessageItemResource.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + } + } + }, + "item_reference": { + "$id": "4612", + "kind": "model", + "name": "DotNetItemReferenceItemResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetItemReferenceItemResource", + "access": "public", + "usage": "Input,Output,Json", + "discriminatorValue": "item_reference", + "decorators": [], + "baseModel": { + "$ref": "4495" + }, + "properties": [ + { + "$id": "4613", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "603" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetItemReferenceItemResource.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + }, + { + "$id": "4614", + "kind": "property", + "name": "output_text", + "serializedName": "output_text", + "doc": "SDK-only convenience property that contains the aggregated text output\nfrom all `output_text` items in the `output` array, if any are present.\nSupported in the Python and JavaScript SDKs.", + "type": { + "$id": "4615", + "kind": "nullable", + "type": { + "$id": "4616", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.output_text", + "serializationOptions": { + "json": { + "name": "output_text" + } + } + }, + { + "$id": "4617", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "type": { + "$id": "4618", + "kind": "model", + "name": "ResponseUsage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseUsage", + "usage": "Output,Json", + "doc": "Represents token usage details including input tokens, output tokens,\na breakdown of output tokens, and the total tokens used.", + "decorators": [], + "properties": [ + { + "$id": "4619", + "kind": "property", + "name": "input_tokens", + "serializedName": "input_tokens", + "doc": "The number of input tokens.", + "type": { + "$id": "4620", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseUsage.input_tokens", + "serializationOptions": { + "json": { + "name": "input_tokens" + } + } + }, + { + "$id": "4621", + "kind": "property", + "name": "input_tokens_details", + "serializedName": "input_tokens_details", + "doc": "A detailed breakdown of the input tokens.", + "type": { + "$id": "4622", + "kind": "model", + "name": "ResponseUsageInputTokensDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseUsage.input_tokens_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4623", + "kind": "property", + "name": "cached_tokens", + "serializedName": "cached_tokens", + "doc": "The number of tokens that were retrieved from the cache.\n[More on prompt caching](/docs/guides/prompt-caching).", + "type": { + "$id": "4624", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseUsage.input_tokens_details.anonymous.cached_tokens", + "serializationOptions": { + "json": { + "name": "cached_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseUsage.input_tokens_details", + "serializationOptions": { + "json": { + "name": "input_tokens_details" + } + } + }, + { + "$id": "4625", + "kind": "property", + "name": "output_tokens", + "serializedName": "output_tokens", + "doc": "The number of output tokens.", + "type": { + "$id": "4626", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseUsage.output_tokens", + "serializationOptions": { + "json": { + "name": "output_tokens" + } + } + }, + { + "$id": "4627", + "kind": "property", + "name": "output_tokens_details", + "serializedName": "output_tokens_details", + "doc": "A detailed breakdown of the output tokens.", + "type": { + "$id": "4628", + "kind": "model", + "name": "ResponseUsageOutputTokensDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseUsage.output_tokens_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4629", + "kind": "property", + "name": "reasoning_tokens", + "serializedName": "reasoning_tokens", + "doc": "The number of reasoning tokens.", + "type": { + "$id": "4630", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseUsage.output_tokens_details.anonymous.reasoning_tokens", + "serializationOptions": { + "json": { + "name": "reasoning_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseUsage.output_tokens_details", + "serializationOptions": { + "json": { + "name": "output_tokens_details" + } + } + }, + { + "$id": "4631", + "kind": "property", + "name": "total_tokens", + "serializedName": "total_tokens", + "doc": "The total number of tokens used.", + "type": { + "$id": "4632", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseUsage.total_tokens", + "serializationOptions": { + "json": { + "name": "total_tokens" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + } + }, + { + "$id": "4633", + "kind": "property", + "name": "parallel_tool_calls", + "serializedName": "parallel_tool_calls", + "doc": "Whether to allow the model to run tool calls in parallel.", + "type": { + "$id": "4634", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Response.parallel_tool_calls", + "serializationOptions": { + "json": { + "name": "parallel_tool_calls" + } + } + } + ] + }, + { + "$ref": "4485" + }, + { + "$ref": "4491" + }, + { + "$ref": "4495" + }, + { + "$ref": "4499" + }, + { + "$ref": "4504" + }, + { + "$ref": "4511" + }, + { + "$ref": "4518" + }, + { + "$ref": "4521" + }, + { + "$ref": "4530" + }, + { + "$ref": "4537" + }, + { + "$ref": "4542" + }, + { + "$ref": "4546" + }, + { + "$ref": "4554" + }, + { + "$ref": "4560" + }, + { + "$ref": "4565" + }, + { + "$ref": "4571" + }, + { + "$ref": "4579" + }, + { + "$ref": "4586" + }, + { + "$ref": "4596" + }, + { + "$ref": "4600" + }, + { + "$ref": "4603" + }, + { + "$ref": "4606" + }, + { + "$ref": "4609" + }, + { + "$ref": "4612" + }, + { + "$ref": "4618" + }, + { + "$ref": "4622" + }, + { + "$ref": "4628" + }, + { + "$id": "4635", + "kind": "model", + "name": "ResponseStreamEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseStreamEvent", + "usage": "Output", + "decorators": [], + "discriminatorProperty": { + "$id": "4636", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "745" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseStreamEvent.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "4636" + }, + { + "$id": "4637", + "kind": "property", + "name": "sequence_number", + "serializedName": "sequence_number", + "doc": "The sequence number for this event.", + "type": { + "$id": "4638", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseStreamEvent.sequence_number", + "serializationOptions": {} + } + ], + "discriminatedSubtypes": { + "response.completed": { + "$id": "4639", + "kind": "model", + "name": "ResponseCompletedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseCompletedEvent", + "usage": "Output", + "doc": "Emitted when the model response is complete.", + "discriminatorValue": "response.completed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4640", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.completed`.", + "type": { + "$ref": "756" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCompletedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4641", + "kind": "property", + "name": "response", + "serializedName": "response", + "doc": "Properties of the completed response.", + "type": { + "$ref": "4454" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCompletedEvent.response", + "serializationOptions": {} + } + ] + }, + "response.content_part.added": { + "$id": "4642", + "kind": "model", + "name": "ResponseContentPartAddedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartAddedEvent", + "usage": "Output", + "doc": "Emitted when a new content part is added.", + "discriminatorValue": "response.content_part.added", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4643", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.content_part.added`.", + "type": { + "$ref": "757" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartAddedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4644", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the content part was added to.", + "type": { + "$id": "4645", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartAddedEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4646", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the content part was added to.", + "type": { + "$id": "4647", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartAddedEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4648", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part that was added.", + "type": { + "$id": "4649", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartAddedEvent.content_index", + "serializationOptions": {} + }, + { + "$id": "4650", + "kind": "property", + "name": "part", + "serializedName": "part", + "doc": "The content part that was added.", + "type": { + "$ref": "4112" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartAddedEvent.part", + "serializationOptions": {} + } + ] + }, + "response.content_part.done": { + "$id": "4651", + "kind": "model", + "name": "ResponseContentPartDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartDoneEvent", + "usage": "Output", + "doc": "Emitted when a content part is done.", + "discriminatorValue": "response.content_part.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4652", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.content_part.done`.", + "type": { + "$ref": "758" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4653", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the content part was added to.", + "type": { + "$id": "4654", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartDoneEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4655", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the content part was added to.", + "type": { + "$id": "4656", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4657", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part that is done.", + "type": { + "$id": "4658", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartDoneEvent.content_index", + "serializationOptions": {} + }, + { + "$id": "4659", + "kind": "property", + "name": "part", + "serializedName": "part", + "doc": "The content part that is done.", + "type": { + "$ref": "4112" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseContentPartDoneEvent.part", + "serializationOptions": {} + } + ] + }, + "response.created": { + "$id": "4660", + "kind": "model", + "name": "ResponseCreatedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseCreatedEvent", + "usage": "Output", + "doc": "An event that is emitted when a response is created.", + "discriminatorValue": "response.created", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4661", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.created`.", + "type": { + "$ref": "759" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCreatedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4662", + "kind": "property", + "name": "response", + "serializedName": "response", + "doc": "The response that was created.", + "type": { + "$ref": "4454" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCreatedEvent.response", + "serializationOptions": {} + } + ] + }, + "error": { + "$id": "4663", + "kind": "model", + "name": "ResponseErrorEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseErrorEvent", + "usage": "Output", + "doc": "Emitted when an error occurs.", + "discriminatorValue": "error", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4664", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `error`.", + "type": { + "$ref": "760" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseErrorEvent.type", + "serializationOptions": {} + }, + { + "$id": "4665", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "The error code.", + "type": { + "$id": "4666", + "kind": "nullable", + "type": { + "$id": "4667", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseErrorEvent.code", + "serializationOptions": {} + }, + { + "$id": "4668", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "The error message.", + "type": { + "$id": "4669", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseErrorEvent.message", + "serializationOptions": {} + }, + { + "$id": "4670", + "kind": "property", + "name": "param", + "serializedName": "param", + "doc": "The error parameter.", + "type": { + "$id": "4671", + "kind": "nullable", + "type": { + "$id": "4672", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseErrorEvent.param", + "serializationOptions": {} + } + ] + }, + "response.file_search_call.completed": { + "$id": "4673", + "kind": "model", + "name": "ResponseFileSearchCallCompletedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallCompletedEvent", + "usage": "Output", + "doc": "Emitted when a file search call is completed (results found).", + "discriminatorValue": "response.file_search_call.completed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4674", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.file_search_call.completed`.", + "type": { + "$ref": "761" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallCompletedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4675", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the file search call is initiated.", + "type": { + "$id": "4676", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallCompletedEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4677", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the file search call is initiated.", + "type": { + "$id": "4678", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallCompletedEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.file_search_call.in_progress": { + "$id": "4679", + "kind": "model", + "name": "ResponseFileSearchCallInProgressEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallInProgressEvent", + "usage": "Output", + "doc": "Emitted when a file search call is initiated.", + "discriminatorValue": "response.file_search_call.in_progress", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4680", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.file_search_call.in_progress`.", + "type": { + "$ref": "762" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallInProgressEvent.type", + "serializationOptions": {} + }, + { + "$id": "4681", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the file search call is initiated.", + "type": { + "$id": "4682", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallInProgressEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4683", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the file search call is initiated.", + "type": { + "$id": "4684", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallInProgressEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.file_search_call.searching": { + "$id": "4685", + "kind": "model", + "name": "ResponseFileSearchCallSearchingEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallSearchingEvent", + "usage": "Output", + "doc": "Emitted when a file search is currently searching.", + "discriminatorValue": "response.file_search_call.searching", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4686", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.file_search_call.searching`.", + "type": { + "$ref": "763" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallSearchingEvent.type", + "serializationOptions": {} + }, + { + "$id": "4687", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the file search call is searching.", + "type": { + "$id": "4688", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallSearchingEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4689", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the file search call is initiated.", + "type": { + "$id": "4690", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFileSearchCallSearchingEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.function_call_arguments.delta": { + "$id": "4691", + "kind": "model", + "name": "ResponseFunctionCallArgumentsDeltaEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDeltaEvent", + "usage": "Output", + "doc": "Emitted when there is a partial function-call arguments delta.", + "discriminatorValue": "response.function_call_arguments.delta", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4692", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.function_call_arguments.delta`.", + "type": { + "$ref": "764" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDeltaEvent.type", + "serializationOptions": {} + }, + { + "$id": "4693", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the function-call arguments delta is added to.", + "type": { + "$id": "4694", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDeltaEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4695", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the function-call arguments delta is added to.", + "type": { + "$id": "4696", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDeltaEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4697", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The function-call arguments delta that is added.", + "type": { + "$id": "4698", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDeltaEvent.delta", + "serializationOptions": {} + } + ] + }, + "response.function_call_arguments.done": { + "$id": "4699", + "kind": "model", + "name": "ResponseFunctionCallArgumentsDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDoneEvent", + "usage": "Output", + "doc": "Emitted when function-call arguments are finalized.", + "discriminatorValue": "response.function_call_arguments.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4700", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "765" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4701", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item.", + "type": { + "$id": "4702", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDoneEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4703", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item.", + "type": { + "$id": "4704", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4705", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The function-call arguments.", + "type": { + "$id": "4706", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFunctionCallArgumentsDoneEvent.arguments", + "serializationOptions": {} + } + ] + }, + "response.in_progress": { + "$id": "4707", + "kind": "model", + "name": "ResponseInProgressEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseInProgressEvent", + "usage": "Output", + "doc": "Emitted when the response is in progress.", + "discriminatorValue": "response.in_progress", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4708", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.in_progress`.", + "type": { + "$ref": "766" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseInProgressEvent.type", + "serializationOptions": {} + }, + { + "$id": "4709", + "kind": "property", + "name": "response", + "serializedName": "response", + "doc": "The response that is in progress.", + "type": { + "$ref": "4454" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseInProgressEvent.response", + "serializationOptions": {} + } + ] + }, + "response.failed": { + "$id": "4710", + "kind": "model", + "name": "ResponseFailedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseFailedEvent", + "usage": "Output", + "doc": "An event that is emitted when a response fails.", + "discriminatorValue": "response.failed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4711", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.failed`.", + "type": { + "$ref": "767" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFailedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4712", + "kind": "property", + "name": "response", + "serializedName": "response", + "doc": "The response that failed.", + "type": { + "$ref": "4454" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseFailedEvent.response", + "serializationOptions": {} + } + ] + }, + "response.incomplete": { + "$id": "4713", + "kind": "model", + "name": "ResponseIncompleteEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseIncompleteEvent", + "usage": "Output", + "doc": "An event that is emitted when a response finishes as incomplete.", + "discriminatorValue": "response.incomplete", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4714", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.incomplete`.", + "type": { + "$ref": "768" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseIncompleteEvent.type", + "serializationOptions": {} + }, + { + "$id": "4715", + "kind": "property", + "name": "response", + "serializedName": "response", + "doc": "The response that was incomplete.", + "type": { + "$ref": "4454" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseIncompleteEvent.response", + "serializationOptions": {} + } + ] + }, + "response.output_item.added": { + "$id": "4716", + "kind": "model", + "name": "ResponseOutputItemAddedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseOutputItemAddedEvent", + "usage": "Output", + "doc": "Emitted when a new output item is added.", + "discriminatorValue": "response.output_item.added", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4717", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.output_item.added`.", + "type": { + "$ref": "769" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputItemAddedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4718", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that was added.", + "type": { + "$id": "4719", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputItemAddedEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4720", + "kind": "property", + "name": "item", + "serializedName": "item", + "doc": "The output item that was added.", + "type": { + "$ref": "4495" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputItemAddedEvent.item", + "serializationOptions": {} + } + ] + }, + "response.output_item.done": { + "$id": "4721", + "kind": "model", + "name": "ResponseOutputItemDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseOutputItemDoneEvent", + "usage": "Output", + "doc": "Emitted when an output item is marked done.", + "discriminatorValue": "response.output_item.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4722", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.output_item.done`.", + "type": { + "$ref": "770" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputItemDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4723", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that was marked done.", + "type": { + "$id": "4724", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputItemDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4725", + "kind": "property", + "name": "item", + "serializedName": "item", + "doc": "The output item that was marked done.", + "type": { + "$ref": "4495" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputItemDoneEvent.item", + "serializationOptions": {} + } + ] + }, + "response.refusal.delta": { + "$id": "4726", + "kind": "model", + "name": "ResponseRefusalDeltaEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDeltaEvent", + "usage": "Output", + "doc": "Emitted when there is a partial refusal text.", + "discriminatorValue": "response.refusal.delta", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4727", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.refusal.delta`.", + "type": { + "$ref": "771" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDeltaEvent.type", + "serializationOptions": {} + }, + { + "$id": "4728", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the refusal text is added to.", + "type": { + "$id": "4729", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDeltaEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4730", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the refusal text is added to.", + "type": { + "$id": "4731", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDeltaEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4732", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part that the refusal text is added to.", + "type": { + "$id": "4733", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDeltaEvent.content_index", + "serializationOptions": {} + }, + { + "$id": "4734", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The refusal text that is added.", + "type": { + "$id": "4735", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDeltaEvent.delta", + "serializationOptions": {} + } + ] + }, + "response.refusal.done": { + "$id": "4736", + "kind": "model", + "name": "ResponseRefusalDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDoneEvent", + "usage": "Output", + "doc": "Emitted when refusal text is finalized.", + "discriminatorValue": "response.refusal.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4737", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.refusal.done`.", + "type": { + "$ref": "772" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4738", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the refusal text is finalized.", + "type": { + "$id": "4739", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDoneEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4740", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the refusal text is finalized.", + "type": { + "$id": "4741", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4742", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part that the refusal text is finalized.", + "type": { + "$id": "4743", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDoneEvent.content_index", + "serializationOptions": {} + }, + { + "$id": "4744", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "The refusal text that is finalized.", + "type": { + "$id": "4745", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseRefusalDoneEvent.refusal", + "serializationOptions": {} + } + ] + }, + "response.output_text.delta": { + "$id": "4746", + "kind": "model", + "name": "ResponseTextDeltaEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseTextDeltaEvent", + "usage": "Output", + "doc": "Emitted when there is an additional text delta.", + "discriminatorValue": "response.output_text.delta", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4747", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.output_text.delta`.", + "type": { + "$ref": "774" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDeltaEvent.type", + "serializationOptions": {} + }, + { + "$id": "4748", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the text delta was added to.", + "type": { + "$id": "4749", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDeltaEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4750", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the text delta was added to.", + "type": { + "$id": "4751", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDeltaEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4752", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part that the text delta was added to.", + "type": { + "$id": "4753", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDeltaEvent.content_index", + "serializationOptions": {} + }, + { + "$id": "4754", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The text delta that was added.", + "type": { + "$id": "4755", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDeltaEvent.delta", + "serializationOptions": {} + } + ] + }, + "response.output_text.done": { + "$id": "4756", + "kind": "model", + "name": "ResponseTextDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseTextDoneEvent", + "usage": "Output", + "doc": "Emitted when text content is finalized.", + "discriminatorValue": "response.output_text.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4757", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.output_text.done`.", + "type": { + "$ref": "775" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4758", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the output item that the text content is finalized.", + "type": { + "$id": "4759", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDoneEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4760", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the text content is finalized.", + "type": { + "$id": "4761", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4762", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part that the text content is finalized.", + "type": { + "$id": "4763", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDoneEvent.content_index", + "serializationOptions": {} + }, + { + "$id": "4764", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text content that is finalized.", + "type": { + "$id": "4765", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseTextDoneEvent.text", + "serializationOptions": {} + } + ] + }, + "response.reasoning_summary_part.added": { + "$id": "4766", + "kind": "model", + "name": "ResponseReasoningSummaryPartAddedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartAddedEvent", + "usage": "Output", + "doc": "Emitted when a new reasoning summary part is added.", + "discriminatorValue": "response.reasoning_summary_part.added", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4767", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.reasoning_summary_part.added`.", + "type": { + "$ref": "776" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartAddedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4768", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item this summary part is associated with.", + "type": { + "$id": "4769", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartAddedEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4770", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item this summary part is associated with.", + "type": { + "$id": "4771", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartAddedEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4772", + "kind": "property", + "name": "summary_index", + "serializedName": "summary_index", + "doc": "The index of the summary part within the reasoning summary.", + "type": { + "$id": "4773", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartAddedEvent.summary_index", + "serializationOptions": {} + }, + { + "$id": "4774", + "kind": "property", + "name": "part", + "serializedName": "part", + "doc": "The summary part that was added.", + "type": { + "$ref": "4317" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartAddedEvent.part", + "serializationOptions": {} + } + ] + }, + "response.reasoning_summary_part.done": { + "$id": "4775", + "kind": "model", + "name": "ResponseReasoningSummaryPartDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartDoneEvent", + "usage": "Output", + "doc": "Emitted when a reasoning summary part is completed.", + "discriminatorValue": "response.reasoning_summary_part.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4776", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.reasoning_summary_part.done`.", + "type": { + "$ref": "777" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4777", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item this summary part is associated with.", + "type": { + "$id": "4778", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartDoneEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4779", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item this summary part is associated with.", + "type": { + "$id": "4780", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4781", + "kind": "property", + "name": "summary_index", + "serializedName": "summary_index", + "doc": "The index of the summary part within the reasoning summary.", + "type": { + "$id": "4782", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartDoneEvent.summary_index", + "serializationOptions": {} + }, + { + "$id": "4783", + "kind": "property", + "name": "part", + "serializedName": "part", + "doc": "The completed summary part.", + "type": { + "$ref": "4317" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryPartDoneEvent.part", + "serializationOptions": {} + } + ] + }, + "response.reasoning_summary_text.delta": { + "$id": "4784", + "kind": "model", + "name": "ResponseReasoningSummaryTextDeltaEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDeltaEvent", + "usage": "Output", + "doc": "Emitted when a delta is added to a reasoning summary text.", + "discriminatorValue": "response.reasoning_summary_text.delta", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4785", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.reasoning_summary_text.delta`.", + "type": { + "$ref": "778" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDeltaEvent.type", + "serializationOptions": {} + }, + { + "$id": "4786", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item this summary text delta is associated with.", + "type": { + "$id": "4787", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDeltaEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4788", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item this summary text delta is associated with.", + "type": { + "$id": "4789", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDeltaEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4790", + "kind": "property", + "name": "summary_index", + "serializedName": "summary_index", + "doc": "The index of the summary part within the reasoning summary.", + "type": { + "$id": "4791", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDeltaEvent.summary_index", + "serializationOptions": {} + }, + { + "$id": "4792", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The text delta that was added to the summary.", + "type": { + "$id": "4793", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDeltaEvent.delta", + "serializationOptions": {} + } + ] + }, + "response.reasoning_summary_text.done": { + "$id": "4794", + "kind": "model", + "name": "ResponseReasoningSummaryTextDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDoneEvent", + "usage": "Output", + "doc": "Emitted when a reasoning summary text is completed.", + "discriminatorValue": "response.reasoning_summary_text.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4795", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.reasoning_summary_text.done`.", + "type": { + "$ref": "779" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4796", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item this summary text is associated with.", + "type": { + "$id": "4797", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDoneEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4798", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item this summary text is associated with.", + "type": { + "$id": "4799", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4800", + "kind": "property", + "name": "summary_index", + "serializedName": "summary_index", + "doc": "The index of the summary part within the reasoning summary.", + "type": { + "$id": "4801", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDoneEvent.summary_index", + "serializationOptions": {} + }, + { + "$id": "4802", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The full text of the completed reasoning summary.", + "type": { + "$id": "4803", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryTextDoneEvent.text", + "serializationOptions": {} + } + ] + }, + "response.web_search_call.completed": { + "$id": "4804", + "kind": "model", + "name": "ResponseWebSearchCallCompletedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallCompletedEvent", + "usage": "Output", + "doc": "Emitted when a web search call is completed.", + "discriminatorValue": "response.web_search_call.completed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4805", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.web_search_call.completed`.", + "type": { + "$ref": "780" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallCompletedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4806", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the web search call is associated with.", + "type": { + "$id": "4807", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallCompletedEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4808", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "Unique ID for the output item associated with the web search call.", + "type": { + "$id": "4809", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallCompletedEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.web_search_call.in_progress": { + "$id": "4810", + "kind": "model", + "name": "ResponseWebSearchCallInProgressEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallInProgressEvent", + "usage": "Output", + "doc": "Emitted when a web search call is initiated.", + "discriminatorValue": "response.web_search_call.in_progress", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4811", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.web_search_call.in_progress`.", + "type": { + "$ref": "781" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallInProgressEvent.type", + "serializationOptions": {} + }, + { + "$id": "4812", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the web search call is associated with.", + "type": { + "$id": "4813", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallInProgressEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4814", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "Unique ID for the output item associated with the web search call.", + "type": { + "$id": "4815", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallInProgressEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.web_search_call.searching": { + "$id": "4816", + "kind": "model", + "name": "ResponseWebSearchCallSearchingEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallSearchingEvent", + "usage": "Output", + "doc": "Emitted when a web search call is executing.", + "discriminatorValue": "response.web_search_call.searching", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4817", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.web_search_call.searching`.", + "type": { + "$ref": "782" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallSearchingEvent.type", + "serializationOptions": {} + }, + { + "$id": "4818", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the web search call is associated with.", + "type": { + "$id": "4819", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallSearchingEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4820", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "Unique ID for the output item associated with the web search call.", + "type": { + "$id": "4821", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseWebSearchCallSearchingEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.image_generation_call.completed": { + "$id": "4822", + "kind": "model", + "name": "ResponseImageGenCallCompletedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallCompletedEvent", + "usage": "Output", + "doc": "Emitted when an image generation tool call has completed and the final image is available.", + "discriminatorValue": "response.image_generation_call.completed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4823", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.image_generation_call.completed'.", + "type": { + "$ref": "783" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallCompletedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4824", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4825", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallCompletedEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4826", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the image generation item being processed.", + "type": { + "$id": "4827", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallCompletedEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.image_generation_call.generating": { + "$id": "4828", + "kind": "model", + "name": "ResponseImageGenCallGeneratingEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallGeneratingEvent", + "usage": "Output", + "doc": "Emitted when an image generation tool call is actively generating an image (intermediate state).", + "discriminatorValue": "response.image_generation_call.generating", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4829", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.image_generation_call.generating'.", + "type": { + "$ref": "784" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallGeneratingEvent.type", + "serializationOptions": {} + }, + { + "$id": "4830", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4831", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallGeneratingEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4832", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the image generation item being processed.", + "type": { + "$id": "4833", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallGeneratingEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.image_generation_call.in_progress": { + "$id": "4834", + "kind": "model", + "name": "ResponseImageGenCallInProgressEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallInProgressEvent", + "usage": "Output", + "doc": "Emitted when an image generation tool call is in progress.", + "discriminatorValue": "response.image_generation_call.in_progress", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4835", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.image_generation_call.in_progress'.", + "type": { + "$ref": "785" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallInProgressEvent.type", + "serializationOptions": {} + }, + { + "$id": "4836", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4837", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallInProgressEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4838", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the image generation item being processed.", + "type": { + "$id": "4839", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallInProgressEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.image_generation_call.partial_image": { + "$id": "4840", + "kind": "model", + "name": "ResponseImageGenCallPartialImageEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallPartialImageEvent", + "usage": "Output", + "doc": "Emitted when a partial image is available during image generation streaming.", + "discriminatorValue": "response.image_generation_call.partial_image", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4841", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.image_generation_call.partial_image'.", + "type": { + "$ref": "786" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallPartialImageEvent.type", + "serializationOptions": {} + }, + { + "$id": "4842", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4843", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallPartialImageEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4844", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the image generation item being processed.", + "type": { + "$id": "4845", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallPartialImageEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4846", + "kind": "property", + "name": "partial_image_index", + "serializedName": "partial_image_index", + "doc": "0-based index for the partial image (backend is 1-based, but this is 0-based for the user).", + "type": { + "$id": "4847", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallPartialImageEvent.partial_image_index", + "serializationOptions": {} + }, + { + "$id": "4848", + "kind": "property", + "name": "partial_image_b64", + "serializedName": "partial_image_b64", + "doc": "Base64-encoded partial image data, suitable for rendering as an image.", + "type": { + "$id": "4849", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseImageGenCallPartialImageEvent.partial_image_b64", + "serializationOptions": {} + } + ] + }, + "response.mcp_call.arguments_delta": { + "$id": "4850", + "kind": "model", + "name": "ResponseMCPCallArgumentsDeltaEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDeltaEvent", + "usage": "Output", + "doc": "Emitted when there is a delta (partial update) to the arguments of an MCP tool call.", + "discriminatorValue": "response.mcp_call.arguments_delta", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4851", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.mcp_call.arguments_delta'.", + "type": { + "$ref": "787" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDeltaEvent.type", + "serializationOptions": {} + }, + { + "$id": "4852", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4853", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDeltaEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4854", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the MCP tool call item being processed.", + "type": { + "$id": "4855", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDeltaEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4856", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The partial update to the arguments for the MCP tool call.", + "type": { + "$id": "4857", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDeltaEvent.delta", + "serializationOptions": {} + } + ] + }, + "response.mcp_call.arguments_done": { + "$id": "4858", + "kind": "model", + "name": "ResponseMCPCallArgumentsDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDoneEvent", + "usage": "Output", + "doc": "Emitted when the arguments for an MCP tool call are finalized.", + "discriminatorValue": "response.mcp_call.arguments_done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4859", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.mcp_call.arguments_done'.", + "type": { + "$ref": "788" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4860", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4861", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4862", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the MCP tool call item being processed.", + "type": { + "$id": "4863", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDoneEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4864", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The finalized arguments for the MCP tool call.", + "type": { + "$id": "4865", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallArgumentsDoneEvent.arguments", + "serializationOptions": {} + } + ] + }, + "response.mcp_call.completed": { + "$id": "4866", + "kind": "model", + "name": "ResponseMCPCallCompletedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallCompletedEvent", + "usage": "Output", + "doc": "Emitted when an MCP tool call has completed successfully.", + "discriminatorValue": "response.mcp_call.completed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4867", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.mcp_call.completed'.", + "type": { + "$ref": "789" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallCompletedEvent.type", + "serializationOptions": {} + } + ] + }, + "response.mcp_call.failed": { + "$id": "4868", + "kind": "model", + "name": "ResponseMCPCallFailedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallFailedEvent", + "usage": "Output", + "doc": "Emitted when an MCP tool call has failed.", + "discriminatorValue": "response.mcp_call.failed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4869", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.mcp_call.failed'.", + "type": { + "$ref": "790" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallFailedEvent.type", + "serializationOptions": {} + } + ] + }, + "response.mcp_call.in_progress": { + "$id": "4870", + "kind": "model", + "name": "ResponseMCPCallInProgressEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallInProgressEvent", + "usage": "Output", + "doc": "Emitted when an MCP tool call is in progress.", + "discriminatorValue": "response.mcp_call.in_progress", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4871", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.mcp_call.in_progress'.", + "type": { + "$ref": "791" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallInProgressEvent.type", + "serializationOptions": {} + }, + { + "$id": "4872", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4873", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallInProgressEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4874", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the MCP tool call item being processed.", + "type": { + "$id": "4875", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPCallInProgressEvent.item_id", + "serializationOptions": {} + } + ] + }, + "response.mcp_list_tools.completed": { + "$id": "4876", + "kind": "model", + "name": "ResponseMCPListToolsCompletedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseMCPListToolsCompletedEvent", + "usage": "Output", + "doc": "Emitted when the list of available MCP tools has been successfully retrieved.", + "discriminatorValue": "response.mcp_list_tools.completed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4877", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.mcp_list_tools.completed'.", + "type": { + "$ref": "792" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPListToolsCompletedEvent.type", + "serializationOptions": {} + } + ] + }, + "response.mcp_list_tools.failed": { + "$id": "4878", + "kind": "model", + "name": "ResponseMCPListToolsFailedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseMCPListToolsFailedEvent", + "usage": "Output", + "doc": "Emitted when the attempt to list available MCP tools has failed.", + "discriminatorValue": "response.mcp_list_tools.failed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4879", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.mcp_list_tools.failed'.", + "type": { + "$ref": "793" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPListToolsFailedEvent.type", + "serializationOptions": {} + } + ] + }, + "response.mcp_list_tools.in_progress": { + "$id": "4880", + "kind": "model", + "name": "ResponseMCPListToolsInProgressEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseMCPListToolsInProgressEvent", + "usage": "Output", + "doc": "Emitted when the system is in the process of retrieving the list of available MCP tools.", + "discriminatorValue": "response.mcp_list_tools.in_progress", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4881", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.mcp_list_tools.in_progress'.", + "type": { + "$ref": "794" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseMCPListToolsInProgressEvent.type", + "serializationOptions": {} + } + ] + }, + "response.output_text.annotation.added": { + "$id": "4882", + "kind": "model", + "name": "ResponseOutputTextAnnotationAddedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseOutputTextAnnotationAddedEvent", + "usage": "Output", + "doc": "Emitted when an annotation is added to output text content.", + "discriminatorValue": "response.output_text.annotation.added", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4883", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.output_text_annotation.added'.", + "type": { + "$ref": "773" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputTextAnnotationAddedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4884", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the item to which the annotation is being added.", + "type": { + "$id": "4885", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputTextAnnotationAddedEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4886", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4887", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputTextAnnotationAddedEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4888", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part within the output item.", + "type": { + "$id": "4889", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputTextAnnotationAddedEvent.content_index", + "serializationOptions": {} + }, + { + "$id": "4890", + "kind": "property", + "name": "annotation_index", + "serializedName": "annotation_index", + "doc": "The index of the annotation within the content part.", + "type": { + "$id": "4891", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputTextAnnotationAddedEvent.annotation_index", + "serializationOptions": {} + }, + { + "$id": "4892", + "kind": "property", + "name": "annotation", + "serializedName": "annotation", + "doc": "The annotation object being added. (See annotation schema for details.)", + "type": { + "$id": "4893", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseOutputTextAnnotationAddedEvent.annotation", + "serializationOptions": {} + } + ] + }, + "response.queued": { + "$id": "4894", + "kind": "model", + "name": "ResponseQueuedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseQueuedEvent", + "usage": "Output", + "doc": "Emitted when a response is queued and waiting to be processed.", + "discriminatorValue": "response.queued", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4895", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.queued'.", + "type": { + "$ref": "795" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseQueuedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4896", + "kind": "property", + "name": "response", + "serializedName": "response", + "doc": "The full response object that is queued.", + "type": { + "$ref": "4454" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseQueuedEvent.response", + "serializationOptions": {} + } + ] + }, + "response.reasoning.delta": { + "$id": "4897", + "kind": "model", + "name": "ResponseReasoningDeltaEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDeltaEvent", + "usage": "Output", + "doc": "Emitted when there is a delta (partial update) to the reasoning content.", + "discriminatorValue": "response.reasoning.delta", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4898", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.reasoning.delta'.", + "type": { + "$ref": "796" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDeltaEvent.type", + "serializationOptions": {} + }, + { + "$id": "4899", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the item for which reasoning is being updated.", + "type": { + "$id": "4900", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDeltaEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4901", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4902", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDeltaEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4903", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the reasoning content part within the output item.", + "type": { + "$id": "4904", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDeltaEvent.content_index", + "serializationOptions": {} + }, + { + "$id": "4905", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The partial update to the reasoning content.", + "type": { + "$id": "4906", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDeltaEvent.delta", + "serializationOptions": {} + } + ] + }, + "response.reasoning.done": { + "$id": "4907", + "kind": "model", + "name": "ResponseReasoningDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDoneEvent", + "usage": "Output", + "doc": "Emitted when the reasoning content is finalized for an item.", + "discriminatorValue": "response.reasoning.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4908", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.reasoning.done'.", + "type": { + "$ref": "797" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4909", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the item for which reasoning is finalized.", + "type": { + "$id": "4910", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDoneEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4911", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4912", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4913", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the reasoning content part within the output item.", + "type": { + "$id": "4914", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDoneEvent.content_index", + "serializationOptions": {} + }, + { + "$id": "4915", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The finalized reasoning text.", + "type": { + "$id": "4916", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningDoneEvent.text", + "serializationOptions": {} + } + ] + }, + "response.reasoning_summary.delta": { + "$id": "4917", + "kind": "model", + "name": "ResponseReasoningSummaryDeltaEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDeltaEvent", + "usage": "Output", + "doc": "Emitted when there is a delta (partial update) to the reasoning summary content.", + "discriminatorValue": "response.reasoning_summary.delta", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4918", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.reasoning_summary.delta'.", + "type": { + "$ref": "798" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDeltaEvent.type", + "serializationOptions": {} + }, + { + "$id": "4919", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the item for which the reasoning summary is being updated.", + "type": { + "$id": "4920", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDeltaEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4921", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4922", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDeltaEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4923", + "kind": "property", + "name": "summary_index", + "serializedName": "summary_index", + "doc": "The index of the summary part within the output item.", + "type": { + "$id": "4924", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDeltaEvent.summary_index", + "serializationOptions": {} + }, + { + "$id": "4925", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The partial update to the reasoning summary content.", + "type": { + "$id": "4926", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDeltaEvent.delta", + "serializationOptions": {} + } + ] + }, + "response.reasoning_summary.done": { + "$id": "4927", + "kind": "model", + "name": "ResponseReasoningSummaryDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDoneEvent", + "usage": "Output", + "doc": "Emitted when the reasoning summary content is finalized for an item.", + "discriminatorValue": "response.reasoning_summary.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4928", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always 'response.reasoning_summary.done'.", + "type": { + "$ref": "799" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4929", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The unique identifier of the item for which the reasoning summary is finalized.", + "type": { + "$id": "4930", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDoneEvent.item_id", + "serializationOptions": {} + }, + { + "$id": "4931", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response's output array.", + "type": { + "$id": "4932", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4933", + "kind": "property", + "name": "summary_index", + "serializedName": "summary_index", + "doc": "The index of the summary part within the output item.", + "type": { + "$id": "4934", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDoneEvent.summary_index", + "serializationOptions": {} + }, + { + "$id": "4935", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The finalized reasoning summary text.", + "type": { + "$id": "4936", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseReasoningSummaryDoneEvent.text", + "serializationOptions": {} + } + ] + }, + "response.code_interpreter_call_code.delta": { + "$id": "4937", + "kind": "model", + "name": "ResponseCodeInterpreterCallCodeDeltaEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent", + "usage": "Output", + "doc": "Emitted when a partial code snippet is added by the code interpreter.", + "discriminatorValue": "response.code_interpreter_call_code.delta", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4938", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.code_interpreter_call_code.delta`.", + "type": { + "$ref": "751" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent.type", + "serializationOptions": {} + }, + { + "$id": "4939", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the code interpreter call is in progress.", + "type": { + "$id": "4940", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4941", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The partial code snippet added by the code interpreter.", + "type": { + "$id": "4942", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent.delta", + "serializationOptions": {} + } + ] + }, + "response.code_interpreter_call_code.done": { + "$id": "4943", + "kind": "model", + "name": "ResponseCodeInterpreterCallCodeDoneEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCodeDoneEvent", + "usage": "Output", + "doc": "Emitted when code snippet output is finalized by the code interpreter.", + "discriminatorValue": "response.code_interpreter_call_code.done", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4944", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.code_interpreter_call_code.done`.", + "type": { + "$ref": "752" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCodeDoneEvent.type", + "serializationOptions": {} + }, + { + "$id": "4945", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the code interpreter call is in progress.", + "type": { + "$id": "4946", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCodeDoneEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4947", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "The final code snippet output by the code interpreter.", + "type": { + "$id": "4948", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCodeDoneEvent.code", + "serializationOptions": {} + } + ] + }, + "response.code_interpreter_call.completed": { + "$id": "4949", + "kind": "model", + "name": "ResponseCodeInterpreterCallCompletedEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCompletedEvent", + "usage": "Output", + "doc": "Emitted when the code interpreter call is completed.", + "discriminatorValue": "response.code_interpreter_call.completed", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4950", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.code_interpreter_call.completed`.", + "type": { + "$ref": "753" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCompletedEvent.type", + "serializationOptions": {} + }, + { + "$id": "4951", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the code interpreter call is in progress.", + "type": { + "$id": "4952", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCompletedEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4953", + "kind": "property", + "name": "code_interpreter_call", + "serializedName": "code_interpreter_call", + "type": { + "$ref": "4546" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallCompletedEvent.code_interpreter_call", + "serializationOptions": {} + } + ] + }, + "response.code_interpreter_call.in_progress": { + "$id": "4954", + "kind": "model", + "name": "ResponseCodeInterpreterCallInProgressEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallInProgressEvent", + "usage": "Output", + "doc": "Emitted when a code interpreter call is in progress.", + "discriminatorValue": "response.code_interpreter_call.in_progress", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4955", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.code_interpreter_call.in_progress`.", + "type": { + "$ref": "754" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallInProgressEvent.type", + "serializationOptions": {} + }, + { + "$id": "4956", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the code interpreter call is in progress.", + "type": { + "$id": "4957", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallInProgressEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4958", + "kind": "property", + "name": "code_interpreter_call", + "serializedName": "code_interpreter_call", + "type": { + "$ref": "4546" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallInProgressEvent.code_interpreter_call", + "serializationOptions": {} + } + ] + }, + "response.code_interpreter_call.interpreting": { + "$id": "4959", + "kind": "model", + "name": "ResponseCodeInterpreterCallInterpretingEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallInterpretingEvent", + "usage": "Output", + "doc": "Emitted when the code interpreter is actively interpreting the code snippet.", + "discriminatorValue": "response.code_interpreter_call.interpreting", + "decorators": [], + "baseModel": { + "$ref": "4635" + }, + "properties": [ + { + "$id": "4960", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the event. Always `response.code_interpreter_call.interpreting`.", + "type": { + "$ref": "755" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallInterpretingEvent.type", + "serializationOptions": {} + }, + { + "$id": "4961", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item that the code interpreter call is in progress.", + "type": { + "$id": "4962", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallInterpretingEvent.output_index", + "serializationOptions": {} + }, + { + "$id": "4963", + "kind": "property", + "name": "code_interpreter_call", + "serializedName": "code_interpreter_call", + "type": { + "$ref": "4546" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseCodeInterpreterCallInterpretingEvent.code_interpreter_call", + "serializationOptions": {} + } + ] + } + } + }, + { + "$ref": "4639" + }, + { + "$ref": "4642" + }, + { + "$ref": "4651" + }, + { + "$ref": "4660" + }, + { + "$ref": "4663" + }, + { + "$ref": "4673" + }, + { + "$ref": "4679" + }, + { + "$ref": "4685" + }, + { + "$ref": "4691" + }, + { + "$ref": "4699" + }, + { + "$ref": "4707" + }, + { + "$ref": "4710" + }, + { + "$ref": "4713" + }, + { + "$ref": "4716" + }, + { + "$ref": "4721" + }, + { + "$ref": "4726" + }, + { + "$ref": "4736" + }, + { + "$ref": "4746" + }, + { + "$ref": "4756" + }, + { + "$ref": "4766" + }, + { + "$ref": "4775" + }, + { + "$ref": "4784" + }, + { + "$ref": "4794" + }, + { + "$ref": "4804" + }, + { + "$ref": "4810" + }, + { + "$ref": "4816" + }, + { + "$ref": "4822" + }, + { + "$ref": "4828" + }, + { + "$ref": "4834" + }, + { + "$ref": "4840" + }, + { + "$ref": "4850" + }, + { + "$ref": "4858" + }, + { + "$ref": "4866" + }, + { + "$ref": "4868" + }, + { + "$ref": "4870" + }, + { + "$ref": "4876" + }, + { + "$ref": "4878" + }, + { + "$ref": "4880" + }, + { + "$ref": "4882" + }, + { + "$ref": "4894" + }, + { + "$ref": "4897" + }, + { + "$ref": "4907" + }, + { + "$ref": "4917" + }, + { + "$ref": "4927" + }, + { + "$ref": "4937" + }, + { + "$ref": "4943" + }, + { + "$ref": "4949" + }, + { + "$ref": "4954" + }, + { + "$ref": "4959" + }, + { + "$id": "4964", + "kind": "model", + "name": "ResponseErrorResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseErrorResponse", + "usage": "Json,Exception", + "decorators": [], + "properties": [ + { + "$id": "4965", + "kind": "property", + "name": "error", + "serializedName": "error", + "type": { + "$ref": "4485" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseErrorResponse.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + { + "$id": "4966", + "kind": "model", + "name": "DeleteResponseResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.deleteResponse.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "4967", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "4968", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteResponse.Response.anonymous.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "4969", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1425" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteResponse.Response.anonymous.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "4970", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$ref": "1427" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteResponse.Response.anonymous.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + } + ] + }, + { + "$id": "4971", + "kind": "model", + "name": "ResponseItemList", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ResponseItemList", + "usage": "Output,Json", + "doc": "A list of Response items.", + "decorators": [], + "properties": [ + { + "$id": "4972", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of object returned, must be `list`.", + "type": { + "$ref": "1429" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseItemList.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "4973", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "A list of items used to generate this response.", + "type": { + "$ref": "4494" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseItemList.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "4974", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Whether there are more items available.", + "type": { + "$id": "4975", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseItemList.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + }, + { + "$id": "4976", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "doc": "The ID of the first item in the list.", + "type": { + "$id": "4977", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseItemList.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "4978", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "doc": "The ID of the last item in the list.", + "type": { + "$id": "4979", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ResponseItemList.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + } + ] + }, + { + "$id": "4980", + "kind": "model", + "name": "CreateImageRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "4981", + "kind": "property", + "name": "prompt", + "serializedName": "prompt", + "doc": "A text description of the desired image(s). The maximum length is 32000 characters for `gpt-image-1`, 1000 characters for `dall-e-2` and 4000 characters for `dall-e-3`.", + "type": { + "$id": "4982", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.prompt", + "serializationOptions": { + "json": { + "name": "prompt" + } + } + }, + { + "$id": "4983", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or `gpt-image-1`. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.", + "type": { + "$id": "4984", + "kind": "nullable", + "type": { + "$id": "4985", + "kind": "enum", + "name": "CreateImageRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.model.anonymous", + "valueType": { + "$id": "4986", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "4987", + "kind": "enumvalue", + "name": "dall-e-2", + "value": "dall-e-2", + "valueType": { + "$ref": "4986" + }, + "enumType": { + "$ref": "4985" + }, + "decorators": [] + }, + { + "$id": "4988", + "kind": "enumvalue", + "name": "dall-e-3", + "value": "dall-e-3", + "valueType": { + "$ref": "4986" + }, + "enumType": { + "$ref": "4985" + }, + "decorators": [] + }, + { + "$id": "4989", + "kind": "enumvalue", + "name": "gpt-image-1", + "value": "gpt-image-1", + "valueType": { + "$ref": "4986" + }, + "enumType": { + "$ref": "4985" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "4990", + "kind": "property", + "name": "n", + "serializedName": "n", + "doc": "The number of images to generate. Must be between 1 and 10. For `dall-e-3`, only `n=1` is supported.", + "type": { + "$id": "4991", + "kind": "nullable", + "type": { + "$id": "4992", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.n", + "serializationOptions": { + "json": { + "name": "n" + } + } + }, + { + "$id": "4993", + "kind": "property", + "name": "quality", + "serializedName": "quality", + "doc": "The quality of the image that will be generated.\n\n- `auto` (default value) will automatically select the best quality for the given model.\n- `high`, `medium` and `low` are supported for `gpt-image-1`.\n- `hd` and `standard` are supported for `dall-e-3`.\n- `standard` is the only option for `dall-e-2`.", + "type": { + "$id": "4994", + "kind": "nullable", + "type": { + "$id": "4995", + "kind": "enum", + "name": "CreateImageRequestQuality", + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.quality.anonymous", + "valueType": { + "$id": "4996", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "4997", + "kind": "enumvalue", + "name": "standard", + "value": "standard", + "valueType": { + "$ref": "4996" + }, + "enumType": { + "$ref": "4995" + }, + "decorators": [] + }, + { + "$id": "4998", + "kind": "enumvalue", + "name": "hd", + "value": "hd", + "valueType": { + "$ref": "4996" + }, + "enumType": { + "$ref": "4995" + }, + "decorators": [] + }, + { + "$id": "4999", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "4996" + }, + "enumType": { + "$ref": "4995" + }, + "decorators": [] + }, + { + "$id": "5000", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "4996" + }, + "enumType": { + "$ref": "4995" + }, + "decorators": [] + }, + { + "$id": "5001", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "4996" + }, + "enumType": { + "$ref": "4995" + }, + "decorators": [] + }, + { + "$id": "5002", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "4996" + }, + "enumType": { + "$ref": "4995" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.quality", + "serializationOptions": { + "json": { + "name": "quality" + } + } + }, + { + "$id": "5003", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "doc": "The format in which generated images with `dall-e-2` and `dall-e-3` are returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated. This parameter isn't supported for `gpt-image-1` which will always return base64-encoded images.", + "type": { + "$id": "5004", + "kind": "nullable", + "type": { + "$id": "5005", + "kind": "enum", + "name": "CreateImageRequestResponseFormat", + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.response_format.anonymous", + "valueType": { + "$id": "5006", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5007", + "kind": "enumvalue", + "name": "url", + "value": "url", + "valueType": { + "$ref": "5006" + }, + "enumType": { + "$ref": "5005" + }, + "decorators": [] + }, + { + "$id": "5008", + "kind": "enumvalue", + "name": "b64_json", + "value": "b64_json", + "valueType": { + "$ref": "5006" + }, + "enumType": { + "$ref": "5005" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + }, + { + "$id": "5009", + "kind": "property", + "name": "output_format", + "serializedName": "output_format", + "doc": "The format in which the generated images are returned. This parameter is only supported for `gpt-image-1`. Must be one of `png`, `jpeg`, or `webp`.", + "type": { + "$id": "5010", + "kind": "nullable", + "type": { + "$id": "5011", + "kind": "enum", + "name": "CreateImageRequestOutputFormat", + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.output_format.anonymous", + "valueType": { + "$id": "5012", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5013", + "kind": "enumvalue", + "name": "png", + "value": "png", + "valueType": { + "$ref": "5012" + }, + "enumType": { + "$ref": "5011" + }, + "decorators": [] + }, + { + "$id": "5014", + "kind": "enumvalue", + "name": "jpeg", + "value": "jpeg", + "valueType": { + "$ref": "5012" + }, + "enumType": { + "$ref": "5011" + }, + "decorators": [] + }, + { + "$id": "5015", + "kind": "enumvalue", + "name": "webp", + "value": "webp", + "valueType": { + "$ref": "5012" + }, + "enumType": { + "$ref": "5011" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.output_format", + "serializationOptions": { + "json": { + "name": "output_format" + } + } + }, + { + "$id": "5016", + "kind": "property", + "name": "output_compression", + "serializedName": "output_compression", + "doc": "The compression level (0-100%) for the generated images. This parameter is only supported for `gpt-image-1` with the `webp` or `jpeg` output formats, and defaults to 100.", + "type": { + "$id": "5017", + "kind": "nullable", + "type": { + "$id": "5018", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.output_compression", + "serializationOptions": { + "json": { + "name": "output_compression" + } + } + }, + { + "$id": "5019", + "kind": "property", + "name": "size", + "serializedName": "size", + "doc": "The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for `gpt-image-1`, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`.", + "type": { + "$id": "5020", + "kind": "nullable", + "type": { + "$id": "5021", + "kind": "enum", + "name": "CreateImageRequestSize", + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.size.anonymous", + "valueType": { + "$id": "5022", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5023", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "5022" + }, + "enumType": { + "$ref": "5021" + }, + "decorators": [] + }, + { + "$id": "5024", + "kind": "enumvalue", + "name": "1024x1024", + "value": "1024x1024", + "valueType": { + "$ref": "5022" + }, + "enumType": { + "$ref": "5021" + }, + "decorators": [] + }, + { + "$id": "5025", + "kind": "enumvalue", + "name": "1536x1024", + "value": "1536x1024", + "valueType": { + "$ref": "5022" + }, + "enumType": { + "$ref": "5021" + }, + "decorators": [] + }, + { + "$id": "5026", + "kind": "enumvalue", + "name": "1024x1536", + "value": "1024x1536", + "valueType": { + "$ref": "5022" + }, + "enumType": { + "$ref": "5021" + }, + "decorators": [] + }, + { + "$id": "5027", + "kind": "enumvalue", + "name": "256x256", + "value": "256x256", + "valueType": { + "$ref": "5022" + }, + "enumType": { + "$ref": "5021" + }, + "decorators": [] + }, + { + "$id": "5028", + "kind": "enumvalue", + "name": "512x512", + "value": "512x512", + "valueType": { + "$ref": "5022" + }, + "enumType": { + "$ref": "5021" + }, + "decorators": [] + }, + { + "$id": "5029", + "kind": "enumvalue", + "name": "1792x1024", + "value": "1792x1024", + "valueType": { + "$ref": "5022" + }, + "enumType": { + "$ref": "5021" + }, + "decorators": [] + }, + { + "$id": "5030", + "kind": "enumvalue", + "name": "1024x1792", + "value": "1024x1792", + "valueType": { + "$ref": "5022" + }, + "enumType": { + "$ref": "5021" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.size", + "serializationOptions": { + "json": { + "name": "size" + } + } + }, + { + "$id": "5031", + "kind": "property", + "name": "moderation", + "serializedName": "moderation", + "doc": "Control the content-moderation level for images generated by `gpt-image-1`. Must be either `low` for less restrictive filtering or `auto` (default value).", + "type": { + "$id": "5032", + "kind": "nullable", + "type": { + "$id": "5033", + "kind": "enum", + "name": "CreateImageRequestModeration", + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.moderation.anonymous", + "valueType": { + "$id": "5034", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5035", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "5034" + }, + "enumType": { + "$ref": "5033" + }, + "decorators": [] + }, + { + "$id": "5036", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "5034" + }, + "enumType": { + "$ref": "5033" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.moderation", + "serializationOptions": { + "json": { + "name": "moderation" + } + } + }, + { + "$id": "5037", + "kind": "property", + "name": "background", + "serializedName": "background", + "doc": "Allows to set transparency for the background of the generated image(s).\nThis parameter is only supported for `gpt-image-1`. Must be one of\n`transparent`, `opaque` or `auto` (default value). When `auto` is used, the\nmodel will automatically determine the best background for the image.\n\nIf `transparent`, the output format needs to support transparency, so it\nshould be set to either `png` (default value) or `webp`.", + "type": { + "$id": "5038", + "kind": "nullable", + "type": { + "$id": "5039", + "kind": "enum", + "name": "CreateImageRequestBackground", + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.background.anonymous", + "valueType": { + "$id": "5040", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5041", + "kind": "enumvalue", + "name": "transparent", + "value": "transparent", + "valueType": { + "$ref": "5040" + }, + "enumType": { + "$ref": "5039" + }, + "decorators": [] + }, + { + "$id": "5042", + "kind": "enumvalue", + "name": "opaque", + "value": "opaque", + "valueType": { + "$ref": "5040" + }, + "enumType": { + "$ref": "5039" + }, + "decorators": [] + }, + { + "$id": "5043", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "5040" + }, + "enumType": { + "$ref": "5039" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.background", + "serializationOptions": { + "json": { + "name": "background" + } + } + }, + { + "$id": "5044", + "kind": "property", + "name": "style", + "serializedName": "style", + "doc": "The style of the generated images. This parameter is only supported for `dall-e-3`. Must be one of `vivid` or `natural`. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images.", + "type": { + "$id": "5045", + "kind": "nullable", + "type": { + "$id": "5046", + "kind": "enum", + "name": "CreateImageRequestStyle", + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.style.anonymous", + "valueType": { + "$id": "5047", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5048", + "kind": "enumvalue", + "name": "vivid", + "value": "vivid", + "valueType": { + "$ref": "5047" + }, + "enumType": { + "$ref": "5046" + }, + "decorators": [] + }, + { + "$id": "5049", + "kind": "enumvalue", + "name": "natural", + "value": "natural", + "valueType": { + "$ref": "5047" + }, + "enumType": { + "$ref": "5046" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.style", + "serializationOptions": { + "json": { + "name": "style" + } + } + }, + { + "$id": "5050", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).", + "type": { + "$id": "5051", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageRequest.user", + "serializationOptions": { + "json": { + "name": "user" + } + } + } + ] + }, + { + "$id": "5052", + "kind": "model", + "name": "ImagesResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ImagesResponse", + "usage": "Output,Json", + "doc": "The response from the image generation endpoint.", + "decorators": [], + "properties": [ + { + "$id": "5053", + "kind": "property", + "name": "created", + "serializedName": "created", + "doc": "The Unix timestamp (in seconds) of when the image was created.", + "type": { + "$id": "5054", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5055", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.created", + "serializationOptions": { + "json": { + "name": "created" + } + } + }, + { + "$id": "5056", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The list of generated images.", + "type": { + "$id": "5057", + "kind": "array", + "name": "ArrayImage", + "valueType": { + "$id": "5058", + "kind": "model", + "name": "Image", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Image", + "usage": "Output,Json", + "doc": "Represents the content or the URL of an image generated by the OpenAI API.", + "decorators": [], + "properties": [ + { + "$id": "5059", + "kind": "property", + "name": "b64_json", + "serializedName": "b64_json", + "doc": "The base64-encoded JSON of the generated image. Default value for `gpt-image-1`, and only present if `response_format` is set to `b64_json` for `dall-e-2` and `dall-e-3`.", + "type": { + "$id": "5060", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Image.b64_json", + "serializationOptions": { + "json": { + "name": "b64_json" + } + } + }, + { + "$id": "5061", + "kind": "property", + "name": "url", + "serializedName": "url", + "doc": "When using `dall-e-2` or `dall-e-3`, the URL of the generated image if `response_format` is set to `url` (default value). Unsupported for `gpt-image-1`.", + "type": { + "$id": "5062", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Image.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + }, + { + "$id": "5063", + "kind": "property", + "name": "revised_prompt", + "serializedName": "revised_prompt", + "doc": "For `dall-e-3` only, the revised prompt that was used to generate the image.", + "type": { + "$id": "5064", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Image.revised_prompt", + "serializationOptions": { + "json": { + "name": "revised_prompt" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "5065", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "For `gpt-image-1` only, the token usage information for the image generation.", + "type": { + "$id": "5066", + "kind": "model", + "name": "ImagesResponseUsage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.usage.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5067", + "kind": "property", + "name": "total_tokens", + "serializedName": "total_tokens", + "doc": "The total number of tokens (images and text) used for the image generation.", + "type": { + "$id": "5068", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.usage.anonymous.total_tokens", + "serializationOptions": { + "json": { + "name": "total_tokens" + } + } + }, + { + "$id": "5069", + "kind": "property", + "name": "input_tokens", + "serializedName": "input_tokens", + "doc": "The number of tokens (images and text) in the input prompt.", + "type": { + "$id": "5070", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.usage.anonymous.input_tokens", + "serializationOptions": { + "json": { + "name": "input_tokens" + } + } + }, + { + "$id": "5071", + "kind": "property", + "name": "output_tokens", + "serializedName": "output_tokens", + "doc": "The number of image tokens in the output image.", + "type": { + "$id": "5072", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.usage.anonymous.output_tokens", + "serializationOptions": { + "json": { + "name": "output_tokens" + } + } + }, + { + "$id": "5073", + "kind": "property", + "name": "input_tokens_details", + "serializedName": "input_tokens_details", + "doc": "The input tokens detailed information for the image generation.", + "type": { + "$id": "5074", + "kind": "model", + "name": "ImagesResponseUsageInputTokensDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.usage.input_tokens_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5075", + "kind": "property", + "name": "text_tokens", + "serializedName": "text_tokens", + "doc": "The number of text tokens in the input prompt.", + "type": { + "$id": "5076", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.usage.input_tokens_details.anonymous.text_tokens", + "serializationOptions": { + "json": { + "name": "text_tokens" + } + } + }, + { + "$id": "5077", + "kind": "property", + "name": "image_tokens", + "serializedName": "image_tokens", + "doc": "The number of image tokens in the input prompt.", + "type": { + "$id": "5078", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.usage.input_tokens_details.anonymous.image_tokens", + "serializationOptions": { + "json": { + "name": "image_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.usage.anonymous.input_tokens_details", + "serializationOptions": { + "json": { + "name": "input_tokens_details" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ImagesResponse.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + } + } + ] + }, + { + "$ref": "5058" + }, + { + "$ref": "5066" + }, + { + "$ref": "5074" + }, + { + "$id": "5079", + "kind": "model", + "name": "CreateImageEditRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "5080", + "kind": "property", + "name": "image", + "serializedName": "image", + "doc": "The image(s) to edit. Must be a supported image file or an array of images.\n\nFor `gpt-image-1`, each image should be a `png`, `webp`, or `jpg` file less\nthan 50MB. You can provide up to 16 images.\n\nFor `dall-e-2`, you can only provide one image, and it should be a square\n`png` file less than 4MB.", + "type": { + "$id": "5081", + "kind": "union", + "name": "CreateImageEditRequestImage", + "variantTypes": [ + { + "$id": "5082", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + { + "$id": "5083", + "kind": "array", + "name": "Array26", + "valueType": { + "$id": "5084", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.image", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream", + "application/json" + ], + "name": "image", + "headers": [] + } + } + }, + { + "$id": "5085", + "kind": "property", + "name": "prompt", + "serializedName": "prompt", + "doc": "A text description of the desired image(s). The maximum length is 1000 characters for `dall-e-2`, and 32000 characters for `gpt-image-1`.", + "type": { + "$id": "5086", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.prompt", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "prompt", + "headers": [] + } + } + }, + { + "$id": "5087", + "kind": "property", + "name": "mask", + "serializedName": "mask", + "doc": "An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`.", + "type": { + "$id": "5088", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.mask", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "mask", + "headers": [] + } + } + }, + { + "$id": "5089", + "kind": "property", + "name": "background", + "serializedName": "background", + "doc": "Allows to set transparency for the background of the generated image(s).\nThis parameter is only supported for `gpt-image-1`. Must be one of\n`transparent`, `opaque` or `auto` (default value). When `auto` is used, the\nmodel will automatically determine the best background for the image.\n\nIf `transparent`, the output format needs to support transparency, so it\nshould be set to either `png` (default value) or `webp`.", + "type": { + "$id": "5090", + "kind": "nullable", + "type": { + "$id": "5091", + "kind": "enum", + "name": "CreateImageEditRequestBackground", + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.background.anonymous", + "valueType": { + "$id": "5092", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5093", + "kind": "enumvalue", + "name": "transparent", + "value": "transparent", + "valueType": { + "$ref": "5092" + }, + "enumType": { + "$ref": "5091" + }, + "decorators": [] + }, + { + "$id": "5094", + "kind": "enumvalue", + "name": "opaque", + "value": "opaque", + "valueType": { + "$ref": "5092" + }, + "enumType": { + "$ref": "5091" + }, + "decorators": [] + }, + { + "$id": "5095", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "5092" + }, + "enumType": { + "$ref": "5091" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.background", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "background", + "headers": [] + } + } + }, + { + "$id": "5096", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for image generation. Only `dall-e-2` and `gpt-image-1` are supported. Defaults to `dall-e-2` unless a parameter specific to `gpt-image-1` is used.", + "type": { + "$id": "5097", + "kind": "nullable", + "type": { + "$id": "5098", + "kind": "enum", + "name": "CreateImageEditRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.model.anonymous", + "valueType": { + "$id": "5099", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5100", + "kind": "enumvalue", + "name": "dall-e-2", + "value": "dall-e-2", + "valueType": { + "$ref": "5099" + }, + "enumType": { + "$ref": "5098" + }, + "decorators": [] + }, + { + "$id": "5101", + "kind": "enumvalue", + "name": "gpt-image-1", + "value": "gpt-image-1", + "valueType": { + "$ref": "5099" + }, + "enumType": { + "$ref": "5098" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.model", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "model", + "headers": [] + } + } + }, + { + "$id": "5102", + "kind": "property", + "name": "n", + "serializedName": "n", + "doc": "The number of images to generate. Must be between 1 and 10.", + "type": { + "$id": "5103", + "kind": "nullable", + "type": { + "$id": "5104", + "kind": "int32", + "name": "OneToTenInt", + "crossLanguageDefinitionId": "OpenAI.OneToTenInt", + "baseType": { + "$id": "5105", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.n", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "n", + "headers": [] + } + } + }, + { + "$id": "5106", + "kind": "property", + "name": "size", + "serializedName": "size", + "doc": "The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for `gpt-image-1`, and one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`.", + "type": { + "$id": "5107", + "kind": "nullable", + "type": { + "$id": "5108", + "kind": "enum", + "name": "CreateImageEditRequestSize", + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.size.anonymous", + "valueType": { + "$id": "5109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5110", + "kind": "enumvalue", + "name": "256x256", + "value": "256x256", + "valueType": { + "$ref": "5109" + }, + "enumType": { + "$ref": "5108" + }, + "decorators": [] + }, + { + "$id": "5111", + "kind": "enumvalue", + "name": "512x512", + "value": "512x512", + "valueType": { + "$ref": "5109" + }, + "enumType": { + "$ref": "5108" + }, + "decorators": [] + }, + { + "$id": "5112", + "kind": "enumvalue", + "name": "1024x1024", + "value": "1024x1024", + "valueType": { + "$ref": "5109" + }, + "enumType": { + "$ref": "5108" + }, + "decorators": [] + }, + { + "$id": "5113", + "kind": "enumvalue", + "name": "1536x1024", + "value": "1536x1024", + "valueType": { + "$ref": "5109" + }, + "enumType": { + "$ref": "5108" + }, + "decorators": [] + }, + { + "$id": "5114", + "kind": "enumvalue", + "name": "1024x1536", + "value": "1024x1536", + "valueType": { + "$ref": "5109" + }, + "enumType": { + "$ref": "5108" + }, + "decorators": [] + }, + { + "$id": "5115", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "5109" + }, + "enumType": { + "$ref": "5108" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.size", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "size", + "headers": [] + } + } + }, + { + "$id": "5116", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "doc": "The format in which the generated images are returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated. This parameter is only supported for `dall-e-2`, as `gpt-image-1` will always return base64-encoded images.", + "type": { + "$id": "5117", + "kind": "nullable", + "type": { + "$id": "5118", + "kind": "enum", + "name": "CreateImageEditRequestResponseFormat", + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.response_format.anonymous", + "valueType": { + "$id": "5119", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5120", + "kind": "enumvalue", + "name": "url", + "value": "url", + "valueType": { + "$ref": "5119" + }, + "enumType": { + "$ref": "5118" + }, + "decorators": [] + }, + { + "$id": "5121", + "kind": "enumvalue", + "name": "b64_json", + "value": "b64_json", + "valueType": { + "$ref": "5119" + }, + "enumType": { + "$ref": "5118" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.response_format", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "response_format", + "headers": [] + } + } + }, + { + "$id": "5122", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).", + "type": { + "$id": "5123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.user", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "user", + "headers": [] + } + } + }, + { + "$id": "5124", + "kind": "property", + "name": "quality", + "serializedName": "quality", + "doc": "The quality of the image that will be generated. `high`, `medium` and `low` are only supported for `gpt-image-1`. `dall-e-2` only supports `standard` quality. Defaults to `auto`.", + "type": { + "$id": "5125", + "kind": "nullable", + "type": { + "$id": "5126", + "kind": "enum", + "name": "CreateImageEditRequestQuality", + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.quality.anonymous", + "valueType": { + "$id": "5127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5128", + "kind": "enumvalue", + "name": "standard", + "value": "standard", + "valueType": { + "$ref": "5127" + }, + "enumType": { + "$ref": "5126" + }, + "decorators": [] + }, + { + "$id": "5129", + "kind": "enumvalue", + "name": "low", + "value": "low", + "valueType": { + "$ref": "5127" + }, + "enumType": { + "$ref": "5126" + }, + "decorators": [] + }, + { + "$id": "5130", + "kind": "enumvalue", + "name": "medium", + "value": "medium", + "valueType": { + "$ref": "5127" + }, + "enumType": { + "$ref": "5126" + }, + "decorators": [] + }, + { + "$id": "5131", + "kind": "enumvalue", + "name": "high", + "value": "high", + "valueType": { + "$ref": "5127" + }, + "enumType": { + "$ref": "5126" + }, + "decorators": [] + }, + { + "$id": "5132", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$ref": "5127" + }, + "enumType": { + "$ref": "5126" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageEditRequest.quality", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "quality", + "headers": [] + } + } + } + ] + }, + { + "$id": "5133", + "kind": "model", + "name": "CreateImageVariationRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "5134", + "kind": "property", + "name": "image", + "serializedName": "image", + "doc": "The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.", + "type": { + "$id": "5135", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.image", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "image", + "headers": [] + } + } + }, + { + "$id": "5136", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for image generation. Only `dall-e-2` is supported at this time.", + "type": { + "$id": "5137", + "kind": "nullable", + "type": { + "$id": "5138", + "kind": "enum", + "name": "CreateImageVariationRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.model.anonymous", + "valueType": { + "$id": "5139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5140", + "kind": "enumvalue", + "name": "dall-e-2", + "value": "dall-e-2", + "valueType": { + "$ref": "5139" + }, + "enumType": { + "$ref": "5138" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.model", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "model", + "headers": [] + } + } + }, + { + "$id": "5141", + "kind": "property", + "name": "n", + "serializedName": "n", + "doc": "The number of images to generate. Must be between 1 and 10.", + "type": { + "$id": "5142", + "kind": "nullable", + "type": { + "$id": "5143", + "kind": "int32", + "name": "OneToTenInt", + "crossLanguageDefinitionId": "OpenAI.OneToTenInt", + "baseType": { + "$id": "5144", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.n", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "n", + "headers": [] + } + } + }, + { + "$id": "5145", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "doc": "The format in which the generated images are returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated.", + "type": { + "$id": "5146", + "kind": "nullable", + "type": { + "$id": "5147", + "kind": "enum", + "name": "CreateImageVariationRequestResponseFormat", + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.response_format.anonymous", + "valueType": { + "$id": "5148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5149", + "kind": "enumvalue", + "name": "url", + "value": "url", + "valueType": { + "$ref": "5148" + }, + "enumType": { + "$ref": "5147" + }, + "decorators": [] + }, + { + "$id": "5150", + "kind": "enumvalue", + "name": "b64_json", + "value": "b64_json", + "valueType": { + "$ref": "5148" + }, + "enumType": { + "$ref": "5147" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.response_format", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "response_format", + "headers": [] + } + } + }, + { + "$id": "5151", + "kind": "property", + "name": "size", + "serializedName": "size", + "doc": "The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.", + "type": { + "$id": "5152", + "kind": "nullable", + "type": { + "$id": "5153", + "kind": "enum", + "name": "CreateImageVariationRequestSize", + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.size.anonymous", + "valueType": { + "$id": "5154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5155", + "kind": "enumvalue", + "name": "256x256", + "value": "256x256", + "valueType": { + "$ref": "5154" + }, + "enumType": { + "$ref": "5153" + }, + "decorators": [] + }, + { + "$id": "5156", + "kind": "enumvalue", + "name": "512x512", + "value": "512x512", + "valueType": { + "$ref": "5154" + }, + "enumType": { + "$ref": "5153" + }, + "decorators": [] + }, + { + "$id": "5157", + "kind": "enumvalue", + "name": "1024x1024", + "value": "1024x1024", + "valueType": { + "$ref": "5154" + }, + "enumType": { + "$ref": "5153" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.size", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "application/json" + ], + "name": "size", + "headers": [] + } + } + }, + { + "$id": "5158", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).", + "type": { + "$id": "5159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateImageVariationRequest.user", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "user", + "headers": [] + } + } + } + ] + }, + { + "$id": "5160", + "kind": "model", + "name": "CreateMessageRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateMessageRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5161", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.", + "type": { + "$ref": "800" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateMessageRequest.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "5162", + "kind": "property", + "name": "content", + "serializedName": "content", + "type": { + "$id": "5163", + "kind": "array", + "name": "ArrayMessageContent", + "valueType": { + "$id": "5164", + "kind": "model", + "name": "MessageContent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContent", + "access": "public", + "usage": "Input,Output,Json", + "doc": "Represents a single piece of content in an Assistants API message.", + "decorators": [], + "discriminatorProperty": { + "$id": "5165", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "804" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContent.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "5165" + } + ], + "discriminatedSubtypes": { + "image_file": { + "$id": "5166", + "kind": "model", + "name": "MessageContentImageFileObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentImageFileObject", + "access": "public", + "usage": "Input,Output,Json", + "doc": "References an image [File](/docs/api-reference/files) in the content of a message.", + "discriminatorValue": "image_file", + "decorators": [], + "baseModel": { + "$ref": "5164" + }, + "properties": [ + { + "$id": "5167", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `image_file`.", + "type": { + "$ref": "807" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentImageFileObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5168", + "kind": "property", + "name": "image_file", + "serializedName": "image_file", + "type": { + "$id": "5169", + "kind": "model", + "name": "MessageContentImageFileObjectImageFile", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentImageFileObject.image_file.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5170", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.", + "type": { + "$id": "5171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentImageFileObject.image_file.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "5172", + "kind": "property", + "name": "detail", + "serializedName": "detail", + "doc": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.", + "type": { + "$ref": "810" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentImageFileObject.image_file.anonymous.detail", + "serializationOptions": { + "json": { + "name": "detail" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentImageFileObject.image_file", + "serializationOptions": { + "json": { + "name": "image_file" + } + } + } + ] + }, + "text": { + "$id": "5173", + "kind": "model", + "name": "MessageContentTextObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentTextObject", + "access": "public", + "usage": "Input,Output,Json", + "doc": "The text content that is part of a message.", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "5164" + }, + "properties": [ + { + "$id": "5174", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `text`.", + "type": { + "$ref": "806" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5175", + "kind": "property", + "name": "text", + "serializedName": "text", + "type": { + "$id": "5176", + "kind": "union", + "name": "MessageContentTextObjectText", + "variantTypes": [ + { + "$id": "5177", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$id": "5178", + "kind": "model", + "name": "MessageContentTextObjectText1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentTextObject.text.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5179", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$id": "5180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextObject.text.anonymous.value", + "serializationOptions": { + "json": { + "name": "value" + } + } + }, + { + "$id": "5181", + "kind": "property", + "name": "annotations", + "serializedName": "annotations", + "type": { + "$id": "5182", + "kind": "array", + "name": "ArrayMessageContentTextObjectAnnotation", + "valueType": { + "$id": "5183", + "kind": "model", + "name": "MessageContentTextObjectAnnotation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentTextObjectAnnotation", + "access": "public", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "5184", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The discriminated type identifier for the content item.", + "type": { + "$ref": "815" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextObjectAnnotation.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "5184" + } + ], + "discriminatedSubtypes": { + "file_citation": { + "$id": "5185", + "kind": "model", + "name": "MessageContentTextAnnotationsFileCitationObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFileCitationObject", + "access": "public", + "usage": "Input,Output,Json", + "doc": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.", + "discriminatorValue": "file_citation", + "decorators": [], + "baseModel": { + "$ref": "5183" + }, + "properties": [ + { + "$id": "5186", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `file_citation`.", + "type": { + "$ref": "817" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFileCitationObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5187", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text in the message content that needs to be replaced.", + "type": { + "$id": "5188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFileCitationObject.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "5189", + "kind": "property", + "name": "file_citation", + "serializedName": "file_citation", + "type": { + "$id": "5190", + "kind": "model", + "name": "MessageContentTextAnnotationsFileCitationObjectFileCitation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFileCitationObject.file_citation.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5191", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the specific File the citation is from.", + "type": { + "$id": "5192", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFileCitationObject.file_citation.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFileCitationObject.file_citation", + "serializationOptions": { + "json": { + "name": "file_citation" + } + } + }, + { + "$id": "5193", + "kind": "property", + "name": "start_index", + "serializedName": "start_index", + "type": { + "$id": "5194", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFileCitationObject.start_index", + "serializationOptions": { + "json": { + "name": "start_index" + } + } + }, + { + "$id": "5195", + "kind": "property", + "name": "end_index", + "serializedName": "end_index", + "type": { + "$id": "5196", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFileCitationObject.end_index", + "serializationOptions": { + "json": { + "name": "end_index" + } + } + } + ] + }, + "file_path": { + "$id": "5197", + "kind": "model", + "name": "MessageContentTextAnnotationsFilePathObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFilePathObject", + "access": "public", + "usage": "Input,Output,Json", + "doc": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.", + "discriminatorValue": "file_path", + "decorators": [], + "baseModel": { + "$ref": "5183" + }, + "properties": [ + { + "$id": "5198", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `file_path`.", + "type": { + "$ref": "818" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFilePathObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5199", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text in the message content that needs to be replaced.", + "type": { + "$id": "5200", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFilePathObject.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + }, + { + "$id": "5201", + "kind": "property", + "name": "file_path", + "serializedName": "file_path", + "type": { + "$id": "5202", + "kind": "model", + "name": "MessageContentTextAnnotationsFilePathObjectFilePath", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFilePathObject.file_path.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5203", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file that was generated.", + "type": { + "$id": "5204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFilePathObject.file_path.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFilePathObject.file_path", + "serializationOptions": { + "json": { + "name": "file_path" + } + } + }, + { + "$id": "5205", + "kind": "property", + "name": "start_index", + "serializedName": "start_index", + "type": { + "$id": "5206", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFilePathObject.start_index", + "serializationOptions": { + "json": { + "name": "start_index" + } + } + }, + { + "$id": "5207", + "kind": "property", + "name": "end_index", + "serializedName": "end_index", + "type": { + "$id": "5208", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextAnnotationsFilePathObject.end_index", + "serializationOptions": { + "json": { + "name": "end_index" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextObject.text.anonymous.annotations", + "serializationOptions": { + "json": { + "name": "annotations" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentTextObject.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "refusal": { + "$id": "5209", + "kind": "model", + "name": "MessageContentRefusalObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentRefusalObject", + "access": "public", + "usage": "Input,Output,Json", + "doc": "The refusal content generated by the assistant.", + "discriminatorValue": "refusal", + "decorators": [], + "baseModel": { + "$ref": "5164" + }, + "properties": [ + { + "$id": "5210", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `refusal`.", + "type": { + "$ref": "809" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentRefusalObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5211", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "type": { + "$id": "5212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentRefusalObject.refusal", + "serializationOptions": { + "json": { + "name": "refusal" + } + } + } + ] + }, + "image_url": { + "$id": "5213", + "kind": "model", + "name": "MessageContentImageUrlObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentImageUrlObject", + "access": "public", + "usage": "Input,Output,Json", + "doc": "References an image URL in the content of a message.", + "discriminatorValue": "image_url", + "decorators": [], + "baseModel": { + "$ref": "5164" + }, + "properties": [ + { + "$id": "5214", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the content part.", + "type": { + "$ref": "808" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentImageUrlObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5215", + "kind": "property", + "name": "image_url", + "serializedName": "image_url", + "type": { + "$id": "5216", + "kind": "model", + "name": "MessageContentImageUrlObjectImageUrl", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageContentImageUrlObject.image_url.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5217", + "kind": "property", + "name": "url", + "serializedName": "url", + "doc": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.", + "type": { + "$id": "5218", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentImageUrlObject.image_url.anonymous.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + }, + { + "$id": "5219", + "kind": "property", + "name": "detail", + "serializedName": "detail", + "doc": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`", + "type": { + "$ref": "819" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentImageUrlObject.image_url.anonymous.detail", + "serializationOptions": { + "json": { + "name": "detail" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageContentImageUrlObject.image_url", + "serializationOptions": { + "json": { + "name": "image_url" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateMessageRequest.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "5220", + "kind": "property", + "name": "attachments", + "serializedName": "attachments", + "doc": "A list of files attached to the message, and the tools they should be added to.", + "type": { + "$id": "5221", + "kind": "nullable", + "type": { + "$id": "5222", + "kind": "array", + "name": "Array27", + "valueType": { + "$id": "5223", + "kind": "model", + "name": "CreateMessageRequestAttachment", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateMessageRequest.attachment.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5224", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file to attach to the message.", + "type": { + "$id": "5225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateMessageRequest.attachment.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "5226", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The tools to add this file to.", + "type": { + "$id": "5227", + "kind": "array", + "name": "Array28", + "valueType": { + "$id": "5228", + "kind": "union", + "name": "CreateMessageRequestAttachmentTool", + "variantTypes": [ + { + "$ref": "2123" + }, + { + "$id": "5229", + "kind": "model", + "name": "AssistantToolsFileSearchTypeOnly", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFileSearchTypeOnly", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5230", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool being defined: `file_search`", + "type": { + "$ref": "1431" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantToolsFileSearchTypeOnly.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateMessageRequest.attachment.anonymous.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateMessageRequest.attachments", + "serializationOptions": { + "json": { + "name": "attachments" + } + } + }, + { + "$id": "5231", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateMessageRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "5164" + }, + { + "$ref": "5166" + }, + { + "$ref": "5169" + }, + { + "$ref": "5173" + }, + { + "$ref": "5178" + }, + { + "$ref": "5183" + }, + { + "$ref": "5185" + }, + { + "$ref": "5190" + }, + { + "$ref": "5197" + }, + { + "$ref": "5202" + }, + { + "$ref": "5209" + }, + { + "$ref": "5213" + }, + { + "$ref": "5216" + }, + { + "$ref": "5223" + }, + { + "$ref": "5229" + }, + { + "$id": "5232", + "kind": "model", + "name": "MessageObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageObject", + "usage": "Output,Json", + "doc": "Represents a message within a [thread](/docs/api-reference/threads).", + "decorators": [], + "properties": [ + { + "$id": "5233", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "5234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5235", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `thread.message`.", + "type": { + "$ref": "1433" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5236", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the message was created.", + "type": { + "$id": "5237", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5238", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "5239", + "kind": "property", + "name": "thread_id", + "serializedName": "thread_id", + "doc": "The [thread](/docs/api-reference/threads) ID that this message belongs to.", + "type": { + "$id": "5240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.thread_id", + "serializationOptions": { + "json": { + "name": "thread_id" + } + } + }, + { + "$id": "5241", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the message, which can be either `in_progress`, `incomplete`, or `completed`.", + "type": { + "$ref": "824" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "5242", + "kind": "property", + "name": "incomplete_details", + "serializedName": "incomplete_details", + "doc": "On an incomplete message, details about why the message is incomplete.", + "type": { + "$id": "5243", + "kind": "nullable", + "type": { + "$id": "5244", + "kind": "model", + "name": "MessageObjectIncompleteDetails1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageObject.incomplete_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5245", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "The reason the message is incomplete.", + "type": { + "$ref": "829" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.incomplete_details.anonymous.reason", + "serializationOptions": { + "json": { + "name": "reason" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.incomplete_details", + "serializationOptions": { + "json": { + "name": "incomplete_details" + } + } + }, + { + "$id": "5246", + "kind": "property", + "name": "completed_at", + "serializedName": "completed_at", + "doc": "The Unix timestamp (in seconds) for when the message was completed.", + "type": { + "$id": "5247", + "kind": "nullable", + "type": { + "$id": "5248", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5249", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.completed_at", + "serializationOptions": { + "json": { + "name": "completed_at" + } + } + }, + { + "$id": "5250", + "kind": "property", + "name": "incomplete_at", + "serializedName": "incomplete_at", + "doc": "The Unix timestamp (in seconds) for when the message was marked as incomplete.", + "type": { + "$id": "5251", + "kind": "nullable", + "type": { + "$id": "5252", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5253", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.incomplete_at", + "serializationOptions": { + "json": { + "name": "incomplete_at" + } + } + }, + { + "$id": "5254", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The entity that produced the message. One of `user` or `assistant`.", + "type": { + "$ref": "836" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "5255", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the message in array of text and/or images.", + "type": { + "$ref": "5163" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "5256", + "kind": "property", + "name": "assistant_id", + "serializedName": "assistant_id", + "doc": "If applicable, the ID of the [assistant](/docs/api-reference/assistants) that authored this message.", + "type": { + "$id": "5257", + "kind": "nullable", + "type": { + "$id": "5258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.assistant_id", + "serializationOptions": { + "json": { + "name": "assistant_id" + } + } + }, + { + "$id": "5259", + "kind": "property", + "name": "run_id", + "serializedName": "run_id", + "doc": "The ID of the [run](/docs/api-reference/runs) associated with the creation of this message. Value is `null` when messages are created manually using the create message or create thread endpoints.", + "type": { + "$id": "5260", + "kind": "nullable", + "type": { + "$id": "5261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.run_id", + "serializationOptions": { + "json": { + "name": "run_id" + } + } + }, + { + "$id": "5262", + "kind": "property", + "name": "attachments", + "serializedName": "attachments", + "doc": "A list of files attached to the message, and the tools they were added to.", + "type": { + "$id": "5263", + "kind": "nullable", + "type": { + "$id": "5264", + "kind": "array", + "name": "Array29", + "valueType": { + "$id": "5265", + "kind": "model", + "name": "MessageObjectAttachment", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageObject.attachment.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5266", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file to attach to the message.", + "type": { + "$id": "5267", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.attachment.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "5268", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The tools to add this file to.", + "type": { + "$id": "5269", + "kind": "array", + "name": "Array30", + "valueType": { + "$id": "5270", + "kind": "union", + "name": "MessageObjectAttachmentTool", + "variantTypes": [ + { + "$ref": "2123" + }, + { + "$ref": "5229" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.attachment.anonymous.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.attachments", + "serializationOptions": { + "json": { + "name": "attachments" + } + } + }, + { + "$id": "5271", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageObject.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "5244" + }, + { + "$ref": "5265" + }, + { + "$id": "5272", + "kind": "model", + "name": "ListMessagesResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListMessagesResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5273", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1435" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListMessagesResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5274", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "5275", + "kind": "array", + "name": "ArrayMessageObject", + "valueType": { + "$ref": "5232" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListMessagesResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "5276", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "5277", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListMessagesResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "5278", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "5279", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListMessagesResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "5280", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "5281", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListMessagesResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$id": "5282", + "kind": "model", + "name": "ModifyMessageRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ModifyMessageRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5283", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyMessageRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$id": "5284", + "kind": "model", + "name": "DeleteMessageResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DeleteMessageResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5285", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "5286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteMessageResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5287", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$id": "5288", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteMessageResponse.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + }, + { + "$id": "5289", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1437" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteMessageResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + { + "$id": "5290", + "kind": "model", + "name": "CreateModerationRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5291", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "Input (or inputs) to classify. Can be a single string, an array of strings, or\nan array of multi-modal input objects similar to other models.", + "type": { + "$id": "5292", + "kind": "union", + "name": "CreateModerationRequestInput", + "variantTypes": [ + { + "$id": "5293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$ref": "2155" + }, + { + "$id": "5294", + "kind": "array", + "name": "Array31", + "valueType": { + "$id": "5295", + "kind": "union", + "name": "CreateModerationRequestInput1", + "variantTypes": [ + { + "$id": "5296", + "kind": "model", + "name": "CreateModerationRequestInput2", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.input.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5297", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `image_url`.", + "type": { + "$ref": "1439" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.input.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5298", + "kind": "property", + "name": "image_url", + "serializedName": "image_url", + "doc": "Contains either an image URL or a data URL for a base64 encoded image.", + "type": { + "$id": "5299", + "kind": "model", + "name": "CreateModerationRequestInputImageUrl", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.input.image_url.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5300", + "kind": "property", + "name": "url", + "serializedName": "url", + "doc": "Either a URL of the image or the base64 encoded image data.", + "type": { + "$id": "5301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.input.image_url.anonymous.url", + "serializationOptions": { + "json": { + "name": "url" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.input.anonymous.image_url", + "serializationOptions": { + "json": { + "name": "image_url" + } + } + } + ] + }, + { + "$id": "5302", + "kind": "model", + "name": "CreateModerationRequestInput3", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.input.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5303", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `text`.", + "type": { + "$ref": "1441" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.input.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5304", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "A string of text to classify.", + "type": { + "$id": "5305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.input.anonymous.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "5306", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The content moderation model you would like to use. Learn more in\n[the moderation guide](/docs/guides/moderation), and learn about\navailable models [here](/docs/models#moderation).", + "type": { + "$ref": "840" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + } + ] + }, + { + "$ref": "5296" + }, + { + "$ref": "5299" + }, + { + "$ref": "5302" + }, + { + "$id": "5307", + "kind": "model", + "name": "CreateModerationResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponse", + "usage": "Output,Json", + "doc": "Represents if a given text input is potentially harmful.", + "decorators": [], + "properties": [ + { + "$id": "5308", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The unique identifier for the moderation request.", + "type": { + "$id": "5309", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5310", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model used to generate the moderation results.", + "type": { + "$id": "5311", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponse.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "5312", + "kind": "property", + "name": "results", + "serializedName": "results", + "doc": "A list of moderation objects.", + "type": { + "$id": "5313", + "kind": "array", + "name": "ArrayCreateModerationResponseResult", + "valueType": { + "$id": "5314", + "kind": "model", + "name": "CreateModerationResponseResult", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5315", + "kind": "property", + "name": "flagged", + "serializedName": "flagged", + "doc": "Whether any of the below categories are flagged.", + "type": { + "$id": "5316", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.flagged", + "serializationOptions": { + "json": { + "name": "flagged" + } + } + }, + { + "$id": "5317", + "kind": "property", + "name": "categories", + "serializedName": "categories", + "doc": "A list of the categories, and whether they are flagged or not.", + "type": { + "$id": "5318", + "kind": "model", + "name": "CreateModerationResponseResultCategories", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5319", + "kind": "property", + "name": "hate", + "serializedName": "hate", + "doc": "Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. Hateful content aimed at non-protected groups (e.g., chess players) is harassment.", + "type": { + "$id": "5320", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.hate", + "serializationOptions": { + "json": { + "name": "hate" + } + } + }, + { + "$id": "5321", + "kind": "property", + "name": "hate/threatening", + "serializedName": "hate/threatening", + "doc": "Hateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.", + "type": { + "$id": "5322", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.hate/threatening", + "serializationOptions": { + "json": { + "name": "hate/threatening" + } + } + }, + { + "$id": "5323", + "kind": "property", + "name": "harassment", + "serializedName": "harassment", + "doc": "Content that expresses, incites, or promotes harassing language towards any target.", + "type": { + "$id": "5324", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.harassment", + "serializationOptions": { + "json": { + "name": "harassment" + } + } + }, + { + "$id": "5325", + "kind": "property", + "name": "harassment/threatening", + "serializedName": "harassment/threatening", + "doc": "Harassment content that also includes violence or serious harm towards any target.", + "type": { + "$id": "5326", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.harassment/threatening", + "serializationOptions": { + "json": { + "name": "harassment/threatening" + } + } + }, + { + "$id": "5327", + "kind": "property", + "name": "illicit", + "serializedName": "illicit", + "doc": "Content that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. For example, \"how to shoplift\" would fit this category.", + "type": { + "$id": "5328", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.illicit", + "serializationOptions": { + "json": { + "name": "illicit" + } + } + }, + { + "$id": "5329", + "kind": "property", + "name": "illicit/violent", + "serializedName": "illicit/violent", + "doc": "Content that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon.", + "type": { + "$id": "5330", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.illicit/violent", + "serializationOptions": { + "json": { + "name": "illicit/violent" + } + } + }, + { + "$id": "5331", + "kind": "property", + "name": "self-harm", + "serializedName": "self-harm", + "doc": "Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.", + "type": { + "$id": "5332", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.self-harm", + "serializationOptions": { + "json": { + "name": "self-harm" + } + } + }, + { + "$id": "5333", + "kind": "property", + "name": "self-harm/intent", + "serializedName": "self-harm/intent", + "doc": "Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.", + "type": { + "$id": "5334", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.self-harm/intent", + "serializationOptions": { + "json": { + "name": "self-harm/intent" + } + } + }, + { + "$id": "5335", + "kind": "property", + "name": "self-harm/instructions", + "serializedName": "self-harm/instructions", + "doc": "Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts.", + "type": { + "$id": "5336", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.self-harm/instructions", + "serializationOptions": { + "json": { + "name": "self-harm/instructions" + } + } + }, + { + "$id": "5337", + "kind": "property", + "name": "sexual", + "serializedName": "sexual", + "doc": "Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness).", + "type": { + "$id": "5338", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.sexual", + "serializationOptions": { + "json": { + "name": "sexual" + } + } + }, + { + "$id": "5339", + "kind": "property", + "name": "sexual/minors", + "serializedName": "sexual/minors", + "doc": "Sexual content that includes an individual who is under 18 years old.", + "type": { + "$id": "5340", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.sexual/minors", + "serializationOptions": { + "json": { + "name": "sexual/minors" + } + } + }, + { + "$id": "5341", + "kind": "property", + "name": "violence", + "serializedName": "violence", + "doc": "Content that depicts death, violence, or physical injury.", + "type": { + "$id": "5342", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.violence", + "serializationOptions": { + "json": { + "name": "violence" + } + } + }, + { + "$id": "5343", + "kind": "property", + "name": "violence/graphic", + "serializedName": "violence/graphic", + "doc": "Content that depicts death, violence, or physical injury in graphic detail.", + "type": { + "$id": "5344", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories.anonymous.violence/graphic", + "serializationOptions": { + "json": { + "name": "violence/graphic" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.categories", + "serializationOptions": { + "json": { + "name": "categories" + } + } + }, + { + "$id": "5345", + "kind": "property", + "name": "category_scores", + "serializedName": "category_scores", + "doc": "A list of the categories along with their scores as predicted by model.", + "type": { + "$id": "5346", + "kind": "model", + "name": "CreateModerationResponseResultCategoryScores", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5347", + "kind": "property", + "name": "hate", + "serializedName": "hate", + "doc": "The score for the category 'hate'.", + "type": { + "$id": "5348", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.hate", + "serializationOptions": { + "json": { + "name": "hate" + } + } + }, + { + "$id": "5349", + "kind": "property", + "name": "hate/threatening", + "serializedName": "hate/threatening", + "doc": "The score for the category 'hate/threatening'.", + "type": { + "$id": "5350", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.hate/threatening", + "serializationOptions": { + "json": { + "name": "hate/threatening" + } + } + }, + { + "$id": "5351", + "kind": "property", + "name": "harassment", + "serializedName": "harassment", + "doc": "The score for the category 'harassment'.", + "type": { + "$id": "5352", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.harassment", + "serializationOptions": { + "json": { + "name": "harassment" + } + } + }, + { + "$id": "5353", + "kind": "property", + "name": "harassment/threatening", + "serializedName": "harassment/threatening", + "doc": "The score for the category 'harassment/threatening'.", + "type": { + "$id": "5354", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.harassment/threatening", + "serializationOptions": { + "json": { + "name": "harassment/threatening" + } + } + }, + { + "$id": "5355", + "kind": "property", + "name": "illicit", + "serializedName": "illicit", + "doc": "The score for the category 'illicit'.", + "type": { + "$id": "5356", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.illicit", + "serializationOptions": { + "json": { + "name": "illicit" + } + } + }, + { + "$id": "5357", + "kind": "property", + "name": "illicit/violent", + "serializedName": "illicit/violent", + "doc": "The score for the category 'illicit/violent'.", + "type": { + "$id": "5358", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.illicit/violent", + "serializationOptions": { + "json": { + "name": "illicit/violent" + } + } + }, + { + "$id": "5359", + "kind": "property", + "name": "self-harm", + "serializedName": "self-harm", + "doc": "The score for the category 'self-harm'.", + "type": { + "$id": "5360", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.self-harm", + "serializationOptions": { + "json": { + "name": "self-harm" + } + } + }, + { + "$id": "5361", + "kind": "property", + "name": "self-harm/intent", + "serializedName": "self-harm/intent", + "doc": "The score for the category 'self-harm/intent'.", + "type": { + "$id": "5362", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.self-harm/intent", + "serializationOptions": { + "json": { + "name": "self-harm/intent" + } + } + }, + { + "$id": "5363", + "kind": "property", + "name": "self-harm/instructions", + "serializedName": "self-harm/instructions", + "doc": "The score for the category 'self-harm/instructions'.", + "type": { + "$id": "5364", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.self-harm/instructions", + "serializationOptions": { + "json": { + "name": "self-harm/instructions" + } + } + }, + { + "$id": "5365", + "kind": "property", + "name": "sexual", + "serializedName": "sexual", + "doc": "The score for the category 'sexual'.", + "type": { + "$id": "5366", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.sexual", + "serializationOptions": { + "json": { + "name": "sexual" + } + } + }, + { + "$id": "5367", + "kind": "property", + "name": "sexual/minors", + "serializedName": "sexual/minors", + "doc": "The score for the category 'sexual/minors'.", + "type": { + "$id": "5368", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.sexual/minors", + "serializationOptions": { + "json": { + "name": "sexual/minors" + } + } + }, + { + "$id": "5369", + "kind": "property", + "name": "violence", + "serializedName": "violence", + "doc": "The score for the category 'violence'.", + "type": { + "$id": "5370", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.violence", + "serializationOptions": { + "json": { + "name": "violence" + } + } + }, + { + "$id": "5371", + "kind": "property", + "name": "violence/graphic", + "serializedName": "violence/graphic", + "doc": "The score for the category 'violence/graphic'.", + "type": { + "$id": "5372", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores.anonymous.violence/graphic", + "serializationOptions": { + "json": { + "name": "violence/graphic" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_scores", + "serializationOptions": { + "json": { + "name": "category_scores" + } + } + }, + { + "$id": "5373", + "kind": "property", + "name": "category_applied_input_types", + "serializedName": "category_applied_input_types", + "doc": "A list of the categories along with the input type(s) that the score applies to.", + "type": { + "$id": "5374", + "kind": "model", + "name": "CreateModerationResponseResultCategoryAppliedInputTypes", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5375", + "kind": "property", + "name": "hate", + "serializedName": "hate", + "doc": "The applied input type(s) for the category 'hate'.", + "type": { + "$id": "5376", + "kind": "array", + "name": "Array32", + "valueType": { + "$id": "5377", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "847" + }, + "enumType": { + "$ref": "846" + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.hate", + "serializationOptions": { + "json": { + "name": "hate" + } + } + }, + { + "$id": "5378", + "kind": "property", + "name": "hate/threatening", + "serializedName": "hate/threatening", + "doc": "The applied input type(s) for the category 'hate/threatening'.", + "type": { + "$ref": "5376" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.hate/threatening", + "serializationOptions": { + "json": { + "name": "hate/threatening" + } + } + }, + { + "$id": "5379", + "kind": "property", + "name": "harassment", + "serializedName": "harassment", + "doc": "The applied input type(s) for the category 'harassment'.", + "type": { + "$ref": "5376" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.harassment", + "serializationOptions": { + "json": { + "name": "harassment" + } + } + }, + { + "$id": "5380", + "kind": "property", + "name": "harassment/threatening", + "serializedName": "harassment/threatening", + "doc": "The applied input type(s) for the category 'harassment/threatening'.", + "type": { + "$ref": "5376" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.harassment/threatening", + "serializationOptions": { + "json": { + "name": "harassment/threatening" + } + } + }, + { + "$id": "5381", + "kind": "property", + "name": "illicit", + "serializedName": "illicit", + "doc": "The applied input type(s) for the category 'illicit'.", + "type": { + "$ref": "5376" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.illicit", + "serializationOptions": { + "json": { + "name": "illicit" + } + } + }, + { + "$id": "5382", + "kind": "property", + "name": "illicit/violent", + "serializedName": "illicit/violent", + "doc": "The applied input type(s) for the category 'illicit/violent'.", + "type": { + "$ref": "5376" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.illicit/violent", + "serializationOptions": { + "json": { + "name": "illicit/violent" + } + } + }, + { + "$id": "5383", + "kind": "property", + "name": "self-harm", + "serializedName": "self-harm", + "doc": "The applied input type(s) for the category 'self-harm'.", + "type": { + "$id": "5384", + "kind": "array", + "name": "Array33", + "valueType": { + "$id": "5385", + "kind": "union", + "name": "CreateModerationResponseResultCategoryAppliedInputTypesSelfHarm", + "variantTypes": [ + { + "$ref": "5377" + }, + { + "$ref": "849" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.self-harm", + "serializationOptions": { + "json": { + "name": "self-harm" + } + } + }, + { + "$id": "5386", + "kind": "property", + "name": "self-harm/intent", + "serializedName": "self-harm/intent", + "doc": "The applied input type(s) for the category 'self-harm/intent'.", + "type": { + "$id": "5387", + "kind": "array", + "name": "Array34", + "valueType": { + "$id": "5388", + "kind": "union", + "name": "CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntent", + "variantTypes": [ + { + "$ref": "5377" + }, + { + "$ref": "849" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.self-harm/intent", + "serializationOptions": { + "json": { + "name": "self-harm/intent" + } + } + }, + { + "$id": "5389", + "kind": "property", + "name": "self-harm/instructions", + "serializedName": "self-harm/instructions", + "doc": "The applied input type(s) for the category 'self-harm/instructions'.", + "type": { + "$id": "5390", + "kind": "array", + "name": "Array35", + "valueType": { + "$id": "5391", + "kind": "union", + "name": "CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction", + "variantTypes": [ + { + "$ref": "5377" + }, + { + "$ref": "849" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.self-harm/instructions", + "serializationOptions": { + "json": { + "name": "self-harm/instructions" + } + } + }, + { + "$id": "5392", + "kind": "property", + "name": "sexual", + "serializedName": "sexual", + "doc": "The applied input type(s) for the category 'sexual'.", + "type": { + "$id": "5393", + "kind": "array", + "name": "Array36", + "valueType": { + "$id": "5394", + "kind": "union", + "name": "CreateModerationResponseResultCategoryAppliedInputTypesSexual", + "variantTypes": [ + { + "$ref": "5377" + }, + { + "$ref": "849" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.sexual", + "serializationOptions": { + "json": { + "name": "sexual" + } + } + }, + { + "$id": "5395", + "kind": "property", + "name": "sexual/minors", + "serializedName": "sexual/minors", + "doc": "The applied input type(s) for the category 'sexual/minors'.", + "type": { + "$ref": "5376" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.sexual/minors", + "serializationOptions": { + "json": { + "name": "sexual/minors" + } + } + }, + { + "$id": "5396", + "kind": "property", + "name": "violence", + "serializedName": "violence", + "doc": "The applied input type(s) for the category 'violence'.", + "type": { + "$id": "5397", + "kind": "array", + "name": "Array37", + "valueType": { + "$id": "5398", + "kind": "union", + "name": "CreateModerationResponseResultCategoryAppliedInputTypesViolence", + "variantTypes": [ + { + "$ref": "5377" + }, + { + "$ref": "849" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.violence", + "serializationOptions": { + "json": { + "name": "violence" + } + } + }, + { + "$id": "5399", + "kind": "property", + "name": "violence/graphic", + "serializedName": "violence/graphic", + "doc": "The applied input type(s) for the category 'violence/graphic'.", + "type": { + "$id": "5400", + "kind": "array", + "name": "Array38", + "valueType": { + "$id": "5401", + "kind": "union", + "name": "CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphic", + "variantTypes": [ + { + "$ref": "5377" + }, + { + "$ref": "849" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types.anonymous.violence/graphic", + "serializationOptions": { + "json": { + "name": "violence/graphic" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponseResult.category_applied_input_types", + "serializationOptions": { + "json": { + "name": "category_applied_input_types" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateModerationResponse.results", + "serializationOptions": { + "json": { + "name": "results" + } + } + } + ] + }, + { + "$ref": "5314" + }, + { + "$ref": "5318" + }, + { + "$ref": "5346" + }, + { + "$ref": "5374" + }, + { + "$id": "5402", + "kind": "model", + "name": "CreateThreadAndRunRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5403", + "kind": "property", + "name": "assistant_id", + "serializedName": "assistant_id", + "doc": "The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run.", + "type": { + "$id": "5404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.assistant_id", + "serializationOptions": { + "json": { + "name": "assistant_id" + } + } + }, + { + "$id": "5405", + "kind": "property", + "name": "thread", + "serializedName": "thread", + "type": { + "$id": "5406", + "kind": "model", + "name": "CreateThreadRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequest", + "usage": "Input,Json", + "doc": "Options to create a new thread. If no thread is provided when running a\nrequest, an empty thread will be created.", + "decorators": [], + "properties": [ + { + "$id": "5407", + "kind": "property", + "name": "messages", + "serializedName": "messages", + "doc": "A list of [messages](/docs/api-reference/messages) to start the thread with.", + "type": { + "$id": "5408", + "kind": "array", + "name": "ArrayCreateMessageRequest", + "valueType": { + "$ref": "5160" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequest.messages", + "serializationOptions": { + "json": { + "name": "messages" + } + } + }, + { + "$id": "5409", + "kind": "property", + "name": "tool_resources", + "serializedName": "tool_resources", + "doc": "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$id": "5410", + "kind": "nullable", + "type": { + "$id": "5411", + "kind": "model", + "name": "CreateThreadRequestToolResources1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequest.tool_resources.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5412", + "kind": "property", + "name": "code_interpreter", + "serializedName": "code_interpreter", + "type": { + "$id": "5413", + "kind": "model", + "name": "CreateThreadRequestToolResourcesCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequest.tool_resources.code_interpreter.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5414", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequest.tool_resources.code_interpreter.anonymous.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequest.tool_resources.anonymous.code_interpreter", + "serializationOptions": { + "json": { + "name": "code_interpreter" + } + } + }, + { + "$id": "5415", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "type": { + "$ref": "2235" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequest.tool_resources.anonymous.file_search", + "serializationOptions": { + "json": { + "name": "file_search" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequest.tool_resources", + "serializationOptions": { + "json": { + "name": "tool_resources" + } + } + }, + { + "$id": "5416", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.thread", + "serializationOptions": { + "json": { + "name": "thread" + } + } + }, + { + "$id": "5417", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.", + "type": { + "$id": "5418", + "kind": "nullable", + "type": { + "$id": "5419", + "kind": "enum", + "name": "CreateThreadAndRunRequestModel", + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.model.anonymous", + "valueType": { + "$id": "5420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "5421", + "kind": "enumvalue", + "name": "gpt-4.1", + "value": "gpt-4.1", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5422", + "kind": "enumvalue", + "name": "gpt-4.1-mini", + "value": "gpt-4.1-mini", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5423", + "kind": "enumvalue", + "name": "gpt-4.1-nano", + "value": "gpt-4.1-nano", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5424", + "kind": "enumvalue", + "name": "gpt-4.1-2025-04-14", + "value": "gpt-4.1-2025-04-14", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5425", + "kind": "enumvalue", + "name": "gpt-4.1-mini-2025-04-14", + "value": "gpt-4.1-mini-2025-04-14", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5426", + "kind": "enumvalue", + "name": "gpt-4.1-nano-2025-04-14", + "value": "gpt-4.1-nano-2025-04-14", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5427", + "kind": "enumvalue", + "name": "gpt-4o", + "value": "gpt-4o", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5428", + "kind": "enumvalue", + "name": "gpt-4o-2024-11-20", + "value": "gpt-4o-2024-11-20", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5429", + "kind": "enumvalue", + "name": "gpt-4o-2024-08-06", + "value": "gpt-4o-2024-08-06", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5430", + "kind": "enumvalue", + "name": "gpt-4o-2024-05-13", + "value": "gpt-4o-2024-05-13", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5431", + "kind": "enumvalue", + "name": "gpt-4o-mini", + "value": "gpt-4o-mini", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5432", + "kind": "enumvalue", + "name": "gpt-4o-mini-2024-07-18", + "value": "gpt-4o-mini-2024-07-18", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5433", + "kind": "enumvalue", + "name": "gpt-4.5-preview", + "value": "gpt-4.5-preview", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5434", + "kind": "enumvalue", + "name": "gpt-4.5-preview-2025-02-27", + "value": "gpt-4.5-preview-2025-02-27", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5435", + "kind": "enumvalue", + "name": "gpt-4-turbo", + "value": "gpt-4-turbo", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5436", + "kind": "enumvalue", + "name": "gpt-4-turbo-2024-04-09", + "value": "gpt-4-turbo-2024-04-09", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5437", + "kind": "enumvalue", + "name": "gpt-4-0125-preview", + "value": "gpt-4-0125-preview", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5438", + "kind": "enumvalue", + "name": "gpt-4-turbo-preview", + "value": "gpt-4-turbo-preview", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5439", + "kind": "enumvalue", + "name": "gpt-4-1106-preview", + "value": "gpt-4-1106-preview", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5440", + "kind": "enumvalue", + "name": "gpt-4-vision-preview", + "value": "gpt-4-vision-preview", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5441", + "kind": "enumvalue", + "name": "gpt-4", + "value": "gpt-4", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5442", + "kind": "enumvalue", + "name": "gpt-4-0314", + "value": "gpt-4-0314", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5443", + "kind": "enumvalue", + "name": "gpt-4-0613", + "value": "gpt-4-0613", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5444", + "kind": "enumvalue", + "name": "gpt-4-32k", + "value": "gpt-4-32k", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5445", + "kind": "enumvalue", + "name": "gpt-4-32k-0314", + "value": "gpt-4-32k-0314", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5446", + "kind": "enumvalue", + "name": "gpt-4-32k-0613", + "value": "gpt-4-32k-0613", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5447", + "kind": "enumvalue", + "name": "gpt-3.5-turbo", + "value": "gpt-3.5-turbo", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5448", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-16k", + "value": "gpt-3.5-turbo-16k", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5449", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0613", + "value": "gpt-3.5-turbo-0613", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5450", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-1106", + "value": "gpt-3.5-turbo-1106", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5451", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-0125", + "value": "gpt-3.5-turbo-0125", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + }, + { + "$id": "5452", + "kind": "enumvalue", + "name": "gpt-3.5-turbo-16k-0613", + "value": "gpt-3.5-turbo-16k-0613", + "valueType": { + "$ref": "5420" + }, + "enumType": { + "$ref": "5419" + }, + "decorators": [] + } + ], + "namespace": "", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "5453", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis.", + "type": { + "$id": "5454", + "kind": "nullable", + "type": { + "$id": "5455", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "5456", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.", + "type": { + "$id": "5457", + "kind": "nullable", + "type": { + "$ref": "2120" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "5458", + "kind": "property", + "name": "tool_resources", + "serializedName": "tool_resources", + "doc": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$id": "5459", + "kind": "nullable", + "type": { + "$id": "5460", + "kind": "model", + "name": "CreateThreadAndRunRequestToolResources1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.tool_resources.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5461", + "kind": "property", + "name": "code_interpreter", + "serializedName": "code_interpreter", + "type": { + "$id": "5462", + "kind": "model", + "name": "CreateThreadAndRunRequestToolResourcesCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.tool_resources.code_interpreter.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5463", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.tool_resources.code_interpreter.anonymous.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.tool_resources.anonymous.code_interpreter", + "serializationOptions": { + "json": { + "name": "code_interpreter" + } + } + }, + { + "$id": "5464", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "type": { + "$ref": "2158" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.tool_resources.anonymous.file_search", + "serializationOptions": { + "json": { + "name": "file_search" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.tool_resources", + "serializationOptions": { + "json": { + "name": "tool_resources" + } + } + }, + { + "$id": "5465", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "5466", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "5467", + "kind": "nullable", + "type": { + "$id": "5468", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "5469", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "5470", + "kind": "nullable", + "type": { + "$id": "5471", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "5472", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.", + "type": { + "$id": "5473", + "kind": "nullable", + "type": { + "$id": "5474", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.stream", + "serializationOptions": { + "json": { + "name": "stream" + } + } + }, + { + "$id": "5475", + "kind": "property", + "name": "max_prompt_tokens", + "serializedName": "max_prompt_tokens", + "doc": "The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.", + "type": { + "$id": "5476", + "kind": "nullable", + "type": { + "$id": "5477", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.max_prompt_tokens", + "serializationOptions": { + "json": { + "name": "max_prompt_tokens" + } + } + }, + { + "$id": "5478", + "kind": "property", + "name": "max_completion_tokens", + "serializedName": "max_completion_tokens", + "doc": "The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.", + "type": { + "$id": "5479", + "kind": "nullable", + "type": { + "$id": "5480", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.max_completion_tokens", + "serializationOptions": { + "json": { + "name": "max_completion_tokens" + } + } + }, + { + "$id": "5481", + "kind": "property", + "name": "truncation_strategy", + "serializedName": "truncation_strategy", + "type": { + "$id": "5482", + "kind": "nullable", + "type": { + "$id": "5483", + "kind": "model", + "name": "TruncationObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.TruncationObject", + "usage": "Input,Output,Json", + "doc": "Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run.", + "decorators": [], + "properties": [ + { + "$id": "5484", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`.", + "type": { + "$ref": "850" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TruncationObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5485", + "kind": "property", + "name": "last_messages", + "serializedName": "last_messages", + "doc": "The number of most recent messages from the thread when constructing the context for the run.", + "type": { + "$id": "5486", + "kind": "nullable", + "type": { + "$id": "5487", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.TruncationObject.last_messages", + "serializationOptions": { + "json": { + "name": "last_messages" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.truncation_strategy", + "serializationOptions": { + "json": { + "name": "truncation_strategy" + } + } + }, + { + "$id": "5488", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "type": { + "$id": "5489", + "kind": "nullable", + "type": { + "$id": "5490", + "kind": "union", + "name": "AssistantsApiToolChoiceOption", + "variantTypes": [ + { + "$ref": "854" + }, + { + "$id": "5491", + "kind": "model", + "name": "AssistantsNamedToolChoice", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantsNamedToolChoice", + "usage": "Input,Output,Json", + "doc": "Specifies a tool the model should use. Use to force the model to call a specific tool.", + "decorators": [], + "properties": [ + { + "$id": "5492", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the tool. If type is `function`, the function name must be set", + "type": { + "$ref": "859" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantsNamedToolChoice.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5493", + "kind": "property", + "name": "function", + "serializedName": "function", + "type": { + "$id": "5494", + "kind": "model", + "name": "AssistantsNamedToolChoiceFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AssistantsNamedToolChoice.function.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5495", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to call.", + "type": { + "$id": "5496", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantsNamedToolChoice.function.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AssistantsNamedToolChoice.function", + "serializationOptions": { + "json": { + "name": "function" + } + } + } + ] + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "5497", + "kind": "property", + "name": "parallel_tool_calls", + "serializedName": "parallel_tool_calls", + "type": { + "$id": "5498", + "kind": "boolean", + "name": "ParallelToolCalls", + "crossLanguageDefinitionId": "OpenAI.ParallelToolCalls", + "baseType": { + "$id": "5499", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.parallel_tool_calls", + "serializationOptions": { + "json": { + "name": "parallel_tool_calls" + } + } + }, + { + "$id": "5500", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "type": { + "$id": "5501", + "kind": "nullable", + "type": { + "$ref": "2173" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateThreadAndRunRequest.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + } + ] + }, + { + "$ref": "5406" + }, + { + "$ref": "5411" + }, + { + "$ref": "5413" + }, + { + "$ref": "5460" + }, + { + "$ref": "5462" + }, + { + "$ref": "5483" + }, + { + "$ref": "5491" + }, + { + "$ref": "5494" + }, + { + "$id": "5502", + "kind": "model", + "name": "RunObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunObject", + "usage": "Output,Json", + "doc": "Represents an execution run on a [thread](/docs/api-reference/threads).", + "decorators": [], + "properties": [ + { + "$id": "5503", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "5504", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5505", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `thread.run`.", + "type": { + "$ref": "1443" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5506", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the run was created.", + "type": { + "$id": "5507", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5508", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "5509", + "kind": "property", + "name": "thread_id", + "serializedName": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run.", + "type": { + "$id": "5510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.thread_id", + "serializationOptions": { + "json": { + "name": "thread_id" + } + } + }, + { + "$id": "5511", + "kind": "property", + "name": "assistant_id", + "serializedName": "assistant_id", + "doc": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.", + "type": { + "$id": "5512", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.assistant_id", + "serializationOptions": { + "json": { + "name": "assistant_id" + } + } + }, + { + "$id": "5513", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.", + "type": { + "$ref": "864" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "5514", + "kind": "property", + "name": "required_action", + "serializedName": "required_action", + "doc": "Details on the action required to continue the run. Will be `null` if no action is required.", + "type": { + "$id": "5515", + "kind": "nullable", + "type": { + "$id": "5516", + "kind": "model", + "name": "RunObjectRequiredAction1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunObject.required_action.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5517", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "For now, this is always `submit_tool_outputs`.", + "type": { + "$ref": "1445" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.required_action.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5518", + "kind": "property", + "name": "submit_tool_outputs", + "serializedName": "submit_tool_outputs", + "doc": "Details on the tool outputs needed for this run to continue.", + "type": { + "$id": "5519", + "kind": "model", + "name": "RunObjectRequiredActionSubmitToolOutputs", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunObject.required_action.submit_tool_outputs.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5520", + "kind": "property", + "name": "tool_calls", + "serializedName": "tool_calls", + "doc": "A list of the relevant tool calls.", + "type": { + "$id": "5521", + "kind": "array", + "name": "ArrayRunToolCallObject", + "valueType": { + "$id": "5522", + "kind": "model", + "name": "RunToolCallObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunToolCallObject", + "usage": "Output,Json", + "doc": "Tool call objects", + "decorators": [], + "properties": [ + { + "$id": "5523", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint.", + "type": { + "$id": "5524", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunToolCallObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5525", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool call the output is required for. For now, this is always `function`.", + "type": { + "$ref": "1447" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunToolCallObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5526", + "kind": "property", + "name": "function", + "serializedName": "function", + "doc": "The function definition.", + "type": { + "$id": "5527", + "kind": "model", + "name": "RunToolCallObjectFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunToolCallObject.function.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5528", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function.", + "type": { + "$id": "5529", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunToolCallObject.function.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "5530", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The arguments that the model expects you to pass to the function.", + "type": { + "$id": "5531", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunToolCallObject.function.anonymous.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunToolCallObject.function", + "serializationOptions": { + "json": { + "name": "function" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.required_action.submit_tool_outputs.anonymous.tool_calls", + "serializationOptions": { + "json": { + "name": "tool_calls" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.required_action.anonymous.submit_tool_outputs", + "serializationOptions": { + "json": { + "name": "submit_tool_outputs" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.required_action", + "serializationOptions": { + "json": { + "name": "required_action" + } + } + }, + { + "$id": "5532", + "kind": "property", + "name": "last_error", + "serializedName": "last_error", + "doc": "The last error associated with this run. Will be `null` if there are no errors.", + "type": { + "$id": "5533", + "kind": "nullable", + "type": { + "$id": "5534", + "kind": "model", + "name": "RunObjectLastError1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunObject.last_error.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5535", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`.", + "type": { + "$ref": "875" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.last_error.anonymous.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "5536", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable description of the error.", + "type": { + "$id": "5537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.last_error.anonymous.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.last_error", + "serializationOptions": { + "json": { + "name": "last_error" + } + } + }, + { + "$id": "5538", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "The Unix timestamp (in seconds) for when the run will expire.", + "type": { + "$id": "5539", + "kind": "nullable", + "type": { + "$id": "5540", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5541", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + }, + { + "$id": "5542", + "kind": "property", + "name": "started_at", + "serializedName": "started_at", + "doc": "The Unix timestamp (in seconds) for when the run was started.", + "type": { + "$id": "5543", + "kind": "nullable", + "type": { + "$id": "5544", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5545", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.started_at", + "serializationOptions": { + "json": { + "name": "started_at" + } + } + }, + { + "$id": "5546", + "kind": "property", + "name": "cancelled_at", + "serializedName": "cancelled_at", + "doc": "The Unix timestamp (in seconds) for when the run was cancelled.", + "type": { + "$id": "5547", + "kind": "nullable", + "type": { + "$id": "5548", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5549", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.cancelled_at", + "serializationOptions": { + "json": { + "name": "cancelled_at" + } + } + }, + { + "$id": "5550", + "kind": "property", + "name": "failed_at", + "serializedName": "failed_at", + "doc": "The Unix timestamp (in seconds) for when the run failed.", + "type": { + "$id": "5551", + "kind": "nullable", + "type": { + "$id": "5552", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5553", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.failed_at", + "serializationOptions": { + "json": { + "name": "failed_at" + } + } + }, + { + "$id": "5554", + "kind": "property", + "name": "completed_at", + "serializedName": "completed_at", + "doc": "The Unix timestamp (in seconds) for when the run was completed.", + "type": { + "$id": "5555", + "kind": "nullable", + "type": { + "$id": "5556", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5557", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.completed_at", + "serializationOptions": { + "json": { + "name": "completed_at" + } + } + }, + { + "$id": "5558", + "kind": "property", + "name": "incomplete_details", + "serializedName": "incomplete_details", + "doc": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.", + "type": { + "$id": "5559", + "kind": "nullable", + "type": { + "$id": "5560", + "kind": "model", + "name": "RunObjectIncompleteDetails1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunObject.incomplete_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5561", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.", + "type": { + "$ref": "880" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.incomplete_details.anonymous.reason", + "serializationOptions": { + "json": { + "name": "reason" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.incomplete_details", + "serializationOptions": { + "json": { + "name": "incomplete_details" + } + } + }, + { + "$id": "5562", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model that the [assistant](/docs/api-reference/assistants) used for this run.", + "type": { + "$id": "5563", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "5564", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run.", + "type": { + "$id": "5565", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "5566", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run.", + "type": { + "$ref": "2120" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "5567", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "5568", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "type": { + "$id": "5569", + "kind": "nullable", + "type": { + "$id": "5570", + "kind": "model", + "name": "RunCompletionUsage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunCompletionUsage", + "usage": "Output,Json", + "doc": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).", + "decorators": [], + "properties": [ + { + "$id": "5571", + "kind": "property", + "name": "completion_tokens", + "serializedName": "completion_tokens", + "doc": "Number of completion tokens used over the course of the run.", + "type": { + "$id": "5572", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunCompletionUsage.completion_tokens", + "serializationOptions": { + "json": { + "name": "completion_tokens" + } + } + }, + { + "$id": "5573", + "kind": "property", + "name": "prompt_tokens", + "serializedName": "prompt_tokens", + "doc": "Number of prompt tokens used over the course of the run.", + "type": { + "$id": "5574", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunCompletionUsage.prompt_tokens", + "serializationOptions": { + "json": { + "name": "prompt_tokens" + } + } + }, + { + "$id": "5575", + "kind": "property", + "name": "total_tokens", + "serializedName": "total_tokens", + "doc": "Total number of tokens used (prompt + completion).", + "type": { + "$id": "5576", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunCompletionUsage.total_tokens", + "serializationOptions": { + "json": { + "name": "total_tokens" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + } + }, + { + "$id": "5577", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "The sampling temperature used for this run. If not set, defaults to 1.", + "type": { + "$id": "5578", + "kind": "nullable", + "type": { + "$id": "5579", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "5580", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "The nucleus sampling value used for this run. If not set, defaults to 1.", + "type": { + "$id": "5581", + "kind": "nullable", + "type": { + "$id": "5582", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "5583", + "kind": "property", + "name": "max_prompt_tokens", + "serializedName": "max_prompt_tokens", + "doc": "The maximum number of prompt tokens specified to have been used over the course of the run.", + "type": { + "$id": "5584", + "kind": "nullable", + "type": { + "$id": "5585", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.max_prompt_tokens", + "serializationOptions": { + "json": { + "name": "max_prompt_tokens" + } + } + }, + { + "$id": "5586", + "kind": "property", + "name": "max_completion_tokens", + "serializedName": "max_completion_tokens", + "doc": "The maximum number of completion tokens specified to have been used over the course of the run.", + "type": { + "$id": "5587", + "kind": "nullable", + "type": { + "$id": "5588", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.max_completion_tokens", + "serializationOptions": { + "json": { + "name": "max_completion_tokens" + } + } + }, + { + "$id": "5589", + "kind": "property", + "name": "truncation_strategy", + "serializedName": "truncation_strategy", + "type": { + "$id": "5590", + "kind": "nullable", + "type": { + "$ref": "5483" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.truncation_strategy", + "serializationOptions": { + "json": { + "name": "truncation_strategy" + } + } + }, + { + "$id": "5591", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "type": { + "$id": "5592", + "kind": "nullable", + "type": { + "$ref": "5490" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "5593", + "kind": "property", + "name": "parallel_tool_calls", + "serializedName": "parallel_tool_calls", + "type": { + "$id": "5594", + "kind": "boolean", + "name": "ParallelToolCalls", + "crossLanguageDefinitionId": "OpenAI.ParallelToolCalls", + "baseType": { + "$id": "5595", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.parallel_tool_calls", + "serializationOptions": { + "json": { + "name": "parallel_tool_calls" + } + } + }, + { + "$id": "5596", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "type": { + "$id": "5597", + "kind": "nullable", + "type": { + "$ref": "2173" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunObject.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + } + ] + }, + { + "$ref": "5516" + }, + { + "$ref": "5519" + }, + { + "$ref": "5522" + }, + { + "$ref": "5527" + }, + { + "$ref": "5534" + }, + { + "$ref": "5560" + }, + { + "$ref": "5570" + }, + { + "$id": "5598", + "kind": "model", + "name": "CreateRunRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5599", + "kind": "property", + "name": "assistant_id", + "serializedName": "assistant_id", + "doc": "The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run.", + "type": { + "$id": "5600", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.assistant_id", + "serializationOptions": { + "json": { + "name": "assistant_id" + } + } + }, + { + "$id": "5601", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.", + "type": { + "$id": "5602", + "kind": "nullable", + "type": { + "$ref": "19" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "5603", + "kind": "property", + "name": "reasoning_effort", + "serializedName": "reasoning_effort", + "type": { + "$id": "5604", + "kind": "nullable", + "type": { + "$ref": "57" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.reasoning_effort", + "serializationOptions": { + "json": { + "name": "reasoning_effort" + } + } + }, + { + "$id": "5605", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "Overrides the [instructions](/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis.", + "type": { + "$id": "5606", + "kind": "nullable", + "type": { + "$id": "5607", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "5608", + "kind": "property", + "name": "additional_instructions", + "serializedName": "additional_instructions", + "doc": "Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions.", + "type": { + "$id": "5609", + "kind": "nullable", + "type": { + "$id": "5610", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.additional_instructions", + "serializationOptions": { + "json": { + "name": "additional_instructions" + } + } + }, + { + "$id": "5611", + "kind": "property", + "name": "additional_messages", + "serializedName": "additional_messages", + "doc": "Adds additional messages to the thread before creating the run.", + "type": { + "$id": "5612", + "kind": "nullable", + "type": { + "$ref": "5408" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.additional_messages", + "serializationOptions": { + "json": { + "name": "additional_messages" + } + } + }, + { + "$id": "5613", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.", + "type": { + "$id": "5614", + "kind": "nullable", + "type": { + "$ref": "2120" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "5615", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "5616", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "5617", + "kind": "nullable", + "type": { + "$id": "5618", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "5619", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "5620", + "kind": "nullable", + "type": { + "$id": "5621", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "5622", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.", + "type": { + "$id": "5623", + "kind": "nullable", + "type": { + "$id": "5624", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.stream", + "serializationOptions": { + "json": { + "name": "stream" + } + } + }, + { + "$id": "5625", + "kind": "property", + "name": "max_prompt_tokens", + "serializedName": "max_prompt_tokens", + "doc": "The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.", + "type": { + "$id": "5626", + "kind": "nullable", + "type": { + "$id": "5627", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.max_prompt_tokens", + "serializationOptions": { + "json": { + "name": "max_prompt_tokens" + } + } + }, + { + "$id": "5628", + "kind": "property", + "name": "max_completion_tokens", + "serializedName": "max_completion_tokens", + "doc": "The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.", + "type": { + "$id": "5629", + "kind": "nullable", + "type": { + "$id": "5630", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.max_completion_tokens", + "serializationOptions": { + "json": { + "name": "max_completion_tokens" + } + } + }, + { + "$id": "5631", + "kind": "property", + "name": "truncation_strategy", + "serializedName": "truncation_strategy", + "type": { + "$id": "5632", + "kind": "nullable", + "type": { + "$ref": "5483" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.truncation_strategy", + "serializationOptions": { + "json": { + "name": "truncation_strategy" + } + } + }, + { + "$id": "5633", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "type": { + "$id": "5634", + "kind": "nullable", + "type": { + "$ref": "5490" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "5635", + "kind": "property", + "name": "parallel_tool_calls", + "serializedName": "parallel_tool_calls", + "type": { + "$id": "5636", + "kind": "boolean", + "name": "ParallelToolCalls", + "crossLanguageDefinitionId": "OpenAI.ParallelToolCalls", + "baseType": { + "$id": "5637", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.parallel_tool_calls", + "serializationOptions": { + "json": { + "name": "parallel_tool_calls" + } + } + }, + { + "$id": "5638", + "kind": "property", + "name": "response_format", + "serializedName": "response_format", + "type": { + "$id": "5639", + "kind": "nullable", + "type": { + "$ref": "2173" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateRunRequest.response_format", + "serializationOptions": { + "json": { + "name": "response_format" + } + } + } + ] + }, + { + "$id": "5640", + "kind": "model", + "name": "ListRunsResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListRunsResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5641", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1449" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunsResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5642", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "5643", + "kind": "array", + "name": "ArrayRunObject", + "valueType": { + "$ref": "5502" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunsResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "5644", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "5645", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunsResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "5646", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "5647", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunsResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "5648", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "5649", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunsResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$id": "5650", + "kind": "model", + "name": "ModifyRunRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ModifyRunRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5651", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyRunRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$id": "5652", + "kind": "model", + "name": "SubmitToolOutputsRunRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.SubmitToolOutputsRunRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5653", + "kind": "property", + "name": "tool_outputs", + "serializedName": "tool_outputs", + "doc": "A list of tools for which the outputs are being submitted.", + "type": { + "$id": "5654", + "kind": "array", + "name": "Array39", + "valueType": { + "$id": "5655", + "kind": "model", + "name": "SubmitToolOutputsRunRequestToolOutput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.SubmitToolOutputsRunRequest.tool_output.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5656", + "kind": "property", + "name": "tool_call_id", + "serializedName": "tool_call_id", + "doc": "The ID of the tool call in the `required_action` object within the run object the output is being submitted for.", + "type": { + "$id": "5657", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.SubmitToolOutputsRunRequest.tool_output.anonymous.tool_call_id", + "serializationOptions": { + "json": { + "name": "tool_call_id" + } + } + }, + { + "$id": "5658", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "The output of the tool call to be submitted to continue the run.", + "type": { + "$id": "5659", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.SubmitToolOutputsRunRequest.tool_output.anonymous.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.SubmitToolOutputsRunRequest.tool_outputs", + "serializationOptions": { + "json": { + "name": "tool_outputs" + } + } + }, + { + "$id": "5660", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.", + "type": { + "$id": "5661", + "kind": "nullable", + "type": { + "$id": "5662", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.SubmitToolOutputsRunRequest.stream", + "serializationOptions": { + "json": { + "name": "stream" + } + } + } + ] + }, + { + "$ref": "5655" + }, + { + "$id": "5663", + "kind": "model", + "name": "ListRunStepsResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListRunStepsResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5664", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1451" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunStepsResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5665", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "5666", + "kind": "array", + "name": "ArrayRunStepObject", + "valueType": { + "$id": "5667", + "kind": "model", + "name": "RunStepObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepObject", + "usage": "Output,Json", + "doc": "Represents a step in execution of a run.", + "decorators": [], + "properties": [ + { + "$id": "5668", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier of the run step, which can be referenced in API endpoints.", + "type": { + "$id": "5669", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5670", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `thread.run.step`.", + "type": { + "$ref": "1453" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5671", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the run step was created.", + "type": { + "$id": "5672", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5673", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "5674", + "kind": "property", + "name": "assistant_id", + "serializedName": "assistant_id", + "doc": "The ID of the [assistant](/docs/api-reference/assistants) associated with the run step.", + "type": { + "$id": "5675", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.assistant_id", + "serializationOptions": { + "json": { + "name": "assistant_id" + } + } + }, + { + "$id": "5676", + "kind": "property", + "name": "thread_id", + "serializedName": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) that was run.", + "type": { + "$id": "5677", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.thread_id", + "serializationOptions": { + "json": { + "name": "thread_id" + } + } + }, + { + "$id": "5678", + "kind": "property", + "name": "run_id", + "serializedName": "run_id", + "doc": "The ID of the [run](/docs/api-reference/runs) that this run step is a part of.", + "type": { + "$id": "5679", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.run_id", + "serializationOptions": { + "json": { + "name": "run_id" + } + } + }, + { + "$id": "5680", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of run step, which can be either `message_creation` or `tool_calls`.", + "type": { + "$ref": "887" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5681", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the run step, which can be either `in_progress`, `cancelled`, `failed`, `completed`, or `expired`.", + "type": { + "$ref": "891" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "5682", + "kind": "property", + "name": "step_details", + "serializedName": "step_details", + "doc": "The details of the run step.", + "type": { + "$id": "5683", + "kind": "model", + "name": "RunStepObjectStepDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepObjectStepDetails", + "usage": "Output,Json", + "doc": "Abstractly represents a run step details object.", + "decorators": [], + "discriminatorProperty": { + "$id": "5684", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The discriminated type identifier for the details object.", + "type": { + "$ref": "898" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObjectStepDetails.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "5684" + } + ], + "discriminatedSubtypes": { + "message_creation": { + "$id": "5685", + "kind": "model", + "name": "RunStepDetailsMessageCreationObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsMessageCreationObject", + "usage": "Output,Json", + "doc": "Details of the message creation by the run step.", + "discriminatorValue": "message_creation", + "decorators": [], + "baseModel": { + "$ref": "5683" + }, + "properties": [ + { + "$id": "5686", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `message_creation`.", + "type": { + "$ref": "900" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsMessageCreationObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5687", + "kind": "property", + "name": "message_creation", + "serializedName": "message_creation", + "type": { + "$id": "5688", + "kind": "model", + "name": "RunStepDetailsMessageCreationObjectMessageCreation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsMessageCreationObject.message_creation.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5689", + "kind": "property", + "name": "message_id", + "serializedName": "message_id", + "doc": "The ID of the message that was created by this run step.", + "type": { + "$id": "5690", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsMessageCreationObject.message_creation.anonymous.message_id", + "serializationOptions": { + "json": { + "name": "message_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsMessageCreationObject.message_creation", + "serializationOptions": { + "json": { + "name": "message_creation" + } + } + } + ] + }, + "tool_calls": { + "$id": "5691", + "kind": "model", + "name": "RunStepDetailsToolCallsObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsObject", + "usage": "Output,Json", + "doc": "Details of the tool call.", + "discriminatorValue": "tool_calls", + "decorators": [], + "baseModel": { + "$ref": "5683" + }, + "properties": [ + { + "$id": "5692", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `tool_calls`.", + "type": { + "$ref": "901" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5693", + "kind": "property", + "name": "tool_calls", + "serializedName": "tool_calls", + "doc": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.", + "type": { + "$id": "5694", + "kind": "array", + "name": "ArrayRunStepDetailsToolCallsObjectToolCallsObject", + "valueType": { + "$id": "5695", + "kind": "model", + "name": "RunStepDetailsToolCallsObjectToolCallsObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsObjectToolCallsObject", + "usage": "Output,Json", + "doc": "Abstractly represents a run step tool call details inner object.", + "decorators": [], + "discriminatorProperty": { + "$id": "5696", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The discriminated type identifier for the details object.", + "type": { + "$ref": "902" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsObjectToolCallsObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "5696" + }, + { + "$id": "5697", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call object.", + "type": { + "$id": "5698", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsObjectToolCallsObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ], + "discriminatedSubtypes": { + "code_interpreter": { + "$id": "5699", + "kind": "model", + "name": "RunStepDetailsToolCallsCodeObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeObject", + "usage": "Output,Json", + "doc": "Details of the Code Interpreter tool call the run step was involved in.", + "discriminatorValue": "code_interpreter", + "decorators": [], + "baseModel": { + "$ref": "5695" + }, + "properties": [ + { + "$id": "5700", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.", + "type": { + "$ref": "904" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5701", + "kind": "property", + "name": "code_interpreter", + "serializedName": "code_interpreter", + "doc": "The Code Interpreter tool call definition.", + "type": { + "$id": "5702", + "kind": "model", + "name": "RunStepDetailsToolCallsCodeObjectCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeObject.code_interpreter.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5703", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The input to the Code Interpreter tool call.", + "type": { + "$id": "5704", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeObject.code_interpreter.anonymous.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + }, + { + "$id": "5705", + "kind": "property", + "name": "outputs", + "serializedName": "outputs", + "doc": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.", + "type": { + "$id": "5706", + "kind": "array", + "name": "ArrayRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject", + "valueType": { + "$id": "5707", + "kind": "model", + "name": "RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject", + "usage": "Output,Json", + "doc": "Abstractly represents a run step tool call details code interpreter output.", + "decorators": [], + "discriminatorProperty": { + "$id": "5708", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The discriminated type identifier for the details object.", + "type": { + "$ref": "907" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "5708" + } + ], + "discriminatedSubtypes": { + "logs": { + "$id": "5709", + "kind": "model", + "name": "RunStepDetailsToolCallsCodeOutputLogsObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject", + "usage": "Output,Json", + "doc": "Text output from the Code Interpreter tool call as part of a run step.", + "discriminatorValue": "logs", + "decorators": [], + "baseModel": { + "$ref": "5707" + }, + "properties": [ + { + "$id": "5710", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `logs`.", + "type": { + "$ref": "909" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5711", + "kind": "property", + "name": "logs", + "serializedName": "logs", + "doc": "The text output from the Code Interpreter tool call.", + "type": { + "$id": "5712", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject.logs", + "serializationOptions": { + "json": { + "name": "logs" + } + } + } + ] + }, + "image": { + "$id": "5713", + "kind": "model", + "name": "RunStepDetailsToolCallsCodeOutputImageObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeOutputImageObject", + "usage": "Output,Json", + "discriminatorValue": "image", + "decorators": [], + "baseModel": { + "$ref": "5707" + }, + "properties": [ + { + "$id": "5714", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `image`.", + "type": { + "$ref": "910" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeOutputImageObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5715", + "kind": "property", + "name": "image", + "serializedName": "image", + "type": { + "$id": "5716", + "kind": "model", + "name": "RunStepDetailsToolCallsCodeOutputImageObjectImage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeOutputImageObject.image.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5717", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The [file](/docs/api-reference/files) ID of the image.", + "type": { + "$id": "5718", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeOutputImageObject.image.anonymous.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeOutputImageObject.image", + "serializationOptions": { + "json": { + "name": "image" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeObject.code_interpreter.anonymous.outputs", + "serializationOptions": { + "json": { + "name": "outputs" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsCodeObject.code_interpreter", + "serializationOptions": { + "json": { + "name": "code_interpreter" + } + } + } + ] + }, + "file_search": { + "$id": "5719", + "kind": "model", + "name": "RunStepDetailsToolCallsFileSearchObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchObject", + "usage": "Output,Json", + "discriminatorValue": "file_search", + "decorators": [], + "baseModel": { + "$ref": "5695" + }, + "properties": [ + { + "$id": "5720", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool call. This is always going to be `file_search` for this type of tool call.", + "type": { + "$ref": "905" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5721", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "doc": "For now, this is always going to be an empty object.", + "type": { + "$id": "5722", + "kind": "model", + "name": "RunStepDetailsToolCallsFileSearchObjectFileSearch", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchObject.file_search.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5723", + "kind": "property", + "name": "ranking_options", + "serializedName": "ranking_options", + "type": { + "$id": "5724", + "kind": "model", + "name": "RunStepDetailsToolCallsFileSearchRankingOptionsObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject", + "usage": "Output,Json", + "doc": "The ranking options for the file search.", + "decorators": [], + "properties": [ + { + "$id": "5725", + "kind": "property", + "name": "ranker", + "serializedName": "ranker", + "type": { + "$ref": "10" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject.ranker", + "serializationOptions": { + "json": { + "name": "ranker" + } + } + }, + { + "$id": "5726", + "kind": "property", + "name": "score_threshold", + "serializedName": "score_threshold", + "doc": "The score threshold for the file search. All values must be a floating point number between 0 and 1.", + "type": { + "$id": "5727", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject.score_threshold", + "serializationOptions": { + "json": { + "name": "score_threshold" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchObject.file_search.anonymous.ranking_options", + "serializationOptions": { + "json": { + "name": "ranking_options" + } + } + }, + { + "$id": "5728", + "kind": "property", + "name": "results", + "serializedName": "results", + "doc": "The results of the file search.", + "type": { + "$id": "5729", + "kind": "array", + "name": "ArrayRunStepDetailsToolCallsFileSearchResultObject", + "valueType": { + "$id": "5730", + "kind": "model", + "name": "RunStepDetailsToolCallsFileSearchResultObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchResultObject", + "usage": "Output,Json", + "doc": "A result instance of the file search.", + "decorators": [], + "properties": [ + { + "$id": "5731", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file that result was found in.", + "type": { + "$id": "5732", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchResultObject.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "5733", + "kind": "property", + "name": "file_name", + "serializedName": "file_name", + "doc": "The name of the file that result was found in.", + "type": { + "$id": "5734", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchResultObject.file_name", + "serializationOptions": { + "json": { + "name": "file_name" + } + } + }, + { + "$id": "5735", + "kind": "property", + "name": "score", + "serializedName": "score", + "doc": "The score of the result. All values must be a floating point number between 0 and 1.", + "type": { + "$id": "5736", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchResultObject.score", + "serializationOptions": { + "json": { + "name": "score" + } + } + }, + { + "$id": "5737", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the result that was found. The content is only included if requested via the include query parameter.", + "type": { + "$id": "5738", + "kind": "array", + "name": "Array40", + "valueType": { + "$id": "5739", + "kind": "model", + "name": "RunStepDetailsToolCallsFileSearchResultObjectContent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchResultObject.content.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5740", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the content.", + "type": { + "$id": "5741", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$ref": "912" + }, + "enumType": { + "$ref": "911" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchResultObject.content.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5742", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text content of the file.", + "type": { + "$id": "5743", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchResultObject.content.anonymous.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchResultObject.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchObject.file_search.anonymous.results", + "serializationOptions": { + "json": { + "name": "results" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFileSearchObject.file_search", + "serializationOptions": { + "json": { + "name": "file_search" + } + } + } + ] + }, + "function": { + "$id": "5744", + "kind": "model", + "name": "RunStepDetailsToolCallsFunctionObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFunctionObject", + "usage": "Output,Json", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "5695" + }, + "properties": [ + { + "$id": "5745", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool call. This is always going to be `function` for this type of tool call.", + "type": { + "$ref": "906" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFunctionObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5746", + "kind": "property", + "name": "function", + "serializedName": "function", + "doc": "The definition of the function that was called.", + "type": { + "$id": "5747", + "kind": "model", + "name": "RunStepDetailsToolCallsFunctionObjectFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFunctionObject.function.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5748", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function.", + "type": { + "$id": "5749", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFunctionObject.function.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "5750", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The arguments passed to the function.", + "type": { + "$id": "5751", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFunctionObject.function.anonymous.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + }, + { + "$id": "5752", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.", + "type": { + "$id": "5753", + "kind": "nullable", + "type": { + "$id": "5754", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFunctionObject.function.anonymous.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsFunctionObject.function", + "serializationOptions": { + "json": { + "name": "function" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDetailsToolCallsObject.tool_calls", + "serializationOptions": { + "json": { + "name": "tool_calls" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.step_details", + "serializationOptions": { + "json": { + "name": "step_details" + } + } + }, + { + "$id": "5755", + "kind": "property", + "name": "last_error", + "serializedName": "last_error", + "doc": "The last error associated with this run step. Will be `null` if there are no errors.", + "type": { + "$id": "5756", + "kind": "nullable", + "type": { + "$id": "5757", + "kind": "model", + "name": "RunStepObjectLastError1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepObject.last_error.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5758", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "One of `server_error` or `rate_limit_exceeded`.", + "type": { + "$ref": "914" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.last_error.anonymous.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "5759", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable description of the error.", + "type": { + "$id": "5760", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.last_error.anonymous.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.last_error", + "serializationOptions": { + "json": { + "name": "last_error" + } + } + }, + { + "$id": "5761", + "kind": "property", + "name": "expired_at", + "serializedName": "expired_at", + "doc": "The Unix timestamp (in seconds) for when the run step expired. A step is considered expired if the parent run is expired.", + "type": { + "$id": "5762", + "kind": "nullable", + "type": { + "$id": "5763", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5764", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.expired_at", + "serializationOptions": { + "json": { + "name": "expired_at" + } + } + }, + { + "$id": "5765", + "kind": "property", + "name": "cancelled_at", + "serializedName": "cancelled_at", + "doc": "The Unix timestamp (in seconds) for when the run step was cancelled.", + "type": { + "$id": "5766", + "kind": "nullable", + "type": { + "$id": "5767", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5768", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.cancelled_at", + "serializationOptions": { + "json": { + "name": "cancelled_at" + } + } + }, + { + "$id": "5769", + "kind": "property", + "name": "failed_at", + "serializedName": "failed_at", + "doc": "The Unix timestamp (in seconds) for when the run step failed.", + "type": { + "$id": "5770", + "kind": "nullable", + "type": { + "$id": "5771", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5772", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.failed_at", + "serializationOptions": { + "json": { + "name": "failed_at" + } + } + }, + { + "$id": "5773", + "kind": "property", + "name": "completed_at", + "serializedName": "completed_at", + "doc": "The Unix timestamp (in seconds) for when the run step completed.", + "type": { + "$id": "5774", + "kind": "nullable", + "type": { + "$id": "5775", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5776", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.completed_at", + "serializationOptions": { + "json": { + "name": "completed_at" + } + } + }, + { + "$id": "5777", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "5778", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "type": { + "$id": "5779", + "kind": "nullable", + "type": { + "$id": "5780", + "kind": "model", + "name": "RunStepCompletionUsage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepCompletionUsage", + "usage": "Output,Json", + "doc": "Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.", + "decorators": [], + "properties": [ + { + "$id": "5781", + "kind": "property", + "name": "completion_tokens", + "serializedName": "completion_tokens", + "doc": "Number of completion tokens used over the course of the run step.", + "type": { + "$id": "5782", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepCompletionUsage.completion_tokens", + "serializationOptions": { + "json": { + "name": "completion_tokens" + } + } + }, + { + "$id": "5783", + "kind": "property", + "name": "prompt_tokens", + "serializedName": "prompt_tokens", + "doc": "Number of prompt tokens used over the course of the run step.", + "type": { + "$id": "5784", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepCompletionUsage.prompt_tokens", + "serializationOptions": { + "json": { + "name": "prompt_tokens" + } + } + }, + { + "$id": "5785", + "kind": "property", + "name": "total_tokens", + "serializedName": "total_tokens", + "doc": "Total number of tokens used (prompt + completion).", + "type": { + "$id": "5786", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepCompletionUsage.total_tokens", + "serializationOptions": { + "json": { + "name": "total_tokens" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepObject.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunStepsResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "5787", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "5788", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunStepsResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "5789", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "5790", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunStepsResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "5791", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "5792", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListRunStepsResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "5667" + }, + { + "$ref": "5683" + }, + { + "$ref": "5685" + }, + { + "$ref": "5688" + }, + { + "$ref": "5691" + }, + { + "$ref": "5695" + }, + { + "$ref": "5699" + }, + { + "$ref": "5702" + }, + { + "$ref": "5707" + }, + { + "$ref": "5709" + }, + { + "$ref": "5713" + }, + { + "$ref": "5716" + }, + { + "$ref": "5719" + }, + { + "$ref": "5722" + }, + { + "$ref": "5724" + }, + { + "$ref": "5730" + }, + { + "$ref": "5739" + }, + { + "$ref": "5744" + }, + { + "$ref": "5747" + }, + { + "$ref": "5757" + }, + { + "$ref": "5780" + }, + { + "$id": "5793", + "kind": "model", + "name": "ThreadObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ThreadObject", + "usage": "Output,Json", + "doc": "Represents a thread that contains [messages](/docs/api-reference/messages).", + "decorators": [], + "properties": [ + { + "$id": "5794", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "5795", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ThreadObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5796", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `thread`.", + "type": { + "$ref": "1455" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ThreadObject.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5797", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the thread was created.", + "type": { + "$id": "5798", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5799", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ThreadObject.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "5800", + "kind": "property", + "name": "tool_resources", + "serializedName": "tool_resources", + "doc": "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$id": "5801", + "kind": "nullable", + "type": { + "$id": "5802", + "kind": "model", + "name": "ThreadObjectToolResources1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ThreadObject.tool_resources.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5803", + "kind": "property", + "name": "code_interpreter", + "serializedName": "code_interpreter", + "type": { + "$id": "5804", + "kind": "model", + "name": "ThreadObjectToolResourcesCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ThreadObject.tool_resources.code_interpreter.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5805", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ThreadObject.tool_resources.code_interpreter.anonymous.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ThreadObject.tool_resources.anonymous.code_interpreter", + "serializationOptions": { + "json": { + "name": "code_interpreter" + } + } + }, + { + "$id": "5806", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "type": { + "$id": "5807", + "kind": "model", + "name": "ThreadObjectToolResourcesFileSearch", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ThreadObject.tool_resources.file_search.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5808", + "kind": "property", + "name": "vector_store_ids", + "serializedName": "vector_store_ids", + "doc": "The [vector store](/docs/api-reference/vector-stores/object) attached to this thread. There can be a maximum of 1 vector store attached to the thread.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ThreadObject.tool_resources.file_search.anonymous.vector_store_ids", + "serializationOptions": { + "json": { + "name": "vector_store_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ThreadObject.tool_resources.anonymous.file_search", + "serializationOptions": { + "json": { + "name": "file_search" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ThreadObject.tool_resources", + "serializationOptions": { + "json": { + "name": "tool_resources" + } + } + }, + { + "$id": "5809", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ThreadObject.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "5802" + }, + { + "$ref": "5804" + }, + { + "$ref": "5807" + }, + { + "$id": "5810", + "kind": "model", + "name": "ModifyThreadRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ModifyThreadRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5811", + "kind": "property", + "name": "tool_resources", + "serializedName": "tool_resources", + "doc": "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$id": "5812", + "kind": "nullable", + "type": { + "$id": "5813", + "kind": "model", + "name": "ModifyThreadRequestToolResources1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ModifyThreadRequest.tool_resources.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5814", + "kind": "property", + "name": "code_interpreter", + "serializedName": "code_interpreter", + "type": { + "$id": "5815", + "kind": "model", + "name": "ModifyThreadRequestToolResourcesCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ModifyThreadRequest.tool_resources.code_interpreter.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5816", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyThreadRequest.tool_resources.code_interpreter.anonymous.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyThreadRequest.tool_resources.anonymous.code_interpreter", + "serializationOptions": { + "json": { + "name": "code_interpreter" + } + } + }, + { + "$id": "5817", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "type": { + "$ref": "2158" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyThreadRequest.tool_resources.anonymous.file_search", + "serializationOptions": { + "json": { + "name": "file_search" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyThreadRequest.tool_resources", + "serializationOptions": { + "json": { + "name": "tool_resources" + } + } + }, + { + "$id": "5818", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ModifyThreadRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "5813" + }, + { + "$ref": "5815" + }, + { + "$id": "5819", + "kind": "model", + "name": "DeleteThreadResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DeleteThreadResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5820", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "5821", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteThreadResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5822", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$id": "5823", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteThreadResponse.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + }, + { + "$id": "5824", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1457" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteThreadResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + { + "$id": "5825", + "kind": "model", + "name": "ListVectorStoresResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListVectorStoresResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5826", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1459" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoresResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5827", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "5828", + "kind": "array", + "name": "ArrayVectorStoreObject", + "valueType": { + "$id": "5829", + "kind": "model", + "name": "VectorStoreObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject", + "usage": "Output,Json", + "doc": "A vector store is a collection of processed files can be used by the `file_search` tool.", + "decorators": [], + "properties": [ + { + "$id": "5830", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "5831", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5832", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `vector_store`.", + "type": { + "$ref": "1461" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5833", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the vector store was created.", + "type": { + "$id": "5834", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5835", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "5836", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the vector store.", + "type": { + "$id": "5837", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "5838", + "kind": "property", + "name": "usage_bytes", + "serializedName": "usage_bytes", + "doc": "The total number of bytes used by the files in the vector store.", + "type": { + "$id": "5839", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.usage_bytes", + "serializationOptions": { + "json": { + "name": "usage_bytes" + } + } + }, + { + "$id": "5840", + "kind": "property", + "name": "file_counts", + "serializedName": "file_counts", + "type": { + "$id": "5841", + "kind": "model", + "name": "VectorStoreObjectFileCounts", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.file_counts.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5842", + "kind": "property", + "name": "in_progress", + "serializedName": "in_progress", + "doc": "The number of files that are currently being processed.", + "type": { + "$id": "5843", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.file_counts.anonymous.in_progress", + "serializationOptions": { + "json": { + "name": "in_progress" + } + } + }, + { + "$id": "5844", + "kind": "property", + "name": "completed", + "serializedName": "completed", + "doc": "The number of files that have been successfully processed.", + "type": { + "$id": "5845", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.file_counts.anonymous.completed", + "serializationOptions": { + "json": { + "name": "completed" + } + } + }, + { + "$id": "5846", + "kind": "property", + "name": "failed", + "serializedName": "failed", + "doc": "The number of files that have failed to process.", + "type": { + "$id": "5847", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.file_counts.anonymous.failed", + "serializationOptions": { + "json": { + "name": "failed" + } + } + }, + { + "$id": "5848", + "kind": "property", + "name": "cancelled", + "serializedName": "cancelled", + "doc": "The number of files that were cancelled.", + "type": { + "$id": "5849", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.file_counts.anonymous.cancelled", + "serializationOptions": { + "json": { + "name": "cancelled" + } + } + }, + { + "$id": "5850", + "kind": "property", + "name": "total", + "serializedName": "total", + "doc": "The total number of files.", + "type": { + "$id": "5851", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.file_counts.anonymous.total", + "serializationOptions": { + "json": { + "name": "total" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.file_counts", + "serializationOptions": { + "json": { + "name": "file_counts" + } + } + }, + { + "$id": "5852", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the vector store, which can be either `expired`, `in_progress`, or `completed`. A status of `completed` indicates that the vector store is ready for use.", + "type": { + "$ref": "918" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "5853", + "kind": "property", + "name": "expires_after", + "serializedName": "expires_after", + "type": { + "$id": "5854", + "kind": "model", + "name": "VectorStoreExpirationAfter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreExpirationAfter", + "usage": "Input,Output,Json", + "doc": "The expiration policy for a vector store.", + "decorators": [], + "properties": [ + { + "$id": "5855", + "kind": "property", + "name": "anchor", + "serializedName": "anchor", + "doc": "Anchor timestamp after which the expiration policy applies. Supported anchors: `last_active_at`.", + "type": { + "$id": "5856", + "kind": "enumvalue", + "name": "last_active_at", + "value": "last_active_at", + "valueType": { + "$ref": "924" + }, + "enumType": { + "$ref": "923" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreExpirationAfter.anchor", + "serializationOptions": { + "json": { + "name": "anchor" + } + } + }, + { + "$id": "5857", + "kind": "property", + "name": "days", + "serializedName": "days", + "doc": "The number of days after the anchor time that the vector store will expire.", + "type": { + "$id": "5858", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreExpirationAfter.days", + "serializationOptions": { + "json": { + "name": "days" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.expires_after", + "serializationOptions": { + "json": { + "name": "expires_after" + } + } + }, + { + "$id": "5859", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "The Unix timestamp (in seconds) for when the vector store will expire.", + "type": { + "$id": "5860", + "kind": "nullable", + "type": { + "$id": "5861", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5862", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + }, + { + "$id": "5863", + "kind": "property", + "name": "last_active_at", + "serializedName": "last_active_at", + "doc": "The Unix timestamp (in seconds) for when the vector store was last active.", + "type": { + "$id": "5864", + "kind": "nullable", + "type": { + "$id": "5865", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5866", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.last_active_at", + "serializationOptions": { + "json": { + "name": "last_active_at" + } + } + }, + { + "$id": "5867", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreObject.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoresResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "5868", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "5869", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoresResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "5870", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "5871", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoresResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "5872", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "5873", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoresResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "5829" + }, + { + "$ref": "5841" + }, + { + "$ref": "5854" + }, + { + "$id": "5874", + "kind": "model", + "name": "CreateVectorStoreRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5875", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreRequest.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + }, + { + "$id": "5876", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the vector store.", + "type": { + "$id": "5877", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreRequest.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "5878", + "kind": "property", + "name": "expires_after", + "serializedName": "expires_after", + "type": { + "$ref": "5854" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreRequest.expires_after", + "serializationOptions": { + "json": { + "name": "expires_after" + } + } + }, + { + "$id": "5879", + "kind": "property", + "name": "chunking_strategy", + "serializedName": "chunking_strategy", + "doc": "The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.", + "type": { + "$id": "5880", + "kind": "union", + "name": "CreateVectorStoreRequestChunkingStrategy", + "variantTypes": [ + { + "$ref": "2244" + }, + { + "$ref": "2246" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreRequest.chunking_strategy", + "serializationOptions": { + "json": { + "name": "chunking_strategy" + } + } + }, + { + "$id": "5881", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$id": "5882", + "kind": "model", + "name": "UpdateVectorStoreRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.UpdateVectorStoreRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5883", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the vector store.", + "type": { + "$id": "5884", + "kind": "nullable", + "type": { + "$id": "5885", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.UpdateVectorStoreRequest.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "5886", + "kind": "property", + "name": "expires_after", + "serializedName": "expires_after", + "type": { + "$id": "5887", + "kind": "nullable", + "type": { + "$ref": "5854" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.UpdateVectorStoreRequest.expires_after", + "serializationOptions": { + "json": { + "name": "expires_after" + } + } + }, + { + "$id": "5888", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.UpdateVectorStoreRequest.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + }, + { + "$id": "5889", + "kind": "model", + "name": "DeleteVectorStoreResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DeleteVectorStoreResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5890", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "5891", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteVectorStoreResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5892", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$id": "5893", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteVectorStoreResponse.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + }, + { + "$id": "5894", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1463" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteVectorStoreResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + { + "$id": "5895", + "kind": "model", + "name": "CreateVectorStoreFileBatchRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreFileBatchRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5896", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreFileBatchRequest.file_ids", + "serializationOptions": { + "json": { + "name": "file_ids" + } + } + }, + { + "$id": "5897", + "kind": "property", + "name": "chunking_strategy", + "serializedName": "chunking_strategy", + "type": { + "$ref": "2242" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreFileBatchRequest.chunking_strategy", + "serializationOptions": { + "json": { + "name": "chunking_strategy" + } + } + }, + { + "$id": "5898", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "type": { + "$id": "5899", + "kind": "nullable", + "type": { + "$ref": "3442" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreFileBatchRequest.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + } + } + ] + }, + { + "$id": "5900", + "kind": "model", + "name": "VectorStoreFileBatchObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject", + "usage": "Output,Json", + "doc": "A batch of files attached to a vector store.", + "decorators": [], + "properties": [ + { + "$id": "5901", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "5902", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5903", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `vector_store.file_batch`.", + "type": { + "$ref": "1465" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5904", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the vector store files batch was created.", + "type": { + "$id": "5905", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5906", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "5907", + "kind": "property", + "name": "vector_store_id", + "serializedName": "vector_store_id", + "doc": "The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.", + "type": { + "$id": "5908", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.vector_store_id", + "serializationOptions": { + "json": { + "name": "vector_store_id" + } + } + }, + { + "$id": "5909", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the vector store files batch, which can be either `in_progress`, `completed`, `cancelled` or `failed`.", + "type": { + "$ref": "926" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "5910", + "kind": "property", + "name": "file_counts", + "serializedName": "file_counts", + "type": { + "$id": "5911", + "kind": "model", + "name": "VectorStoreFileBatchObjectFileCounts", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.file_counts.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5912", + "kind": "property", + "name": "in_progress", + "serializedName": "in_progress", + "doc": "The number of files that are currently being processed.", + "type": { + "$id": "5913", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.file_counts.anonymous.in_progress", + "serializationOptions": { + "json": { + "name": "in_progress" + } + } + }, + { + "$id": "5914", + "kind": "property", + "name": "completed", + "serializedName": "completed", + "doc": "The number of files that have been processed.", + "type": { + "$id": "5915", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.file_counts.anonymous.completed", + "serializationOptions": { + "json": { + "name": "completed" + } + } + }, + { + "$id": "5916", + "kind": "property", + "name": "failed", + "serializedName": "failed", + "doc": "The number of files that have failed to process.", + "type": { + "$id": "5917", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.file_counts.anonymous.failed", + "serializationOptions": { + "json": { + "name": "failed" + } + } + }, + { + "$id": "5918", + "kind": "property", + "name": "cancelled", + "serializedName": "cancelled", + "doc": "The number of files that where cancelled.", + "type": { + "$id": "5919", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.file_counts.anonymous.cancelled", + "serializationOptions": { + "json": { + "name": "cancelled" + } + } + }, + { + "$id": "5920", + "kind": "property", + "name": "total", + "serializedName": "total", + "doc": "The total number of files.", + "type": { + "$id": "5921", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.file_counts.anonymous.total", + "serializationOptions": { + "json": { + "name": "total" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileBatchObject.file_counts", + "serializationOptions": { + "json": { + "name": "file_counts" + } + } + } + ] + }, + { + "$ref": "5911" + }, + { + "$id": "5922", + "kind": "model", + "name": "ListVectorStoreFilesResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListVectorStoreFilesResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5923", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1467" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoreFilesResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5924", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "5925", + "kind": "array", + "name": "ArrayVectorStoreFileObject", + "valueType": { + "$id": "5926", + "kind": "model", + "name": "VectorStoreFileObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject", + "usage": "Output,Json", + "doc": "A list of files attached to a vector store.", + "decorators": [], + "properties": [ + { + "$id": "5927", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "5928", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5929", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `vector_store.file`.", + "type": { + "$ref": "1469" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5930", + "kind": "property", + "name": "usage_bytes", + "serializedName": "usage_bytes", + "doc": "The total vector store usage in bytes. Note that this may be different from the original file size.", + "type": { + "$id": "5931", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.usage_bytes", + "serializationOptions": { + "json": { + "name": "usage_bytes" + } + } + }, + { + "$id": "5932", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the vector store file was created.", + "type": { + "$id": "5933", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "5934", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "5935", + "kind": "property", + "name": "vector_store_id", + "serializedName": "vector_store_id", + "doc": "The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.", + "type": { + "$id": "5936", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.vector_store_id", + "serializationOptions": { + "json": { + "name": "vector_store_id" + } + } + }, + { + "$id": "5937", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the vector store file, which can be either `in_progress`, `completed`, `cancelled`, or `failed`. The status `completed` indicates that the vector store file is ready for use.", + "type": { + "$ref": "938" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "5938", + "kind": "property", + "name": "last_error", + "serializedName": "last_error", + "doc": "The last error associated with this vector store file. Will be `null` if there are no errors.", + "type": { + "$id": "5939", + "kind": "nullable", + "type": { + "$id": "5940", + "kind": "model", + "name": "VectorStoreFileObjectLastError1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.last_error.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5941", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "One of `server_error` or `rate_limit_exceeded`.", + "type": { + "$ref": "944" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.last_error.anonymous.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "5942", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable description of the error.", + "type": { + "$id": "5943", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.last_error.anonymous.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.last_error", + "serializationOptions": { + "json": { + "name": "last_error" + } + } + }, + { + "$id": "5944", + "kind": "property", + "name": "chunking_strategy", + "serializedName": "chunking_strategy", + "doc": "The strategy used to chunk the file.", + "type": { + "$id": "5945", + "kind": "model", + "name": "ChunkingStrategyResponseParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChunkingStrategyResponseParam", + "usage": "Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "5946", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "949" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChunkingStrategyResponseParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "5946" + } + ], + "discriminatedSubtypes": { + "other": { + "$id": "5947", + "kind": "model", + "name": "OtherChunkingStrategyResponseParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.OtherChunkingStrategyResponseParam", + "usage": "Output,Json", + "doc": "This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the `chunking_strategy` concept was introduced in the API.", + "discriminatorValue": "other", + "decorators": [], + "baseModel": { + "$ref": "5945" + }, + "properties": [ + { + "$id": "5948", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `other`.", + "type": { + "$ref": "952" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.OtherChunkingStrategyResponseParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "static": { + "$id": "5949", + "kind": "model", + "name": "StaticChunkingStrategyResponseParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.StaticChunkingStrategyResponseParam", + "usage": "Output,Json", + "discriminatorValue": "static", + "decorators": [], + "baseModel": { + "$ref": "5945" + }, + "properties": [ + { + "$id": "5950", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `static`.", + "type": { + "$ref": "951" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.StaticChunkingStrategyResponseParam.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5951", + "kind": "property", + "name": "static", + "serializedName": "static", + "type": { + "$ref": "2249" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.StaticChunkingStrategyResponseParam.static", + "serializationOptions": { + "json": { + "name": "static" + } + } + } + ] + } + } + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.chunking_strategy", + "serializationOptions": { + "json": { + "name": "chunking_strategy" + } + } + }, + { + "$id": "5952", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "type": { + "$id": "5953", + "kind": "nullable", + "type": { + "$ref": "3442" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileObject.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoreFilesResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "5954", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "type": { + "$id": "5955", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoreFilesResponse.first_id", + "serializationOptions": { + "json": { + "name": "first_id" + } + } + }, + { + "$id": "5956", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "type": { + "$id": "5957", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoreFilesResponse.last_id", + "serializationOptions": { + "json": { + "name": "last_id" + } + } + }, + { + "$id": "5958", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "type": { + "$id": "5959", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListVectorStoreFilesResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "5926" + }, + { + "$ref": "5940" + }, + { + "$ref": "5945" + }, + { + "$ref": "5947" + }, + { + "$ref": "5949" + }, + { + "$id": "5960", + "kind": "model", + "name": "CreateVectorStoreFileRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreFileRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5961", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "A [File](/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files.", + "type": { + "$id": "5962", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreFileRequest.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "5963", + "kind": "property", + "name": "chunking_strategy", + "serializedName": "chunking_strategy", + "type": { + "$ref": "2242" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreFileRequest.chunking_strategy", + "serializationOptions": { + "json": { + "name": "chunking_strategy" + } + } + }, + { + "$id": "5964", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "type": { + "$id": "5965", + "kind": "nullable", + "type": { + "$ref": "3442" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateVectorStoreFileRequest.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + } + } + ] + }, + { + "$id": "5966", + "kind": "model", + "name": "DeleteVectorStoreFileResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DeleteVectorStoreFileResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5967", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "5968", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteVectorStoreFileResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "5969", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$id": "5970", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteVectorStoreFileResponse.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + }, + { + "$id": "5971", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1471" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteVectorStoreFileResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + { + "$id": "5972", + "kind": "model", + "name": "UpdateVectorStoreFileAttributesRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.UpdateVectorStoreFileAttributesRequest", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "5973", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "type": { + "$id": "5974", + "kind": "nullable", + "type": { + "$ref": "3442" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.UpdateVectorStoreFileAttributesRequest.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + } + } + ] + }, + { + "$id": "5975", + "kind": "model", + "name": "VectorStoreFileContentResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileContentResponse", + "usage": "Output,Json", + "doc": "Represents the parsed content of a vector store file.", + "decorators": [], + "properties": [ + { + "$id": "5976", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `vector_store.file_content.page`", + "type": { + "$ref": "1473" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileContentResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "5977", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "Parsed content of the file.", + "type": { + "$id": "5978", + "kind": "array", + "name": "Array41", + "valueType": { + "$id": "5979", + "kind": "model", + "name": "VectorStoreFileContentResponseDatum", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileContentResponse.datum.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "5980", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The content type (currently only `\"text\"`)", + "type": { + "$id": "5981", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileContentResponse.datum.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "5982", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text content", + "type": { + "$id": "5983", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileContentResponse.datum.anonymous.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileContentResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "5984", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Indicates if there are more content pages to fetch.", + "type": { + "$id": "5985", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileContentResponse.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + }, + { + "$id": "5986", + "kind": "property", + "name": "next_page", + "serializedName": "next_page", + "doc": "The token for the next page, if any.", + "type": { + "$id": "5987", + "kind": "nullable", + "type": { + "$id": "5988", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreFileContentResponse.next_page", + "serializationOptions": { + "json": { + "name": "next_page" + } + } + } + ] + }, + { + "$ref": "5979" + }, + { + "$id": "5989", + "kind": "model", + "name": "VectorStoreSearchRequestRankingOptions", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest.ranking_options.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "5990", + "kind": "property", + "name": "ranker", + "serializedName": "ranker", + "type": { + "$ref": "953" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest.ranking_options.anonymous.ranker", + "serializationOptions": { + "json": { + "name": "ranker" + } + } + }, + { + "$id": "5991", + "kind": "property", + "name": "score_threshold", + "serializedName": "score_threshold", + "type": { + "$id": "5992", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest.ranking_options.anonymous.score_threshold", + "serializationOptions": { + "json": { + "name": "score_threshold" + } + } + } + ] + }, + { + "$id": "5993", + "kind": "model", + "name": "VectorStoreSearchRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "5994", + "kind": "property", + "name": "query", + "serializedName": "query", + "doc": "A query string for a search", + "type": { + "$id": "5995", + "kind": "union", + "name": "VectorStoreSearchRequestQuery", + "variantTypes": [ + { + "$id": "5996", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$ref": "2155" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest.query", + "serializationOptions": { + "json": { + "name": "query" + } + } + }, + { + "$id": "5997", + "kind": "property", + "name": "rewrite_query", + "serializedName": "rewrite_query", + "doc": "Whether to rewrite the natural language query for vector search.", + "type": { + "$id": "5998", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest.rewrite_query", + "serializationOptions": { + "json": { + "name": "rewrite_query" + } + } + }, + { + "$id": "5999", + "kind": "property", + "name": "max_num_results", + "serializedName": "max_num_results", + "doc": "The maximum number of results to return. This number should be between 1 and 50 inclusive.", + "type": { + "$id": "6000", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest.max_num_results", + "serializationOptions": { + "json": { + "name": "max_num_results" + } + } + }, + { + "$id": "6001", + "kind": "property", + "name": "filters", + "serializedName": "filters", + "doc": "A filter to apply based on file attributes.", + "type": { + "$id": "6002", + "kind": "union", + "name": "VectorStoreSearchRequestFilters", + "variantTypes": [ + { + "$ref": "3844" + }, + { + "$ref": "3865" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest.filters", + "serializationOptions": { + "json": { + "name": "filters" + } + } + }, + { + "$id": "6003", + "kind": "property", + "name": "ranking_options", + "serializedName": "ranking_options", + "doc": "Ranking options for search.", + "type": { + "$ref": "5989" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchRequest.ranking_options", + "serializationOptions": { + "json": { + "name": "ranking_options" + } + } + } + ] + }, + { + "$id": "6004", + "kind": "model", + "name": "VectorStoreSearchResultsPage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultsPage", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6005", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `vector_store.search_results.page`", + "type": { + "$ref": "1475" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultsPage.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "6006", + "kind": "property", + "name": "search_query", + "serializedName": "search_query", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultsPage.search_query", + "serializationOptions": { + "json": { + "name": "search_query" + } + } + }, + { + "$id": "6007", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The list of search result items.", + "type": { + "$id": "6008", + "kind": "array", + "name": "ArrayVectorStoreSearchResultItem", + "valueType": { + "$id": "6009", + "kind": "model", + "name": "VectorStoreSearchResultItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultItem", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6010", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the vector store file.", + "type": { + "$id": "6011", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultItem.file_id", + "serializationOptions": { + "json": { + "name": "file_id" + } + } + }, + { + "$id": "6012", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "doc": "The name of the vector store file.", + "type": { + "$id": "6013", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultItem.filename", + "serializationOptions": { + "json": { + "name": "filename" + } + } + }, + { + "$id": "6014", + "kind": "property", + "name": "score", + "serializedName": "score", + "doc": "The similarity score for the result.", + "type": { + "$id": "6015", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultItem.score", + "serializationOptions": { + "json": { + "name": "score" + } + } + }, + { + "$id": "6016", + "kind": "property", + "name": "attributes", + "serializedName": "attributes", + "type": { + "$id": "6017", + "kind": "nullable", + "type": { + "$ref": "3442" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultItem.attributes", + "serializationOptions": { + "json": { + "name": "attributes" + } + } + }, + { + "$id": "6018", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "Content chunks from the file.", + "type": { + "$id": "6019", + "kind": "array", + "name": "ArrayVectorStoreSearchResultContentObject", + "valueType": { + "$id": "6020", + "kind": "model", + "name": "VectorStoreSearchResultContentObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultContentObject", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6021", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of content.", + "type": { + "$ref": "1477" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultContentObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6022", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text content returned from search.", + "type": { + "$id": "6023", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultContentObject.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultItem.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultsPage.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + }, + { + "$id": "6024", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Indicates if there are more results to fetch.", + "type": { + "$id": "6025", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultsPage.has_more", + "serializationOptions": { + "json": { + "name": "has_more" + } + } + }, + { + "$id": "6026", + "kind": "property", + "name": "next_page", + "serializedName": "next_page", + "doc": "The token for the next page, if any.", + "type": { + "$id": "6027", + "kind": "nullable", + "type": { + "$id": "6028", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStoreSearchResultsPage.next_page", + "serializationOptions": { + "json": { + "name": "next_page" + } + } + } + ] + }, + { + "$ref": "6009" + }, + { + "$ref": "6020" + }, + { + "$id": "6029", + "kind": "model", + "name": "CreateCompletionRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6030", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.", + "type": { + "$ref": "957" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "6031", + "kind": "property", + "name": "prompt", + "serializedName": "prompt", + "doc": "The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.\n\nNote that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.", + "type": { + "$id": "6032", + "kind": "nullable", + "type": { + "$id": "6033", + "kind": "union", + "name": "CreateCompletionRequestPrompt", + "variantTypes": [ + { + "$id": "6034", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$ref": "2155" + }, + { + "$ref": "2375" + }, + { + "$ref": "3012" + } + ], + "namespace": "", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.prompt", + "serializationOptions": { + "json": { + "name": "prompt" + } + } + }, + { + "$id": "6035", + "kind": "property", + "name": "best_of", + "serializedName": "best_of", + "doc": "Generates `best_of` completions server-side and returns the \"best\" (the one with the highest log probability per token). Results cannot be streamed.\n\nWhen used with `n`, `best_of` controls the number of candidate completions and `n` specifies how many to return – `best_of` must be greater than `n`.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.", + "type": { + "$id": "6036", + "kind": "nullable", + "type": { + "$id": "6037", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.best_of", + "serializationOptions": { + "json": { + "name": "best_of" + } + } + }, + { + "$id": "6038", + "kind": "property", + "name": "echo", + "serializedName": "echo", + "doc": "Echo back the prompt in addition to the completion", + "type": { + "$id": "6039", + "kind": "nullable", + "type": { + "$id": "6040", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.echo", + "serializationOptions": { + "json": { + "name": "echo" + } + } + }, + { + "$id": "6041", + "kind": "property", + "name": "frequency_penalty", + "serializedName": "frequency_penalty", + "doc": "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)", + "type": { + "$id": "6042", + "kind": "nullable", + "type": { + "$id": "6043", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.frequency_penalty", + "serializationOptions": { + "json": { + "name": "frequency_penalty" + } + } + }, + { + "$id": "6044", + "kind": "property", + "name": "logit_bias", + "serializedName": "logit_bias", + "doc": "Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\n\nAs an example, you can pass `{\"50256\": -100}` to prevent the <|endoftext|> token from being generated.", + "type": { + "$id": "6045", + "kind": "nullable", + "type": { + "$ref": "2843" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.logit_bias", + "serializationOptions": { + "json": { + "name": "logit_bias" + } + } + }, + { + "$id": "6046", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "doc": "Include the log probabilities on the `logprobs` most likely output tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response.\n\nThe maximum value for `logprobs` is 5.", + "type": { + "$id": "6047", + "kind": "nullable", + "type": { + "$id": "6048", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.logprobs", + "serializationOptions": { + "json": { + "name": "logprobs" + } + } + }, + { + "$id": "6049", + "kind": "property", + "name": "max_tokens", + "serializedName": "max_tokens", + "doc": "The maximum number of [tokens](/tokenizer) that can be generated in the completion.\n\nThe token count of your prompt plus `max_tokens` cannot exceed the model's context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.", + "type": { + "$id": "6050", + "kind": "nullable", + "type": { + "$id": "6051", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.max_tokens", + "serializationOptions": { + "json": { + "name": "max_tokens" + } + } + }, + { + "$id": "6052", + "kind": "property", + "name": "n", + "serializedName": "n", + "doc": "How many completions to generate for each prompt.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.", + "type": { + "$id": "6053", + "kind": "nullable", + "type": { + "$id": "6054", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.n", + "serializationOptions": { + "json": { + "name": "n" + } + } + }, + { + "$id": "6055", + "kind": "property", + "name": "presence_penalty", + "serializedName": "presence_penalty", + "doc": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)", + "type": { + "$id": "6056", + "kind": "nullable", + "type": { + "$id": "6057", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.presence_penalty", + "serializationOptions": { + "json": { + "name": "presence_penalty" + } + } + }, + { + "$id": "6058", + "kind": "property", + "name": "seed", + "serializedName": "seed", + "doc": "If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.\n\nDeterminism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.", + "type": { + "$id": "6059", + "kind": "nullable", + "type": { + "$id": "6060", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.seed", + "serializationOptions": { + "json": { + "name": "seed" + } + } + }, + { + "$id": "6061", + "kind": "property", + "name": "stop", + "serializedName": "stop", + "type": { + "$id": "6062", + "kind": "nullable", + "type": { + "$ref": "2839" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.stop", + "serializationOptions": { + "json": { + "name": "stop" + } + } + }, + { + "$id": "6063", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "Whether to stream back partial progress. If set, tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions).", + "type": { + "$id": "6064", + "kind": "nullable", + "type": { + "$id": "6065", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.stream", + "serializationOptions": { + "json": { + "name": "stream" + } + } + }, + { + "$id": "6066", + "kind": "property", + "name": "stream_options", + "serializedName": "stream_options", + "type": { + "$id": "6067", + "kind": "nullable", + "type": { + "$ref": "2869" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.stream_options", + "serializationOptions": { + "json": { + "name": "stream_options" + } + } + }, + { + "$id": "6068", + "kind": "property", + "name": "suffix", + "serializedName": "suffix", + "doc": "The suffix that comes after a completion of inserted text.\n\nThis parameter is only supported for `gpt-3.5-turbo-instruct`.", + "type": { + "$id": "6069", + "kind": "nullable", + "type": { + "$id": "6070", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.suffix", + "serializationOptions": { + "json": { + "name": "suffix" + } + } + }, + { + "$id": "6071", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.", + "type": { + "$id": "6072", + "kind": "nullable", + "type": { + "$id": "6073", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "6074", + "kind": "property", + "name": "top_p", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.", + "type": { + "$id": "6075", + "kind": "nullable", + "type": { + "$id": "6076", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.top_p", + "serializationOptions": { + "json": { + "name": "top_p" + } + } + }, + { + "$id": "6077", + "kind": "property", + "name": "user", + "serializedName": "user", + "doc": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).", + "type": { + "$id": "6078", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionRequest.user", + "serializationOptions": { + "json": { + "name": "user" + } + } + } + ] + }, + { + "$id": "6079", + "kind": "model", + "name": "CreateCompletionResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse", + "usage": "Output,Json", + "doc": "Represents a completion response from the API. Note: both the streamed and non-streamed response objects share the same shape (unlike the chat endpoint).", + "decorators": [], + "properties": [ + { + "$id": "6080", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "A unique identifier for the completion.", + "type": { + "$id": "6081", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "6082", + "kind": "property", + "name": "choices", + "serializedName": "choices", + "doc": "The list of completion choices the model generated for the input prompt.", + "type": { + "$id": "6083", + "kind": "array", + "name": "Array42", + "valueType": { + "$id": "6084", + "kind": "model", + "name": "CreateCompletionResponseChoice", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6085", + "kind": "property", + "name": "finish_reason", + "serializedName": "finish_reason", + "doc": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\nor `content_filter` if content was omitted due to a flag from our content filters.", + "type": { + "$ref": "962" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.anonymous.finish_reason", + "serializationOptions": { + "json": { + "name": "finish_reason" + } + } + }, + { + "$id": "6086", + "kind": "property", + "name": "index", + "serializedName": "index", + "type": { + "$id": "6087", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.anonymous.index", + "serializationOptions": { + "json": { + "name": "index" + } + } + }, + { + "$id": "6088", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "type": { + "$id": "6089", + "kind": "nullable", + "type": { + "$id": "6090", + "kind": "model", + "name": "CreateCompletionResponseChoiceLogprobs1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.logprobs.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6091", + "kind": "property", + "name": "text_offset", + "serializedName": "text_offset", + "type": { + "$ref": "2375" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.logprobs.anonymous.text_offset", + "serializationOptions": { + "json": { + "name": "text_offset" + } + } + }, + { + "$id": "6092", + "kind": "property", + "name": "token_logprobs", + "serializedName": "token_logprobs", + "type": { + "$ref": "2396" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.logprobs.anonymous.token_logprobs", + "serializationOptions": { + "json": { + "name": "token_logprobs" + } + } + }, + { + "$id": "6093", + "kind": "property", + "name": "tokens", + "serializedName": "tokens", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.logprobs.anonymous.tokens", + "serializationOptions": { + "json": { + "name": "tokens" + } + } + }, + { + "$id": "6094", + "kind": "property", + "name": "top_logprobs", + "serializedName": "top_logprobs", + "type": { + "$id": "6095", + "kind": "array", + "name": "ArrayRecord1", + "valueType": { + "$id": "6096", + "kind": "dict", + "keyType": { + "$id": "6097", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "6098", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.logprobs.anonymous.top_logprobs", + "serializationOptions": { + "json": { + "name": "top_logprobs" + } + } + } + ] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.anonymous.logprobs", + "serializationOptions": { + "json": { + "name": "logprobs" + } + } + }, + { + "$id": "6099", + "kind": "property", + "name": "text", + "serializedName": "text", + "type": { + "$id": "6100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choice.anonymous.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.choices", + "serializationOptions": { + "json": { + "name": "choices" + } + } + }, + { + "$id": "6101", + "kind": "property", + "name": "created", + "serializedName": "created", + "doc": "The Unix timestamp (in seconds) of when the completion was created.", + "type": { + "$id": "6102", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "6103", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.created", + "serializationOptions": { + "json": { + "name": "created" + } + } + }, + { + "$id": "6104", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model used for completion.", + "type": { + "$id": "6105", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "6106", + "kind": "property", + "name": "system_fingerprint", + "serializedName": "system_fingerprint", + "doc": "This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.", + "type": { + "$id": "6107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.system_fingerprint", + "serializationOptions": { + "json": { + "name": "system_fingerprint" + } + } + }, + { + "$id": "6108", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"text_completion\"", + "type": { + "$ref": "1479" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "6109", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "type": { + "$ref": "2633" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateCompletionResponse.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + } + } + ] + }, + { + "$ref": "6084" + }, + { + "$ref": "6090" + }, + { + "$id": "6110", + "kind": "model", + "name": "ListModelsResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ListModelsResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6111", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1481" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListModelsResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "6112", + "kind": "property", + "name": "data", + "serializedName": "data", + "type": { + "$id": "6113", + "kind": "array", + "name": "ArrayModel", + "valueType": { + "$id": "6114", + "kind": "model", + "name": "Model", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Model", + "usage": "Output,Json", + "doc": "Describes an OpenAI model offering that can be used with the API.", + "decorators": [], + "properties": [ + { + "$id": "6115", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The model identifier, which can be referenced in the API endpoints.", + "type": { + "$id": "6116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Model.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "6117", + "kind": "property", + "name": "created", + "serializedName": "created", + "doc": "The Unix timestamp (in seconds) when the model was created.", + "type": { + "$id": "6118", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "6119", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Model.created", + "serializationOptions": { + "json": { + "name": "created" + } + } + }, + { + "$id": "6120", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"model\".", + "type": { + "$ref": "1483" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Model.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "6121", + "kind": "property", + "name": "owned_by", + "serializedName": "owned_by", + "doc": "The organization that owns the model.", + "type": { + "$id": "6122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Model.owned_by", + "serializationOptions": { + "json": { + "name": "owned_by" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ListModelsResponse.data", + "serializationOptions": { + "json": { + "name": "data" + } + } + } + ] + }, + { + "$ref": "6114" + }, + { + "$id": "6123", + "kind": "model", + "name": "DeleteModelResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DeleteModelResponse", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6124", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "6125", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteModelResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "6126", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$id": "6127", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteModelResponse.deleted", + "serializationOptions": { + "json": { + "name": "deleted" + } + } + }, + { + "$id": "6128", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1485" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DeleteModelResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + { + "$id": "6129", + "kind": "model", + "name": "RealtimeClientEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEvent", + "usage": "Input,Json", + "doc": "A realtime client event.", + "decorators": [], + "discriminatorProperty": { + "$id": "6130", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of event.", + "type": { + "$ref": "967" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEvent.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "6130" + }, + { + "$id": "6131", + "kind": "property", + "name": "event_id", + "serializedName": "event_id", + "type": { + "$id": "6132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEvent.event_id", + "serializationOptions": { + "json": { + "name": "event_id" + } + } + } + ], + "discriminatedSubtypes": { + "session.update": { + "$id": "6133", + "kind": "model", + "name": "RealtimeClientEventSessionUpdate", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventSessionUpdate", + "usage": "Input,Json", + "doc": "Send this event to update the session’s default configuration.\nThe client may send this event at any time to update any field,\nexcept for `voice`. However, note that once a session has been\ninitialized with a particular `model`, it can’t be changed to\nanother model using `session.update`.\n\nWhen the server receives a `session.update`, it will respond\nwith a `session.updated` event showing the full, effective configuration.\nOnly the fields that are present are updated. To clear a field like\n`instructions`, pass an empty string.", + "discriminatorValue": "session.update", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6134", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `session.update`.", + "type": { + "$ref": "969" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventSessionUpdate.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6135", + "kind": "property", + "name": "session", + "serializedName": "session", + "type": { + "$id": "6136", + "kind": "model", + "name": "RealtimeRequestSession", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6137", + "kind": "property", + "name": "modalities", + "serializedName": "modalities", + "type": { + "$id": "6138", + "kind": "array", + "name": "ArrayRealtimeModality", + "valueType": { + "$ref": "981" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.modalities", + "serializationOptions": { + "json": { + "name": "modalities" + } + } + }, + { + "$id": "6139", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "type": { + "$id": "6140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "6141", + "kind": "property", + "name": "model", + "serializedName": "model", + "type": { + "$ref": "985" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "6142", + "kind": "property", + "name": "voice", + "serializedName": "voice", + "type": { + "$ref": "71" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.voice", + "serializationOptions": { + "json": { + "name": "voice" + } + } + }, + { + "$id": "6143", + "kind": "property", + "name": "input_audio_format", + "serializedName": "input_audio_format", + "type": { + "$ref": "992" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.input_audio_format", + "serializationOptions": { + "json": { + "name": "input_audio_format" + } + } + }, + { + "$id": "6144", + "kind": "property", + "name": "output_audio_format", + "serializedName": "output_audio_format", + "type": { + "$ref": "992" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.output_audio_format", + "serializationOptions": { + "json": { + "name": "output_audio_format" + } + } + }, + { + "$id": "6145", + "kind": "property", + "name": "input_audio_transcription", + "serializedName": "input_audio_transcription", + "type": { + "$id": "6146", + "kind": "nullable", + "type": { + "$id": "6147", + "kind": "model", + "name": "RealtimeAudioInputTranscriptionSettings", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioInputTranscriptionSettings", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6148", + "kind": "property", + "name": "model", + "serializedName": "model", + "type": { + "$ref": "997" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioInputTranscriptionSettings.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "6149", + "kind": "property", + "name": "language", + "serializedName": "language", + "type": { + "$id": "6150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioInputTranscriptionSettings.language", + "serializationOptions": { + "json": { + "name": "language" + } + } + }, + { + "$id": "6151", + "kind": "property", + "name": "prompt", + "serializedName": "prompt", + "type": { + "$id": "6152", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioInputTranscriptionSettings.prompt", + "serializationOptions": { + "json": { + "name": "prompt" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.input_audio_transcription", + "serializationOptions": { + "json": { + "name": "input_audio_transcription" + } + } + }, + { + "$id": "6153", + "kind": "property", + "name": "turn_detection", + "serializedName": "turn_detection", + "type": { + "$id": "6154", + "kind": "nullable", + "type": { + "$id": "6155", + "kind": "model", + "name": "RealtimeTurnDetection", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTurnDetection", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "6156", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1000" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTurnDetection.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "6156" + }, + { + "$id": "6157", + "kind": "property", + "name": "create_response", + "serializedName": "create_response", + "doc": "Whether or not to automatically generate a response when VAD is enabled. true by default.", + "type": { + "$id": "6158", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTurnDetection.create_response", + "serializationOptions": { + "json": { + "name": "create_response" + } + } + }, + { + "$id": "6159", + "kind": "property", + "name": "interrupt_response", + "serializedName": "interrupt_response", + "doc": "Whether or not to automatically interrupt any ongoing response with output to the default conversation (i.e. `conversation` of `auto`) when a VAD start event occurs.", + "type": { + "$id": "6160", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTurnDetection.interrupt_response", + "serializationOptions": { + "json": { + "name": "interrupt_response" + } + } + } + ], + "discriminatedSubtypes": { + "server_vad": { + "$id": "6161", + "kind": "model", + "name": "RealtimeServerVadTurnDetection", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerVadTurnDetection", + "usage": "Input,Output,Json", + "discriminatorValue": "server_vad", + "decorators": [], + "baseModel": { + "$ref": "6155" + }, + "properties": [ + { + "$id": "6162", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1002" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerVadTurnDetection.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6163", + "kind": "property", + "name": "threshold", + "serializedName": "threshold", + "doc": "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.", + "type": { + "$id": "6164", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerVadTurnDetection.threshold", + "serializationOptions": { + "json": { + "name": "threshold" + } + } + }, + { + "$id": "6165", + "kind": "property", + "name": "prefix_padding_ms", + "serializedName": "prefix_padding_ms", + "doc": "Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.", + "type": { + "$id": "6166", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "6167", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerVadTurnDetection.prefix_padding_ms", + "serializationOptions": { + "json": { + "name": "prefix_padding_ms" + } + } + }, + { + "$id": "6168", + "kind": "property", + "name": "silence_duration_ms", + "serializedName": "silence_duration_ms", + "doc": "Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. With shorter values the model will respond more quickly, but may jump in on short pauses from the user.", + "type": { + "$id": "6169", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "6170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerVadTurnDetection.silence_duration_ms", + "serializationOptions": { + "json": { + "name": "silence_duration_ms" + } + } + } + ] + }, + "semantic_vad": { + "$id": "6171", + "kind": "model", + "name": "RealtimeSemanticVadTurnDetection", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSemanticVadTurnDetection", + "usage": "Input,Output,Json", + "discriminatorValue": "semantic_vad", + "decorators": [], + "baseModel": { + "$ref": "6155" + }, + "properties": [ + { + "$id": "6172", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1003" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSemanticVadTurnDetection.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6173", + "kind": "property", + "name": "eagerness", + "serializedName": "eagerness", + "doc": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.", + "type": { + "$ref": "1004" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSemanticVadTurnDetection.eagerness", + "serializationOptions": { + "json": { + "name": "eagerness" + } + } + } + ] + } + } + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.turn_detection", + "serializationOptions": { + "json": { + "name": "turn_detection" + } + } + }, + { + "$id": "6174", + "kind": "property", + "name": "input_audio_noise_reduction", + "serializedName": "input_audio_noise_reduction", + "type": { + "$id": "6175", + "kind": "model", + "name": "RealtimeAudioNoiseReduction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioNoiseReduction", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "6176", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1010" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioNoiseReduction.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "6176" + } + ], + "discriminatedSubtypes": { + "near_field": { + "$id": "6177", + "kind": "model", + "name": "RealtimeAudioNearFieldNoiseReduction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioNearFieldNoiseReduction", + "usage": "Input,Output,Json", + "discriminatorValue": "near_field", + "decorators": [], + "baseModel": { + "$ref": "6175" + }, + "properties": [ + { + "$id": "6178", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1012" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioNearFieldNoiseReduction.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "far_field": { + "$id": "6179", + "kind": "model", + "name": "RealtimeAudioFarFieldNoiseReduction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioFarFieldNoiseReduction", + "usage": "Input,Output,Json", + "discriminatorValue": "far_field", + "decorators": [], + "baseModel": { + "$ref": "6175" + }, + "properties": [ + { + "$id": "6180", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1013" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeAudioFarFieldNoiseReduction.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + } + } + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.input_audio_noise_reduction", + "serializationOptions": { + "json": { + "name": "input_audio_noise_reduction" + } + } + }, + { + "$id": "6181", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "type": { + "$id": "6182", + "kind": "array", + "name": "ArrayRealtimeTool", + "valueType": { + "$id": "6183", + "kind": "model", + "name": "RealtimeTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTool", + "usage": "Input,Output,Json", + "doc": "The base representation of a realtime tool definition.", + "decorators": [], + "discriminatorProperty": { + "$id": "6184", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1014" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "6184" + } + ], + "discriminatedSubtypes": { + "function": { + "$id": "6185", + "kind": "model", + "name": "RealtimeFunctionTool", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeFunctionTool", + "usage": "Input,Output,Json", + "doc": "The definition of a function tool as used by the realtime endpoint.", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "6183" + }, + "properties": [ + { + "$id": "6186", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1016" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeFunctionTool.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6187", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "6188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeFunctionTool.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "6189", + "kind": "property", + "name": "description", + "serializedName": "description", + "type": { + "$id": "6190", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeFunctionTool.description", + "serializationOptions": { + "json": { + "name": "description" + } + } + }, + { + "$id": "6191", + "kind": "property", + "name": "parameters", + "serializedName": "parameters", + "type": { + "$id": "6192", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeFunctionTool.parameters", + "serializationOptions": { + "json": { + "name": "parameters" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "6193", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "type": { + "$id": "6194", + "kind": "union", + "name": "RealtimeToolChoice", + "variantTypes": [ + { + "$ref": "1017" + }, + { + "$id": "6195", + "kind": "model", + "name": "RealtimeToolChoiceObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeToolChoiceObject", + "usage": "Input,Output,Json", + "doc": "A base representation for a realtime tool_choice selecting a named tool.", + "decorators": [], + "discriminatorProperty": { + "$id": "6196", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1014" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeToolChoiceObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "6196" + } + ], + "discriminatedSubtypes": { + "function": { + "$id": "6197", + "kind": "model", + "name": "RealtimeToolChoiceFunctionObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeToolChoiceFunctionObject", + "usage": "Input,Output,Json", + "doc": "The representation of a realtime tool_choice selecting a named function tool.", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "6195" + }, + "properties": [ + { + "$id": "6198", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1016" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeToolChoiceFunctionObject.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6199", + "kind": "property", + "name": "function", + "serializedName": "function", + "type": { + "$id": "6200", + "kind": "model", + "name": "RealtimeToolChoiceFunctionObjectFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeToolChoiceFunctionObject.function.anonymous", + "usage": "Input,Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6201", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "6202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeToolChoiceFunctionObject.function.anonymous.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeToolChoiceFunctionObject.function", + "serializationOptions": { + "json": { + "name": "function" + } + } + } + ] + } + } + } + ], + "namespace": "OpenAI", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "6203", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "type": { + "$id": "6204", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "6205", + "kind": "property", + "name": "max_response_output_tokens", + "serializedName": "max_response_output_tokens", + "type": { + "$id": "6206", + "kind": "union", + "name": "RealtimeRequestSessionMaxResponseOutputTokens", + "variantTypes": [ + { + "$id": "6207", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + { + "$ref": "1487" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSession.max_response_output_tokens", + "serializationOptions": { + "json": { + "name": "max_response_output_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventSessionUpdate.session", + "serializationOptions": { + "json": { + "name": "session" + } + } + } + ] + }, + "input_audio_buffer.append": { + "$id": "6208", + "kind": "model", + "name": "RealtimeClientEventInputAudioBufferAppend", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventInputAudioBufferAppend", + "usage": "Input,Json", + "doc": "Send this event to append audio bytes to the input audio buffer. The audio\nbuffer is temporary storage you can write to and later commit. In Server VAD\nmode, the audio buffer is used to detect speech and the server will decide\nwhen to commit. When Server VAD is disabled, you must commit the audio buffer\nmanually.\n\nThe client may choose how much audio to place in each event up to a maximum\nof 15 MiB, for example streaming smaller chunks from the client may allow the\nVAD to be more responsive. Unlike made other client events, the server will\nnot send a confirmation response to this event.", + "discriminatorValue": "input_audio_buffer.append", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6209", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `input_audio_buffer.append`.", + "type": { + "$ref": "970" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventInputAudioBufferAppend.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6210", + "kind": "property", + "name": "audio", + "serializedName": "audio", + "doc": "Base64-encoded audio bytes. This must be in the format specified by the\n`input_audio_format` field in the session configuration.", + "type": { + "$id": "6211", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventInputAudioBufferAppend.audio", + "serializationOptions": { + "json": { + "name": "audio" + } + } + } + ] + }, + "input_audio_buffer.commit": { + "$id": "6212", + "kind": "model", + "name": "RealtimeClientEventInputAudioBufferCommit", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventInputAudioBufferCommit", + "usage": "Input,Json", + "doc": "Send this event to commit the user input audio buffer, which will create a\nnew user message item in the conversation. This event will produce an error\nif the input audio buffer is empty. When in Server VAD mode, the client does\nnot need to send this event, the server will commit the audio buffer\nautomatically.\n\nCommitting the input audio buffer will trigger input audio transcription\n(if enabled in session configuration), but it will not create a response\nfrom the model. The server will respond with an `input_audio_buffer.committed`\nevent.", + "discriminatorValue": "input_audio_buffer.commit", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6213", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `input_audio_buffer.commit`.", + "type": { + "$ref": "971" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventInputAudioBufferCommit.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "input_audio_buffer.clear": { + "$id": "6214", + "kind": "model", + "name": "RealtimeClientEventInputAudioBufferClear", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventInputAudioBufferClear", + "usage": "Input,Json", + "doc": "Send this event to clear the audio bytes in the buffer. The server will\nrespond with an `input_audio_buffer.cleared` event.", + "discriminatorValue": "input_audio_buffer.clear", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6215", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `input_audio_buffer.clear`.", + "type": { + "$ref": "972" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventInputAudioBufferClear.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "output_audio_buffer.clear": { + "$id": "6216", + "kind": "model", + "name": "RealtimeClientEventOutputAudioBufferClear", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventOutputAudioBufferClear", + "usage": "Input,Json", + "doc": "**WebRTC Only:** Emit to cut off the current audio response. This will trigger the server to\nstop generating audio and emit a `output_audio_buffer.cleared` event. This\nevent should be preceded by a `response.cancel` client event to stop the\ngeneration of the current response.\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).", + "discriminatorValue": "output_audio_buffer.clear", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6217", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `output_audio_buffer.clear`.", + "type": { + "$ref": "973" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventOutputAudioBufferClear.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "conversation.item.create": { + "$id": "6218", + "kind": "model", + "name": "RealtimeClientEventConversationItemCreate", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemCreate", + "usage": "Input,Json", + "doc": "Add a new Item to the Conversation's context, including messages, function\ncalls, and function call responses. This event can be used both to populate a\n\"history\" of the conversation and to add new items mid-stream, but has the\ncurrent limitation that it cannot populate assistant audio messages.\n\nIf successful, the server will respond with a `conversation.item.created`\nevent, otherwise an `error` event will be sent.", + "discriminatorValue": "conversation.item.create", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6219", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.item.create`.", + "type": { + "$ref": "974" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemCreate.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6220", + "kind": "property", + "name": "previous_item_id", + "serializedName": "previous_item_id", + "doc": "The ID of the preceding item after which the new item will be inserted.\nIf not set, the new item will be appended to the end of the conversation.\nIf set to `root`, the new item will be added to the beginning of the conversation.\nIf set to an existing ID, it allows an item to be inserted mid-conversation. If the\nID cannot be found, an error will be returned and the item will not be added.", + "type": { + "$id": "6221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemCreate.previous_item_id", + "serializationOptions": { + "json": { + "name": "previous_item_id" + } + } + }, + { + "$id": "6222", + "kind": "property", + "name": "item", + "serializedName": "item", + "type": { + "$id": "6223", + "kind": "model", + "name": "RealtimeConversationRequestItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeConversationRequestItem", + "usage": "Input,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "6224", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1022" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeConversationRequestItem.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "6224" + }, + { + "$id": "6225", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "6226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeConversationRequestItem.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ], + "discriminatedSubtypes": { + "message": { + "$id": "6227", + "kind": "model", + "name": "RealtimeRequestMessageItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestMessageItem", + "usage": "Input,Json", + "discriminatorValue": "message", + "decorators": [], + "discriminatorProperty": { + "$id": "6228", + "kind": "property", + "name": "role", + "serializedName": "role", + "type": { + "$ref": "1027" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestMessageItem.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + "baseModel": { + "$ref": "6223" + }, + "properties": [ + { + "$id": "6229", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1024" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestMessageItem.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$ref": "6228" + }, + { + "$id": "6230", + "kind": "property", + "name": "status", + "serializedName": "status", + "type": { + "$ref": "1032" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestMessageItem.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + } + ], + "discriminatedSubtypes": { + "system": { + "$id": "6231", + "kind": "model", + "name": "RealtimeRequestSystemMessageItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSystemMessageItem", + "usage": "Input,Json", + "discriminatorValue": "system", + "decorators": [], + "baseModel": { + "$ref": "6227" + }, + "properties": [ + { + "$id": "6232", + "kind": "property", + "name": "role", + "serializedName": "role", + "type": { + "$ref": "1029" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSystemMessageItem.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "6233", + "kind": "property", + "name": "content", + "serializedName": "content", + "type": { + "$id": "6234", + "kind": "array", + "name": "ArrayRealtimeRequestTextContentPart", + "valueType": { + "$id": "6235", + "kind": "model", + "name": "RealtimeRequestTextContentPart", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestTextContentPart", + "usage": "Input,Output,Json", + "discriminatorValue": "input_text", + "decorators": [], + "baseModel": { + "$id": "6236", + "kind": "model", + "name": "RealtimeContentPart", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeContentPart", + "usage": "Input,Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "6237", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1037" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeContentPart.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "6237" + } + ], + "discriminatedSubtypes": { + "input_text": { + "$ref": "6235" + }, + "input_audio": { + "$id": "6238", + "kind": "model", + "name": "RealtimeRequestAudioContentPart", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestAudioContentPart", + "usage": "Input,Output,Json", + "discriminatorValue": "input_audio", + "decorators": [], + "baseModel": { + "$ref": "6236" + }, + "properties": [ + { + "$id": "6239", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1040" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestAudioContentPart.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6240", + "kind": "property", + "name": "transcript", + "serializedName": "transcript", + "type": { + "$id": "6241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestAudioContentPart.transcript", + "serializationOptions": { + "json": { + "name": "transcript" + } + } + } + ] + }, + "text": { + "$id": "6242", + "kind": "model", + "name": "RealtimeResponseTextContentPart", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseTextContentPart", + "usage": "Output,Json", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "6236" + }, + "properties": [ + { + "$id": "6243", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1041" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseTextContentPart.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6244", + "kind": "property", + "name": "text", + "serializedName": "text", + "type": { + "$id": "6245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseTextContentPart.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "audio": { + "$id": "6246", + "kind": "model", + "name": "RealtimeResponseAudioContentPart", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseAudioContentPart", + "usage": "Output,Json", + "discriminatorValue": "audio", + "decorators": [], + "baseModel": { + "$ref": "6236" + }, + "properties": [ + { + "$id": "6247", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1042" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseAudioContentPart.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6248", + "kind": "property", + "name": "transcript", + "serializedName": "transcript", + "type": { + "$id": "6249", + "kind": "nullable", + "type": { + "$id": "6250", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseAudioContentPart.transcript", + "serializationOptions": { + "json": { + "name": "transcript" + } + } + } + ] + } + } + }, + "properties": [ + { + "$id": "6251", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$id": "6252", + "kind": "enumvalue", + "name": "input_text", + "value": "input_text", + "valueType": { + "$ref": "1038" + }, + "enumType": { + "$ref": "1037" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestTextContentPart.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6253", + "kind": "property", + "name": "text", + "serializedName": "text", + "type": { + "$id": "6254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestTextContentPart.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestSystemMessageItem.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "user": { + "$id": "6255", + "kind": "model", + "name": "RealtimeRequestUserMessageItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestUserMessageItem", + "usage": "Input,Json", + "discriminatorValue": "user", + "decorators": [], + "baseModel": { + "$ref": "6227" + }, + "properties": [ + { + "$id": "6256", + "kind": "property", + "name": "role", + "serializedName": "role", + "type": { + "$ref": "1030" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestUserMessageItem.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "6257", + "kind": "property", + "name": "content", + "serializedName": "content", + "type": { + "$id": "6258", + "kind": "array", + "name": "Array43", + "valueType": { + "$id": "6259", + "kind": "union", + "name": "RealtimeRequestUserMessageItemContent", + "variantTypes": [ + { + "$ref": "6235" + }, + { + "$ref": "6238" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestUserMessageItem.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + }, + "assistant": { + "$id": "6260", + "kind": "model", + "name": "RealtimeRequestAssistantMessageItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestAssistantMessageItem", + "usage": "Input,Json", + "discriminatorValue": "assistant", + "decorators": [], + "baseModel": { + "$ref": "6227" + }, + "properties": [ + { + "$id": "6261", + "kind": "property", + "name": "role", + "serializedName": "role", + "type": { + "$ref": "1031" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestAssistantMessageItem.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "6262", + "kind": "property", + "name": "content", + "serializedName": "content", + "type": { + "$ref": "6234" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestAssistantMessageItem.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + } + ] + } + } + }, + "function_call": { + "$id": "6263", + "kind": "model", + "name": "RealtimeRequestFunctionCallItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallItem", + "usage": "Input,Json", + "discriminatorValue": "function_call", + "decorators": [], + "baseModel": { + "$ref": "6223" + }, + "properties": [ + { + "$id": "6264", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1025" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallItem.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6265", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "6266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallItem.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "6267", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "type": { + "$id": "6268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallItem.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "6269", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "type": { + "$id": "6270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallItem.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + }, + { + "$id": "6271", + "kind": "property", + "name": "status", + "serializedName": "status", + "type": { + "$ref": "1032" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallItem.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + } + ] + }, + "function_call_output": { + "$id": "6272", + "kind": "model", + "name": "RealtimeRequestFunctionCallOutputItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallOutputItem", + "usage": "Input,Json", + "discriminatorValue": "function_call_output", + "decorators": [], + "baseModel": { + "$ref": "6223" + }, + "properties": [ + { + "$id": "6273", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1026" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallOutputItem.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6274", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "type": { + "$id": "6275", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallOutputItem.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "6276", + "kind": "property", + "name": "output", + "serializedName": "output", + "type": { + "$id": "6277", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeRequestFunctionCallOutputItem.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemCreate.item", + "serializationOptions": { + "json": { + "name": "item" + } + } + } + ] + }, + "conversation.item.truncate": { + "$id": "6278", + "kind": "model", + "name": "RealtimeClientEventConversationItemTruncate", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemTruncate", + "usage": "Input,Json", + "doc": "Send this event to truncate a previous assistant message’s audio. The server\nwill produce audio faster than realtime, so this event is useful when the user\ninterrupts to truncate audio that has already been sent to the client but not\nyet played. This will synchronize the server's understanding of the audio with\nthe client's playback.\n\nTruncating audio will delete the server-side text transcript to ensure there\nis not text in the context that hasn't been heard by the user.\n\nIf successful, the server will respond with a `conversation.item.truncated`\nevent.", + "discriminatorValue": "conversation.item.truncate", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6279", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.item.truncate`.", + "type": { + "$ref": "976" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemTruncate.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6280", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the assistant message item to truncate. Only assistant message\nitems can be truncated.", + "type": { + "$id": "6281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemTruncate.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6282", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part to truncate. Set this to 0.", + "type": { + "$id": "6283", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemTruncate.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6284", + "kind": "property", + "name": "audio_end_ms", + "serializedName": "audio_end_ms", + "doc": "Inclusive duration up to which audio is truncated, in milliseconds. If\nthe audio_end_ms is greater than the actual audio duration, the server\nwill respond with an error.", + "type": { + "$id": "6285", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemTruncate.audio_end_ms", + "serializationOptions": { + "json": { + "name": "audio_end_ms" + } + } + } + ] + }, + "conversation.item.delete": { + "$id": "6286", + "kind": "model", + "name": "RealtimeClientEventConversationItemDelete", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemDelete", + "usage": "Input,Json", + "doc": "Send this event when you want to remove any item from the conversation\nhistory. The server will respond with a `conversation.item.deleted` event,\nunless the item does not exist in the conversation history, in which case the\nserver will respond with an error.", + "discriminatorValue": "conversation.item.delete", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6287", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.item.delete`.", + "type": { + "$ref": "977" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemDelete.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6288", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item to delete.", + "type": { + "$id": "6289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemDelete.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + } + ] + }, + "response.create": { + "$id": "6290", + "kind": "model", + "name": "RealtimeClientEventResponseCreate", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventResponseCreate", + "usage": "Input,Json", + "doc": "This event instructs the server to create a Response, which means triggering\nmodel inference. When in Server VAD mode, the server will create Responses\nautomatically.\n\nA Response will include at least one Item, and may have two, in which case\nthe second will be a function call. These Items will be appended to the\nconversation history.\n\nThe server will respond with a `response.created` event, events for Items\nand content created, and finally a `response.done` event to indicate the\nResponse is complete.\n\nThe `response.create` event includes inference configuration like\n`instructions`, and `temperature`. These fields will override the Session's\nconfiguration for this Response only.", + "discriminatorValue": "response.create", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6291", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.create`.", + "type": { + "$ref": "978" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventResponseCreate.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6292", + "kind": "property", + "name": "response", + "serializedName": "response", + "type": { + "$id": "6293", + "kind": "model", + "name": "RealtimeResponseCreateParams", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams", + "usage": "Input,Json", + "doc": "Create a new Realtime response with these parameters", + "decorators": [], + "properties": [ + { + "$id": "6294", + "kind": "property", + "name": "modalities", + "serializedName": "modalities", + "doc": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].", + "type": { + "$ref": "6138" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.modalities", + "serializationOptions": { + "json": { + "name": "modalities" + } + } + }, + { + "$id": "6295", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The default system instructions (i.e. system message) prepended to model\ncalls. This field allows the client to guide the model on desired\nresponses. The model can be instructed on response content and format,\n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good\nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion\ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed\nto be followed by the model, but they provide guidance to the model on the\ndesired behavior.\n\nNote that the server sets default instructions which will be used if this\nfield is not set and are visible in the `session.created` event at the\nstart of the session.", + "type": { + "$id": "6296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "6297", + "kind": "property", + "name": "voice", + "serializedName": "voice", + "doc": "The voice the model uses to respond. Voice cannot be changed during the\nsession once the model has responded with audio at least once. Current\nvoice options are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`,\n`onyx`, `nova`, `sage`, `shimmer`, and `verse`.", + "type": { + "$ref": "71" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.voice", + "serializationOptions": { + "json": { + "name": "voice" + } + } + }, + { + "$id": "6298", + "kind": "property", + "name": "output_audio_format", + "serializedName": "output_audio_format", + "doc": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.", + "type": { + "$ref": "992" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.output_audio_format", + "serializationOptions": { + "json": { + "name": "output_audio_format" + } + } + }, + { + "$id": "6299", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "Tools (functions) available to the model.", + "type": { + "$ref": "6182" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "6300", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "doc": "How the model chooses tools. Options are `auto`, `none`, `required`, or\nspecify a function, like `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}`.", + "type": { + "$id": "6301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "6302", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.", + "type": { + "$id": "6303", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "6304", + "kind": "property", + "name": "max_output_tokens", + "serializedName": "max_output_tokens", + "doc": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.", + "type": { + "$id": "6305", + "kind": "union", + "name": "RealtimeResponseCreateParamsMaxOutputTokens", + "variantTypes": [ + { + "$id": "6306", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + { + "$ref": "1489" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.max_output_tokens", + "serializationOptions": { + "json": { + "name": "max_output_tokens" + } + } + }, + { + "$id": "6307", + "kind": "property", + "name": "conversation", + "serializedName": "conversation", + "doc": "Controls which conversation the response is added to. Currently supports\n`auto` and `none`, with `auto` as the default value. The `auto` value\nmeans that the contents of the response will be added to the default\nconversation. Set this to `none` to create an out-of-band response which\nwill not add items to default conversation.", + "type": { + "$ref": "1043" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.conversation", + "serializationOptions": { + "json": { + "name": "conversation" + } + } + }, + { + "$id": "6308", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "6309", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "Input items to include in the prompt for the model. Using this field\ncreates a new context for this Response instead of using the default\nconversation. An empty array `[]` will clear the context for this Response.\nNote that this can include references to items from the default conversation.", + "type": { + "$id": "6310", + "kind": "array", + "name": "ArrayRealtimeConversationRequestItem", + "valueType": { + "$ref": "6223" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseCreateParams.input", + "serializationOptions": { + "json": { + "name": "input" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventResponseCreate.response", + "serializationOptions": { + "json": { + "name": "response" + } + } + } + ] + }, + "response.cancel": { + "$id": "6311", + "kind": "model", + "name": "RealtimeClientEventResponseCancel", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventResponseCancel", + "usage": "Input,Json", + "doc": "Send this event to cancel an in-progress response. The server will respond\nwith a `response.cancelled` event or an error if there is no response to\ncancel.", + "discriminatorValue": "response.cancel", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6312", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.cancel`.", + "type": { + "$ref": "979" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventResponseCancel.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6313", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "A specific response ID to cancel - if not provided, will cancel an\nin-progress response in the default conversation.", + "type": { + "$id": "6314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventResponseCancel.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + } + ] + }, + "conversation.item.retrieve": { + "$id": "6315", + "kind": "model", + "name": "RealtimeClientEventConversationItemRetrieve", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemRetrieve", + "usage": "Input,Json", + "doc": "Send this event when you want to retrieve the server's representation of a specific item in the conversation history. This is useful, for example, to inspect user audio after noise cancellation and VAD.\nThe server will respond with a `conversation.item.retrieved` event,\nunless the item does not exist in the conversation history, in which case the\nserver will respond with an error.", + "discriminatorValue": "conversation.item.retrieve", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6316", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.item.retrieve`.", + "type": { + "$ref": "975" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemRetrieve.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6317", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item to retrieve.", + "type": { + "$id": "6318", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventConversationItemRetrieve.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + } + ] + }, + "transcription_session.update": { + "$id": "6319", + "kind": "model", + "name": "RealtimeClientEventTranscriptionSessionUpdate", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventTranscriptionSessionUpdate", + "usage": "Input,Json", + "doc": "Send this event to update a transcription session.", + "discriminatorValue": "transcription_session.update", + "decorators": [], + "baseModel": { + "$ref": "6129" + }, + "properties": [ + { + "$id": "6320", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `transcription_session.update`.", + "type": { + "$ref": "980" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventTranscriptionSessionUpdate.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6321", + "kind": "property", + "name": "session", + "serializedName": "session", + "type": { + "$id": "6322", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest", + "usage": "Input,Json", + "doc": "Realtime transcription session object configuration.", + "decorators": [], + "properties": [ + { + "$id": "6323", + "kind": "property", + "name": "modalities", + "serializedName": "modalities", + "doc": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].", + "type": { + "$id": "6324", + "kind": "array", + "name": "Array44", + "valueType": { + "$ref": "1047" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.modalities", + "serializationOptions": { + "json": { + "name": "modalities" + } + } + }, + { + "$id": "6325", + "kind": "property", + "name": "input_audio_format", + "serializedName": "input_audio_format", + "doc": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate,\nsingle channel (mono), and little-endian byte order.", + "type": { + "$ref": "1051" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_format", + "serializationOptions": { + "json": { + "name": "input_audio_format" + } + } + }, + { + "$id": "6326", + "kind": "property", + "name": "input_audio_transcription", + "serializedName": "input_audio_transcription", + "doc": "Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.", + "type": { + "$id": "6327", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateRequestInputAudioTranscription", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_transcription.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6328", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.", + "type": { + "$ref": "1056" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_transcription.anonymous.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "6329", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.", + "type": { + "$id": "6330", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_transcription.anonymous.language", + "serializationOptions": { + "json": { + "name": "language" + } + } + }, + { + "$id": "6331", + "kind": "property", + "name": "prompt", + "serializedName": "prompt", + "doc": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".", + "type": { + "$id": "6332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_transcription.anonymous.prompt", + "serializationOptions": { + "json": { + "name": "prompt" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_transcription", + "serializationOptions": { + "json": { + "name": "input_audio_transcription" + } + } + }, + { + "$id": "6333", + "kind": "property", + "name": "turn_detection", + "serializedName": "turn_detection", + "doc": "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjuction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.", + "type": { + "$id": "6334", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateRequestTurnDetection", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6335", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Type of turn detection.", + "type": { + "$ref": "1061" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6336", + "kind": "property", + "name": "eagerness", + "serializedName": "eagerness", + "doc": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.", + "type": { + "$ref": "1065" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.anonymous.eagerness", + "serializationOptions": { + "json": { + "name": "eagerness" + } + } + }, + { + "$id": "6337", + "kind": "property", + "name": "threshold", + "serializedName": "threshold", + "doc": "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.", + "type": { + "$id": "6338", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.anonymous.threshold", + "serializationOptions": { + "json": { + "name": "threshold" + } + } + }, + { + "$id": "6339", + "kind": "property", + "name": "prefix_padding_ms", + "serializedName": "prefix_padding_ms", + "doc": "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.", + "type": { + "$id": "6340", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.anonymous.prefix_padding_ms", + "serializationOptions": { + "json": { + "name": "prefix_padding_ms" + } + } + }, + { + "$id": "6341", + "kind": "property", + "name": "silence_duration_ms", + "serializedName": "silence_duration_ms", + "doc": "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.", + "type": { + "$id": "6342", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.anonymous.silence_duration_ms", + "serializationOptions": { + "json": { + "name": "silence_duration_ms" + } + } + }, + { + "$id": "6343", + "kind": "property", + "name": "create_response", + "serializedName": "create_response", + "doc": "Whether or not to automatically generate a response when a VAD stop event occurs. Not available for transcription sessions.", + "type": { + "$id": "6344", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.anonymous.create_response", + "serializationOptions": { + "json": { + "name": "create_response" + } + } + }, + { + "$id": "6345", + "kind": "property", + "name": "interrupt_response", + "serializedName": "interrupt_response", + "doc": "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs. Not available for transcription sessions.", + "type": { + "$id": "6346", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection.anonymous.interrupt_response", + "serializationOptions": { + "json": { + "name": "interrupt_response" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.turn_detection", + "serializationOptions": { + "json": { + "name": "turn_detection" + } + } + }, + { + "$id": "6347", + "kind": "property", + "name": "input_audio_noise_reduction", + "serializedName": "input_audio_noise_reduction", + "doc": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.", + "type": { + "$id": "6348", + "kind": "nullable", + "type": { + "$id": "6349", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_noise_reduction.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6350", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.", + "type": { + "$ref": "1071" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_noise_reduction.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.input_audio_noise_reduction", + "serializationOptions": { + "json": { + "name": "input_audio_noise_reduction" + } + } + }, + { + "$id": "6351", + "kind": "property", + "name": "include", + "serializedName": "include", + "doc": "The set of items to include in the transcription. Current available items are:\n- `item.input_audio_transcription.logprobs`", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.include", + "serializationOptions": { + "json": { + "name": "include" + } + } + }, + { + "$id": "6352", + "kind": "property", + "name": "client_secret", + "serializedName": "client_secret", + "doc": "Configuration options for the generated client secret.", + "type": { + "$id": "6353", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateRequestClientSecret", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.client_secret.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6354", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "Configuration for the ephemeral token expiration.", + "type": { + "$id": "6355", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateRequestClientSecretExpiresAt", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.client_secret.expires_at.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6356", + "kind": "property", + "name": "anchor", + "serializedName": "anchor", + "doc": "The anchor point for the ephemeral token expiration. Only `created_at` is currently supported.", + "type": { + "$ref": "1491" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.client_secret.expires_at.anonymous.anchor", + "serializationOptions": { + "json": { + "name": "anchor" + } + } + }, + { + "$id": "6357", + "kind": "property", + "name": "seconds", + "serializedName": "seconds", + "doc": "The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200`.", + "type": { + "$id": "6358", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.client_secret.expires_at.anonymous.seconds", + "serializationOptions": { + "json": { + "name": "seconds" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.client_secret.anonymous.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateRequest.client_secret", + "serializationOptions": { + "json": { + "name": "client_secret" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeClientEventTranscriptionSessionUpdate.session", + "serializationOptions": { + "json": { + "name": "session" + } + } + } + ] + } + } + }, + { + "$ref": "6133" + }, + { + "$ref": "6136" + }, + { + "$ref": "6147" + }, + { + "$ref": "6155" + }, + { + "$ref": "6161" + }, + { + "$ref": "6171" + }, + { + "$ref": "6175" + }, + { + "$ref": "6177" + }, + { + "$ref": "6179" + }, + { + "$ref": "6183" + }, + { + "$ref": "6185" + }, + { + "$ref": "6195" + }, + { + "$ref": "6197" + }, + { + "$ref": "6200" + }, + { + "$ref": "6208" + }, + { + "$ref": "6212" + }, + { + "$ref": "6214" + }, + { + "$ref": "6216" + }, + { + "$ref": "6218" + }, + { + "$ref": "6223" + }, + { + "$ref": "6227" + }, + { + "$ref": "6231" + }, + { + "$ref": "6235" + }, + { + "$ref": "6236" + }, + { + "$ref": "6238" + }, + { + "$ref": "6242" + }, + { + "$ref": "6246" + }, + { + "$ref": "6255" + }, + { + "$ref": "6260" + }, + { + "$ref": "6263" + }, + { + "$ref": "6272" + }, + { + "$ref": "6278" + }, + { + "$ref": "6286" + }, + { + "$ref": "6290" + }, + { + "$ref": "6293" + }, + { + "$ref": "6311" + }, + { + "$ref": "6315" + }, + { + "$ref": "6319" + }, + { + "$ref": "6322" + }, + { + "$ref": "6327" + }, + { + "$ref": "6334" + }, + { + "$ref": "6349" + }, + { + "$ref": "6353" + }, + { + "$ref": "6355" + }, + { + "$id": "6359", + "kind": "model", + "name": "RealtimeServerEvent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEvent", + "usage": "Output,Json", + "doc": "A realtime server event.", + "decorators": [], + "discriminatorProperty": { + "$id": "6360", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of event.", + "type": { + "$ref": "1075" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEvent.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "6360" + }, + { + "$id": "6361", + "kind": "property", + "name": "event_id", + "serializedName": "event_id", + "type": { + "$id": "6362", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEvent.event_id", + "serializationOptions": { + "json": { + "name": "event_id" + } + } + } + ], + "discriminatedSubtypes": { + "error": { + "$id": "6363", + "kind": "model", + "name": "RealtimeServerEventError", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventError", + "usage": "Output,Json", + "doc": "Returned when an error occurs, which could be a client problem or a server\nproblem. Most errors are recoverable and the session will stay open, we\nrecommend to implementors to monitor and log error messages by default.", + "discriminatorValue": "error", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6364", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `error`.", + "type": { + "$ref": "1077" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventError.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6365", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "Details of the error.", + "type": { + "$id": "6366", + "kind": "model", + "name": "RealtimeServerEventErrorError", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventError.error.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6367", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of error (e.g., \"invalid_request_error\", \"server_error\").", + "type": { + "$id": "6368", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventError.error.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6369", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "Error code, if any.", + "type": { + "$id": "6370", + "kind": "nullable", + "type": { + "$id": "6371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventError.error.anonymous.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "6372", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable error message.", + "type": { + "$id": "6373", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventError.error.anonymous.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + }, + { + "$id": "6374", + "kind": "property", + "name": "param", + "serializedName": "param", + "doc": "Parameter related to the error, if any.", + "type": { + "$id": "6375", + "kind": "nullable", + "type": { + "$id": "6376", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventError.error.anonymous.param", + "serializationOptions": { + "json": { + "name": "param" + } + } + }, + { + "$id": "6377", + "kind": "property", + "name": "event_id", + "serializedName": "event_id", + "doc": "The event_id of the client event that caused the error, if applicable.", + "type": { + "$id": "6378", + "kind": "nullable", + "type": { + "$id": "6379", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventError.error.anonymous.event_id", + "serializationOptions": { + "json": { + "name": "event_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventError.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + "session.created": { + "$id": "6380", + "kind": "model", + "name": "RealtimeServerEventSessionCreated", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventSessionCreated", + "usage": "Output,Json", + "doc": "Returned when a Session is created. Emitted automatically when a new\nconnection is established as the first server event. This event will contain\nthe default Session configuration.", + "discriminatorValue": "session.created", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6381", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `session.created`.", + "type": { + "$ref": "1078" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventSessionCreated.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6382", + "kind": "property", + "name": "session", + "serializedName": "session", + "type": { + "$id": "6383", + "kind": "model", + "name": "RealtimeResponseSession", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6384", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1493" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "6385", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "6386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "6387", + "kind": "property", + "name": "model", + "serializedName": "model", + "type": { + "$id": "6388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "6389", + "kind": "property", + "name": "modalities", + "serializedName": "modalities", + "type": { + "$ref": "6138" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.modalities", + "serializationOptions": { + "json": { + "name": "modalities" + } + } + }, + { + "$id": "6390", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "type": { + "$id": "6391", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "6392", + "kind": "property", + "name": "voice", + "serializedName": "voice", + "type": { + "$ref": "71" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.voice", + "serializationOptions": { + "json": { + "name": "voice" + } + } + }, + { + "$id": "6393", + "kind": "property", + "name": "input_audio_format", + "serializedName": "input_audio_format", + "type": { + "$ref": "992" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.input_audio_format", + "serializationOptions": { + "json": { + "name": "input_audio_format" + } + } + }, + { + "$id": "6394", + "kind": "property", + "name": "output_audio_format", + "serializedName": "output_audio_format", + "type": { + "$ref": "992" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.output_audio_format", + "serializationOptions": { + "json": { + "name": "output_audio_format" + } + } + }, + { + "$id": "6395", + "kind": "property", + "name": "input_audio_transcription", + "serializedName": "input_audio_transcription", + "type": { + "$id": "6396", + "kind": "nullable", + "type": { + "$ref": "6147" + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.input_audio_transcription", + "serializationOptions": { + "json": { + "name": "input_audio_transcription" + } + } + }, + { + "$id": "6397", + "kind": "property", + "name": "turn_detection", + "serializedName": "turn_detection", + "type": { + "$ref": "6155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.turn_detection", + "serializationOptions": { + "json": { + "name": "turn_detection" + } + } + }, + { + "$id": "6398", + "kind": "property", + "name": "input_audio_noise_reduction", + "serializedName": "input_audio_noise_reduction", + "type": { + "$ref": "6175" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.input_audio_noise_reduction", + "serializationOptions": { + "json": { + "name": "input_audio_noise_reduction" + } + } + }, + { + "$id": "6399", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "type": { + "$ref": "6182" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "6400", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "type": { + "$ref": "6194" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "6401", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "type": { + "$id": "6402", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "6403", + "kind": "property", + "name": "max_response_output_tokens", + "serializedName": "max_response_output_tokens", + "type": { + "$id": "6404", + "kind": "nullable", + "type": { + "$id": "6405", + "kind": "union", + "name": "RealtimeResponseSessionMaxResponseOutputTokens", + "variantTypes": [ + { + "$id": "6406", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + { + "$ref": "1495" + } + ], + "namespace": "", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseSession.max_response_output_tokens", + "serializationOptions": { + "json": { + "name": "max_response_output_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventSessionCreated.session", + "serializationOptions": { + "json": { + "name": "session" + } + } + } + ] + }, + "session.updated": { + "$id": "6407", + "kind": "model", + "name": "RealtimeServerEventSessionUpdated", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventSessionUpdated", + "usage": "Output,Json", + "doc": "Returned when a session is updated with a `session.update` event, unless\nthere is an error.", + "discriminatorValue": "session.updated", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6408", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `session.updated`.", + "type": { + "$ref": "1079" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventSessionUpdated.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6409", + "kind": "property", + "name": "session", + "serializedName": "session", + "type": { + "$ref": "6383" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventSessionUpdated.session", + "serializationOptions": { + "json": { + "name": "session" + } + } + } + ] + }, + "conversation.created": { + "$id": "6410", + "kind": "model", + "name": "RealtimeServerEventConversationCreated", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationCreated", + "usage": "Output,Json", + "doc": "Returned when a conversation is created. Emitted right after session creation.", + "discriminatorValue": "conversation.created", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6411", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.created`.", + "type": { + "$ref": "1080" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationCreated.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6412", + "kind": "property", + "name": "conversation", + "serializedName": "conversation", + "doc": "The conversation resource.", + "type": { + "$id": "6413", + "kind": "model", + "name": "RealtimeServerEventConversationCreatedConversation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationCreated.conversation.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6414", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The unique ID of the conversation.", + "type": { + "$id": "6415", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationCreated.conversation.anonymous.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "6416", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, must be `realtime.conversation`.", + "type": { + "$id": "6417", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationCreated.conversation.anonymous.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationCreated.conversation", + "serializationOptions": { + "json": { + "name": "conversation" + } + } + } + ] + }, + "input_audio_buffer.committed": { + "$id": "6418", + "kind": "model", + "name": "RealtimeServerEventInputAudioBufferCommitted", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferCommitted", + "usage": "Output,Json", + "doc": "Returned when an input audio buffer is committed, either by the client or\nautomatically in server VAD mode. The `item_id` property is the ID of the user\nmessage item that will be created, thus a `conversation.item.created` event\nwill also be sent to the client.", + "discriminatorValue": "input_audio_buffer.committed", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6419", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `input_audio_buffer.committed`.", + "type": { + "$ref": "1088" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferCommitted.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6420", + "kind": "property", + "name": "previous_item_id", + "serializedName": "previous_item_id", + "doc": "The ID of the preceding item after which the new item will be inserted.", + "type": { + "$id": "6421", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferCommitted.previous_item_id", + "serializationOptions": { + "json": { + "name": "previous_item_id" + } + } + }, + { + "$id": "6422", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the user message item that will be created.", + "type": { + "$id": "6423", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferCommitted.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + } + ] + }, + "input_audio_buffer.cleared": { + "$id": "6424", + "kind": "model", + "name": "RealtimeServerEventInputAudioBufferCleared", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferCleared", + "usage": "Output,Json", + "doc": "Returned when the input audio buffer is cleared by the client with a\n`input_audio_buffer.clear` event.", + "discriminatorValue": "input_audio_buffer.cleared", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6425", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `input_audio_buffer.cleared`.", + "type": { + "$ref": "1089" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferCleared.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "input_audio_buffer.speech_started": { + "$id": "6426", + "kind": "model", + "name": "RealtimeServerEventInputAudioBufferSpeechStarted", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted", + "usage": "Output,Json", + "doc": "Sent by the server when in `server_vad` mode to indicate that speech has been\ndetected in the audio buffer. This can happen any time audio is added to the\nbuffer (unless speech is already detected). The client may want to use this\nevent to interrupt audio playback or provide visual feedback to the user.\n\nThe client should expect to receive a `input_audio_buffer.speech_stopped` event\nwhen speech stops. The `item_id` property is the ID of the user message item\nthat will be created when speech stops and will also be included in the\n`input_audio_buffer.speech_stopped` event (unless the client manually commits\nthe audio buffer during VAD activation).", + "discriminatorValue": "input_audio_buffer.speech_started", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6427", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `input_audio_buffer.speech_started`.", + "type": { + "$ref": "1090" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6428", + "kind": "property", + "name": "audio_start_ms", + "serializedName": "audio_start_ms", + "doc": "Milliseconds from the start of all audio written to the buffer during the\nsession when speech was first detected. This will correspond to the\nbeginning of audio sent to the model, and thus includes the\n`prefix_padding_ms` configured in the Session.", + "type": { + "$id": "6429", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted.audio_start_ms", + "serializationOptions": { + "json": { + "name": "audio_start_ms" + } + } + }, + { + "$id": "6430", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the user message item that will be created when speech stops.", + "type": { + "$id": "6431", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + } + ] + }, + "input_audio_buffer.speech_stopped": { + "$id": "6432", + "kind": "model", + "name": "RealtimeServerEventInputAudioBufferSpeechStopped", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped", + "usage": "Output,Json", + "doc": "Returned in `server_vad` mode when the server detects the end of speech in\nthe audio buffer. The server will also send an `conversation.item.created`\nevent with the user message item that is created from the audio buffer.", + "discriminatorValue": "input_audio_buffer.speech_stopped", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6433", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `input_audio_buffer.speech_stopped`.", + "type": { + "$ref": "1091" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6434", + "kind": "property", + "name": "audio_end_ms", + "serializedName": "audio_end_ms", + "doc": "Milliseconds since the session started when speech stopped. This will\ncorrespond to the end of audio sent to the model, and thus includes the\n`min_silence_duration_ms` configured in the Session.", + "type": { + "$id": "6435", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped.audio_end_ms", + "serializationOptions": { + "json": { + "name": "audio_end_ms" + } + } + }, + { + "$id": "6436", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the user message item that will be created.", + "type": { + "$id": "6437", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + } + ] + }, + "output_audio_buffer.cleared": { + "$id": "6438", + "kind": "model", + "name": "RealtimeServerEventOutputAudioBufferCleared", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventOutputAudioBufferCleared", + "usage": "Output,Json", + "doc": "**WebRTC Only:** Emitted when the output audio buffer is cleared. This happens either in VAD\nmode when the user has interrupted (`input_audio_buffer.speech_started`),\nor when the client has emitted the `output_audio_buffer.clear` event to manually\ncut off the current audio response.\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).", + "discriminatorValue": "output_audio_buffer.cleared", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6439", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `output_audio_buffer.cleared`.", + "type": { + "$ref": "1092" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventOutputAudioBufferCleared.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6440", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The unique ID of the response that produced the audio.", + "type": { + "$id": "6441", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventOutputAudioBufferCleared.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + } + ] + }, + "output_audio_buffer.started": { + "$id": "6442", + "kind": "model", + "name": "RealtimeServerEventOutputAudioBufferStarted", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventOutputAudioBufferStarted", + "usage": "Output,Json", + "doc": "**WebRTC Only:** Emitted when the server begins streaming audio to the client. This event is\nemitted after an audio content part has been added (`response.content_part.added`)\nto the response.\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).", + "discriminatorValue": "output_audio_buffer.started", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6443", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `output_audio_buffer.started`.", + "type": { + "$ref": "1093" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventOutputAudioBufferStarted.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6444", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The unique ID of the response that produced the audio.", + "type": { + "$id": "6445", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventOutputAudioBufferStarted.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + } + ] + }, + "output_audio_buffer.stopped": { + "$id": "6446", + "kind": "model", + "name": "RealtimeServerEventOutputAudioBufferStopped", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventOutputAudioBufferStopped", + "usage": "Output,Json", + "doc": "**WebRTC Only:** Emitted when the output audio buffer has been completely drained on the server,\nand no more audio is forthcoming. This event is emitted after the full response\ndata has been sent to the client (`response.done`).\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).", + "discriminatorValue": "output_audio_buffer.stopped", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6447", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `output_audio_buffer.stopped`.", + "type": { + "$ref": "1094" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventOutputAudioBufferStopped.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6448", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The unique ID of the response that produced the audio.", + "type": { + "$id": "6449", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventOutputAudioBufferStopped.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + } + ] + }, + "conversation.item.created": { + "$id": "6450", + "kind": "model", + "name": "RealtimeServerEventConversationItemCreated", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemCreated", + "usage": "Output,Json", + "doc": "Returned when a conversation item is created. There are several scenarios that produce this event:\n - The server is generating a Response, which if successful will produce\n either one or two Items, which will be of type `message`\n (role `assistant`) or type `function_call`.\n - The input audio buffer has been committed, either by the client or the\n server (in `server_vad` mode). The server will take the content of the\n input audio buffer and add it to a new user message Item.\n - The client has sent a `conversation.item.create` event to add a new Item\n to the Conversation.", + "discriminatorValue": "conversation.item.created", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6451", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.item.created`.", + "type": { + "$ref": "1084" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemCreated.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6452", + "kind": "property", + "name": "previous_item_id", + "serializedName": "previous_item_id", + "doc": "The ID of the preceding item in the Conversation context, allows the\nclient to understand the order of the conversation.", + "type": { + "$id": "6453", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemCreated.previous_item_id", + "serializationOptions": { + "json": { + "name": "previous_item_id" + } + } + }, + { + "$id": "6454", + "kind": "property", + "name": "item", + "serializedName": "item", + "type": { + "$id": "6455", + "kind": "model", + "name": "RealtimeConversationResponseItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeConversationResponseItem", + "usage": "Output,Json", + "decorators": [], + "discriminatorProperty": { + "$id": "6456", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1022" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeConversationResponseItem.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + "properties": [ + { + "$id": "6457", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1497" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeConversationResponseItem.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$ref": "6456" + }, + { + "$id": "6458", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "6459", + "kind": "nullable", + "type": { + "$id": "6460", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeConversationResponseItem.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + } + ], + "discriminatedSubtypes": { + "message": { + "$id": "6461", + "kind": "model", + "name": "RealtimeResponseMessageItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseMessageItem", + "usage": "Output,Json", + "discriminatorValue": "message", + "decorators": [], + "baseModel": { + "$ref": "6455" + }, + "properties": [ + { + "$id": "6462", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1024" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseMessageItem.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6463", + "kind": "property", + "name": "role", + "serializedName": "role", + "type": { + "$ref": "1027" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseMessageItem.role", + "serializationOptions": { + "json": { + "name": "role" + } + } + }, + { + "$id": "6464", + "kind": "property", + "name": "content", + "serializedName": "content", + "type": { + "$id": "6465", + "kind": "array", + "name": "ArrayRealtimeContentPart", + "valueType": { + "$ref": "6236" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseMessageItem.content", + "serializationOptions": { + "json": { + "name": "content" + } + } + }, + { + "$id": "6466", + "kind": "property", + "name": "status", + "serializedName": "status", + "type": { + "$ref": "1032" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseMessageItem.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + } + ] + }, + "function_call": { + "$id": "6467", + "kind": "model", + "name": "RealtimeResponseFunctionCallItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallItem", + "usage": "Output,Json", + "discriminatorValue": "function_call", + "decorators": [], + "baseModel": { + "$ref": "6455" + }, + "properties": [ + { + "$id": "6468", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1025" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallItem.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6469", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "6470", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallItem.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "6471", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "type": { + "$id": "6472", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallItem.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "6473", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "type": { + "$id": "6474", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallItem.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + }, + { + "$id": "6475", + "kind": "property", + "name": "status", + "serializedName": "status", + "type": { + "$ref": "1032" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallItem.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + } + ] + }, + "function_call_output": { + "$id": "6476", + "kind": "model", + "name": "RealtimeResponseFunctionCallOutputItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallOutputItem", + "usage": "Output,Json", + "discriminatorValue": "function_call_output", + "decorators": [], + "baseModel": { + "$ref": "6455" + }, + "properties": [ + { + "$id": "6477", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1026" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallOutputItem.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6478", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "type": { + "$id": "6479", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallOutputItem.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "6480", + "kind": "property", + "name": "output", + "serializedName": "output", + "type": { + "$id": "6481", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponseFunctionCallOutputItem.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemCreated.item", + "serializationOptions": { + "json": { + "name": "item" + } + } + } + ] + }, + "conversation.item.input_audio_transcription.completed": { + "$id": "6482", + "kind": "model", + "name": "RealtimeServerEventConversationItemInputAudioTranscriptionCompleted", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted", + "usage": "Output,Json", + "doc": "This event is the output of audio transcription for user audio written to the\nuser audio buffer. Transcription begins when the input audio buffer is\ncommitted by the client or server (in `server_vad` mode). Transcription runs\nasynchronously with Response creation, so this event may come before or after\nthe Response events.\n\nRealtime API models accept audio natively, and thus input transcription is a\nseparate process run on a separate ASR (Automatic Speech Recognition) model,\ncurrently always `whisper-1`. Thus the transcript may diverge somewhat from\nthe model's interpretation, and should be treated as a rough guide.", + "discriminatorValue": "conversation.item.input_audio_transcription.completed", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6483", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be\n`conversation.item.input_audio_transcription.completed`.", + "type": { + "$ref": "1081" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6484", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the user message item containing the audio.", + "type": { + "$id": "6485", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6486", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part containing the audio.", + "type": { + "$id": "6487", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6488", + "kind": "property", + "name": "transcript", + "serializedName": "transcript", + "doc": "The transcribed text.", + "type": { + "$id": "6489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.transcript", + "serializationOptions": { + "json": { + "name": "transcript" + } + } + }, + { + "$id": "6490", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "doc": "The log probabilities of the transcription.", + "type": { + "$id": "6491", + "kind": "nullable", + "type": { + "$id": "6492", + "kind": "array", + "name": "ArrayLogProbProperties", + "valueType": { + "$id": "6493", + "kind": "model", + "name": "LogProbProperties", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.LogProbProperties", + "usage": "Output,Json", + "doc": "A log probability object.", + "decorators": [], + "properties": [ + { + "$id": "6494", + "kind": "property", + "name": "token", + "serializedName": "token", + "doc": "The token that was used to generate the log probability.", + "type": { + "$id": "6495", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LogProbProperties.token", + "serializationOptions": { + "json": { + "name": "token" + } + } + }, + { + "$id": "6496", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "doc": "The log probability of the token.", + "type": { + "$id": "6497", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LogProbProperties.logprob", + "serializationOptions": { + "json": { + "name": "logprob" + } + } + }, + { + "$id": "6498", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The bytes that were used to generate the log probability.", + "type": { + "$ref": "2375" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.LogProbProperties.bytes", + "serializationOptions": { + "json": { + "name": "bytes" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted.logprobs", + "serializationOptions": { + "json": { + "name": "logprobs" + } + } + } + ] + }, + "conversation.item.input_audio_transcription.failed": { + "$id": "6499", + "kind": "model", + "name": "RealtimeServerEventConversationItemInputAudioTranscriptionFailed", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed", + "usage": "Output,Json", + "doc": "Returned when input audio transcription is configured, and a transcription\nrequest for a user message failed. These events are separate from other\n`error` events so that the client can identify the related Item.", + "discriminatorValue": "conversation.item.input_audio_transcription.failed", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6500", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be\n`conversation.item.input_audio_transcription.failed`.", + "type": { + "$ref": "1083" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6501", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the user message item.", + "type": { + "$id": "6502", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6503", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part containing the audio.", + "type": { + "$id": "6504", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6505", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "Details of the transcription error.", + "type": { + "$id": "6506", + "kind": "model", + "name": "RealtimeServerEventConversationItemInputAudioTranscriptionFailedError", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed.error.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6507", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of error.", + "type": { + "$id": "6508", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed.error.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6509", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "Error code, if any.", + "type": { + "$id": "6510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed.error.anonymous.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + }, + { + "$id": "6511", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable error message.", + "type": { + "$id": "6512", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed.error.anonymous.message", + "serializationOptions": { + "json": { + "name": "message" + } + } + }, + { + "$id": "6513", + "kind": "property", + "name": "param", + "serializedName": "param", + "doc": "Parameter related to the error, if any.", + "type": { + "$id": "6514", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed.error.anonymous.param", + "serializationOptions": { + "json": { + "name": "param" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + "conversation.item.truncated": { + "$id": "6515", + "kind": "model", + "name": "RealtimeServerEventConversationItemTruncated", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemTruncated", + "usage": "Output,Json", + "doc": "Returned when an earlier assistant audio message item is truncated by the\nclient with a `conversation.item.truncate` event. This event is used to\nsynchronize the server's understanding of the audio with the client's playback.\n\nThis action will truncate the audio and remove the server-side text transcript\nto ensure there is no text in the context that hasn't been heard by the user.", + "discriminatorValue": "conversation.item.truncated", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6516", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.item.truncated`.", + "type": { + "$ref": "1086" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemTruncated.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6517", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the assistant message item that was truncated.", + "type": { + "$id": "6518", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemTruncated.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6519", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part that was truncated.", + "type": { + "$id": "6520", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemTruncated.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6521", + "kind": "property", + "name": "audio_end_ms", + "serializedName": "audio_end_ms", + "doc": "The duration up to which the audio was truncated, in milliseconds.", + "type": { + "$id": "6522", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemTruncated.audio_end_ms", + "serializationOptions": { + "json": { + "name": "audio_end_ms" + } + } + } + ] + }, + "conversation.item.deleted": { + "$id": "6523", + "kind": "model", + "name": "RealtimeServerEventConversationItemDeleted", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemDeleted", + "usage": "Output,Json", + "doc": "Returned when an item in the conversation is deleted by the client with a\n`conversation.item.delete` event. This event is used to synchronize the\nserver's understanding of the conversation history with the client's view.", + "discriminatorValue": "conversation.item.deleted", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6524", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.item.deleted`.", + "type": { + "$ref": "1087" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemDeleted.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6525", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item that was deleted.", + "type": { + "$id": "6526", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemDeleted.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + } + ] + }, + "response.created": { + "$id": "6527", + "kind": "model", + "name": "RealtimeServerEventResponseCreated", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseCreated", + "usage": "Output,Json", + "doc": "Returned when a new Response is created. The first event of response creation,\nwhere the response is in an initial state of `in_progress`.", + "discriminatorValue": "response.created", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6528", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.created`.", + "type": { + "$ref": "1095" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseCreated.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6529", + "kind": "property", + "name": "response", + "serializedName": "response", + "type": { + "$id": "6530", + "kind": "model", + "name": "RealtimeResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse", + "usage": "Output,Json", + "doc": "The response resource.", + "decorators": [], + "properties": [ + { + "$id": "6531", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The unique ID of the response.", + "type": { + "$id": "6532", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "6533", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, must be `realtime.response`.", + "type": { + "$ref": "1499" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "6534", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The final status of the response (`completed`, `cancelled`, `failed`, or\n`incomplete`).", + "type": { + "$ref": "1111" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "6535", + "kind": "property", + "name": "status_details", + "serializedName": "status_details", + "doc": "Additional details about the status.", + "type": { + "$id": "6536", + "kind": "model", + "name": "RealtimeResponseStatusDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6537", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of error that caused the response to fail, corresponding\nwith the `status` field (`completed`, `cancelled`, `incomplete`,\n`failed`).", + "type": { + "$ref": "1117" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6538", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "The reason the Response did not complete. For a `cancelled` Response,\none of `turn_detected` (the server VAD detected a new start of speech)\nor `client_cancelled` (the client sent a cancel event). For an\n`incomplete` Response, one of `max_output_tokens` or `content_filter`\n(the server-side safety filter activated and cut off the response).", + "type": { + "$ref": "1123" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details.anonymous.reason", + "serializationOptions": { + "json": { + "name": "reason" + } + } + }, + { + "$id": "6539", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "A description of the error that caused the response to fail,\npopulated when the `status` is `failed`.", + "type": { + "$id": "6540", + "kind": "model", + "name": "RealtimeResponseStatusDetailsError", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details.error.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6541", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of error.", + "type": { + "$id": "6542", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details.error.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6543", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "Error code, if any.", + "type": { + "$id": "6544", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details.error.anonymous.code", + "serializationOptions": { + "json": { + "name": "code" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details.anonymous.error", + "serializationOptions": { + "json": { + "name": "error" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.status_details", + "serializationOptions": { + "json": { + "name": "status_details" + } + } + }, + { + "$id": "6545", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "The list of output items generated by the response.", + "type": { + "$id": "6546", + "kind": "array", + "name": "ArrayRealtimeConversationResponseItem", + "valueType": { + "$ref": "6455" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.output", + "serializationOptions": { + "json": { + "name": "output" + } + } + }, + { + "$id": "6547", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2161" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + }, + { + "$id": "6548", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "Usage statistics for the Response, this will correspond to billing. A\nRealtime API session will maintain a conversation context and append new\nItems to the Conversation, thus output from previous turns (text and\naudio tokens) will become the input for later turns.", + "type": { + "$id": "6549", + "kind": "model", + "name": "RealtimeResponseUsage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6550", + "kind": "property", + "name": "total_tokens", + "serializedName": "total_tokens", + "doc": "The total number of tokens in the Response including input and output\ntext and audio tokens.", + "type": { + "$id": "6551", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.anonymous.total_tokens", + "serializationOptions": { + "json": { + "name": "total_tokens" + } + } + }, + { + "$id": "6552", + "kind": "property", + "name": "input_tokens", + "serializedName": "input_tokens", + "doc": "The number of input tokens used in the Response, including text and\naudio tokens.", + "type": { + "$id": "6553", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.anonymous.input_tokens", + "serializationOptions": { + "json": { + "name": "input_tokens" + } + } + }, + { + "$id": "6554", + "kind": "property", + "name": "output_tokens", + "serializedName": "output_tokens", + "doc": "The number of output tokens sent in the Response, including text and\naudio tokens.", + "type": { + "$id": "6555", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.anonymous.output_tokens", + "serializationOptions": { + "json": { + "name": "output_tokens" + } + } + }, + { + "$id": "6556", + "kind": "property", + "name": "input_token_details", + "serializedName": "input_token_details", + "doc": "Details about the input tokens used in the Response.", + "type": { + "$id": "6557", + "kind": "model", + "name": "RealtimeResponseUsageInputTokenDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.input_token_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6558", + "kind": "property", + "name": "cached_tokens", + "serializedName": "cached_tokens", + "doc": "The number of cached tokens used in the Response.", + "type": { + "$id": "6559", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.input_token_details.anonymous.cached_tokens", + "serializationOptions": { + "json": { + "name": "cached_tokens" + } + } + }, + { + "$id": "6560", + "kind": "property", + "name": "text_tokens", + "serializedName": "text_tokens", + "doc": "The number of text tokens used in the Response.", + "type": { + "$id": "6561", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.input_token_details.anonymous.text_tokens", + "serializationOptions": { + "json": { + "name": "text_tokens" + } + } + }, + { + "$id": "6562", + "kind": "property", + "name": "audio_tokens", + "serializedName": "audio_tokens", + "doc": "The number of audio tokens used in the Response.", + "type": { + "$id": "6563", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.input_token_details.anonymous.audio_tokens", + "serializationOptions": { + "json": { + "name": "audio_tokens" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.anonymous.input_token_details", + "serializationOptions": { + "json": { + "name": "input_token_details" + } + } + }, + { + "$id": "6564", + "kind": "property", + "name": "output_token_details", + "serializedName": "output_token_details", + "doc": "Details about the output tokens used in the Response.", + "type": { + "$id": "6565", + "kind": "model", + "name": "RealtimeResponseUsageOutputTokenDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.output_token_details.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6566", + "kind": "property", + "name": "text_tokens", + "serializedName": "text_tokens", + "doc": "The number of text tokens used in the Response.", + "type": { + "$id": "6567", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.output_token_details.anonymous.text_tokens", + "serializationOptions": { + "json": { + "name": "text_tokens" + } + } + }, + { + "$id": "6568", + "kind": "property", + "name": "audio_tokens", + "serializedName": "audio_tokens", + "doc": "The number of audio tokens used in the Response.", + "type": { + "$id": "6569", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.output_token_details.anonymous.audio_tokens", + "serializationOptions": { + "json": { + "name": "audio_tokens" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage.anonymous.output_token_details", + "serializationOptions": { + "json": { + "name": "output_token_details" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.usage", + "serializationOptions": { + "json": { + "name": "usage" + } + } + }, + { + "$id": "6570", + "kind": "property", + "name": "conversation_id", + "serializedName": "conversation_id", + "doc": "Which conversation the response is added to, determined by the `conversation`\nfield in the `response.create` event. If `auto`, the response will be added to\nthe default conversation and the value of `conversation_id` will be an id like\n`conv_1234`. If `none`, the response will not be added to any conversation and\nthe value of `conversation_id` will be `null`. If responses are being triggered\nby server VAD, the response will be added to the default conversation, thus\nthe `conversation_id` will be an id like `conv_1234`.", + "type": { + "$id": "6571", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.conversation_id", + "serializationOptions": { + "json": { + "name": "conversation_id" + } + } + }, + { + "$id": "6572", + "kind": "property", + "name": "voice", + "serializedName": "voice", + "doc": "The voice the model used to respond.\nCurrent voice options are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`,\n`onyx`, `nova`, `sage`, `shimmer`, and `verse`.", + "type": { + "$ref": "71" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.voice", + "serializationOptions": { + "json": { + "name": "voice" + } + } + }, + { + "$id": "6573", + "kind": "property", + "name": "modalities", + "serializedName": "modalities", + "doc": "The set of modalities the model used to respond. If there are multiple modalities,\nthe model will pick one, for example if `modalities` is `[\"text\", \"audio\"]`, the model\ncould be responding in either text or audio.", + "type": { + "$id": "6574", + "kind": "array", + "name": "Array45", + "valueType": { + "$ref": "1129" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.modalities", + "serializationOptions": { + "json": { + "name": "modalities" + } + } + }, + { + "$id": "6575", + "kind": "property", + "name": "output_audio_format", + "serializedName": "output_audio_format", + "doc": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.", + "type": { + "$ref": "1133" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.output_audio_format", + "serializationOptions": { + "json": { + "name": "output_audio_format" + } + } + }, + { + "$id": "6576", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.", + "type": { + "$id": "6577", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "6578", + "kind": "property", + "name": "max_output_tokens", + "serializedName": "max_output_tokens", + "doc": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls, that was used in this response.", + "type": { + "$id": "6579", + "kind": "union", + "name": "RealtimeResponseMaxOutputTokens", + "variantTypes": [ + { + "$id": "6580", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + { + "$ref": "1501" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeResponse.max_output_tokens", + "serializationOptions": { + "json": { + "name": "max_output_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseCreated.response", + "serializationOptions": { + "json": { + "name": "response" + } + } + } + ] + }, + "response.done": { + "$id": "6581", + "kind": "model", + "name": "RealtimeServerEventResponseDone", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseDone", + "usage": "Output,Json", + "doc": "Returned when a Response is done streaming. Always emitted, no matter the\nfinal state. The Response object included in the `response.done` event will\ninclude all output Items in the Response but will omit the raw audio data.", + "discriminatorValue": "response.done", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6582", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.done`.", + "type": { + "$ref": "1096" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseDone.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6583", + "kind": "property", + "name": "response", + "serializedName": "response", + "type": { + "$ref": "6530" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseDone.response", + "serializationOptions": { + "json": { + "name": "response" + } + } + } + ] + }, + "response.output_item.added": { + "$id": "6584", + "kind": "model", + "name": "RealtimeServerEventResponseOutputItemAdded", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemAdded", + "usage": "Output,Json", + "doc": "Returned when a new Item is created during Response generation.", + "discriminatorValue": "response.output_item.added", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6585", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.output_item.added`.", + "type": { + "$ref": "1097" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemAdded.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6586", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the Response to which the item belongs.", + "type": { + "$id": "6587", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemAdded.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6588", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the Response.", + "type": { + "$id": "6589", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemAdded.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6590", + "kind": "property", + "name": "item", + "serializedName": "item", + "type": { + "$ref": "6455" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemAdded.item", + "serializationOptions": { + "json": { + "name": "item" + } + } + } + ] + }, + "response.output_item.done": { + "$id": "6591", + "kind": "model", + "name": "RealtimeServerEventResponseOutputItemDone", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemDone", + "usage": "Output,Json", + "doc": "Returned when an Item is done streaming. Also emitted when a Response is\ninterrupted, incomplete, or cancelled.", + "discriminatorValue": "response.output_item.done", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6592", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.output_item.done`.", + "type": { + "$ref": "1098" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemDone.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6593", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the Response to which the item belongs.", + "type": { + "$id": "6594", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemDone.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6595", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the Response.", + "type": { + "$id": "6596", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemDone.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6597", + "kind": "property", + "name": "item", + "serializedName": "item", + "type": { + "$ref": "6455" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseOutputItemDone.item", + "serializationOptions": { + "json": { + "name": "item" + } + } + } + ] + }, + "response.content_part.added": { + "$id": "6598", + "kind": "model", + "name": "RealtimeServerEventResponseContentPartAdded", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartAdded", + "usage": "Output,Json", + "doc": "Returned when a new content part is added to an assistant message item during\nresponse generation.", + "discriminatorValue": "response.content_part.added", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6599", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.content_part.added`.", + "type": { + "$ref": "1099" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartAdded.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6600", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6601", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartAdded.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6602", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item to which the content part was added.", + "type": { + "$id": "6603", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartAdded.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6604", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6605", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartAdded.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6606", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part in the item's content array.", + "type": { + "$id": "6607", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartAdded.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6608", + "kind": "property", + "name": "part", + "serializedName": "part", + "doc": "The content part that was added.", + "type": { + "$ref": "6236" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartAdded.part", + "serializationOptions": { + "json": { + "name": "part" + } + } + } + ] + }, + "response.content_part.done": { + "$id": "6609", + "kind": "model", + "name": "RealtimeServerEventResponseContentPartDone", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartDone", + "usage": "Output,Json", + "doc": "Returned when a content part is done streaming in an assistant message item.\nAlso emitted when a Response is interrupted, incomplete, or cancelled.", + "discriminatorValue": "response.content_part.done", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6610", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.content_part.done`.", + "type": { + "$ref": "1100" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartDone.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6611", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6612", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartDone.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6613", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item.", + "type": { + "$id": "6614", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartDone.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6615", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6616", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartDone.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6617", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part in the item's content array.", + "type": { + "$id": "6618", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartDone.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6619", + "kind": "property", + "name": "part", + "serializedName": "part", + "doc": "The content part that is done.", + "type": { + "$ref": "6236" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseContentPartDone.part", + "serializationOptions": { + "json": { + "name": "part" + } + } + } + ] + }, + "response.text.delta": { + "$id": "6620", + "kind": "model", + "name": "RealtimeServerEventResponseTextDelta", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDelta", + "usage": "Output,Json", + "doc": "Returned when the text value of a \"text\" content part is updated.", + "discriminatorValue": "response.text.delta", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6621", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.text.delta`.", + "type": { + "$ref": "1101" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDelta.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6622", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDelta.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6624", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item.", + "type": { + "$id": "6625", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDelta.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6626", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6627", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDelta.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6628", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part in the item's content array.", + "type": { + "$id": "6629", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDelta.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6630", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The text delta.", + "type": { + "$id": "6631", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDelta.delta", + "serializationOptions": { + "json": { + "name": "delta" + } + } + } + ] + }, + "response.text.done": { + "$id": "6632", + "kind": "model", + "name": "RealtimeServerEventResponseTextDone", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDone", + "usage": "Output,Json", + "doc": "Returned when the text value of a \"text\" content part is done streaming. Also\nemitted when a Response is interrupted, incomplete, or cancelled.", + "discriminatorValue": "response.text.done", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6633", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.text.done`.", + "type": { + "$ref": "1102" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDone.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6634", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6635", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDone.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6636", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item.", + "type": { + "$id": "6637", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDone.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6638", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6639", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDone.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6640", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part in the item's content array.", + "type": { + "$id": "6641", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDone.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6642", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The final text content.", + "type": { + "$id": "6643", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseTextDone.text", + "serializationOptions": { + "json": { + "name": "text" + } + } + } + ] + }, + "response.audio_transcript.delta": { + "$id": "6644", + "kind": "model", + "name": "RealtimeServerEventResponseAudioTranscriptDelta", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDelta", + "usage": "Output,Json", + "doc": "Returned when the model-generated transcription of audio output is updated.", + "discriminatorValue": "response.audio_transcript.delta", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6645", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.audio_transcript.delta`.", + "type": { + "$ref": "1103" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDelta.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6646", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6647", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDelta.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6648", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item.", + "type": { + "$id": "6649", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDelta.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6650", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6651", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDelta.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6652", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part in the item's content array.", + "type": { + "$id": "6653", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDelta.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6654", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The transcript delta.", + "type": { + "$id": "6655", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDelta.delta", + "serializationOptions": { + "json": { + "name": "delta" + } + } + } + ] + }, + "response.audio_transcript.done": { + "$id": "6656", + "kind": "model", + "name": "RealtimeServerEventResponseAudioTranscriptDone", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDone", + "usage": "Output,Json", + "doc": "Returned when the model-generated transcription of audio output is done\nstreaming. Also emitted when a Response is interrupted, incomplete, or\ncancelled.", + "discriminatorValue": "response.audio_transcript.done", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6657", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.audio_transcript.done`.", + "type": { + "$ref": "1104" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDone.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6658", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6659", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDone.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6660", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item.", + "type": { + "$id": "6661", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDone.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6662", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6663", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDone.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6664", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part in the item's content array.", + "type": { + "$id": "6665", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDone.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6666", + "kind": "property", + "name": "transcript", + "serializedName": "transcript", + "doc": "The final transcript of the audio.", + "type": { + "$id": "6667", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioTranscriptDone.transcript", + "serializationOptions": { + "json": { + "name": "transcript" + } + } + } + ] + }, + "response.audio.delta": { + "$id": "6668", + "kind": "model", + "name": "RealtimeServerEventResponseAudioDelta", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDelta", + "usage": "Output,Json", + "doc": "Returned when the model-generated audio is updated.", + "discriminatorValue": "response.audio.delta", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6669", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.audio.delta`.", + "type": { + "$ref": "1105" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDelta.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6670", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6671", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDelta.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6672", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item.", + "type": { + "$id": "6673", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDelta.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6674", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6675", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDelta.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6676", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part in the item's content array.", + "type": { + "$id": "6677", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDelta.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6678", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "Base64-encoded audio data delta.", + "type": { + "$id": "6679", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDelta.delta", + "serializationOptions": { + "json": { + "name": "delta" + } + } + } + ] + }, + "response.audio.done": { + "$id": "6680", + "kind": "model", + "name": "RealtimeServerEventResponseAudioDone", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDone", + "usage": "Output,Json", + "doc": "Returned when the model-generated audio is done. Also emitted when a Response\nis interrupted, incomplete, or cancelled.", + "discriminatorValue": "response.audio.done", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6681", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.audio.done`.", + "type": { + "$ref": "1106" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDone.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6682", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6683", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDone.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6684", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item.", + "type": { + "$id": "6685", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDone.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6686", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6687", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDone.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6688", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part in the item's content array.", + "type": { + "$id": "6689", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseAudioDone.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + } + ] + }, + "response.function_call_arguments.delta": { + "$id": "6690", + "kind": "model", + "name": "RealtimeServerEventResponseFunctionCallArgumentsDelta", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta", + "usage": "Output,Json", + "doc": "Returned when the model-generated function call arguments are updated.", + "discriminatorValue": "response.function_call_arguments.delta", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6691", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.function_call_arguments.delta`.", + "type": { + "$ref": "1107" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6692", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6693", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6694", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the function call item.", + "type": { + "$id": "6695", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6696", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6697", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6698", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The ID of the function call.", + "type": { + "$id": "6699", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "6700", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The arguments delta as a JSON string.", + "type": { + "$id": "6701", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta.delta", + "serializationOptions": { + "json": { + "name": "delta" + } + } + } + ] + }, + "response.function_call_arguments.done": { + "$id": "6702", + "kind": "model", + "name": "RealtimeServerEventResponseFunctionCallArgumentsDone", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone", + "usage": "Output,Json", + "doc": "Returned when the model-generated function call arguments are done streaming.\nAlso emitted when a Response is interrupted, incomplete, or cancelled.", + "discriminatorValue": "response.function_call_arguments.done", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6703", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `response.function_call_arguments.done`.", + "type": { + "$ref": "1108" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6704", + "kind": "property", + "name": "response_id", + "serializedName": "response_id", + "doc": "The ID of the response.", + "type": { + "$id": "6705", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone.response_id", + "serializationOptions": { + "json": { + "name": "response_id" + } + } + }, + { + "$id": "6706", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the function call item.", + "type": { + "$id": "6707", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6708", + "kind": "property", + "name": "output_index", + "serializedName": "output_index", + "doc": "The index of the output item in the response.", + "type": { + "$id": "6709", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone.output_index", + "serializationOptions": { + "json": { + "name": "output_index" + } + } + }, + { + "$id": "6710", + "kind": "property", + "name": "call_id", + "serializedName": "call_id", + "doc": "The ID of the function call.", + "type": { + "$id": "6711", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone.call_id", + "serializationOptions": { + "json": { + "name": "call_id" + } + } + }, + { + "$id": "6712", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The final arguments as a JSON string.", + "type": { + "$id": "6713", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone.arguments", + "serializationOptions": { + "json": { + "name": "arguments" + } + } + } + ] + }, + "rate_limits.updated": { + "$id": "6714", + "kind": "model", + "name": "RealtimeServerEventRateLimitsUpdated", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventRateLimitsUpdated", + "usage": "Output,Json", + "doc": "Emitted at the beginning of a Response to indicate the updated rate limits.\nWhen a Response is created some tokens will be \"reserved\" for the output\ntokens, the rate limits shown here reflect that reservation, which is then\nadjusted accordingly once the Response is completed.", + "discriminatorValue": "rate_limits.updated", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6715", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `rate_limits.updated`.", + "type": { + "$ref": "1110" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventRateLimitsUpdated.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6716", + "kind": "property", + "name": "rate_limits", + "serializedName": "rate_limits", + "doc": "List of rate limit information.", + "type": { + "$id": "6717", + "kind": "array", + "name": "ArrayRealtimeServerEventRateLimitsUpdatedRateLimitsItem", + "valueType": { + "$id": "6718", + "kind": "model", + "name": "RealtimeServerEventRateLimitsUpdatedRateLimitsItem", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitsItem", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6719", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The rate limit property name that this item includes information about.", + "type": { + "$id": "6720", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitsItem.name", + "serializationOptions": { + "json": { + "name": "name" + } + } + }, + { + "$id": "6721", + "kind": "property", + "name": "limit", + "serializedName": "limit", + "doc": "The maximum configured limit for this rate limit property.", + "type": { + "$id": "6722", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitsItem.limit", + "serializationOptions": { + "json": { + "name": "limit" + } + } + }, + { + "$id": "6723", + "kind": "property", + "name": "remaining", + "serializedName": "remaining", + "doc": "The remaining quota available against the configured limit for this rate limit property.", + "type": { + "$id": "6724", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitsItem.remaining", + "serializationOptions": { + "json": { + "name": "remaining" + } + } + }, + { + "$id": "6725", + "kind": "property", + "name": "reset_seconds", + "serializedName": "reset_seconds", + "doc": "The remaining time, in seconds, until this rate limit property is reset.", + "type": { + "$id": "6726", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "6727", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitsItem.reset_seconds", + "serializationOptions": { + "json": { + "name": "reset_seconds" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventRateLimitsUpdated.rate_limits", + "serializationOptions": { + "json": { + "name": "rate_limits" + } + } + } + ] + }, + "conversation.item.input_audio_transcription.delta": { + "$id": "6728", + "kind": "model", + "name": "RealtimeServerEventConversationItemInputAudioTranscriptionDelta", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta", + "usage": "Output,Json", + "doc": "Returned when the text value of an input audio transcription content part is updated.", + "discriminatorValue": "conversation.item.input_audio_transcription.delta", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6729", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.item.input_audio_transcription.delta`.", + "type": { + "$ref": "1082" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6730", + "kind": "property", + "name": "item_id", + "serializedName": "item_id", + "doc": "The ID of the item.", + "type": { + "$id": "6731", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta.item_id", + "serializationOptions": { + "json": { + "name": "item_id" + } + } + }, + { + "$id": "6732", + "kind": "property", + "name": "content_index", + "serializedName": "content_index", + "doc": "The index of the content part in the item's content array.", + "type": { + "$id": "6733", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta.content_index", + "serializationOptions": { + "json": { + "name": "content_index" + } + } + }, + { + "$id": "6734", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The text delta.", + "type": { + "$id": "6735", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta.delta", + "serializationOptions": { + "json": { + "name": "delta" + } + } + }, + { + "$id": "6736", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "doc": "The log probabilities of the transcription.", + "type": { + "$id": "6737", + "kind": "nullable", + "type": { + "$ref": "6492" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta.logprobs", + "serializationOptions": { + "json": { + "name": "logprobs" + } + } + } + ] + }, + "conversation.item.retrieved": { + "$id": "6738", + "kind": "model", + "name": "RealtimeServerEventConversationItemRetrieved", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemRetrieved", + "usage": "Output,Json", + "doc": "Returned when a conversation item is retrieved with `conversation.item.retrieve`.", + "discriminatorValue": "conversation.item.retrieved", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6739", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `conversation.item.retrieved`.", + "type": { + "$ref": "1085" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemRetrieved.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6740", + "kind": "property", + "name": "item", + "serializedName": "item", + "type": { + "$ref": "6455" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventConversationItemRetrieved.item", + "serializationOptions": { + "json": { + "name": "item" + } + } + } + ] + }, + "transcription_session.updated": { + "$id": "6741", + "kind": "model", + "name": "RealtimeServerEventTranscriptionSessionUpdated", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventTranscriptionSessionUpdated", + "usage": "Output,Json", + "doc": "Returned when a transcription session is updated with a `transcription_session.update` event, unless\nthere is an error.", + "discriminatorValue": "transcription_session.updated", + "decorators": [], + "baseModel": { + "$ref": "6359" + }, + "properties": [ + { + "$id": "6742", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The event type, must be `transcription_session.updated`.", + "type": { + "$ref": "1109" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventTranscriptionSessionUpdated.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6743", + "kind": "property", + "name": "session", + "serializedName": "session", + "type": { + "$id": "6744", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse", + "usage": "Output,Json", + "doc": "A new Realtime transcription session configuration.\n\nWhen a session is created on the server via REST API, the session object\nalso contains an ephemeral key. Default TTL for keys is 10 minutes. This\nproperty is not present when a session is updated via the WebSocket API.", + "decorators": [], + "properties": [ + { + "$id": "6745", + "kind": "property", + "name": "client_secret", + "serializedName": "client_secret", + "doc": "Ephemeral key returned by the API. Only present when the session is\ncreated on the server via REST API.", + "type": { + "$id": "6746", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateResponseClientSecret", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.client_secret.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6747", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "Ephemeral key usable in client environments to authenticate connections\nto the Realtime API. Use this in client-side environments rather than\na standard API token, which should only be used server-side.", + "type": { + "$id": "6748", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.client_secret.anonymous.value", + "serializationOptions": { + "json": { + "name": "value" + } + } + }, + { + "$id": "6749", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "Timestamp for when the token expires. Currently, all tokens expire\nafter one minute.", + "type": { + "$id": "6750", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "6751", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.client_secret.anonymous.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.client_secret", + "serializationOptions": { + "json": { + "name": "client_secret" + } + } + }, + { + "$id": "6752", + "kind": "property", + "name": "modalities", + "serializedName": "modalities", + "doc": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].", + "type": { + "$id": "6753", + "kind": "array", + "name": "Array46", + "valueType": { + "$ref": "1138" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.modalities", + "serializationOptions": { + "json": { + "name": "modalities" + } + } + }, + { + "$id": "6754", + "kind": "property", + "name": "input_audio_format", + "serializedName": "input_audio_format", + "doc": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.", + "type": { + "$id": "6755", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.input_audio_format", + "serializationOptions": { + "json": { + "name": "input_audio_format" + } + } + }, + { + "$id": "6756", + "kind": "property", + "name": "input_audio_transcription", + "serializedName": "input_audio_transcription", + "doc": "Configuration of the transcription model.", + "type": { + "$id": "6757", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateResponseInputAudioTranscription", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.input_audio_transcription.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6758", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for transcription. Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`.", + "type": { + "$ref": "1142" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.input_audio_transcription.anonymous.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "6759", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.", + "type": { + "$id": "6760", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.input_audio_transcription.anonymous.language", + "serializationOptions": { + "json": { + "name": "language" + } + } + }, + { + "$id": "6761", + "kind": "property", + "name": "prompt", + "serializedName": "prompt", + "doc": "An optional text to guide the model's style or continue a previous audio\nsegment. The [prompt](/docs/guides/speech-to-text#prompting) should match\nthe audio language.", + "type": { + "$id": "6762", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.input_audio_transcription.anonymous.prompt", + "serializationOptions": { + "json": { + "name": "prompt" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.input_audio_transcription", + "serializationOptions": { + "json": { + "name": "input_audio_transcription" + } + } + }, + { + "$id": "6763", + "kind": "property", + "name": "turn_detection", + "serializedName": "turn_detection", + "doc": "Configuration for turn detection. Can be set to `null` to turn off. Server\nVAD means that the model will detect the start and end of speech based on\naudio volume and respond at the end of user speech.", + "type": { + "$id": "6764", + "kind": "model", + "name": "RealtimeTranscriptionSessionCreateResponseTurnDetection", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.turn_detection.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6765", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Type of turn detection, only `server_vad` is currently supported.", + "type": { + "$id": "6766", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.turn_detection.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6767", + "kind": "property", + "name": "threshold", + "serializedName": "threshold", + "doc": "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.", + "type": { + "$id": "6768", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.turn_detection.anonymous.threshold", + "serializationOptions": { + "json": { + "name": "threshold" + } + } + }, + { + "$id": "6769", + "kind": "property", + "name": "prefix_padding_ms", + "serializedName": "prefix_padding_ms", + "doc": "Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.", + "type": { + "$id": "6770", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.turn_detection.anonymous.prefix_padding_ms", + "serializationOptions": { + "json": { + "name": "prefix_padding_ms" + } + } + }, + { + "$id": "6771", + "kind": "property", + "name": "silence_duration_ms", + "serializedName": "silence_duration_ms", + "doc": "Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.", + "type": { + "$id": "6772", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.turn_detection.anonymous.silence_duration_ms", + "serializationOptions": { + "json": { + "name": "silence_duration_ms" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeTranscriptionSessionCreateResponse.turn_detection", + "serializationOptions": { + "json": { + "name": "turn_detection" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeServerEventTranscriptionSessionUpdated.session", + "serializationOptions": { + "json": { + "name": "session" + } + } + } + ] + } + } + }, + { + "$ref": "6363" + }, + { + "$ref": "6366" + }, + { + "$ref": "6380" + }, + { + "$ref": "6383" + }, + { + "$ref": "6407" + }, + { + "$ref": "6410" + }, + { + "$ref": "6413" + }, + { + "$ref": "6418" + }, + { + "$ref": "6424" + }, + { + "$ref": "6426" + }, + { + "$ref": "6432" + }, + { + "$ref": "6438" + }, + { + "$ref": "6442" + }, + { + "$ref": "6446" + }, + { + "$ref": "6450" + }, + { + "$ref": "6455" + }, + { + "$ref": "6461" + }, + { + "$ref": "6467" + }, + { + "$ref": "6476" + }, + { + "$ref": "6482" + }, + { + "$ref": "6493" + }, + { + "$ref": "6499" + }, + { + "$ref": "6506" + }, + { + "$ref": "6515" + }, + { + "$ref": "6523" + }, + { + "$ref": "6527" + }, + { + "$ref": "6530" + }, + { + "$ref": "6536" + }, + { + "$ref": "6540" + }, + { + "$ref": "6549" + }, + { + "$ref": "6557" + }, + { + "$ref": "6565" + }, + { + "$ref": "6581" + }, + { + "$ref": "6584" + }, + { + "$ref": "6591" + }, + { + "$ref": "6598" + }, + { + "$ref": "6609" + }, + { + "$ref": "6620" + }, + { + "$ref": "6632" + }, + { + "$ref": "6644" + }, + { + "$ref": "6656" + }, + { + "$ref": "6668" + }, + { + "$ref": "6680" + }, + { + "$ref": "6690" + }, + { + "$ref": "6702" + }, + { + "$ref": "6714" + }, + { + "$ref": "6718" + }, + { + "$ref": "6728" + }, + { + "$ref": "6738" + }, + { + "$ref": "6741" + }, + { + "$ref": "6744" + }, + { + "$ref": "6746" + }, + { + "$ref": "6757" + }, + { + "$ref": "6764" + }, + { + "$id": "6773", + "kind": "model", + "name": "RealtimeSessionCreateRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest", + "usage": "Input,Json", + "doc": "Realtime session object configuration.", + "decorators": [], + "properties": [ + { + "$id": "6774", + "kind": "property", + "name": "modalities", + "serializedName": "modalities", + "doc": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].", + "type": { + "$ref": "6138" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.modalities", + "serializationOptions": { + "json": { + "name": "modalities" + } + } + }, + { + "$id": "6775", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The Realtime model used for this session.", + "type": { + "$ref": "1147" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "6776", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion into your voice\", \"laugh frequently\"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.\n\nNote that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.", + "type": { + "$id": "6777", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "6778", + "kind": "property", + "name": "voice", + "serializedName": "voice", + "doc": "The voice the model uses to respond. Voice cannot be changed during the\nsession once the model has responded with audio at least once. Current\nvoice options are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`,\n`onyx`, `nova`, `sage`, `shimmer`, and `verse`.", + "type": { + "$ref": "71" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.voice", + "serializationOptions": { + "json": { + "name": "voice" + } + } + }, + { + "$id": "6779", + "kind": "property", + "name": "input_audio_format", + "serializedName": "input_audio_format", + "doc": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate,\nsingle channel (mono), and little-endian byte order.", + "type": { + "$ref": "992" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_format", + "serializationOptions": { + "json": { + "name": "input_audio_format" + } + } + }, + { + "$id": "6780", + "kind": "property", + "name": "output_audio_format", + "serializedName": "output_audio_format", + "doc": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\nFor `pcm16`, output audio is sampled at a rate of 24kHz.", + "type": { + "$ref": "992" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.output_audio_format", + "serializationOptions": { + "json": { + "name": "output_audio_format" + } + } + }, + { + "$id": "6781", + "kind": "property", + "name": "input_audio_transcription", + "serializedName": "input_audio_transcription", + "doc": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.", + "type": { + "$id": "6782", + "kind": "model", + "name": "RealtimeSessionCreateRequestInputAudioTranscription", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_transcription.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6783", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for transcription, current options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1`.", + "type": { + "$id": "6784", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_transcription.anonymous.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + }, + { + "$id": "6785", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "The language of the input audio. Supplying the input language in\n[ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format\nwill improve accuracy and latency.", + "type": { + "$id": "6786", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_transcription.anonymous.language", + "serializationOptions": { + "json": { + "name": "language" + } + } + }, + { + "$id": "6787", + "kind": "property", + "name": "prompt", + "serializedName": "prompt", + "doc": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models, the prompt is a free text string, for example \"expect words related to technology\".", + "type": { + "$id": "6788", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_transcription.anonymous.prompt", + "serializationOptions": { + "json": { + "name": "prompt" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_transcription", + "serializationOptions": { + "json": { + "name": "input_audio_transcription" + } + } + }, + { + "$id": "6789", + "kind": "property", + "name": "turn_detection", + "serializedName": "turn_detection", + "doc": "Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.\nServer VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.\nSemantic VAD is more advanced and uses a turn detection model (in conjuction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with \"uhhm\", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.", + "type": { + "$id": "6790", + "kind": "model", + "name": "RealtimeSessionCreateRequestTurnDetection", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6791", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Type of turn detection.", + "type": { + "$ref": "1155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6792", + "kind": "property", + "name": "eagerness", + "serializedName": "eagerness", + "doc": "Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`.", + "type": { + "$ref": "1159" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.anonymous.eagerness", + "serializationOptions": { + "json": { + "name": "eagerness" + } + } + }, + { + "$id": "6793", + "kind": "property", + "name": "threshold", + "serializedName": "threshold", + "doc": "Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.", + "type": { + "$id": "6794", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.anonymous.threshold", + "serializationOptions": { + "json": { + "name": "threshold" + } + } + }, + { + "$id": "6795", + "kind": "property", + "name": "prefix_padding_ms", + "serializedName": "prefix_padding_ms", + "doc": "Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.", + "type": { + "$id": "6796", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.anonymous.prefix_padding_ms", + "serializationOptions": { + "json": { + "name": "prefix_padding_ms" + } + } + }, + { + "$id": "6797", + "kind": "property", + "name": "silence_duration_ms", + "serializedName": "silence_duration_ms", + "doc": "Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.", + "type": { + "$id": "6798", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.anonymous.silence_duration_ms", + "serializationOptions": { + "json": { + "name": "silence_duration_ms" + } + } + }, + { + "$id": "6799", + "kind": "property", + "name": "create_response", + "serializedName": "create_response", + "doc": "Whether or not to automatically generate a response when a VAD stop event occurs.", + "type": { + "$id": "6800", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.anonymous.create_response", + "serializationOptions": { + "json": { + "name": "create_response" + } + } + }, + { + "$id": "6801", + "kind": "property", + "name": "interrupt_response", + "serializedName": "interrupt_response", + "doc": "Whether or not to automatically interrupt any ongoing response with output to the default\nconversation (i.e. `conversation` of `auto`) when a VAD start event occurs.", + "type": { + "$id": "6802", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection.anonymous.interrupt_response", + "serializationOptions": { + "json": { + "name": "interrupt_response" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.turn_detection", + "serializationOptions": { + "json": { + "name": "turn_detection" + } + } + }, + { + "$id": "6803", + "kind": "property", + "name": "input_audio_noise_reduction", + "serializedName": "input_audio_noise_reduction", + "doc": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.", + "type": { + "$id": "6804", + "kind": "nullable", + "type": { + "$id": "6805", + "kind": "model", + "name": "RealtimeSessionCreateRequestInputAudioNoiseReduction1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_noise_reduction.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6806", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.", + "type": { + "$ref": "1165" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_noise_reduction.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.input_audio_noise_reduction", + "serializationOptions": { + "json": { + "name": "input_audio_noise_reduction" + } + } + }, + { + "$id": "6807", + "kind": "property", + "name": "speed", + "serializedName": "speed", + "doc": "The speed of the model's spoken response. 1.0 is the default speed. 0.25 is\nthe minimum speed. 1.5 is the maximum speed. This value can only be changed\nin between model turns, not while a response is in progress.", + "type": { + "$id": "6808", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.speed", + "serializationOptions": { + "json": { + "name": "speed" + } + } + }, + { + "$id": "6809", + "kind": "property", + "name": "tracing", + "serializedName": "tracing", + "doc": "Configuration options for tracing. Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.", + "type": { + "$id": "6810", + "kind": "union", + "name": "RealtimeSessionCreateRequestTracing", + "variantTypes": [ + { + "$ref": "1503" + }, + { + "$id": "6811", + "kind": "model", + "name": "RealtimeSessionCreateRequestTracing1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.tracing.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6812", + "kind": "property", + "name": "workflow_name", + "serializedName": "workflow_name", + "doc": "The name of the workflow to attach to this trace. This is used to\nname the trace in the traces dashboard.", + "type": { + "$id": "6813", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.tracing.anonymous.workflow_name", + "serializationOptions": { + "json": { + "name": "workflow_name" + } + } + }, + { + "$id": "6814", + "kind": "property", + "name": "group_id", + "serializedName": "group_id", + "doc": "The group id to attach to this trace to enable filtering and\ngrouping in the traces dashboard.", + "type": { + "$id": "6815", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.tracing.anonymous.group_id", + "serializationOptions": { + "json": { + "name": "group_id" + } + } + }, + { + "$id": "6816", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "The arbitrary metadata to attach to this trace to enable\nfiltering in the traces dashboard.", + "type": { + "$id": "6817", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.tracing.anonymous.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.tracing", + "serializationOptions": { + "json": { + "name": "tracing" + } + } + }, + { + "$id": "6818", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "Tools (functions) available to the model.", + "type": { + "$ref": "6182" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "6819", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "doc": "How the model chooses tools. Options are `auto`, `none`, `required`, or\nspecify a function.", + "type": { + "$id": "6820", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "6821", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.", + "type": { + "$id": "6822", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "6823", + "kind": "property", + "name": "max_response_output_tokens", + "serializedName": "max_response_output_tokens", + "doc": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.", + "type": { + "$id": "6824", + "kind": "union", + "name": "RealtimeSessionCreateRequestMaxResponseOutputTokens", + "variantTypes": [ + { + "$id": "6825", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + { + "$ref": "1505" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.max_response_output_tokens", + "serializationOptions": { + "json": { + "name": "max_response_output_tokens" + } + } + }, + { + "$id": "6826", + "kind": "property", + "name": "client_secret", + "serializedName": "client_secret", + "doc": "Configuration options for the generated client secret.", + "type": { + "$id": "6827", + "kind": "model", + "name": "RealtimeSessionCreateRequestClientSecret", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.client_secret.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6828", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "Configuration for the ephemeral token expiration.", + "type": { + "$id": "6829", + "kind": "model", + "name": "RealtimeSessionCreateRequestClientSecretExpiresAt", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.client_secret.expires_at.anonymous", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6830", + "kind": "property", + "name": "anchor", + "serializedName": "anchor", + "doc": "The anchor point for the ephemeral token expiration. Only `created_at` is currently supported.", + "type": { + "$ref": "1507" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.client_secret.expires_at.anonymous.anchor", + "serializationOptions": { + "json": { + "name": "anchor" + } + } + }, + { + "$id": "6831", + "kind": "property", + "name": "seconds", + "serializedName": "seconds", + "doc": "The number of seconds from the anchor point to the expiration. Select a value between `10` and `7200`.", + "type": { + "$id": "6832", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.client_secret.expires_at.anonymous.seconds", + "serializationOptions": { + "json": { + "name": "seconds" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.client_secret.anonymous.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateRequest.client_secret", + "serializationOptions": { + "json": { + "name": "client_secret" + } + } + } + ] + }, + { + "$ref": "6782" + }, + { + "$ref": "6790" + }, + { + "$ref": "6805" + }, + { + "$ref": "6811" + }, + { + "$ref": "6827" + }, + { + "$ref": "6829" + }, + { + "$id": "6833", + "kind": "model", + "name": "RealtimeSessionCreateResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse", + "usage": "Output,Json", + "doc": "A new Realtime session configuration, with an ephermeral key. Default TTL\nfor keys is one minute.", + "decorators": [], + "properties": [ + { + "$id": "6834", + "kind": "property", + "name": "client_secret", + "serializedName": "client_secret", + "doc": "Ephemeral key returned by the API.", + "type": { + "$id": "6835", + "kind": "model", + "name": "RealtimeSessionCreateResponseClientSecret", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.client_secret.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6836", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "Ephemeral key usable in client environments to authenticate connections\nto the Realtime API. Use this in client-side environments rather than\na standard API token, which should only be used server-side.", + "type": { + "$id": "6837", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.client_secret.anonymous.value", + "serializationOptions": { + "json": { + "name": "value" + } + } + }, + { + "$id": "6838", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "Timestamp for when the token expires. Currently, all tokens expire\nafter one minute.", + "type": { + "$id": "6839", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "6840", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.client_secret.anonymous.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.client_secret", + "serializationOptions": { + "json": { + "name": "client_secret" + } + } + }, + { + "$id": "6841", + "kind": "property", + "name": "modalities", + "serializedName": "modalities", + "doc": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].", + "type": { + "$ref": "6138" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.modalities", + "serializationOptions": { + "json": { + "name": "modalities" + } + } + }, + { + "$id": "6842", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The default system instructions (i.e. system message) prepended to model\ncalls. This field allows the client to guide the model on desired\nresponses. The model can be instructed on response content and format,\n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good\nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion\ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed\nto be followed by the model, but they provide guidance to the model on the\ndesired behavior.\n\nNote that the server sets default instructions which will be used if this\nfield is not set and are visible in the `session.created` event at the\nstart of the session.", + "type": { + "$id": "6843", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.instructions", + "serializationOptions": { + "json": { + "name": "instructions" + } + } + }, + { + "$id": "6844", + "kind": "property", + "name": "voice", + "serializedName": "voice", + "doc": "The voice the model uses to respond. Voice cannot be changed during the\nsession once the model has responded with audio at least once. Current\nvoice options are `alloy`, `ash`, `ballad`, `coral`, `echo` `sage`,\n`shimmer` and `verse`.", + "type": { + "$ref": "71" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.voice", + "serializationOptions": { + "json": { + "name": "voice" + } + } + }, + { + "$id": "6845", + "kind": "property", + "name": "input_audio_format", + "serializedName": "input_audio_format", + "doc": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.", + "type": { + "$ref": "992" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.input_audio_format", + "serializationOptions": { + "json": { + "name": "input_audio_format" + } + } + }, + { + "$id": "6846", + "kind": "property", + "name": "output_audio_format", + "serializedName": "output_audio_format", + "doc": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.", + "type": { + "$ref": "992" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.output_audio_format", + "serializationOptions": { + "json": { + "name": "output_audio_format" + } + } + }, + { + "$id": "6847", + "kind": "property", + "name": "input_audio_transcription", + "serializedName": "input_audio_transcription", + "doc": "Configuration for input audio transcription, defaults to off and can be\nset to `null` to turn off once on. Input audio transcription is not native\nto the model, since the model consumes audio directly. Transcription runs\nasynchronously through Whisper and should be treated as rough guidance\nrather than the representation understood by the model.", + "type": { + "$id": "6848", + "kind": "model", + "name": "RealtimeSessionCreateResponseInputAudioTranscription", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.input_audio_transcription.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6849", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The model to use for transcription, `whisper-1` is the only currently\nsupported model.", + "type": { + "$id": "6850", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.input_audio_transcription.anonymous.model", + "serializationOptions": { + "json": { + "name": "model" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.input_audio_transcription", + "serializationOptions": { + "json": { + "name": "input_audio_transcription" + } + } + }, + { + "$id": "6851", + "kind": "property", + "name": "speed", + "serializedName": "speed", + "doc": "The speed of the model's spoken response. 1.0 is the default speed. 0.25 is\nthe minimum speed. 1.5 is the maximum speed. This value can only be changed\nin between model turns, not while a response is in progress.", + "type": { + "$id": "6852", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.speed", + "serializationOptions": { + "json": { + "name": "speed" + } + } + }, + { + "$id": "6853", + "kind": "property", + "name": "tracing", + "serializedName": "tracing", + "doc": "Configuration options for tracing. Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.", + "type": { + "$id": "6854", + "kind": "union", + "name": "RealtimeSessionCreateResponseTracing", + "variantTypes": [ + { + "$ref": "1509" + }, + { + "$id": "6855", + "kind": "model", + "name": "RealtimeSessionCreateResponseTracing1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.tracing.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6856", + "kind": "property", + "name": "workflow_name", + "serializedName": "workflow_name", + "doc": "The name of the workflow to attach to this trace. This is used to\nname the trace in the traces dashboard.", + "type": { + "$id": "6857", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.tracing.anonymous.workflow_name", + "serializationOptions": { + "json": { + "name": "workflow_name" + } + } + }, + { + "$id": "6858", + "kind": "property", + "name": "group_id", + "serializedName": "group_id", + "doc": "The group id to attach to this trace to enable filtering and\ngrouping in the traces dashboard.", + "type": { + "$id": "6859", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.tracing.anonymous.group_id", + "serializationOptions": { + "json": { + "name": "group_id" + } + } + }, + { + "$id": "6860", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "The arbitrary metadata to attach to this trace to enable\nfiltering in the traces dashboard.", + "type": { + "$id": "6861", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.tracing.anonymous.metadata", + "serializationOptions": { + "json": { + "name": "metadata" + } + } + } + ] + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.tracing", + "serializationOptions": { + "json": { + "name": "tracing" + } + } + }, + { + "$id": "6862", + "kind": "property", + "name": "turn_detection", + "serializedName": "turn_detection", + "doc": "Configuration for turn detection. Can be set to `null` to turn off. Server\nVAD means that the model will detect the start and end of speech based on\naudio volume and respond at the end of user speech.", + "type": { + "$id": "6863", + "kind": "model", + "name": "RealtimeSessionCreateResponseTurnDetection", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.turn_detection.anonymous", + "usage": "Output,Json", + "decorators": [], + "properties": [ + { + "$id": "6864", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Type of turn detection, only `server_vad` is currently supported.", + "type": { + "$id": "6865", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.turn_detection.anonymous.type", + "serializationOptions": { + "json": { + "name": "type" + } + } + }, + { + "$id": "6866", + "kind": "property", + "name": "threshold", + "serializedName": "threshold", + "doc": "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.", + "type": { + "$id": "6867", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.turn_detection.anonymous.threshold", + "serializationOptions": { + "json": { + "name": "threshold" + } + } + }, + { + "$id": "6868", + "kind": "property", + "name": "prefix_padding_ms", + "serializedName": "prefix_padding_ms", + "doc": "Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.", + "type": { + "$id": "6869", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.turn_detection.anonymous.prefix_padding_ms", + "serializationOptions": { + "json": { + "name": "prefix_padding_ms" + } + } + }, + { + "$id": "6870", + "kind": "property", + "name": "silence_duration_ms", + "serializedName": "silence_duration_ms", + "doc": "Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.", + "type": { + "$id": "6871", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.turn_detection.anonymous.silence_duration_ms", + "serializationOptions": { + "json": { + "name": "silence_duration_ms" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.turn_detection", + "serializationOptions": { + "json": { + "name": "turn_detection" + } + } + }, + { + "$id": "6872", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "Tools (functions) available to the model.", + "type": { + "$ref": "6182" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.tools", + "serializationOptions": { + "json": { + "name": "tools" + } + } + }, + { + "$id": "6873", + "kind": "property", + "name": "tool_choice", + "serializedName": "tool_choice", + "doc": "How the model chooses tools. Options are `auto`, `none`, `required`, or\nspecify a function.", + "type": { + "$id": "6874", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.tool_choice", + "serializationOptions": { + "json": { + "name": "tool_choice" + } + } + }, + { + "$id": "6875", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.", + "type": { + "$id": "6876", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.temperature", + "serializationOptions": { + "json": { + "name": "temperature" + } + } + }, + { + "$id": "6877", + "kind": "property", + "name": "max_response_output_tokens", + "serializedName": "max_response_output_tokens", + "doc": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.", + "type": { + "$id": "6878", + "kind": "union", + "name": "RealtimeSessionCreateResponseMaxResponseOutputTokens", + "variantTypes": [ + { + "$id": "6879", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + { + "$ref": "1511" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RealtimeSessionCreateResponse.max_response_output_tokens", + "serializationOptions": { + "json": { + "name": "max_response_output_tokens" + } + } + } + ] + }, + { + "$ref": "6835" + }, + { + "$ref": "6848" + }, + { + "$ref": "6855" + }, + { + "$ref": "6863" + }, + { + "$id": "6880", + "kind": "model", + "name": "CreateUploadRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateUploadRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6881", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "doc": "The name of the file to upload.", + "type": { + "$id": "6882", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateUploadRequest.filename", + "serializationOptions": { + "json": { + "name": "filename" + } + } + }, + { + "$id": "6883", + "kind": "property", + "name": "purpose", + "serializedName": "purpose", + "doc": "The intended purpose of the uploaded file.\n\nSee the [documentation on File purposes](/docs/api-reference/files/create#files-create-purpose).", + "type": { + "$ref": "1169" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateUploadRequest.purpose", + "serializationOptions": { + "json": { + "name": "purpose" + } + } + }, + { + "$id": "6884", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The number of bytes in the file you are uploading.", + "type": { + "$id": "6885", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateUploadRequest.bytes", + "serializationOptions": { + "json": { + "name": "bytes" + } + } + }, + { + "$id": "6886", + "kind": "property", + "name": "mime_type", + "serializedName": "mime_type", + "doc": "The MIME type of the file.\n\nThis must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.", + "type": { + "$id": "6887", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateUploadRequest.mime_type", + "serializationOptions": { + "json": { + "name": "mime_type" + } + } + } + ] + }, + { + "$id": "6888", + "kind": "model", + "name": "Upload", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.Upload", + "usage": "Output,Json", + "doc": "The Upload object can accept byte chunks in the form of Parts.", + "decorators": [], + "properties": [ + { + "$id": "6889", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The Upload unique identifier, which can be referenced in API endpoints.", + "type": { + "$id": "6890", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Upload.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "6891", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the Upload was created.", + "type": { + "$id": "6892", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "6893", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Upload.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "6894", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "doc": "The name of the file to be uploaded.", + "type": { + "$id": "6895", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Upload.filename", + "serializationOptions": { + "json": { + "name": "filename" + } + } + }, + { + "$id": "6896", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The intended number of bytes to be uploaded.", + "type": { + "$id": "6897", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Upload.bytes", + "serializationOptions": { + "json": { + "name": "bytes" + } + } + }, + { + "$id": "6898", + "kind": "property", + "name": "purpose", + "serializedName": "purpose", + "doc": "The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values.", + "type": { + "$id": "6899", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Upload.purpose", + "serializationOptions": { + "json": { + "name": "purpose" + } + } + }, + { + "$id": "6900", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the Upload.", + "type": { + "$ref": "1175" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Upload.status", + "serializationOptions": { + "json": { + "name": "status" + } + } + }, + { + "$id": "6901", + "kind": "property", + "name": "expires_at", + "serializedName": "expires_at", + "doc": "The Unix timestamp (in seconds) for when the Upload will expire.", + "type": { + "$id": "6902", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "6903", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Upload.expires_at", + "serializationOptions": { + "json": { + "name": "expires_at" + } + } + }, + { + "$id": "6904", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always \"upload\".", + "type": { + "$ref": "1513" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Upload.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + }, + { + "$id": "6905", + "kind": "property", + "name": "file", + "serializedName": "file", + "type": { + "$id": "6906", + "kind": "nullable", + "type": { + "$ref": "3044" + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Upload.file", + "serializationOptions": { + "json": { + "name": "file" + } + } + } + ] + }, + { + "$id": "6907", + "kind": "model", + "name": "AddUploadPartRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.AddUploadPartRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "properties": [ + { + "$id": "6908", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The chunk of bytes for this Part.", + "type": { + "$id": "6909", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.AddUploadPartRequest.data", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "data", + "headers": [] + } + } + } + ] + }, + { + "$id": "6910", + "kind": "model", + "name": "UploadPart", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.UploadPart", + "usage": "Output,Json", + "doc": "The upload Part represents a chunk of bytes we can add to an Upload object.", + "decorators": [], + "properties": [ + { + "$id": "6911", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The upload Part unique identifier, which can be referenced in API endpoints.", + "type": { + "$id": "6912", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.UploadPart.id", + "serializationOptions": { + "json": { + "name": "id" + } + } + }, + { + "$id": "6913", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the Part was created.", + "type": { + "$id": "6914", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "6915", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.UploadPart.created_at", + "serializationOptions": { + "json": { + "name": "created_at" + } + } + }, + { + "$id": "6916", + "kind": "property", + "name": "upload_id", + "serializedName": "upload_id", + "doc": "The ID of the Upload object that this Part was added to.", + "type": { + "$id": "6917", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.UploadPart.upload_id", + "serializationOptions": { + "json": { + "name": "upload_id" + } + } + }, + { + "$id": "6918", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `upload.part`.", + "type": { + "$ref": "1515" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.UploadPart.object", + "serializationOptions": { + "json": { + "name": "object" + } + } + } + ] + }, + { + "$id": "6919", + "kind": "model", + "name": "CompleteUploadRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CompleteUploadRequest", + "usage": "Input,Json", + "decorators": [], + "properties": [ + { + "$id": "6920", + "kind": "property", + "name": "part_ids", + "serializedName": "part_ids", + "doc": "The ordered list of Part IDs.", + "type": { + "$ref": "2155" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompleteUploadRequest.part_ids", + "serializationOptions": { + "json": { + "name": "part_ids" + } + } + }, + { + "$id": "6921", + "kind": "property", + "name": "md5", + "serializedName": "md5", + "doc": "The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.", + "type": { + "$id": "6922", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CompleteUploadRequest.md5", + "serializationOptions": { + "json": { + "name": "md5" + } + } + } + ] + }, + { + "$id": "6923", + "kind": "model", + "name": "BatchRequestInput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.BatchRequestInput", + "access": "public", + "usage": "Input", + "doc": "The per-line object of the batch input file", + "decorators": [], + "properties": [ + { + "$id": "6924", + "kind": "property", + "name": "custom_id", + "serializedName": "custom_id", + "doc": "A developer-provided per-request id that will be used to match outputs to inputs. Must be unique for each request in a batch.", + "type": { + "$id": "6925", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestInput.custom_id", + "serializationOptions": {} + }, + { + "$id": "6926", + "kind": "property", + "name": "method", + "serializedName": "method", + "doc": "The HTTP method to be used for the request. Currently only `POST` is supported.", + "type": { + "$ref": "1517" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestInput.method", + "serializationOptions": {} + }, + { + "$id": "6927", + "kind": "property", + "name": "url", + "serializedName": "url", + "doc": "The OpenAI API relative URL to be used for the request. Currently `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported.", + "type": { + "$id": "6928", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestInput.url", + "serializationOptions": {} + } + ] + }, + { + "$id": "6929", + "kind": "model", + "name": "BatchRequestOutput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput", + "access": "public", + "usage": "Output", + "doc": "The per-line object of the batch output and error files", + "decorators": [], + "properties": [ + { + "$id": "6930", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "6931", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.id", + "serializationOptions": {} + }, + { + "$id": "6932", + "kind": "property", + "name": "custom_id", + "serializedName": "custom_id", + "doc": "A developer-provided per-request id that will be used to match outputs to inputs.", + "type": { + "$id": "6933", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.custom_id", + "serializationOptions": {} + }, + { + "$id": "6934", + "kind": "property", + "name": "response", + "serializedName": "response", + "type": { + "$id": "6935", + "kind": "nullable", + "type": { + "$id": "6936", + "kind": "model", + "name": "BatchRequestOutputResponse1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.response.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "6937", + "kind": "property", + "name": "status_code", + "serializedName": "status_code", + "doc": "The HTTP status code of the response", + "type": { + "$id": "6938", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.response.anonymous.status_code", + "serializationOptions": {} + }, + { + "$id": "6939", + "kind": "property", + "name": "request_id", + "serializedName": "request_id", + "doc": "An unique identifier for the OpenAI API request. Please include this request ID when contacting support.", + "type": { + "$id": "6940", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.response.anonymous.request_id", + "serializationOptions": {} + }, + { + "$id": "6941", + "kind": "property", + "name": "body", + "serializedName": "body", + "doc": "The JSON body of the response", + "type": { + "$ref": "3442" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.response.anonymous.body", + "serializationOptions": {} + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.response", + "serializationOptions": {} + }, + { + "$id": "6942", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "For requests that failed with a non-HTTP error, this will contain more information on the cause of the failure.", + "type": { + "$id": "6943", + "kind": "nullable", + "type": { + "$id": "6944", + "kind": "model", + "name": "BatchRequestOutputError1", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.error.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "6945", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "A machine-readable error code.", + "type": { + "$id": "6946", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.error.anonymous.code", + "serializationOptions": {} + }, + { + "$id": "6947", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable error message.", + "type": { + "$id": "6948", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.error.anonymous.message", + "serializationOptions": {} + } + ] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.BatchRequestOutput.error", + "serializationOptions": {} + } + ] + }, + { + "$ref": "6936" + }, + { + "$ref": "6944" + }, + { + "$id": "6949", + "kind": "model", + "name": "ChatCompletionFunctionChoice", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionFunctionChoice", + "access": "public", + "usage": "Input", + "decorators": [], + "properties": [] + }, + { + "$id": "6950", + "kind": "model", + "name": "ChatCompletionToolChoice", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionToolChoice", + "access": "public", + "usage": "Input", + "decorators": [], + "properties": [] + }, + { + "$id": "6951", + "kind": "model", + "name": "FineTuneChatCompletionRequestAssistantMessage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage", + "usage": "Input", + "decorators": [], + "properties": [ + { + "$id": "6952", + "kind": "property", + "name": "weight", + "serializedName": "weight", + "doc": "Controls whether the assistant message is trained against (0 or 1)", + "type": { + "$ref": "1181" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage.weight", + "serializationOptions": {} + }, + { + "$id": "6953", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.", + "type": { + "$ref": "2747" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage.content", + "serializationOptions": {} + }, + { + "$id": "6954", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "doc": "The refusal message by the assistant.", + "type": { + "$ref": "2753" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage.refusal", + "serializationOptions": {} + }, + { + "$id": "6955", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the messages author, in this case `assistant`.", + "type": { + "$id": "6956", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "valueType": { + "$ref": "154" + }, + "enumType": { + "$ref": "153" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage.role", + "serializationOptions": {} + }, + { + "$id": "6957", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "An optional name for the participant. Provides the model information to differentiate between participants of the same role.", + "type": { + "$id": "6958", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage.name", + "serializationOptions": {} + }, + { + "$id": "6959", + "kind": "property", + "name": "audio", + "serializedName": "audio", + "doc": "Data about a previous audio response from the model.\n[Learn more](/docs/guides/audio).", + "type": { + "$ref": "2760" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage.audio", + "serializationOptions": {} + }, + { + "$id": "6960", + "kind": "property", + "name": "tool_calls", + "serializedName": "tool_calls", + "type": { + "$ref": "2552" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage.tool_calls", + "serializationOptions": {} + }, + { + "$id": "6961", + "kind": "property", + "name": "function_call", + "serializedName": "function_call", + "doc": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.", + "type": { + "$ref": "2766" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatCompletionRequestAssistantMessage.function_call", + "serializationOptions": {} + } + ] + }, + { + "$id": "6962", + "kind": "model", + "name": "FineTuneChatRequestInput", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuneChatRequestInput", + "access": "public", + "usage": "Input", + "doc": "The per-line training example of a fine-tuning input file for chat models using the supervised method.", + "decorators": [], + "properties": [ + { + "$id": "6963", + "kind": "property", + "name": "messages", + "serializedName": "messages", + "type": { + "$id": "6964", + "kind": "array", + "name": "Array47", + "valueType": { + "$id": "6965", + "kind": "union", + "name": "FineTuneChatRequestInputMessage", + "variantTypes": [ + { + "$ref": "2716" + }, + { + "$ref": "2735" + }, + { + "$ref": "6951" + }, + { + "$ref": "2772" + }, + { + "$ref": "2782" + } + ], + "namespace": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatRequestInput.messages", + "serializationOptions": {} + }, + { + "$id": "6966", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "A list of tools the model may generate JSON inputs for.", + "type": { + "$ref": "2873" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatRequestInput.tools", + "serializationOptions": {} + }, + { + "$id": "6967", + "kind": "property", + "name": "parallel_tool_calls", + "serializedName": "parallel_tool_calls", + "type": { + "$id": "6968", + "kind": "boolean", + "name": "ParallelToolCalls", + "crossLanguageDefinitionId": "OpenAI.ParallelToolCalls", + "baseType": { + "$id": "6969", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatRequestInput.parallel_tool_calls", + "serializationOptions": {} + }, + { + "$id": "6970", + "kind": "property", + "name": "functions", + "serializedName": "functions", + "doc": "A list of functions the model may generate JSON inputs for.", + "type": { + "$ref": "2895" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuneChatRequestInput.functions", + "serializationOptions": {} + } + ] + }, + { + "$id": "6971", + "kind": "model", + "name": "FineTuningJobsPageToken", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.FineTuningJobsPageToken", + "access": "public", + "usage": "Input", + "decorators": [], + "properties": [ + { + "$id": "6972", + "kind": "property", + "name": "limit", + "serializedName": "limit", + "type": { + "$id": "6973", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobsPageToken.limit", + "serializationOptions": {} + }, + { + "$id": "6974", + "kind": "property", + "name": "after", + "serializedName": "after", + "type": { + "$id": "6975", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuningJobsPageToken.after", + "serializationOptions": {} + } + ] + }, + { + "$id": "6976", + "kind": "model", + "name": "MessageDeltaContent", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContent", + "access": "public", + "usage": "Output", + "doc": "Represents a single piece of incremental content in an Assistants API streaming response.", + "decorators": [], + "discriminatorProperty": { + "$id": "6977", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The discriminated type identifier for the content item.", + "type": { + "$ref": "804" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContent.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "6977" + } + ], + "discriminatedSubtypes": { + "image_file": { + "$id": "6978", + "kind": "model", + "name": "MessageDeltaContentImageFileObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageFileObject", + "access": "public", + "usage": "Output", + "doc": "References an image [File](/docs/api-reference/files) in the content of a message.", + "discriminatorValue": "image_file", + "decorators": [], + "baseModel": { + "$ref": "6976" + }, + "properties": [ + { + "$id": "6979", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the content part in the message.", + "type": { + "$id": "6980", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageFileObject.index", + "serializationOptions": {} + }, + { + "$id": "6981", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `image_file`.", + "type": { + "$ref": "807" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageFileObject.type", + "serializationOptions": {} + }, + { + "$id": "6982", + "kind": "property", + "name": "image_file", + "serializedName": "image_file", + "type": { + "$id": "6983", + "kind": "model", + "name": "MessageDeltaContentImageFileObjectImageFile", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageFileObject.image_file.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "6984", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content.", + "type": { + "$id": "6985", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageFileObject.image_file.anonymous.file_id", + "serializationOptions": {} + }, + { + "$id": "6986", + "kind": "property", + "name": "detail", + "serializedName": "detail", + "doc": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.", + "type": { + "$ref": "1185" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageFileObject.image_file.anonymous.detail", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageFileObject.image_file", + "serializationOptions": {} + } + ] + }, + "image_url": { + "$id": "6987", + "kind": "model", + "name": "MessageDeltaContentImageUrlObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageUrlObject", + "access": "public", + "usage": "Output", + "doc": "References an image URL in the content of a message.", + "discriminatorValue": "image_url", + "decorators": [], + "baseModel": { + "$ref": "6976" + }, + "properties": [ + { + "$id": "6988", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the content part in the message.", + "type": { + "$id": "6989", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageUrlObject.index", + "serializationOptions": {} + }, + { + "$id": "6990", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `image_url`.", + "type": { + "$ref": "808" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageUrlObject.type", + "serializationOptions": {} + }, + { + "$id": "6991", + "kind": "property", + "name": "image_url", + "serializedName": "image_url", + "type": { + "$id": "6992", + "kind": "model", + "name": "MessageDeltaContentImageUrlObjectImageUrl", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageUrlObject.image_url.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "6993", + "kind": "property", + "name": "url", + "serializedName": "url", + "doc": "The URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.", + "type": { + "$id": "6994", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageUrlObject.image_url.anonymous.url", + "serializationOptions": {} + }, + { + "$id": "6995", + "kind": "property", + "name": "detail", + "serializedName": "detail", + "doc": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`.", + "type": { + "$ref": "1190" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageUrlObject.image_url.anonymous.detail", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentImageUrlObject.image_url", + "serializationOptions": {} + } + ] + }, + "text": { + "$id": "6996", + "kind": "model", + "name": "MessageDeltaContentTextObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextObject", + "access": "public", + "usage": "Output", + "doc": "The text content that is part of a message.", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "6976" + }, + "properties": [ + { + "$id": "6997", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the content part in the message.", + "type": { + "$id": "6998", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextObject.index", + "serializationOptions": {} + }, + { + "$id": "6999", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `text`.", + "type": { + "$ref": "806" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextObject.type", + "serializationOptions": {} + }, + { + "$id": "7000", + "kind": "property", + "name": "text", + "serializedName": "text", + "type": { + "$id": "7001", + "kind": "model", + "name": "MessageDeltaContentTextObjectText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextObject.text.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7002", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The data that makes up the text.", + "type": { + "$id": "7003", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextObject.text.anonymous.value", + "serializationOptions": {} + }, + { + "$id": "7004", + "kind": "property", + "name": "annotations", + "serializedName": "annotations", + "type": { + "$id": "7005", + "kind": "array", + "name": "ArrayMessageDeltaTextContentAnnotation", + "valueType": { + "$id": "7006", + "kind": "model", + "name": "MessageDeltaTextContentAnnotation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaTextContentAnnotation", + "access": "public", + "usage": "Output", + "decorators": [], + "discriminatorProperty": { + "$id": "7007", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The discriminated type identifier for the content item.", + "type": { + "$ref": "815" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaTextContentAnnotation.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "7007" + } + ], + "discriminatedSubtypes": { + "file_citation": { + "$id": "7008", + "kind": "model", + "name": "MessageDeltaContentTextAnnotationsFileCitationObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject", + "access": "public", + "usage": "Output", + "doc": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files.", + "discriminatorValue": "file_citation", + "decorators": [], + "baseModel": { + "$ref": "7006" + }, + "properties": [ + { + "$id": "7009", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the annotation in the text content part.", + "type": { + "$id": "7010", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject.index", + "serializationOptions": {} + }, + { + "$id": "7011", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `file_citation`.", + "type": { + "$ref": "817" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject.type", + "serializationOptions": {} + }, + { + "$id": "7012", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text in the message content that needs to be replaced.", + "type": { + "$id": "7013", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject.text", + "serializationOptions": {} + }, + { + "$id": "7014", + "kind": "property", + "name": "file_citation", + "serializedName": "file_citation", + "type": { + "$id": "7015", + "kind": "model", + "name": "MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject.file_citation.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7016", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the specific File the citation is from.", + "type": { + "$id": "7017", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject.file_citation.anonymous.file_id", + "serializationOptions": {} + }, + { + "$id": "7018", + "kind": "property", + "name": "quote", + "serializedName": "quote", + "doc": "The specific quote in the file.", + "type": { + "$id": "7019", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject.file_citation.anonymous.quote", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject.file_citation", + "serializationOptions": {} + }, + { + "$id": "7020", + "kind": "property", + "name": "start_index", + "serializedName": "start_index", + "type": { + "$id": "7021", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject.start_index", + "serializationOptions": {} + }, + { + "$id": "7022", + "kind": "property", + "name": "end_index", + "serializedName": "end_index", + "type": { + "$id": "7023", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject.end_index", + "serializationOptions": {} + } + ] + }, + "file_path": { + "$id": "7024", + "kind": "model", + "name": "MessageDeltaContentTextAnnotationsFilePathObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFilePathObject", + "access": "public", + "usage": "Output", + "doc": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.", + "discriminatorValue": "file_path", + "decorators": [], + "baseModel": { + "$ref": "7006" + }, + "properties": [ + { + "$id": "7025", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the annotation in the text content part.", + "type": { + "$id": "7026", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFilePathObject.index", + "serializationOptions": {} + }, + { + "$id": "7027", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `file_path`.", + "type": { + "$ref": "818" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFilePathObject.type", + "serializationOptions": {} + }, + { + "$id": "7028", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text in the message content that needs to be replaced.", + "type": { + "$id": "7029", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFilePathObject.text", + "serializationOptions": {} + }, + { + "$id": "7030", + "kind": "property", + "name": "file_path", + "serializedName": "file_path", + "type": { + "$id": "7031", + "kind": "model", + "name": "MessageDeltaContentTextAnnotationsFilePathObjectFilePath", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFilePathObject.file_path.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7032", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The ID of the file that was generated.", + "type": { + "$id": "7033", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFilePathObject.file_path.anonymous.file_id", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFilePathObject.file_path", + "serializationOptions": {} + }, + { + "$id": "7034", + "kind": "property", + "name": "start_index", + "serializedName": "start_index", + "type": { + "$id": "7035", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFilePathObject.start_index", + "serializationOptions": {} + }, + { + "$id": "7036", + "kind": "property", + "name": "end_index", + "serializedName": "end_index", + "type": { + "$id": "7037", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextAnnotationsFilePathObject.end_index", + "serializationOptions": {} + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextObject.text.anonymous.annotations", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentTextObject.text", + "serializationOptions": {} + } + ] + }, + "refusal": { + "$id": "7038", + "kind": "model", + "name": "MessageDeltaContentRefusalObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentRefusalObject", + "usage": "Output", + "doc": "The refusal content that is part of a message.", + "discriminatorValue": "refusal", + "decorators": [], + "baseModel": { + "$ref": "6976" + }, + "properties": [ + { + "$id": "7039", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the refusal part in the message.", + "type": { + "$id": "7040", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentRefusalObject.index", + "serializationOptions": {} + }, + { + "$id": "7041", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `refusal`.", + "type": { + "$ref": "809" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentRefusalObject.type", + "serializationOptions": {} + }, + { + "$id": "7042", + "kind": "property", + "name": "refusal", + "serializedName": "refusal", + "type": { + "$id": "7043", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaContentRefusalObject.refusal", + "serializationOptions": {} + } + ] + } + } + }, + { + "$ref": "6978" + }, + { + "$ref": "6983" + }, + { + "$ref": "6987" + }, + { + "$ref": "6992" + }, + { + "$ref": "6996" + }, + { + "$ref": "7001" + }, + { + "$ref": "7006" + }, + { + "$ref": "7008" + }, + { + "$ref": "7015" + }, + { + "$ref": "7024" + }, + { + "$ref": "7031" + }, + { + "$ref": "7038" + }, + { + "$id": "7044", + "kind": "model", + "name": "MessageDeltaObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaObject", + "access": "public", + "usage": "Output", + "doc": "Represents a message delta i.e. any changed fields on a message during streaming.", + "decorators": [], + "properties": [ + { + "$id": "7045", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier of the message, which can be referenced in API endpoints.", + "type": { + "$id": "7046", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaObject.id", + "serializationOptions": {} + }, + { + "$id": "7047", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `thread.message.delta`.", + "type": { + "$ref": "1519" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaObject.object", + "serializationOptions": {} + }, + { + "$id": "7048", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The delta containing the fields that have changed on the Message.", + "type": { + "$id": "7049", + "kind": "model", + "name": "MessageDeltaObjectDelta", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.MessageDeltaObject.delta.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7050", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The entity that produced the message. One of `user` or `assistant`.", + "type": { + "$ref": "1195" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaObject.delta.anonymous.role", + "serializationOptions": {} + }, + { + "$id": "7051", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the message in array of text and/or images.", + "type": { + "$id": "7052", + "kind": "array", + "name": "ArrayMessageDeltaContent", + "valueType": { + "$ref": "6976" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaObject.delta.anonymous.content", + "serializationOptions": {} + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.MessageDeltaObject.delta", + "serializationOptions": {} + } + ] + }, + { + "$ref": "7049" + }, + { + "$id": "7053", + "kind": "model", + "name": "RunStepDeltaObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaObject", + "access": "public", + "usage": "Output", + "doc": "Represents a run step delta i.e. any changed fields on a run step during streaming.", + "decorators": [], + "properties": [ + { + "$id": "7054", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier of the run step, which can be referenced in API endpoints.", + "type": { + "$id": "7055", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaObject.id", + "serializationOptions": {} + }, + { + "$id": "7056", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `thread.run.step.delta`.", + "type": { + "$ref": "1521" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaObject.object", + "serializationOptions": {} + }, + { + "$id": "7057", + "kind": "property", + "name": "delta", + "serializedName": "delta", + "doc": "The delta containing the fields that have changed on the run step.", + "type": { + "$id": "7058", + "kind": "model", + "name": "RunStepDeltaObjectDelta", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaObject.delta.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7059", + "kind": "property", + "name": "step_details", + "serializedName": "step_details", + "doc": "The details of the run step.", + "type": { + "$id": "7060", + "kind": "model", + "name": "RunStepDeltaStepDetails", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetails", + "usage": "Output", + "decorators": [], + "discriminatorProperty": { + "$id": "7061", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The discriminated type identifier for the details object.", + "type": { + "$ref": "898" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetails.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "7061" + } + ], + "discriminatedSubtypes": { + "message_creation": { + "$id": "7062", + "kind": "model", + "name": "RunStepDeltaStepDetailsMessageCreationObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsMessageCreationObject", + "access": "public", + "usage": "Output", + "doc": "Details of the message creation by the run step.", + "discriminatorValue": "message_creation", + "decorators": [], + "baseModel": { + "$ref": "7060" + }, + "properties": [ + { + "$id": "7063", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `message_creation`.", + "type": { + "$ref": "900" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsMessageCreationObject.type", + "serializationOptions": {} + }, + { + "$id": "7064", + "kind": "property", + "name": "message_creation", + "serializedName": "message_creation", + "type": { + "$id": "7065", + "kind": "model", + "name": "RunStepDeltaStepDetailsMessageCreationObjectMessageCreation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsMessageCreationObject.message_creation.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7066", + "kind": "property", + "name": "message_id", + "serializedName": "message_id", + "doc": "The ID of the message that was created by this run step.", + "type": { + "$id": "7067", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsMessageCreationObject.message_creation.anonymous.message_id", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsMessageCreationObject.message_creation", + "serializationOptions": {} + } + ] + }, + "tool_calls": { + "$id": "7068", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsObject", + "access": "public", + "usage": "Output", + "doc": "Details of the tool call.", + "discriminatorValue": "tool_calls", + "decorators": [], + "baseModel": { + "$ref": "7060" + }, + "properties": [ + { + "$id": "7069", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `tool_calls`.", + "type": { + "$ref": "901" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsObject.type", + "serializationOptions": {} + }, + { + "$id": "7070", + "kind": "property", + "name": "tool_calls", + "serializedName": "tool_calls", + "doc": "An array of tool calls the run step was involved in. These can be associated with one of three types of tools: `code_interpreter`, `file_search`, or `function`.", + "type": { + "$id": "7071", + "kind": "array", + "name": "ArrayRunStepDeltaStepDetailsToolCallsObjectToolCallsObject", + "valueType": { + "$id": "7072", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsObjectToolCallsObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsObjectToolCallsObject", + "usage": "Output", + "doc": "Abstractly represents a run step tool call details inner object.", + "decorators": [], + "discriminatorProperty": { + "$id": "7073", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The discriminated type identifier for the details object.", + "type": { + "$ref": "902" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsObjectToolCallsObject.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "7073" + } + ], + "discriminatedSubtypes": { + "code_interpreter": { + "$id": "7074", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsCodeObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject", + "access": "public", + "usage": "Output", + "doc": "Details of the Code Interpreter tool call the run step was involved in.", + "discriminatorValue": "code_interpreter", + "decorators": [], + "baseModel": { + "$ref": "7072" + }, + "properties": [ + { + "$id": "7075", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the tool call in the tool calls array.", + "type": { + "$id": "7076", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject.index", + "serializationOptions": {} + }, + { + "$id": "7077", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call.", + "type": { + "$id": "7078", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject.id", + "serializationOptions": {} + }, + { + "$id": "7079", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool call. This is always going to be `code_interpreter` for this type of tool call.", + "type": { + "$ref": "904" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject.type", + "serializationOptions": {} + }, + { + "$id": "7080", + "kind": "property", + "name": "code_interpreter", + "serializedName": "code_interpreter", + "doc": "The Code Interpreter tool call definition.", + "type": { + "$id": "7081", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject.code_interpreter.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7082", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The input to the Code Interpreter tool call.", + "type": { + "$id": "7083", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject.code_interpreter.anonymous.input", + "serializationOptions": {} + }, + { + "$id": "7084", + "kind": "property", + "name": "outputs", + "serializedName": "outputs", + "doc": "The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (`logs`) or images (`image`). Each of these are represented by a different object type.", + "type": { + "$id": "7085", + "kind": "array", + "name": "ArrayRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject", + "valueType": { + "$id": "7086", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject", + "usage": "Output", + "doc": "Abstractly represents a run step tool call details code interpreter output.", + "decorators": [], + "discriminatorProperty": { + "$id": "7087", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The discriminated type identifier for the details object.", + "type": { + "$ref": "907" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "7087" + } + ], + "discriminatedSubtypes": { + "logs": { + "$id": "7088", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject", + "access": "public", + "usage": "Output", + "doc": "Text output from the Code Interpreter tool call as part of a run step.", + "discriminatorValue": "logs", + "decorators": [], + "baseModel": { + "$ref": "7086" + }, + "properties": [ + { + "$id": "7089", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the output in the outputs array.", + "type": { + "$id": "7090", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.index", + "serializationOptions": {} + }, + { + "$id": "7091", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `logs`.", + "type": { + "$ref": "909" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.type", + "serializationOptions": {} + }, + { + "$id": "7092", + "kind": "property", + "name": "logs", + "serializedName": "logs", + "doc": "The text output from the Code Interpreter tool call.", + "type": { + "$id": "7093", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.logs", + "serializationOptions": {} + } + ] + }, + "image": { + "$id": "7094", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsCodeOutputImageObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject", + "access": "public", + "usage": "Output", + "discriminatorValue": "image", + "decorators": [], + "baseModel": { + "$ref": "7086" + }, + "properties": [ + { + "$id": "7095", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the output in the outputs array.", + "type": { + "$id": "7096", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.index", + "serializationOptions": {} + }, + { + "$id": "7097", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `image`.", + "type": { + "$ref": "910" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.type", + "serializationOptions": {} + }, + { + "$id": "7098", + "kind": "property", + "name": "image", + "serializedName": "image", + "type": { + "$id": "7099", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.image.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7100", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "The [file](/docs/api-reference/files) ID of the image.", + "type": { + "$id": "7101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.image.anonymous.file_id", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject.image", + "serializationOptions": {} + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject.code_interpreter.anonymous.outputs", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject.code_interpreter", + "serializationOptions": {} + } + ] + }, + "file_search": { + "$id": "7102", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsFileSearchObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject", + "access": "public", + "usage": "Output", + "discriminatorValue": "file_search", + "decorators": [], + "baseModel": { + "$ref": "7072" + }, + "properties": [ + { + "$id": "7103", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the tool call in the tool calls array.", + "type": { + "$id": "7104", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject.index", + "serializationOptions": {} + }, + { + "$id": "7105", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call object.", + "type": { + "$id": "7106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject.id", + "serializationOptions": {} + }, + { + "$id": "7107", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool call. This is always going to be `file_search` for this type of tool call.", + "type": { + "$ref": "905" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject.type", + "serializationOptions": {} + }, + { + "$id": "7108", + "kind": "property", + "name": "file_search", + "serializedName": "file_search", + "doc": "For now, this is always going to be an empty object.", + "type": { + "$id": "7109", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject.file_search.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7110", + "kind": "property", + "name": "ranking_options", + "serializedName": "ranking_options", + "type": { + "$ref": "5724" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject.file_search.anonymous.ranking_options", + "serializationOptions": {} + }, + { + "$id": "7111", + "kind": "property", + "name": "results", + "serializedName": "results", + "doc": "The results of the file search.", + "type": { + "$ref": "5729" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject.file_search.anonymous.results", + "serializationOptions": {} + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject.file_search", + "serializationOptions": {} + } + ] + }, + "function": { + "$id": "7112", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsFunctionObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject", + "access": "public", + "usage": "Output", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "7072" + }, + "properties": [ + { + "$id": "7113", + "kind": "property", + "name": "index", + "serializedName": "index", + "doc": "The index of the tool call in the tool calls array.", + "type": { + "$id": "7114", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject.index", + "serializationOptions": {} + }, + { + "$id": "7115", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call object.", + "type": { + "$id": "7116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject.id", + "serializationOptions": {} + }, + { + "$id": "7117", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of tool call. This is always going to be `function` for this type of tool call.", + "type": { + "$ref": "906" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject.type", + "serializationOptions": {} + }, + { + "$id": "7118", + "kind": "property", + "name": "function", + "serializedName": "function", + "doc": "The definition of the function that was called.", + "type": { + "$id": "7119", + "kind": "model", + "name": "RunStepDeltaStepDetailsToolCallsFunctionObjectFunction", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject.function.anonymous", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7120", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function.", + "type": { + "$id": "7121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject.function.anonymous.name", + "serializationOptions": {} + }, + { + "$id": "7122", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The arguments passed to the function.", + "type": { + "$id": "7123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject.function.anonymous.arguments", + "serializationOptions": {} + }, + { + "$id": "7124", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "The output of the function. This will be `null` if the outputs have not been [submitted](/docs/api-reference/runs/submitToolOutputs) yet.", + "type": { + "$id": "7125", + "kind": "nullable", + "type": { + "$id": "7126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject.function.anonymous.output", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject.function", + "serializationOptions": {} + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaStepDetailsToolCallsObject.tool_calls", + "serializationOptions": {} + } + ] + } + } + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaObject.delta.anonymous.step_details", + "serializationOptions": {} + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunStepDeltaObject.delta", + "serializationOptions": {} + } + ] + }, + { + "$ref": "7058" + }, + { + "$ref": "7060" + }, + { + "$ref": "7062" + }, + { + "$ref": "7065" + }, + { + "$ref": "7068" + }, + { + "$ref": "7072" + }, + { + "$ref": "7074" + }, + { + "$ref": "7081" + }, + { + "$ref": "7086" + }, + { + "$ref": "7088" + }, + { + "$ref": "7094" + }, + { + "$ref": "7099" + }, + { + "$ref": "7102" + }, + { + "$ref": "7109" + }, + { + "$ref": "7112" + }, + { + "$ref": "7119" + }, + { + "$id": "7127", + "kind": "model", + "name": "CreateThreadRequestToolResourcesFileSearchBase", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateThreadRequestToolResourcesFileSearchBase", + "access": "public", + "usage": "Input", + "decorators": [], + "properties": [] + }, + { + "$id": "7128", + "kind": "model", + "name": "DotNetCombinedJsonTranscriptionResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedJsonTranscriptionResponse", + "access": "public", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7129", + "kind": "property", + "name": "task", + "serializedName": "task", + "doc": "The task label.", + "type": { + "$ref": "1523" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedJsonTranscriptionResponse.task", + "serializationOptions": {} + }, + { + "$id": "7130", + "kind": "property", + "name": "language", + "serializedName": "language", + "doc": "The language of the input audio.", + "type": { + "$id": "7131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedJsonTranscriptionResponse.language", + "serializationOptions": {} + }, + { + "$id": "7132", + "kind": "property", + "name": "duration", + "serializedName": "duration", + "doc": "The duration of the input audio.", + "type": { + "$id": "7133", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "7134", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedJsonTranscriptionResponse.duration", + "serializationOptions": {} + }, + { + "$id": "7135", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The transcribed text.", + "type": { + "$id": "7136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedJsonTranscriptionResponse.text", + "serializationOptions": {} + }, + { + "$id": "7137", + "kind": "property", + "name": "words", + "serializedName": "words", + "doc": "Extracted words and their corresponding timestamps.", + "type": { + "$ref": "2349" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedJsonTranscriptionResponse.words", + "serializationOptions": {} + }, + { + "$id": "7138", + "kind": "property", + "name": "segments", + "serializedName": "segments", + "doc": "Segments of the transcribed text and their corresponding details.", + "type": { + "$ref": "2360" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedJsonTranscriptionResponse.segments", + "serializationOptions": {} + }, + { + "$id": "7139", + "kind": "property", + "name": "logprobs", + "serializedName": "logprobs", + "type": { + "$ref": "6492" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedJsonTranscriptionResponse.logprobs", + "serializationOptions": {} + } + ] + }, + { + "$id": "7140", + "kind": "model", + "name": "ChatCompletionCollectionOptions", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionCollectionOptions", + "access": "public", + "usage": "Input", + "decorators": [], + "properties": [ + { + "$id": "7141", + "kind": "property", + "name": "afterId", + "serializedName": "afterId", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionCollectionOptions.afterId", + "serializationOptions": {} + }, + { + "$id": "7143", + "kind": "property", + "name": "pageSizeLimit", + "serializedName": "pageSizeLimit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7144", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionCollectionOptions.pageSizeLimit", + "serializationOptions": {} + }, + { + "$id": "7145", + "kind": "property", + "name": "order", + "serializedName": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1199" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionCollectionOptions.order", + "serializationOptions": {} + }, + { + "$id": "7146", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "type": { + "$ref": "2162" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionCollectionOptions.metadata", + "serializationOptions": {} + }, + { + "$id": "7147", + "kind": "property", + "name": "model", + "serializedName": "model", + "type": { + "$id": "7148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionCollectionOptions.model", + "serializationOptions": {} + } + ] + }, + { + "$id": "7149", + "kind": "model", + "name": "ChatCompletionMessageCollectionOptions", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageCollectionOptions", + "access": "public", + "usage": "Input", + "decorators": [], + "properties": [ + { + "$id": "7150", + "kind": "property", + "name": "afterId", + "serializedName": "afterId", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageCollectionOptions.afterId", + "serializationOptions": {} + }, + { + "$id": "7152", + "kind": "property", + "name": "pageSizeLimit", + "serializedName": "pageSizeLimit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7153", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageCollectionOptions.pageSizeLimit", + "serializationOptions": {} + }, + { + "$id": "7154", + "kind": "property", + "name": "order", + "serializedName": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1203" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ChatCompletionMessageCollectionOptions.order", + "serializationOptions": {} + } + ] + }, + { + "$id": "7155", + "kind": "model", + "name": "DotNetChatResponseFormat", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormat", + "access": "public", + "usage": "Input,Output", + "decorators": [], + "discriminatorProperty": { + "$id": "7156", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "14" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormat.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "7156" + } + ], + "discriminatedSubtypes": { + "text": { + "$id": "7157", + "kind": "model", + "name": "DotNetChatResponseFormatText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatText", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "7155" + }, + "properties": [ + { + "$id": "7158", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of response format being defined. Always `text`.", + "type": { + "$ref": "2194" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatText.type", + "serializationOptions": {} + } + ] + }, + "json_object": { + "$id": "7159", + "kind": "model", + "name": "DotNetChatResponseFormatJsonObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonObject", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "json_object", + "decorators": [], + "baseModel": { + "$ref": "7155" + }, + "properties": [ + { + "$id": "7160", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of response format being defined. Always `json_object`.", + "type": { + "$ref": "17" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonObject.type", + "serializationOptions": {} + } + ] + }, + "json_schema": { + "$id": "7161", + "kind": "model", + "name": "DotNetChatResponseFormatJsonSchema", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonSchema", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "json_schema", + "decorators": [], + "baseModel": { + "$ref": "7155" + }, + "properties": [ + { + "$id": "7162", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "18" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonSchema.type", + "serializationOptions": {} + }, + { + "$id": "7163", + "kind": "property", + "name": "json_schema", + "serializedName": "json_schema", + "type": { + "$id": "7164", + "kind": "model", + "name": "DotNetChatResponseFormatJsonSchemaJsonSchema", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonSchema.json_schema.anonymous", + "usage": "Input,Output", + "decorators": [], + "properties": [ + { + "$id": "7165", + "kind": "property", + "name": "description", + "serializedName": "description", + "type": { + "$id": "7166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonSchema.json_schema.anonymous.description", + "serializationOptions": {} + }, + { + "$id": "7167", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "7168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonSchema.json_schema.anonymous.name", + "serializationOptions": {} + }, + { + "$id": "7169", + "kind": "property", + "name": "schema", + "serializedName": "schema", + "type": { + "$id": "7170", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonSchema.json_schema.anonymous.schema", + "serializationOptions": {} + }, + { + "$id": "7171", + "kind": "property", + "name": "strict", + "serializedName": "strict", + "type": { + "$id": "7172", + "kind": "nullable", + "type": { + "$id": "7173", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonSchema.json_schema.anonymous.strict", + "serializationOptions": {} + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetChatResponseFormatJsonSchema.json_schema", + "serializationOptions": {} + } + ] + } + } + }, + { + "$ref": "7157" + }, + { + "$ref": "7159" + }, + { + "$ref": "7161" + }, + { + "$ref": "7164" + }, + { + "$id": "7174", + "kind": "model", + "name": "DotNetAssistantResponseFormat", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormat", + "access": "public", + "usage": "Input,Output", + "decorators": [], + "discriminatorProperty": { + "$id": "7175", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "14" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormat.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "7175" + } + ], + "discriminatedSubtypes": { + "text": { + "$id": "7176", + "kind": "model", + "name": "DotNetAssistantResponseFormatText", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatText", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "7174" + }, + "properties": [ + { + "$id": "7177", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of response format being defined. Always `text`.", + "type": { + "$ref": "2194" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatText.type", + "serializationOptions": {} + } + ] + }, + "json_object": { + "$id": "7178", + "kind": "model", + "name": "DotNetAssistantResponseFormatJsonObject", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonObject", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "json_object", + "decorators": [], + "baseModel": { + "$ref": "7174" + }, + "properties": [ + { + "$id": "7179", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of response format being defined. Always `json_object`.", + "type": { + "$ref": "17" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonObject.type", + "serializationOptions": {} + } + ] + }, + "json_schema": { + "$id": "7180", + "kind": "model", + "name": "DotNetAssistantResponseFormatJsonSchema", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonSchema", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "json_schema", + "decorators": [], + "baseModel": { + "$ref": "7174" + }, + "properties": [ + { + "$id": "7181", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "18" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonSchema.type", + "serializationOptions": {} + }, + { + "$id": "7182", + "kind": "property", + "name": "json_schema", + "serializedName": "json_schema", + "type": { + "$id": "7183", + "kind": "model", + "name": "DotNetAssistantResponseFormatJsonSchemaJsonSchema", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonSchema.json_schema.anonymous", + "usage": "Input,Output", + "decorators": [], + "properties": [ + { + "$id": "7184", + "kind": "property", + "name": "description", + "serializedName": "description", + "type": { + "$id": "7185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonSchema.json_schema.anonymous.description", + "serializationOptions": {} + }, + { + "$id": "7186", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "7187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonSchema.json_schema.anonymous.name", + "serializationOptions": {} + }, + { + "$id": "7188", + "kind": "property", + "name": "schema", + "serializedName": "schema", + "type": { + "$id": "7189", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonSchema.json_schema.anonymous.schema", + "serializationOptions": {} + }, + { + "$id": "7190", + "kind": "property", + "name": "strict", + "serializedName": "strict", + "type": { + "$id": "7191", + "kind": "nullable", + "type": { + "$id": "7192", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonSchema.json_schema.anonymous.strict", + "serializationOptions": {} + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAssistantResponseFormatJsonSchema.json_schema", + "serializationOptions": {} + } + ] + } + } + }, + { + "$ref": "7176" + }, + { + "$ref": "7178" + }, + { + "$ref": "7180" + }, + { + "$ref": "7183" + }, + { + "$id": "7193", + "kind": "model", + "name": "DotNetAudioLogProbsProperties", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetAudioLogProbsProperties", + "access": "public", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7194", + "kind": "property", + "name": "token", + "serializedName": "token", + "doc": "The token that was used to generate the log probability.", + "type": { + "$id": "7195", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAudioLogProbsProperties.token", + "serializationOptions": {} + }, + { + "$id": "7196", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "doc": "The log probability of the token.", + "type": { + "$id": "7197", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAudioLogProbsProperties.logprob", + "serializationOptions": {} + }, + { + "$id": "7198", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The bytes that were used to generate the log probability.", + "type": { + "$ref": "2375" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetAudioLogProbsProperties.bytes", + "serializationOptions": {} + } + ] + }, + { + "$id": "7199", + "kind": "model", + "name": "DotNetRealtimeLogProbsProperties", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetRealtimeLogProbsProperties", + "access": "public", + "usage": "Output", + "decorators": [], + "properties": [ + { + "$id": "7200", + "kind": "property", + "name": "token", + "serializedName": "token", + "doc": "The token that was used to generate the log probability.", + "type": { + "$id": "7201", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetRealtimeLogProbsProperties.token", + "serializationOptions": {} + }, + { + "$id": "7202", + "kind": "property", + "name": "logprob", + "serializedName": "logprob", + "doc": "The log probability of the token.", + "type": { + "$id": "7203", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetRealtimeLogProbsProperties.logprob", + "serializationOptions": {} + }, + { + "$id": "7204", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The bytes that were used to generate the log probability.", + "type": { + "$ref": "2375" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetRealtimeLogProbsProperties.bytes", + "serializationOptions": {} + } + ] + }, + { + "$id": "7205", + "kind": "model", + "name": "DotnetResponseWebSearchLocation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotnetResponseWebSearchLocation", + "access": "public", + "usage": "Input,Output", + "decorators": [], + "discriminatorProperty": { + "$id": "7206", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "450" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotnetResponseWebSearchLocation.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "7206" + } + ], + "discriminatedSubtypes": { + "approximate": { + "$id": "7207", + "kind": "model", + "name": "DotnetResponseWebSearchApproximateLocation", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotnetResponseWebSearchApproximateLocation", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "approximate", + "decorators": [], + "baseModel": { + "$ref": "7205" + }, + "properties": [ + { + "$id": "7208", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "452" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotnetResponseWebSearchApproximateLocation.type", + "serializationOptions": {} + }, + { + "$id": "7209", + "kind": "property", + "name": "country", + "serializedName": "country", + "type": { + "$ref": "3890" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotnetResponseWebSearchApproximateLocation.country", + "serializationOptions": {} + }, + { + "$id": "7210", + "kind": "property", + "name": "region", + "serializedName": "region", + "type": { + "$ref": "3893" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotnetResponseWebSearchApproximateLocation.region", + "serializationOptions": {} + }, + { + "$id": "7211", + "kind": "property", + "name": "city", + "serializedName": "city", + "type": { + "$ref": "3896" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotnetResponseWebSearchApproximateLocation.city", + "serializationOptions": {} + }, + { + "$id": "7212", + "kind": "property", + "name": "timezone", + "serializedName": "timezone", + "type": { + "$ref": "3899" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotnetResponseWebSearchApproximateLocation.timezone", + "serializationOptions": {} + } + ] + } + } + }, + { + "$ref": "7207" + }, + { + "$id": "7213", + "kind": "model", + "name": "DotNetCombinedChunkingStrategyParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedChunkingStrategyParam", + "usage": "Input,Output", + "decorators": [], + "discriminatorProperty": { + "$id": "7214", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$ref": "1207" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedChunkingStrategyParam.type", + "serializationOptions": {} + }, + "properties": [ + { + "$ref": "7214" + } + ], + "discriminatedSubtypes": { + "auto": { + "$id": "7215", + "kind": "model", + "name": "DotNetCombinedAutoChunkingStrategyParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedAutoChunkingStrategyParam", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "auto", + "decorators": [], + "baseModel": { + "$ref": "7213" + }, + "properties": [ + { + "$id": "7216", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `auto`.", + "type": { + "$ref": "1209" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedAutoChunkingStrategyParam.type", + "serializationOptions": {} + } + ] + }, + "static": { + "$id": "7217", + "kind": "model", + "name": "DotNetCombinedStaticChunkingStrategyParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedStaticChunkingStrategyParam", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "static", + "decorators": [], + "baseModel": { + "$ref": "7213" + }, + "properties": [ + { + "$id": "7218", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `static`.", + "type": { + "$ref": "1210" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedStaticChunkingStrategyParam.type", + "serializationOptions": {} + }, + { + "$id": "7219", + "kind": "property", + "name": "static", + "serializedName": "static", + "type": { + "$ref": "2249" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedStaticChunkingStrategyParam.static", + "serializationOptions": {} + } + ] + }, + "other": { + "$id": "7220", + "kind": "model", + "name": "DotNetCombinedOtherChunkingStrategyParam", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedOtherChunkingStrategyParam", + "access": "public", + "usage": "Input,Output", + "discriminatorValue": "other", + "decorators": [], + "baseModel": { + "$ref": "7213" + }, + "properties": [ + { + "$id": "7221", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Always `other`.", + "type": { + "$ref": "1211" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.DotNetCombinedOtherChunkingStrategyParam.type", + "serializationOptions": {} + } + ] + } + } + }, + { + "$ref": "7215" + }, + { + "$ref": "7217" + }, + { + "$ref": "7220" + } + ], + "clients": [ + { + "$id": "7222", + "kind": "client", + "name": "OpenAIClient", + "namespace": "OpenAI", + "methods": [], + "parameters": [ + { + "$id": "7223", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7224", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI", + "apiVersions": [], + "children": [ + { + "$id": "7226", + "kind": "client", + "name": "Assistants", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7227", + "kind": "basic", + "name": "GetAssistants", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns a list of assistants.", + "operation": { + "$id": "7228", + "name": "GetAssistants", + "resourceName": "Assistants", + "summary": "Returns a list of assistants.", + "accessibility": "public", + "parameters": [ + { + "$id": "7229", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1525" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7230", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1527" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7231", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7232", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7233", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7234", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7236", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "7237", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2097" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/assistants", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.listAssistants", + "decorators": [] + }, + "parameters": [ + { + "$id": "7238", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1529" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7239", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1531" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7240", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7241", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7242", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7243", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7245", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "7246", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2097" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.listAssistants" + }, + { + "$id": "7247", + "kind": "basic", + "name": "createAssistant", + "accessibility": "public", + "apiVersions": [], + "summary": "Create an assistant with a model and instructions.", + "operation": { + "$id": "7248", + "name": "createAssistant", + "resourceName": "Assistants", + "summary": "Create an assistant with a model and instructions.", + "accessibility": "public", + "parameters": [ + { + "$id": "7249", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1533" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7250", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1535" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7251", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1537" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7252", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2214" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2101" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/assistants", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.createAssistant", + "decorators": [] + }, + "parameters": [ + { + "$id": "7253", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1539" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7254", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1541" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7255", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2214" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7256", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1537" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2101" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.createAssistant" + }, + { + "$id": "7257", + "kind": "basic", + "name": "getAssistant", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves an assistant.", + "operation": { + "$id": "7258", + "name": "getAssistant", + "resourceName": "Assistants", + "summary": "Retrieves an assistant.", + "accessibility": "public", + "parameters": [ + { + "$id": "7259", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1543" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7260", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1545" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7261", + "name": "assistant_id", + "nameInRequest": "assistant_id", + "doc": "The ID of the assistant to retrieve.", + "type": { + "$id": "7262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2101" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/assistants/{assistant_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.getAssistant", + "decorators": [] + }, + "parameters": [ + { + "$id": "7263", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1547" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7264", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1549" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7265", + "name": "assistant_id", + "nameInRequest": "assistant_id", + "doc": "The ID of the assistant to retrieve.", + "type": { + "$id": "7266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2101" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.getAssistant" + }, + { + "$id": "7267", + "kind": "basic", + "name": "modifyAssistant", + "accessibility": "public", + "apiVersions": [], + "summary": "Modifies an assistant.", + "operation": { + "$id": "7268", + "name": "modifyAssistant", + "resourceName": "Assistants", + "summary": "Modifies an assistant.", + "accessibility": "public", + "parameters": [ + { + "$id": "7269", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1551" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7270", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1553" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7271", + "name": "assistant_id", + "nameInRequest": "assistant_id", + "doc": "The ID of the assistant to modify.", + "type": { + "$id": "7272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7273", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1555" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7274", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2264" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2101" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/assistants/{assistant_id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.modifyAssistant", + "decorators": [] + }, + "parameters": [ + { + "$id": "7275", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1557" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7276", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1559" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7277", + "name": "assistant_id", + "nameInRequest": "assistant_id", + "doc": "The ID of the assistant to modify.", + "type": { + "$id": "7278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7279", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2264" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7280", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1555" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2101" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.modifyAssistant" + }, + { + "$id": "7281", + "kind": "basic", + "name": "deleteAssistant", + "accessibility": "public", + "apiVersions": [], + "summary": "Delete an assistant.", + "operation": { + "$id": "7282", + "name": "deleteAssistant", + "resourceName": "Assistants", + "summary": "Delete an assistant.", + "accessibility": "public", + "parameters": [ + { + "$id": "7283", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1561" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7284", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1563" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7285", + "name": "assistant_id", + "nameInRequest": "assistant_id", + "doc": "The ID of the assistant to delete.", + "type": { + "$id": "7286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2294" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/assistants/{assistant_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.deleteAssistant", + "decorators": [] + }, + "parameters": [ + { + "$id": "7287", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1565" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7288", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1567" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7289", + "name": "assistant_id", + "nameInRequest": "assistant_id", + "doc": "The ID of the assistant to delete.", + "type": { + "$id": "7290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2294" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Assistants.deleteAssistant" + } + ], + "parameters": [ + { + "$id": "7291", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7292", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Assistants", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "7294", + "kind": "client", + "name": "Audio", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7295", + "kind": "basic", + "name": "GenerateSpeech", + "accessibility": "public", + "apiVersions": [], + "summary": "Generates audio from the input text.", + "operation": { + "$id": "7296", + "name": "GenerateSpeech", + "resourceName": "Audio", + "summary": "Generates audio from the input text.", + "accessibility": "public", + "parameters": [ + { + "$id": "7297", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1569" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7298", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1571" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7299", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2300" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7300", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "name": "transferEncoding", + "nameInResponse": "Transfer-Encoding", + "doc": "chunked", + "type": { + "$id": "7301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "1573" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/audio/speech", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Audio.createSpeech", + "decorators": [] + }, + "parameters": [ + { + "$id": "7302", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1575" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7303", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2300" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7304", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1571" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7300" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Audio.createSpeech" + }, + { + "$id": "7305", + "kind": "basic", + "name": "TranscribeAudio", + "accessibility": "public", + "apiVersions": [], + "summary": "Transcribes audio into the input language.", + "operation": { + "$id": "7306", + "name": "TranscribeAudio", + "resourceName": "Audio", + "summary": "Transcribes audio into the input language.", + "accessibility": "public", + "parameters": [ + { + "$id": "7307", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7308", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "1577" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7309", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2310" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7310", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "Content-Type", + "type": { + "$ref": "1579" + } + }, + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "1581" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json", + "application/json", + "text/event-stream", + "text/plain" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/audio/transcriptions", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Audio.createTranscription", + "decorators": [] + }, + "parameters": [ + { + "$id": "7311", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7312", + "name": "contentType", + "nameInRequest": "contentType", + "type": { + "$ref": "1583" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7313", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2310" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7310" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Audio.createTranscription" + }, + { + "$id": "7314", + "kind": "basic", + "name": "TranslateAudio", + "accessibility": "public", + "apiVersions": [], + "summary": "Translates audio into English..", + "operation": { + "$id": "7315", + "name": "TranslateAudio", + "resourceName": "Audio", + "summary": "Translates audio into English..", + "accessibility": "public", + "parameters": [ + { + "$id": "7316", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1585" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7317", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "1587" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7318", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2424" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7319", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "1589" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json", + "application/json", + "text/plain" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/audio/translations", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Audio.createTranslation", + "decorators": [] + }, + "parameters": [ + { + "$id": "7320", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1591" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7321", + "name": "contentType", + "nameInRequest": "contentType", + "type": { + "$ref": "1593" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7322", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2424" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7319" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Audio.createTranslation" + } + ], + "parameters": [ + { + "$id": "7323", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7324", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Audio", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "7326", + "kind": "client", + "name": "Batches", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7327", + "kind": "basic", + "name": "createBatch", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates and executes a batch from an uploaded file of requests", + "operation": { + "$id": "7328", + "name": "createBatch", + "resourceName": "Batches", + "summary": "Creates and executes a batch from an uploaded file of requests", + "accessibility": "public", + "parameters": [ + { + "$id": "7329", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1595" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7330", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1597" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7331", + "name": "createBatchRequest", + "nameInRequest": "createBatchRequest", + "type": { + "$ref": "2447" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2453" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/batches", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Batches.createBatch", + "decorators": [] + }, + "parameters": [ + { + "$id": "7332", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1599" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7333", + "name": "input_file_id", + "nameInRequest": "input_file_id", + "doc": "The ID of an uploaded file that contains requests for the new batch.\n\nSee [upload file](/docs/api-reference/files/create) for how to upload a file.\n\nYour input file must be formatted as a [JSONL file](/docs/api-reference/batch/requestInput),\nand must be uploaded with the purpose `batch`.", + "type": { + "$id": "7334", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7335", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "The endpoint to be used for all requests in the batch. Currently `/v1/chat/completions` and\n`/v1/embeddings` are supported.", + "type": { + "$ref": "129" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7336", + "name": "completion_window", + "nameInRequest": "completion_window", + "doc": "The time frame within which the batch should be processed. Currently only `24h` is supported.", + "type": { + "$ref": "1287" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7337", + "name": "metadata", + "nameInRequest": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7338", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1597" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2453" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Batches.createBatch" + }, + { + "$id": "7339", + "kind": "basic", + "name": "GetBatches", + "accessibility": "public", + "apiVersions": [], + "summary": "List your organization's batches.", + "operation": { + "$id": "7340", + "name": "GetBatches", + "resourceName": "Batches", + "summary": "List your organization's batches.", + "accessibility": "public", + "parameters": [ + { + "$id": "7341", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1603" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7342", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7343", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7344", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7345", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2520" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/batches", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Batches.listBatches", + "decorators": [] + }, + "parameters": [ + { + "$id": "7346", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1605" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7347", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7349", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7350", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2520" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Batches.listBatches" + }, + { + "$id": "7351", + "kind": "basic", + "name": "GetBatch", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves a batch.", + "operation": { + "$id": "7352", + "name": "GetBatch", + "resourceName": "Batches", + "summary": "Retrieves a batch.", + "accessibility": "public", + "parameters": [ + { + "$id": "7353", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1607" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7354", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the batch to retrieve.", + "type": { + "$id": "7355", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2453" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/batches/{batch_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Batches.retrieveBatch", + "decorators": [] + }, + "parameters": [ + { + "$id": "7356", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1609" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7357", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the batch to retrieve.", + "type": { + "$id": "7358", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2453" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Batches.retrieveBatch" + }, + { + "$id": "7359", + "kind": "basic", + "name": "cancelBatch", + "accessibility": "public", + "apiVersions": [], + "summary": "Cancels an in-progress batch.", + "operation": { + "$id": "7360", + "name": "cancelBatch", + "resourceName": "Batches", + "summary": "Cancels an in-progress batch.", + "accessibility": "public", + "parameters": [ + { + "$id": "7361", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1611" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7362", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the batch to cancel.", + "type": { + "$id": "7363", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2453" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/batches/{batch_id}/cancel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Batches.cancelBatch", + "decorators": [] + }, + "parameters": [ + { + "$id": "7364", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1613" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7365", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the batch to cancel.", + "type": { + "$id": "7366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2453" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Batches.cancelBatch" + } + ], + "parameters": [ + { + "$id": "7367", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7368", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7369", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Batches", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "7370", + "kind": "client", + "name": "Chat", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7371", + "kind": "paging", + "name": "listChatCompletions", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns a list of chat completions.", + "operation": { + "$id": "7372", + "name": "listChatCompletions", + "resourceName": "Chat", + "summary": "Returns a list of chat completions.", + "accessibility": "public", + "parameters": [ + { + "$id": "7373", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7374", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7375", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7376", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7377", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7378", + "name": "metadata", + "nameInRequest": "metadata", + "type": { + "$ref": "2162" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7379", + "name": "model", + "nameInRequest": "model", + "type": { + "$id": "7380", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7381", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1615" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2530" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/chat/completions", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Chat.listChatCompletions", + "decorators": [] + }, + "parameters": [ + { + "$id": "7382", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7383", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7384", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7385", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7386", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7387", + "name": "metadata", + "nameInRequest": "metadata", + "type": { + "$ref": "2162" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7388", + "name": "model", + "nameInRequest": "model", + "type": { + "$id": "7389", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7390", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1615" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2533" + }, + "resultSegments": [ + "data" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Chat.listChatCompletions", + "pagingMetadata": { + "itemPropertySegments": [ + "data" + ], + "continuationToken": { + "parameter": { + "$ref": "7373" + }, + "responseSegments": [ + "last_id" + ], + "responseLocation": "Body" + } + } + }, + { + "$id": "7391", + "kind": "basic", + "name": "CompleteChat", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates a model response for the given chat conversation.", + "operation": { + "$id": "7392", + "name": "CompleteChat", + "resourceName": "Chat", + "summary": "Creates a model response for the given chat conversation.", + "accessibility": "public", + "parameters": [ + { + "$id": "7393", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1617" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7394", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1619" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7395", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2662" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2903" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "Content-Type", + "type": { + "$ref": "1621" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json", + "text/event-stream" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/chat/completions", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Chat.createChatCompletion", + "decorators": [] + }, + "parameters": [ + { + "$id": "7396", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1623" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7397", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "2662" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7398", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1619" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2903" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Chat.createChatCompletion" + }, + { + "$id": "7399", + "kind": "basic", + "name": "getChatCompletion", + "accessibility": "public", + "apiVersions": [], + "summary": "Get a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` will be returned.", + "operation": { + "$id": "7400", + "name": "getChatCompletion", + "resourceName": "Chat", + "summary": "Get a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` will be returned.", + "accessibility": "public", + "parameters": [ + { + "$id": "7401", + "name": "completion_id", + "nameInRequest": "completion_id", + "doc": "The ID of the stored chat completion to retrieve.", + "type": { + "$id": "7402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7403", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1625" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2534" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/chat/completions/{completion_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Chat.getChatCompletion", + "decorators": [] + }, + "parameters": [ + { + "$id": "7404", + "name": "completion_id", + "nameInRequest": "completion_id", + "doc": "The ID of the stored chat completion to retrieve.", + "type": { + "$id": "7405", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7406", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1625" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2534" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Chat.getChatCompletion" + }, + { + "$id": "7407", + "kind": "basic", + "name": "updateChatCompletion", + "accessibility": "public", + "apiVersions": [], + "summary": "Modify a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` can be modified. Currently, the only supported modification is to update the `metadata` field.\")", + "operation": { + "$id": "7408", + "name": "updateChatCompletion", + "resourceName": "Chat", + "summary": "Modify a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` can be modified. Currently, the only supported modification is to update the `metadata` field.\")", + "accessibility": "public", + "parameters": [ + { + "$id": "7409", + "name": "completion_id", + "nameInRequest": "completion_id", + "doc": "The ID of the stored chat completion to update.", + "type": { + "$id": "7410", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7411", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1627" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7412", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1629" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7413", + "name": "updateChatCompletionRequest", + "nameInRequest": "updateChatCompletionRequest", + "type": { + "$ref": "2979" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2534" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/chat/completions/{completion_id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Chat.updateChatCompletion", + "decorators": [] + }, + "parameters": [ + { + "$id": "7414", + "name": "completion_id", + "nameInRequest": "completion_id", + "doc": "The ID of the stored chat completion to update.", + "type": { + "$id": "7415", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7416", + "name": "metadata", + "nameInRequest": "metadata", + "doc": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.", + "type": { + "$ref": "2162" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7417", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1627" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7418", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1629" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2534" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Chat.updateChatCompletion" + }, + { + "$id": "7419", + "kind": "basic", + "name": "deleteChatCompletion", + "accessibility": "public", + "apiVersions": [], + "summary": "Delete a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` can be deleted.", + "operation": { + "$id": "7420", + "name": "deleteChatCompletion", + "resourceName": "Chat", + "summary": "Delete a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` can be deleted.", + "accessibility": "public", + "parameters": [ + { + "$id": "7421", + "name": "completion_id", + "nameInRequest": "completion_id", + "doc": "The ID of the stored chat completion to delete.", + "type": { + "$id": "7422", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7423", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1631" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2981" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/chat/completions/{completion_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Chat.deleteChatCompletion", + "decorators": [] + }, + "parameters": [ + { + "$id": "7424", + "name": "completion_id", + "nameInRequest": "completion_id", + "doc": "The ID of the stored chat completion to delete.", + "type": { + "$id": "7425", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7426", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1631" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2981" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Chat.deleteChatCompletion" + }, + { + "$id": "7427", + "kind": "paging", + "name": "getChatCompletionMessages", + "accessibility": "public", + "apiVersions": [], + "summary": "Get the messages of a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` will be returned.", + "operation": { + "$id": "7428", + "name": "getChatCompletionMessages", + "resourceName": "Chat", + "summary": "Get the messages of a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` will be returned.", + "accessibility": "public", + "parameters": [ + { + "$id": "7429", + "name": "completion_id", + "nameInRequest": "completion_id", + "doc": "The ID of the stored chat completion to retrieve messages for.", + "type": { + "$id": "7430", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7431", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7432", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7433", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7434", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7435", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7436", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1633" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2987" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/chat/completions/{completion_id}/messages", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Chat.getChatCompletionMessages", + "decorators": [] + }, + "parameters": [ + { + "$id": "7437", + "name": "completion_id", + "nameInRequest": "completion_id", + "doc": "The ID of the stored chat completion to retrieve messages for.", + "type": { + "$id": "7438", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7439", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7440", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7441", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7442", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7443", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7444", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1633" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "2990" + }, + "resultSegments": [ + "data" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Chat.getChatCompletionMessages", + "pagingMetadata": { + "itemPropertySegments": [ + "data" + ], + "continuationToken": { + "parameter": { + "$ref": "7431" + }, + "responseSegments": [ + "last_id" + ], + "responseLocation": "Body" + } + } + } + ], + "parameters": [ + { + "$id": "7445", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7446", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7447", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Chat", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "7448", + "kind": "client", + "name": "Containers", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7449", + "kind": "basic", + "name": "listContainers", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7450", + "name": "listContainers", + "resourceName": "Containers", + "accessibility": "public", + "parameters": [ + { + "$id": "7451", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7452", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7453", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7454", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7455", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7456", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1635" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7457", + "kind": "model", + "name": "ContainerListResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ContainerListResource", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7458", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of object returned, must be 'list'.", + "type": { + "$ref": "1637" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerListResource.object", + "serializationOptions": {} + }, + { + "$id": "7459", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "A list of containers.", + "type": { + "$id": "7460", + "kind": "array", + "name": "ArrayContainerResource", + "valueType": { + "$id": "7461", + "kind": "model", + "name": "ContainerResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ContainerResource", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7462", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique identifier for the container.", + "type": { + "$id": "7463", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerResource.id", + "serializationOptions": {} + }, + { + "$id": "7464", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of this object.", + "type": { + "$id": "7465", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerResource.object", + "serializationOptions": {} + }, + { + "$id": "7466", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Name of the container.", + "type": { + "$id": "7467", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerResource.name", + "serializationOptions": {} + }, + { + "$id": "7468", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "Unix timestamp (in seconds) when the container was created.", + "type": { + "$id": "7469", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "7470", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerResource.created_at", + "serializationOptions": {} + }, + { + "$id": "7471", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "Status of the container (e.g., active, deleted).", + "type": { + "$id": "7472", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerResource.status", + "serializationOptions": {} + }, + { + "$id": "7473", + "kind": "property", + "name": "expires_after", + "serializedName": "expires_after", + "doc": "The container will expire after this time period.\nThe anchor is the reference point for the expiration.\nThe minutes is the number of minutes after the anchor before the container expires.", + "type": { + "$id": "7474", + "kind": "model", + "name": "ContainerResourceExpiresAfter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ContainerResource.expires_after.anonymous", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7475", + "kind": "property", + "name": "anchor", + "serializedName": "anchor", + "doc": "The reference point for the expiration.", + "type": { + "$ref": "1639" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerResource.expires_after.anonymous.anchor", + "serializationOptions": {} + }, + { + "$id": "7476", + "kind": "property", + "name": "minutes", + "serializedName": "minutes", + "doc": "The number of minutes after the anchor before the container expires.", + "type": { + "$id": "7477", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerResource.expires_after.anonymous.minutes", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerResource.expires_after", + "serializationOptions": {} + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerListResource.data", + "serializationOptions": {} + }, + { + "$id": "7478", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "doc": "The ID of the first container in the list.", + "type": { + "$id": "7479", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerListResource.first_id", + "serializationOptions": {} + }, + { + "$id": "7480", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "doc": "The ID of the last container in the list.", + "type": { + "$id": "7481", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerListResource.last_id", + "serializationOptions": {} + }, + { + "$id": "7482", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Whether there are more containers available.", + "type": { + "$id": "7483", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerListResource.has_more", + "serializationOptions": {} + } + ] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/containers", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Containers.listContainers", + "decorators": [] + }, + "parameters": [ + { + "$id": "7484", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7485", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7486", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7487", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7489", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1635" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7457" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Containers.listContainers" + }, + { + "$id": "7490", + "kind": "basic", + "name": "createContainer", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7491", + "name": "createContainer", + "resourceName": "Containers", + "accessibility": "public", + "parameters": [ + { + "$id": "7492", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1641" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7493", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1643" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7494", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "7495", + "kind": "model", + "name": "CreateContainerBody", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateContainerBody", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7496", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Name of the container to create.", + "type": { + "$id": "7497", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateContainerBody.name", + "serializationOptions": {} + }, + { + "$id": "7498", + "kind": "property", + "name": "file_ids", + "serializedName": "file_ids", + "doc": "IDs of files to copy to the container.", + "type": { + "$ref": "2155" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateContainerBody.file_ids", + "serializationOptions": {} + }, + { + "$id": "7499", + "kind": "property", + "name": "expires_after", + "serializedName": "expires_after", + "doc": "Container expiration time in seconds relative to the 'anchor' time.", + "type": { + "$id": "7500", + "kind": "model", + "name": "CreateContainerBodyExpiresAfter", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateContainerBody.expires_after.anonymous", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7501", + "kind": "property", + "name": "anchor", + "serializedName": "anchor", + "doc": "Time anchor for the expiration time. Currently only 'last_active_at' is supported.", + "type": { + "$ref": "1645" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateContainerBody.expires_after.anonymous.anchor", + "serializationOptions": {} + }, + { + "$id": "7502", + "kind": "property", + "name": "minutes", + "serializedName": "minutes", + "type": { + "$id": "7503", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateContainerBody.expires_after.anonymous.minutes", + "serializationOptions": {} + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateContainerBody.expires_after", + "serializationOptions": {} + } + ] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "7461" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/containers", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Containers.createContainer", + "decorators": [] + }, + "parameters": [ + { + "$id": "7504", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "7495" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7505", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1641" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7506", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1643" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7461" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Containers.createContainer" + }, + { + "$id": "7507", + "kind": "basic", + "name": "GetContainer", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7508", + "name": "GetContainer", + "resourceName": "Containers", + "accessibility": "public", + "parameters": [ + { + "$id": "7509", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7511", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1647" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "7461" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/containers/{container_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Containers.retrieveContainer", + "decorators": [] + }, + "parameters": [ + { + "$id": "7512", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7513", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7514", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1647" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7461" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Containers.retrieveContainer" + }, + { + "$id": "7515", + "kind": "basic", + "name": "deleteContainer", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7516", + "name": "deleteContainer", + "resourceName": "Containers", + "accessibility": "public", + "parameters": [ + { + "$id": "7517", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7518", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7519", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1649" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7520", + "kind": "model", + "name": "DeleteContainerResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.deleteContainer.Response.anonymous", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7521", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "7522", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteContainer.Response.anonymous.id", + "serializationOptions": {} + }, + { + "$id": "7523", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1651" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteContainer.Response.anonymous.object", + "serializationOptions": {} + }, + { + "$id": "7524", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$ref": "1653" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteContainer.Response.anonymous.deleted", + "serializationOptions": {} + } + ] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/containers/{container_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Containers.deleteContainer", + "decorators": [] + }, + "parameters": [ + { + "$id": "7525", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7526", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7527", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1649" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7520" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Containers.deleteContainer" + }, + { + "$id": "7528", + "kind": "basic", + "name": "createContainerFile", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7529", + "name": "createContainerFile", + "resourceName": "Containers", + "accessibility": "public", + "parameters": [ + { + "$id": "7530", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7531", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7532", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "1655" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7533", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1657" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7534", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "7535", + "kind": "model", + "name": "CreateContainerFileBody", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.CreateContainerFileBody", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7536", + "kind": "property", + "name": "file_id", + "serializedName": "file_id", + "doc": "Name of the file to create.", + "type": { + "$id": "7537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateContainerFileBody.file_id", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [ + "text/plain" + ], + "name": "file_id", + "headers": [] + } + } + }, + { + "$id": "7538", + "kind": "property", + "name": "file", + "serializedName": "file", + "doc": "The File object (not file name) to be uploaded.", + "type": { + "$id": "7539", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.CreateContainerFileBody.file", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [ + "application/octet-stream" + ], + "name": "file", + "headers": [] + } + } + } + ] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7540", + "kind": "model", + "name": "ContainerFileResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ContainerFileResource", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7541", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Unique identifier for the file.", + "type": { + "$id": "7542", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileResource.id", + "serializationOptions": {} + }, + { + "$id": "7543", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of this object (`container.file`).", + "type": { + "$id": "7544", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileResource.object", + "serializationOptions": {} + }, + { + "$id": "7545", + "kind": "property", + "name": "container_id", + "serializedName": "container_id", + "doc": "The container this file belongs to.", + "type": { + "$id": "7546", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileResource.container_id", + "serializationOptions": {} + }, + { + "$id": "7547", + "kind": "property", + "name": "created_at", + "serializedName": "created_at", + "doc": "Unix timestamp (in seconds) when the file was created.", + "type": { + "$id": "7548", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "7549", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileResource.created_at", + "serializationOptions": {} + }, + { + "$id": "7550", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "Size of the file in bytes.", + "type": { + "$id": "7551", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileResource.bytes", + "serializationOptions": {} + }, + { + "$id": "7552", + "kind": "property", + "name": "path", + "serializedName": "path", + "doc": "Path of the file in the container.", + "type": { + "$id": "7553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileResource.path", + "serializationOptions": {} + }, + { + "$id": "7554", + "kind": "property", + "name": "source", + "serializedName": "source", + "doc": "Source of the file (e.g., `user`, `assistant`).", + "type": { + "$id": "7555", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileResource.source", + "serializationOptions": {} + } + ] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/containers/{container_id}/files", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Containers.createContainerFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "7556", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7557", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7558", + "name": "contentType", + "nameInRequest": "contentType", + "type": { + "$ref": "1659" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7559", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "7535" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7560", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1657" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7540" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Containers.createContainerFile" + }, + { + "$id": "7561", + "kind": "basic", + "name": "listContainerFiles", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7562", + "name": "listContainerFiles", + "resourceName": "Containers", + "accessibility": "public", + "parameters": [ + { + "$id": "7563", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7565", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7566", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7567", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7568", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7570", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1661" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7571", + "kind": "model", + "name": "ContainerFileListResource", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ContainerFileListResource", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7572", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The type of object returned, must be 'list'.", + "type": { + "$ref": "1663" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileListResource.object", + "serializationOptions": {} + }, + { + "$id": "7573", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "A list of container files.", + "type": { + "$id": "7574", + "kind": "array", + "name": "ArrayContainerFileResource", + "valueType": { + "$ref": "7540" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileListResource.data", + "serializationOptions": {} + }, + { + "$id": "7575", + "kind": "property", + "name": "first_id", + "serializedName": "first_id", + "doc": "The ID of the first file in the list.", + "type": { + "$id": "7576", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileListResource.first_id", + "serializationOptions": {} + }, + { + "$id": "7577", + "kind": "property", + "name": "last_id", + "serializedName": "last_id", + "doc": "The ID of the last file in the list.", + "type": { + "$id": "7578", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileListResource.last_id", + "serializationOptions": {} + }, + { + "$id": "7579", + "kind": "property", + "name": "has_more", + "serializedName": "has_more", + "doc": "Whether there are more files available.", + "type": { + "$id": "7580", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ContainerFileListResource.has_more", + "serializationOptions": {} + } + ] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/containers/{container_id}/files", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Containers.listContainerFiles", + "decorators": [] + }, + "parameters": [ + { + "$id": "7581", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7582", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7583", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7584", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7585", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7586", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7587", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7588", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1661" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7571" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Containers.listContainerFiles" + }, + { + "$id": "7589", + "kind": "basic", + "name": "GetContainerFile", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7590", + "name": "GetContainerFile", + "resourceName": "Containers", + "accessibility": "public", + "parameters": [ + { + "$id": "7591", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7592", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7593", + "name": "file_id", + "nameInRequest": "file_id", + "type": { + "$id": "7594", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7595", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1665" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "7540" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/containers/{container_id}/files/{file_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Containers.retrieveContainerFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "7596", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7597", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7598", + "name": "file_id", + "nameInRequest": "file_id", + "type": { + "$id": "7599", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7600", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1665" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7540" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Containers.retrieveContainerFile" + }, + { + "$id": "7601", + "kind": "basic", + "name": "deleteContainerFile", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7602", + "name": "deleteContainerFile", + "resourceName": "Containers", + "accessibility": "public", + "parameters": [ + { + "$id": "7603", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7604", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7605", + "name": "file_id", + "nameInRequest": "file_id", + "type": { + "$id": "7606", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7607", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1667" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7608", + "kind": "model", + "name": "DeleteContainerFileResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.deleteContainerFile.Response.anonymous", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7609", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "7610", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteContainerFile.Response.anonymous.id", + "serializationOptions": {} + }, + { + "$id": "7611", + "kind": "property", + "name": "object", + "serializedName": "object", + "type": { + "$ref": "1669" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteContainerFile.Response.anonymous.object", + "serializationOptions": {} + }, + { + "$id": "7612", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "type": { + "$ref": "1671" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.deleteContainerFile.Response.anonymous.deleted", + "serializationOptions": {} + } + ] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/containers/{container_id}/files/{file_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Containers.deleteContainerFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "7613", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7614", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7615", + "name": "file_id", + "nameInRequest": "file_id", + "type": { + "$id": "7616", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7617", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1667" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7608" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Containers.deleteContainerFile" + }, + { + "$id": "7618", + "kind": "basic", + "name": "GetContainerFileContent", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "7619", + "name": "GetContainerFileContent", + "resourceName": "Containers", + "accessibility": "public", + "parameters": [ + { + "$id": "7620", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7621", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7622", + "name": "file_id", + "nameInRequest": "file_id", + "type": { + "$id": "7623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7624", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1673" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7625", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/containers/{container_id}/files/{file_id}/content", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Containers.retrieveContainerFileContent", + "decorators": [] + }, + "parameters": [ + { + "$id": "7626", + "name": "container_id", + "nameInRequest": "container_id", + "type": { + "$id": "7627", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7628", + "name": "file_id", + "nameInRequest": "file_id", + "type": { + "$id": "7629", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7630", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1673" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7625" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Containers.retrieveContainerFileContent" + } + ], + "parameters": [ + { + "$id": "7631", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7632", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Containers", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "7634", + "kind": "client", + "name": "Embeddings", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7635", + "kind": "basic", + "name": "GenerateEmbeddings", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates an embedding vector representing the input text.", + "operation": { + "$id": "7636", + "name": "GenerateEmbeddings", + "resourceName": "Embeddings", + "summary": "Creates an embedding vector representing the input text.", + "accessibility": "public", + "parameters": [ + { + "$id": "7637", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1675" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7638", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1677" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7639", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "3008" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3019" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/embeddings", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Embeddings.createEmbedding", + "decorators": [] + }, + "parameters": [ + { + "$id": "7640", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1679" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7641", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "3008" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7642", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1677" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3019" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Embeddings.createEmbedding" + } + ], + "parameters": [ + { + "$id": "7643", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7644", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7645", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Embeddings", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "7646", + "kind": "client", + "name": "Files", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7647", + "kind": "basic", + "name": "GetFiles", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns a list of files that belong to the user's organization.", + "operation": { + "$id": "7648", + "name": "GetFiles", + "resourceName": "Files", + "summary": "Returns a list of files that belong to the user's organization.", + "accessibility": "public", + "parameters": [ + { + "$id": "7649", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1681" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7650", + "name": "purpose", + "nameInRequest": "purpose", + "doc": "Only return files with the given purpose.", + "type": { + "$id": "7651", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3040" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/files", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Files.listFiles", + "decorators": [] + }, + "parameters": [ + { + "$id": "7652", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1683" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7653", + "name": "purpose", + "nameInRequest": "purpose", + "doc": "Only return files with the given purpose.", + "type": { + "$id": "7654", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3040" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Files.listFiles" + }, + { + "$id": "7655", + "kind": "basic", + "name": "UploadFile", + "accessibility": "public", + "apiVersions": [], + "summary": "Upload a file that can be used across various endpoints. The size of all the files uploaded by\none organization can be up to 100 GB.\n\nThe size of individual files can be a maximum of 512 MB or 2 million tokens for Assistants. See\nthe [Assistants Tools guide](/docs/assistants/tools) to learn more about the types of files\nsupported. The Fine-tuning API only supports `.jsonl` files.\n\nPlease [contact us](https://help.openai.com/) if you need to increase these storage limits.", + "operation": { + "$id": "7656", + "name": "UploadFile", + "resourceName": "Files", + "summary": "Upload a file that can be used across various endpoints. The size of all the files uploaded by\none organization can be up to 100 GB.\n\nThe size of individual files can be a maximum of 512 MB or 2 million tokens for Assistants. See\nthe [Assistants Tools guide](/docs/assistants/tools) to learn more about the types of files\nsupported. The Fine-tuning API only supports `.jsonl` files.\n\nPlease [contact us](https://help.openai.com/) if you need to increase these storage limits.", + "accessibility": "public", + "parameters": [ + { + "$id": "7657", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1685" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7658", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "1687" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7659", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "3069" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3044" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/files", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Files.createFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "7660", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1689" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7661", + "name": "contentType", + "nameInRequest": "contentType", + "type": { + "$ref": "1691" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7662", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "3069" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3044" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Files.createFile" + }, + { + "$id": "7663", + "kind": "basic", + "name": "deleteFile", + "accessibility": "public", + "apiVersions": [], + "summary": "Delete a file", + "operation": { + "$id": "7664", + "name": "deleteFile", + "resourceName": "Files", + "summary": "Delete a file", + "accessibility": "public", + "parameters": [ + { + "$id": "7665", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1693" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7666", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to use for this request.", + "type": { + "$id": "7667", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3073" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/files/{file_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Files.deleteFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "7668", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1695" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7669", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to use for this request.", + "type": { + "$id": "7670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3073" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Files.deleteFile" + }, + { + "$id": "7671", + "kind": "basic", + "name": "GetFile", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns information about a specific file.", + "operation": { + "$id": "7672", + "name": "GetFile", + "resourceName": "Files", + "summary": "Returns information about a specific file.", + "accessibility": "public", + "parameters": [ + { + "$id": "7673", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1697" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7674", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to use for this request.", + "type": { + "$id": "7675", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3044" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/files/{file_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Files.retrieveFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "7676", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1699" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7677", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to use for this request.", + "type": { + "$id": "7678", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3044" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Files.retrieveFile" + }, + { + "$id": "7679", + "kind": "basic", + "name": "downloadFile", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns the contents of the specified file.", + "operation": { + "$id": "7680", + "name": "downloadFile", + "resourceName": "Files", + "summary": "Returns the contents of the specified file.", + "accessibility": "public", + "parameters": [ + { + "$id": "7681", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1701" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7682", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to use for this request.", + "type": { + "$id": "7683", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7684", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/files/{file_id}/content", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Files.downloadFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "7685", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1703" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7686", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to use for this request.", + "type": { + "$id": "7687", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7684" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Files.downloadFile" + } + ], + "parameters": [ + { + "$id": "7688", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7689", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7690", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Files", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "7691", + "kind": "client", + "name": "FineTuning", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7692", + "kind": "basic", + "name": "listFineTuningCheckpointPermissions", + "accessibility": "public", + "apiVersions": [], + "summary": "NOTE: This endpoint requires an admin API key.\nOrganization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.", + "operation": { + "$id": "7693", + "name": "listFineTuningCheckpointPermissions", + "resourceName": "FineTuning", + "summary": "NOTE: This endpoint requires an admin API key.\nOrganization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.", + "accessibility": "public", + "parameters": [ + { + "$id": "7694", + "name": "fine_tuned_model_checkpoint", + "nameInRequest": "fine_tuned_model_checkpoint", + "doc": "The ID of the fine-tuned model checkpoint to get permissions for.", + "type": { + "$id": "7695", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7696", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7697", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7698", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7699", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7700", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7701", + "name": "project_id", + "nameInRequest": "project_id", + "doc": "The ID of the project to get permissions for.", + "type": { + "$id": "7702", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7703", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1705" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3079" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.listFineTuningCheckpointPermissions", + "decorators": [] + }, + "parameters": [ + { + "$id": "7704", + "name": "fine_tuned_model_checkpoint", + "nameInRequest": "fine_tuned_model_checkpoint", + "doc": "The ID of the fine-tuned model checkpoint to get permissions for.", + "type": { + "$id": "7705", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7706", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "7707", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7708", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "7709", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7710", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7711", + "name": "project_id", + "nameInRequest": "project_id", + "doc": "The ID of the project to get permissions for.", + "type": { + "$id": "7712", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7713", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1705" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3079" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.listFineTuningCheckpointPermissions" + }, + { + "$id": "7714", + "kind": "basic", + "name": "createFineTuningCheckpointPermission", + "accessibility": "public", + "apiVersions": [], + "summary": "NOTE: This endpoint requires an admin API key.\nThis enables organization owners to share fine-tuned models with other projects in their organization.", + "operation": { + "$id": "7715", + "name": "createFineTuningCheckpointPermission", + "resourceName": "FineTuning", + "summary": "NOTE: This endpoint requires an admin API key.\nThis enables organization owners to share fine-tuned models with other projects in their organization.", + "accessibility": "public", + "parameters": [ + { + "$id": "7716", + "name": "fine_tuned_model_checkpoint", + "nameInRequest": "fine_tuned_model_checkpoint", + "doc": "The ID of the fine-tuned model checkpoint to create a permission for.", + "type": { + "$id": "7717", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7718", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1707" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7719", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1709" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7720", + "name": "createFineTuningCheckpointPermissionRequest", + "nameInRequest": "createFineTuningCheckpointPermissionRequest", + "type": { + "$ref": "3100" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3079" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.createFineTuningCheckpointPermission", + "decorators": [] + }, + "parameters": [ + { + "$id": "7721", + "name": "fine_tuned_model_checkpoint", + "nameInRequest": "fine_tuned_model_checkpoint", + "doc": "The ID of the fine-tuned model checkpoint to create a permission for.", + "type": { + "$id": "7722", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7723", + "name": "project_ids", + "nameInRequest": "project_ids", + "doc": "The project identifiers to grant access to.", + "type": { + "$ref": "2155" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7724", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1707" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7725", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1709" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3079" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.createFineTuningCheckpointPermission" + }, + { + "$id": "7726", + "kind": "basic", + "name": "deleteFineTuningCheckpointPermission", + "accessibility": "public", + "apiVersions": [], + "summary": "NOTE: This endpoint requires an admin API key.\nOrganization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.", + "operation": { + "$id": "7727", + "name": "deleteFineTuningCheckpointPermission", + "resourceName": "FineTuning", + "summary": "NOTE: This endpoint requires an admin API key.\nOrganization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.", + "accessibility": "public", + "parameters": [ + { + "$id": "7728", + "name": "fine_tuned_model_checkpoint", + "nameInRequest": "fine_tuned_model_checkpoint", + "doc": "The ID of the fine-tuned model checkpoint to delete a permission for.", + "type": { + "$id": "7729", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7730", + "name": "permission_id", + "nameInRequest": "permission_id", + "doc": "The ID of the permission to delete.", + "type": { + "$id": "7731", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7732", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1711" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3102" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.deleteFineTuningCheckpointPermission", + "decorators": [] + }, + "parameters": [ + { + "$id": "7733", + "name": "fine_tuned_model_checkpoint", + "nameInRequest": "fine_tuned_model_checkpoint", + "doc": "The ID of the fine-tuned model checkpoint to delete a permission for.", + "type": { + "$id": "7734", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7735", + "name": "permission_id", + "nameInRequest": "permission_id", + "doc": "The ID of the permission to delete.", + "type": { + "$id": "7736", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7737", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1711" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3102" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.deleteFineTuningCheckpointPermission" + }, + { + "$id": "7738", + "kind": "basic", + "name": "createFineTuningJob", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates a fine-tuning job which begins the process of creating a new model from a given dataset.\n\nResponse includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\n\n[Learn more about fine-tuning](/docs/guides/fine-tuning)", + "operation": { + "$id": "7739", + "name": "createFineTuningJob", + "resourceName": "FineTuning", + "summary": "Creates a fine-tuning job which begins the process of creating a new model from a given dataset.\n\nResponse includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\n\n[Learn more about fine-tuning](/docs/guides/fine-tuning)", + "accessibility": "public", + "parameters": [ + { + "$id": "7740", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1713" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7741", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1715" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7742", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "3108" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3281" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/fine_tuning/jobs", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.createFineTuningJob", + "decorators": [] + }, + "parameters": [ + { + "$id": "7743", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1717" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7744", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "3108" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7745", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1715" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3281" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.createFineTuningJob" + }, + { + "$id": "7746", + "kind": "basic", + "name": "listPaginatedFineTuningJobs", + "accessibility": "public", + "apiVersions": [], + "summary": "List your organization's fine-tuning jobs", + "operation": { + "$id": "7747", + "name": "listPaginatedFineTuningJobs", + "resourceName": "FineTuning", + "summary": "List your organization's fine-tuning jobs", + "accessibility": "public", + "parameters": [ + { + "$id": "7748", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1719" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7749", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last job from the previous pagination request.", + "type": { + "$id": "7750", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7751", + "name": "limit", + "nameInRequest": "limit", + "doc": "Number of fine-tuning jobs to retrieve.", + "type": { + "$id": "7752", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3360" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/fine_tuning/jobs", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.listPaginatedFineTuningJobs", + "decorators": [] + }, + "parameters": [ + { + "$id": "7753", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1721" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7754", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last job from the previous pagination request.", + "type": { + "$id": "7755", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7756", + "name": "limit", + "nameInRequest": "limit", + "doc": "Number of fine-tuning jobs to retrieve.", + "type": { + "$id": "7757", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3360" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.listPaginatedFineTuningJobs" + }, + { + "$id": "7758", + "kind": "basic", + "name": "retrieveFineTuningJob", + "accessibility": "public", + "apiVersions": [], + "summary": "Get info about a fine-tuning job.\n\n[Learn more about fine-tuning](/docs/guides/fine-tuning)", + "operation": { + "$id": "7759", + "name": "retrieveFineTuningJob", + "resourceName": "FineTuning", + "summary": "Get info about a fine-tuning job.\n\n[Learn more about fine-tuning](/docs/guides/fine-tuning)", + "accessibility": "public", + "parameters": [ + { + "$id": "7760", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1723" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7761", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job.", + "type": { + "$id": "7762", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3281" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/fine_tuning/jobs/{fine_tuning_job_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.retrieveFineTuningJob", + "decorators": [] + }, + "parameters": [ + { + "$id": "7763", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1725" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7764", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job.", + "type": { + "$id": "7765", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3281" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.retrieveFineTuningJob" + }, + { + "$id": "7766", + "kind": "basic", + "name": "cancelFineTuningJob", + "accessibility": "public", + "apiVersions": [], + "summary": "Immediately cancel a fine-tune job.", + "operation": { + "$id": "7767", + "name": "cancelFineTuningJob", + "resourceName": "FineTuning", + "summary": "Immediately cancel a fine-tune job.", + "accessibility": "public", + "parameters": [ + { + "$id": "7768", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1727" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7769", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to cancel.", + "type": { + "$id": "7770", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3281" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/fine_tuning/jobs/{fine_tuning_job_id}/cancel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.cancelFineTuningJob", + "decorators": [] + }, + "parameters": [ + { + "$id": "7771", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1729" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7772", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to cancel.", + "type": { + "$id": "7773", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3281" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.cancelFineTuningJob" + }, + { + "$id": "7774", + "kind": "basic", + "name": "listFineTuningJobCheckpoints", + "accessibility": "public", + "apiVersions": [], + "summary": "List the checkpoints for a fine-tuning job.", + "operation": { + "$id": "7775", + "name": "listFineTuningJobCheckpoints", + "resourceName": "FineTuning", + "summary": "List the checkpoints for a fine-tuning job.", + "accessibility": "public", + "parameters": [ + { + "$id": "7776", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1731" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7777", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to get checkpoints for.", + "type": { + "$id": "7778", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7779", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last checkpoint ID from the previous pagination request.", + "type": { + "$id": "7780", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7781", + "name": "limit", + "nameInRequest": "limit", + "doc": "Number of checkpoints to retrieve.", + "type": { + "$id": "7782", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3366" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.listFineTuningJobCheckpoints", + "decorators": [] + }, + "parameters": [ + { + "$id": "7783", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1733" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7784", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to get checkpoints for.", + "type": { + "$id": "7785", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7786", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last checkpoint ID from the previous pagination request.", + "type": { + "$id": "7787", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7788", + "name": "limit", + "nameInRequest": "limit", + "doc": "Number of checkpoints to retrieve.", + "type": { + "$id": "7789", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3366" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.listFineTuningJobCheckpoints" + }, + { + "$id": "7790", + "kind": "basic", + "name": "listFineTuningEvents", + "accessibility": "public", + "apiVersions": [], + "summary": "Get status updates for a fine-tuning job.", + "operation": { + "$id": "7791", + "name": "listFineTuningEvents", + "resourceName": "FineTuning", + "summary": "Get status updates for a fine-tuning job.", + "accessibility": "public", + "parameters": [ + { + "$id": "7792", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1735" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7793", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to get events for.", + "type": { + "$id": "7794", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7795", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last event from the previous pagination request.", + "type": { + "$id": "7796", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7797", + "name": "limit", + "nameInRequest": "limit", + "doc": "Number of events to retrieve.", + "type": { + "$id": "7798", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3407" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/fine_tuning/jobs/{fine_tuning_job_id}/events", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.listFineTuningEvents", + "decorators": [] + }, + "parameters": [ + { + "$id": "7799", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1737" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7800", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to get events for.", + "type": { + "$id": "7801", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7802", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last event from the previous pagination request.", + "type": { + "$id": "7803", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7804", + "name": "limit", + "nameInRequest": "limit", + "doc": "Number of events to retrieve.", + "type": { + "$id": "7805", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3407" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.listFineTuningEvents" + }, + { + "$id": "7806", + "kind": "basic", + "name": "pauseFineTuningJob", + "accessibility": "public", + "apiVersions": [], + "summary": "Pause a fine-tune job.", + "operation": { + "$id": "7807", + "name": "pauseFineTuningJob", + "resourceName": "FineTuning", + "summary": "Pause a fine-tune job.", + "accessibility": "public", + "parameters": [ + { + "$id": "7808", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to pause.", + "type": { + "$id": "7809", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7810", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1739" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3281" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/fine_tuning/jobs/{fine_tuning_job_id}/pause", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.pauseFineTuningJob", + "decorators": [] + }, + "parameters": [ + { + "$id": "7811", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to pause.", + "type": { + "$id": "7812", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7813", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1739" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3281" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.pauseFineTuningJob" + }, + { + "$id": "7814", + "kind": "basic", + "name": "resumeFineTuningJob", + "accessibility": "public", + "apiVersions": [], + "summary": "Resume a paused fine-tune job.", + "operation": { + "$id": "7815", + "name": "resumeFineTuningJob", + "resourceName": "FineTuning", + "summary": "Resume a paused fine-tune job.", + "accessibility": "public", + "parameters": [ + { + "$id": "7816", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to resume.", + "type": { + "$id": "7817", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7818", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1741" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3281" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/fine_tuning/jobs/{fine_tuning_job_id}/resume", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.resumeFineTuningJob", + "decorators": [] + }, + "parameters": [ + { + "$id": "7819", + "name": "fine_tuning_job_id", + "nameInRequest": "fine_tuning_job_id", + "doc": "The ID of the fine-tuning job to resume.", + "type": { + "$id": "7820", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7821", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1741" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3281" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.FineTuning.resumeFineTuningJob" + } + ], + "parameters": [ + { + "$id": "7822", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7823", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7824", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.FineTuning", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "7825", + "kind": "client", + "name": "Graders", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7826", + "kind": "basic", + "name": "runGrader", + "accessibility": "public", + "apiVersions": [], + "summary": "Run a grader.", + "operation": { + "$id": "7827", + "name": "runGrader", + "resourceName": "Graders", + "summary": "Run a grader.", + "accessibility": "public", + "parameters": [ + { + "$id": "7828", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1743" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7829", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1745" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7830", + "name": "request", + "nameInRequest": "request", + "type": { + "$id": "7831", + "kind": "model", + "name": "RunGraderRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunGraderRequest", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7832", + "kind": "property", + "name": "grader", + "serializedName": "grader", + "doc": "The grader used for the fine-tuning job.", + "type": { + "$id": "7833", + "kind": "union", + "name": "RunGraderRequestGrader", + "variantTypes": [ + { + "$ref": "3186" + }, + { + "$ref": "3189" + }, + { + "$ref": "3198" + }, + { + "$ref": "3206" + }, + { + "$ref": "3233" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderRequest.grader", + "serializationOptions": {} + }, + { + "$id": "7834", + "kind": "property", + "name": "item", + "serializedName": "item", + "doc": "The dataset item provided to the grader. This will be used to populate\nthe `item` namespace. See [the guide](/docs/guides/graders) for more details.", + "type": { + "$id": "7835", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderRequest.item", + "serializationOptions": {} + }, + { + "$id": "7836", + "kind": "property", + "name": "model_sample", + "serializedName": "model_sample", + "doc": "The model sample to be evaluated. This value will be used to populate\nthe `sample` namespace. See [the guide](/docs/guides/graders) for more details.\nThe `output_json` variable will be populated if the model sample is a\nvalid JSON string.", + "type": { + "$id": "7837", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderRequest.model_sample", + "serializationOptions": {} + } + ] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7838", + "kind": "model", + "name": "RunGraderResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7839", + "kind": "property", + "name": "reward", + "serializedName": "reward", + "type": { + "$id": "7840", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.reward", + "serializationOptions": {} + }, + { + "$id": "7841", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "type": { + "$id": "7842", + "kind": "model", + "name": "RunGraderResponseMetadata", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.anonymous", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7843", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "7844", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.anonymous.name", + "serializationOptions": {} + }, + { + "$id": "7845", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$id": "7846", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.anonymous.type", + "serializationOptions": {} + }, + { + "$id": "7847", + "kind": "property", + "name": "errors", + "serializedName": "errors", + "type": { + "$id": "7848", + "kind": "model", + "name": "RunGraderResponseMetadataErrors", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7849", + "kind": "property", + "name": "formula_parse_error", + "serializedName": "formula_parse_error", + "type": { + "$id": "7850", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.formula_parse_error", + "serializationOptions": {} + }, + { + "$id": "7851", + "kind": "property", + "name": "sample_parse_error", + "serializedName": "sample_parse_error", + "type": { + "$id": "7852", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.sample_parse_error", + "serializationOptions": {} + }, + { + "$id": "7853", + "kind": "property", + "name": "truncated_observation_error", + "serializedName": "truncated_observation_error", + "type": { + "$id": "7854", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.truncated_observation_error", + "serializationOptions": {} + }, + { + "$id": "7855", + "kind": "property", + "name": "unresponsive_reward_error", + "serializedName": "unresponsive_reward_error", + "type": { + "$id": "7856", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.unresponsive_reward_error", + "serializationOptions": {} + }, + { + "$id": "7857", + "kind": "property", + "name": "invalid_variable_error", + "serializedName": "invalid_variable_error", + "type": { + "$id": "7858", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.invalid_variable_error", + "serializationOptions": {} + }, + { + "$id": "7859", + "kind": "property", + "name": "other_error", + "serializedName": "other_error", + "type": { + "$id": "7860", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.other_error", + "serializationOptions": {} + }, + { + "$id": "7861", + "kind": "property", + "name": "python_grader_server_error", + "serializedName": "python_grader_server_error", + "type": { + "$id": "7862", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.python_grader_server_error", + "serializationOptions": {} + }, + { + "$id": "7863", + "kind": "property", + "name": "python_grader_server_error_type", + "serializedName": "python_grader_server_error_type", + "type": { + "$id": "7864", + "kind": "nullable", + "type": { + "$id": "7865", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.python_grader_server_error_type", + "serializationOptions": {} + }, + { + "$id": "7866", + "kind": "property", + "name": "python_grader_runtime_error", + "serializedName": "python_grader_runtime_error", + "type": { + "$id": "7867", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.python_grader_runtime_error", + "serializationOptions": {} + }, + { + "$id": "7868", + "kind": "property", + "name": "python_grader_runtime_error_details", + "serializedName": "python_grader_runtime_error_details", + "type": { + "$id": "7869", + "kind": "nullable", + "type": { + "$id": "7870", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.python_grader_runtime_error_details", + "serializationOptions": {} + }, + { + "$id": "7871", + "kind": "property", + "name": "model_grader_server_error", + "serializedName": "model_grader_server_error", + "type": { + "$id": "7872", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.model_grader_server_error", + "serializationOptions": {} + }, + { + "$id": "7873", + "kind": "property", + "name": "model_grader_refusal_error", + "serializedName": "model_grader_refusal_error", + "type": { + "$id": "7874", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.model_grader_refusal_error", + "serializationOptions": {} + }, + { + "$id": "7875", + "kind": "property", + "name": "model_grader_parse_error", + "serializedName": "model_grader_parse_error", + "type": { + "$id": "7876", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.model_grader_parse_error", + "serializationOptions": {} + }, + { + "$id": "7877", + "kind": "property", + "name": "model_grader_server_error_details", + "serializedName": "model_grader_server_error_details", + "type": { + "$id": "7878", + "kind": "nullable", + "type": { + "$id": "7879", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.errors.anonymous.model_grader_server_error_details", + "serializationOptions": {} + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.anonymous.errors", + "serializationOptions": {} + }, + { + "$id": "7880", + "kind": "property", + "name": "execution_time", + "serializedName": "execution_time", + "type": { + "$id": "7881", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.anonymous.execution_time", + "serializationOptions": {} + }, + { + "$id": "7882", + "kind": "property", + "name": "scores", + "serializedName": "scores", + "type": { + "$id": "7883", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.anonymous.scores", + "serializationOptions": {} + }, + { + "$id": "7884", + "kind": "property", + "name": "token_usage", + "serializedName": "token_usage", + "type": { + "$id": "7885", + "kind": "nullable", + "type": { + "$id": "7886", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.anonymous.token_usage", + "serializationOptions": {} + }, + { + "$id": "7887", + "kind": "property", + "name": "sampled_model_name", + "serializedName": "sampled_model_name", + "type": { + "$id": "7888", + "kind": "nullable", + "type": { + "$id": "7889", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata.anonymous.sampled_model_name", + "serializationOptions": {} + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.metadata", + "serializationOptions": {} + }, + { + "$id": "7890", + "kind": "property", + "name": "sub_rewards", + "serializedName": "sub_rewards", + "type": { + "$id": "7891", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.sub_rewards", + "serializationOptions": {} + }, + { + "$id": "7892", + "kind": "property", + "name": "model_grader_token_usage_per_model", + "serializedName": "model_grader_token_usage_per_model", + "type": { + "$id": "7893", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.RunGraderResponse.model_grader_token_usage_per_model", + "serializationOptions": {} + } + ] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/fine_tuning/alpha/graders/run", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Graders.runGrader", + "decorators": [] + }, + "parameters": [ + { + "$id": "7894", + "name": "request", + "nameInRequest": "request", + "type": { + "$ref": "7831" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7895", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1743" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7896", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1745" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7838" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Graders.runGrader" + }, + { + "$id": "7897", + "kind": "basic", + "name": "validateGrader", + "accessibility": "public", + "apiVersions": [], + "summary": "Validate a grader.", + "operation": { + "$id": "7898", + "name": "validateGrader", + "resourceName": "Graders", + "summary": "Validate a grader.", + "accessibility": "public", + "parameters": [ + { + "$id": "7899", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1747" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7900", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1749" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7901", + "name": "request", + "nameInRequest": "request", + "type": { + "$id": "7902", + "kind": "model", + "name": "ValidateGraderRequest", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ValidateGraderRequest", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7903", + "kind": "property", + "name": "grader", + "serializedName": "grader", + "doc": "The grader used for the fine-tuning job.", + "type": { + "$id": "7904", + "kind": "union", + "name": "ValidateGraderRequestGrader", + "variantTypes": [ + { + "$ref": "3186" + }, + { + "$ref": "3189" + }, + { + "$ref": "3198" + }, + { + "$ref": "3206" + }, + { + "$ref": "3233" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ValidateGraderRequest.grader", + "serializationOptions": {} + } + ] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "7905", + "kind": "model", + "name": "ValidateGraderResponse", + "namespace": "OpenAI", + "crossLanguageDefinitionId": "OpenAI.ValidateGraderResponse", + "usage": "None", + "decorators": [], + "properties": [ + { + "$id": "7906", + "kind": "property", + "name": "grader", + "serializedName": "grader", + "doc": "The grader used for the fine-tuning job.", + "type": { + "$id": "7907", + "kind": "union", + "name": "ValidateGraderResponseGrader", + "variantTypes": [ + { + "$ref": "3186" + }, + { + "$ref": "3189" + }, + { + "$ref": "3198" + }, + { + "$ref": "3206" + }, + { + "$ref": "3233" + } + ], + "namespace": "", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.ValidateGraderResponse.grader", + "serializationOptions": {} + } + ] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/fine_tuning/alpha/graders/validate", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "OpenAI.Graders.validateGrader", + "decorators": [] + }, + "parameters": [ + { + "$id": "7908", + "name": "request", + "nameInRequest": "request", + "type": { + "$ref": "7902" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7909", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1747" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7910", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1749" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "7905" + } + }, + "isOverride": false, + "generateConvenient": false, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Graders.validateGrader" + } + ], + "parameters": [ + { + "$id": "7911", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "7912", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "7913", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Graders", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "7914", + "kind": "client", + "name": "Evals", + "namespace": "OpenAI", + "methods": [ + { + "$id": "7915", + "kind": "basic", + "name": "listEvals", + "accessibility": "public", + "apiVersions": [], + "summary": "List evaluations for a project.", + "operation": { + "$id": "7916", + "name": "listEvals", + "resourceName": "Evals", + "summary": "List evaluations for a project.", + "accessibility": "public", + "parameters": [ + { + "$id": "7917", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last eval from the previous pagination request.", + "type": { + "$id": "7918", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7919", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of evals to be returned in a single pagination response.", + "type": { + "$id": "7920", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7921", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order for evals by timestamp. Use `asc` for ascending order or\n`desc` for descending order.", + "type": { + "$ref": "377" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7922", + "name": "order_by", + "nameInRequest": "order_by", + "doc": "Evals can be ordered by creation time or last updated time. Use\n`created_at` for creation time or `updated_at` for last updated\ntime.", + "type": { + "$ref": "381" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7923", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1751" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3426" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/evals", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.listEvals", + "decorators": [] + }, + "parameters": [ + { + "$id": "7924", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last eval from the previous pagination request.", + "type": { + "$id": "7925", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7926", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of evals to be returned in a single pagination response.", + "type": { + "$id": "7927", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7928", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order for evals by timestamp. Use `asc` for ascending order or\n`desc` for descending order.", + "type": { + "$ref": "377" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7929", + "name": "order_by", + "nameInRequest": "order_by", + "doc": "Evals can be ordered by creation time or last updated time. Use\n`created_at` for creation time or `updated_at` for last updated\ntime.", + "type": { + "$ref": "381" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7930", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1751" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3426" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.listEvals" + }, + { + "$id": "7931", + "kind": "basic", + "name": "createEval", + "accessibility": "public", + "apiVersions": [], + "doc": "Create the structure of an evaluation that can be used to test a model's\nperformance.\n\nAn evaluation is a set of testing criteria and a datasource. After\ncreating an evaluation, you can run it on different models and model\nparameters. We support several types of graders and datasources.\n\nFor more information, see the [Evals guide](/docs/guides/evals).", + "operation": { + "$id": "7932", + "name": "createEval", + "resourceName": "Evals", + "doc": "Create the structure of an evaluation that can be used to test a model's\nperformance.\n\nAn evaluation is a set of testing criteria and a datasource. After\ncreating an evaluation, you can run it on different models and model\nparameters. We support several types of graders and datasources.\n\nFor more information, see the [Evals guide](/docs/guides/evals).", + "accessibility": "public", + "parameters": [ + { + "$id": "7933", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1753" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7934", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1755" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7935", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "3510" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 201 + ], + "bodyType": { + "$ref": "3430" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/evals", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.createEval", + "decorators": [] + }, + "parameters": [ + { + "$id": "7936", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "3510" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7937", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1753" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7938", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1755" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3430" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.createEval" + }, + { + "$id": "7939", + "kind": "basic", + "name": "getEval", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieve an evaluation by its ID.", + "operation": { + "$id": "7940", + "name": "getEval", + "resourceName": "Evals", + "summary": "Retrieve an evaluation by its ID.", + "accessibility": "public", + "parameters": [ + { + "$id": "7941", + "name": "eval_id", + "nameInRequest": "eval_id", + "type": { + "$id": "7942", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7943", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1757" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3430" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/evals/{eval_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEval", + "decorators": [] + }, + "parameters": [ + { + "$id": "7944", + "name": "eval_id", + "nameInRequest": "eval_id", + "type": { + "$id": "7945", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7946", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1757" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3430" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEval" + }, + { + "$id": "7947", + "kind": "basic", + "name": "updateEval", + "accessibility": "public", + "apiVersions": [], + "doc": "Update select, mutable properties of a specified evaluation.", + "operation": { + "$id": "7948", + "name": "updateEval", + "resourceName": "Evals", + "doc": "Update select, mutable properties of a specified evaluation.", + "accessibility": "public", + "parameters": [ + { + "$id": "7949", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation to update.", + "type": { + "$id": "7950", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7951", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1759" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7952", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1761" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7953", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "3590" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3430" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/evals/{eval_id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.updateEval", + "decorators": [] + }, + "parameters": [ + { + "$id": "7954", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation to update.", + "type": { + "$id": "7955", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7956", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "3590" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7957", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1759" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7958", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1761" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3430" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.updateEval" + }, + { + "$id": "7959", + "kind": "basic", + "name": "deleteEval", + "accessibility": "public", + "apiVersions": [], + "doc": "Delete a specified evaluation.", + "operation": { + "$id": "7960", + "name": "deleteEval", + "resourceName": "Evals", + "doc": "Delete a specified evaluation.", + "accessibility": "public", + "parameters": [ + { + "$id": "7961", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation to delete.", + "type": { + "$id": "7962", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7963", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1763" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3596" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/evals/{eval_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.deleteEval", + "decorators": [] + }, + "parameters": [ + { + "$id": "7964", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation to delete.", + "type": { + "$id": "7965", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7966", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1763" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3596" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.deleteEval" + }, + { + "$id": "7967", + "kind": "basic", + "name": "getEvalRuns", + "accessibility": "public", + "apiVersions": [], + "doc": "Retrieve a list of runs for a specified evaluation.", + "summary": "", + "operation": { + "$id": "7968", + "name": "getEvalRuns", + "resourceName": "Evals", + "summary": "", + "doc": "Retrieve a list of runs for a specified evaluation.", + "accessibility": "public", + "parameters": [ + { + "$id": "7969", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation to retrieve runs for.", + "type": { + "$id": "7970", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7971", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last run from the previous pagination request.", + "type": { + "$id": "7972", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7973", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of runs to be returned in a single pagination response.", + "type": { + "$id": "7974", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7975", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order for runs by timestamp. Use `asc` for ascending order or `desc` for descending order.", + "type": { + "$ref": "390" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7976", + "name": "status", + "nameInRequest": "status", + "doc": "Filter runs by their status. Possible values are `queued`, `in_progress`, `completed`, `canceled`, and `failed`.", + "type": { + "$ref": "394" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7977", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1765" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3602" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/evals/{eval_id}/runs", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEvalRuns", + "decorators": [] + }, + "parameters": [ + { + "$id": "7978", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation to retrieve runs for.", + "type": { + "$id": "7979", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7980", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last run from the previous pagination request.", + "type": { + "$id": "7981", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7982", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of runs to be returned in a single pagination response.", + "type": { + "$id": "7983", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7984", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order for runs by timestamp. Use `asc` for ascending order or `desc` for descending order.", + "type": { + "$ref": "390" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7985", + "name": "status", + "nameInRequest": "status", + "doc": "Filter runs by their status. Possible values are `queued`, `in_progress`, `completed`, `canceled`, and `failed`.", + "type": { + "$ref": "394" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7986", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1765" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3602" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEvalRuns" + }, + { + "$id": "7987", + "kind": "basic", + "name": "createEvalRun", + "accessibility": "public", + "apiVersions": [], + "doc": "Create a new evaluation run, beginning the grading process.", + "operation": { + "$id": "7988", + "name": "createEvalRun", + "resourceName": "Evals", + "doc": "Create a new evaluation run, beginning the grading process.", + "accessibility": "public", + "parameters": [ + { + "$id": "7989", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation to run.", + "type": { + "$id": "7990", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7991", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1767" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7992", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1769" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7993", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "3673" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 201 + ], + "bodyType": { + "$ref": "3606" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/evals/{eval_id}/runs", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.createEvalRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "7994", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation to run.", + "type": { + "$id": "7995", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7996", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "3673" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7997", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1767" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "7998", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1769" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3606" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.createEvalRun" + }, + { + "$id": "7999", + "kind": "basic", + "name": "getEvalRun", + "accessibility": "public", + "apiVersions": [], + "doc": "Retrieve a specific evaluation run by its ID.", + "operation": { + "$id": "8000", + "name": "getEvalRun", + "resourceName": "Evals", + "doc": "Retrieve a specific evaluation run by its ID.", + "accessibility": "public", + "parameters": [ + { + "$id": "8001", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8002", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8003", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run to retrieve.", + "type": { + "$id": "8004", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8005", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1771" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3606" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/evals/{eval_id}/runs/{run_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEvalRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "8006", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8007", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8008", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run to retrieve.", + "type": { + "$id": "8009", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8010", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1771" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3606" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEvalRun" + }, + { + "$id": "8011", + "kind": "basic", + "name": "cancelEvalRun", + "accessibility": "public", + "apiVersions": [], + "doc": "Cancel a specific evaluation run by its ID.", + "operation": { + "$id": "8012", + "name": "cancelEvalRun", + "resourceName": "Evals", + "doc": "Cancel a specific evaluation run by its ID.", + "accessibility": "public", + "parameters": [ + { + "$id": "8013", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8014", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8015", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run to cancel.", + "type": { + "$id": "8016", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8017", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1773" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3606" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/evals/{eval_id}/runs/{run_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.cancelEvalRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "8018", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8019", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8020", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run to cancel.", + "type": { + "$id": "8021", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8022", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1773" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3606" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.cancelEvalRun" + }, + { + "$id": "8023", + "kind": "basic", + "name": "deleteEvalRun", + "accessibility": "public", + "apiVersions": [], + "doc": "Delete a specific evaluation run by its ID.", + "operation": { + "$id": "8024", + "name": "deleteEvalRun", + "resourceName": "Evals", + "doc": "Delete a specific evaluation run by its ID.", + "accessibility": "public", + "parameters": [ + { + "$id": "8025", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8026", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8027", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run to delete.", + "type": { + "$id": "8028", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8029", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1775" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3960" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/evals/{eval_id}/runs/{run_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.deleteEvalRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "8030", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8031", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8032", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run to delete.", + "type": { + "$id": "8033", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8034", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1775" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3960" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.deleteEvalRun" + }, + { + "$id": "8035", + "kind": "basic", + "name": "getEvalRunOutputItems", + "accessibility": "public", + "apiVersions": [], + "doc": "Get a list of output items for a specified evaluation run.", + "operation": { + "$id": "8036", + "name": "getEvalRunOutputItems", + "resourceName": "Evals", + "doc": "Get a list of output items for a specified evaluation run.", + "accessibility": "public", + "parameters": [ + { + "$id": "8037", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8038", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8039", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run to retrieve output items for.", + "type": { + "$id": "8040", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8041", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last output item from the previous pagination request.", + "type": { + "$id": "8042", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8043", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of output items to be returned in a single pagination response.", + "type": { + "$id": "8044", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8045", + "name": "status", + "nameInRequest": "status", + "doc": "Filter output items by their status. Possible values are `fail` and `pass`.", + "type": { + "$ref": "484" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8046", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order for output items by timestamp. Use `asc` for ascending order or `desc` for descending order.", + "type": { + "$ref": "488" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8047", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1777" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3966" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/evals/{eval_id}/runs/{run_id}/output_items", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEvalRunOutputItems", + "decorators": [] + }, + "parameters": [ + { + "$id": "8048", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8049", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8050", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run to retrieve output items for.", + "type": { + "$id": "8051", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8052", + "name": "after", + "nameInRequest": "after", + "doc": "Identifier for the last output item from the previous pagination request.", + "type": { + "$id": "8053", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8054", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of output items to be returned in a single pagination response.", + "type": { + "$id": "8055", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8056", + "name": "status", + "nameInRequest": "status", + "doc": "Filter output items by their status. Possible values are `fail` and `pass`.", + "type": { + "$ref": "484" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8057", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order for output items by timestamp. Use `asc` for ascending order or `desc` for descending order.", + "type": { + "$ref": "488" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8058", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1777" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3966" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEvalRunOutputItems" + }, + { + "$id": "8059", + "kind": "basic", + "name": "getEvalRunOutputItem", + "accessibility": "public", + "apiVersions": [], + "doc": "Retrieve a specific output item from an evaluation run by its ID.", + "operation": { + "$id": "8060", + "name": "getEvalRunOutputItem", + "resourceName": "Evals", + "doc": "Retrieve a specific output item from an evaluation run by its ID.", + "accessibility": "public", + "parameters": [ + { + "$id": "8061", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8062", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8063", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run the output item belongs to.", + "type": { + "$id": "8064", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8065", + "name": "output_item_id", + "nameInRequest": "output_item_id", + "doc": "The ID of the output item to retrieve.", + "type": { + "$id": "8066", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8067", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1779" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3970" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/evals/{eval_id}/runs/{run_id}/output_items/{output_item_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEvalRunOutputItem", + "decorators": [] + }, + "parameters": [ + { + "$id": "8068", + "name": "eval_id", + "nameInRequest": "eval_id", + "doc": "The ID of the evaluation the run belongs to.", + "type": { + "$id": "8069", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8070", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the evaluation run the output item belongs to.", + "type": { + "$id": "8071", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8072", + "name": "output_item_id", + "nameInRequest": "output_item_id", + "doc": "The ID of the output item to retrieve.", + "type": { + "$id": "8073", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8074", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1779" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "3970" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Evals.getEvalRunOutputItem" + } + ], + "parameters": [ + { + "$id": "8075", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8076", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8077", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Evals", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8078", + "kind": "client", + "name": "Responses", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8079", + "kind": "basic", + "name": "createResponse", + "accessibility": "public", + "apiVersions": [], + "doc": "Creates a model response.", + "operation": { + "$id": "8080", + "name": "createResponse", + "resourceName": "Responses", + "doc": "Creates a model response.", + "accessibility": "public", + "parameters": [ + { + "$id": "8081", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8082", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1781" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8083", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "4033" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "4635" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "Content-Type", + "type": { + "$ref": "1783" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json", + "text/event-stream" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/responses", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Responses.createResponse", + "decorators": [] + }, + "parameters": [ + { + "$id": "8084", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8085", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "4033" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8086", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1781" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "4635" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Responses.createResponse" + }, + { + "$id": "8087", + "kind": "basic", + "name": "getResponse", + "accessibility": "public", + "apiVersions": [], + "doc": "Retrieves a model response with the given ID.", + "operation": { + "$id": "8088", + "name": "getResponse", + "resourceName": "Responses", + "doc": "Retrieves a model response with the given ID.", + "accessibility": "public", + "parameters": [ + { + "$id": "8089", + "name": "response_id", + "nameInRequest": "response_id", + "doc": "The ID of the response to retrieve.", + "type": { + "$id": "8090", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8091", + "name": "includables", + "nameInRequest": "include[]", + "type": { + "$ref": "4444" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8092", + "name": "stream", + "nameInRequest": "stream", + "doc": "If set to true, model response data will be streamed to the client as it is generated using server-sent events.", + "type": { + "$id": "8093", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8094", + "name": "starting_after", + "nameInRequest": "starting_after", + "doc": "The sequence number of the event after which to start streaming.", + "type": { + "$id": "8095", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8096", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "8097", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "4635" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "Content-Type", + "type": { + "$ref": "1785" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json", + "text/event-stream" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/responses/{response_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Responses.getResponse", + "decorators": [] + }, + "parameters": [ + { + "$id": "8098", + "name": "response_id", + "nameInRequest": "response_id", + "doc": "The ID of the response to retrieve.", + "type": { + "$id": "8099", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8100", + "name": "includables", + "nameInRequest": "includables", + "type": { + "$ref": "4444" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8101", + "name": "stream", + "nameInRequest": "stream", + "doc": "If set to true, model response data will be streamed to the client as it is generated using server-sent events.", + "type": { + "$id": "8102", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8103", + "name": "starting_after", + "nameInRequest": "starting_after", + "doc": "The sequence number of the event after which to start streaming.", + "type": { + "$id": "8104", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8105", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "8097" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "4635" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Responses.getResponse" + }, + { + "$id": "8106", + "kind": "basic", + "name": "deleteResponse", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "8107", + "name": "deleteResponse", + "resourceName": "Responses", + "accessibility": "public", + "parameters": [ + { + "$id": "8108", + "name": "response_id", + "nameInRequest": "response_id", + "doc": "The ID of the response to delete.", + "type": { + "$id": "8109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8110", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1787" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "4966" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/responses/{response_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Responses.deleteResponse", + "decorators": [] + }, + "parameters": [ + { + "$id": "8111", + "name": "response_id", + "nameInRequest": "response_id", + "doc": "The ID of the response to delete.", + "type": { + "$id": "8112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8113", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1787" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "4966" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Responses.deleteResponse" + }, + { + "$id": "8114", + "kind": "basic", + "name": "cancelResponse", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "8115", + "name": "cancelResponse", + "resourceName": "Responses", + "accessibility": "public", + "parameters": [ + { + "$id": "8116", + "name": "response_id", + "nameInRequest": "response_id", + "doc": "The ID of the response to cancel.", + "type": { + "$id": "8117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8118", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1789" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "4454" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/responses/{response_id}/cancel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Responses.cancelResponse", + "decorators": [] + }, + "parameters": [ + { + "$id": "8119", + "name": "response_id", + "nameInRequest": "response_id", + "doc": "The ID of the response to cancel.", + "type": { + "$id": "8120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8121", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1789" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "4454" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Responses.cancelResponse" + }, + { + "$id": "8122", + "kind": "basic", + "name": "listInputItems", + "accessibility": "public", + "apiVersions": [], + "doc": "Returns a list of input items for a given response.", + "operation": { + "$id": "8123", + "name": "listInputItems", + "resourceName": "Responses", + "doc": "Returns a list of input items for a given response.", + "accessibility": "public", + "parameters": [ + { + "$id": "8124", + "name": "response_id", + "nameInRequest": "response_id", + "doc": "The ID of the response to retrieve.", + "type": { + "$id": "8125", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8126", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8127", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8128", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8129", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8131", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8133", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1791" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "4971" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/responses/{response_id}/input_items", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Responses.listInputItems", + "decorators": [] + }, + "parameters": [ + { + "$id": "8134", + "name": "response_id", + "nameInRequest": "response_id", + "doc": "The ID of the response to retrieve.", + "type": { + "$id": "8135", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8136", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8137", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8138", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8139", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8141", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8143", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1791" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "4971" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Responses.listInputItems" + } + ], + "parameters": [ + { + "$id": "8144", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8145", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Responses", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8147", + "kind": "client", + "name": "Images", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8148", + "kind": "basic", + "name": "GenerateImages", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates an image given a prompt", + "operation": { + "$id": "8149", + "name": "GenerateImages", + "resourceName": "Images", + "summary": "Creates an image given a prompt", + "accessibility": "public", + "parameters": [ + { + "$id": "8150", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1793" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8151", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1795" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8152", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "4980" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5052" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/images/generations", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Images.createImage", + "decorators": [] + }, + "parameters": [ + { + "$id": "8153", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1797" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8154", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "4980" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8155", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1795" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5052" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Images.createImage" + }, + { + "$id": "8156", + "kind": "basic", + "name": "GenerateImageEdits", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates an edited or extended image given an original image and a prompt.", + "operation": { + "$id": "8157", + "name": "GenerateImageEdits", + "resourceName": "Images", + "summary": "Creates an edited or extended image given an original image and a prompt.", + "accessibility": "public", + "parameters": [ + { + "$id": "8158", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1799" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8159", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "1801" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8160", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5079" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5052" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/images/edits", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Images.createImageEdit", + "decorators": [] + }, + "parameters": [ + { + "$id": "8161", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1803" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8162", + "name": "contentType", + "nameInRequest": "contentType", + "type": { + "$ref": "1805" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8163", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5079" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5052" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Images.createImageEdit" + }, + { + "$id": "8164", + "kind": "basic", + "name": "GenerateImageVariations", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates an edited or extended image given an original image and a prompt.", + "operation": { + "$id": "8165", + "name": "GenerateImageVariations", + "resourceName": "Images", + "summary": "Creates an edited or extended image given an original image and a prompt.", + "accessibility": "public", + "parameters": [ + { + "$id": "8166", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1807" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8167", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "1809" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8168", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5133" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5052" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/images/variations", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Images.createImageVariation", + "decorators": [] + }, + "parameters": [ + { + "$id": "8169", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1811" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8170", + "name": "contentType", + "nameInRequest": "contentType", + "type": { + "$ref": "1813" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8171", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5133" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5052" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Images.createImageVariation" + } + ], + "parameters": [ + { + "$id": "8172", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8173", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8174", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Images", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8175", + "kind": "client", + "name": "Messages", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8176", + "kind": "basic", + "name": "createMessage", + "accessibility": "public", + "apiVersions": [], + "summary": "Create a message.", + "operation": { + "$id": "8177", + "name": "createMessage", + "resourceName": "Messages", + "summary": "Create a message.", + "accessibility": "public", + "parameters": [ + { + "$id": "8178", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1815" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8179", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1817" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8180", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) to create a message for.", + "type": { + "$id": "8181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8182", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1819" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8183", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5160" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5232" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/messages", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Messages.createMessage", + "decorators": [] + }, + "parameters": [ + { + "$id": "8184", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1821" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8185", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1823" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8186", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) to create a message for.", + "type": { + "$id": "8187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8188", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5160" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8189", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1819" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5232" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Messages.createMessage" + }, + { + "$id": "8190", + "kind": "basic", + "name": "listMessages", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns a list of messages for a given thread.", + "operation": { + "$id": "8191", + "name": "listMessages", + "resourceName": "Messages", + "summary": "Returns a list of messages for a given thread.", + "accessibility": "public", + "parameters": [ + { + "$id": "8192", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1825" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8193", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1827" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8194", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) the messages belong to.", + "type": { + "$id": "8195", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8196", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8197", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8198", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8199", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8200", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8201", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5272" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/messages", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Messages.listMessages", + "decorators": [] + }, + "parameters": [ + { + "$id": "8203", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1829" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8204", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1831" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8205", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) the messages belong to.", + "type": { + "$id": "8206", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8207", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8208", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8209", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8210", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8212", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8213", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5272" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Messages.listMessages" + }, + { + "$id": "8214", + "kind": "basic", + "name": "getMessage", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieve a message.", + "operation": { + "$id": "8215", + "name": "getMessage", + "resourceName": "Messages", + "summary": "Retrieve a message.", + "accessibility": "public", + "parameters": [ + { + "$id": "8216", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1833" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8217", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1835" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8218", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) to which this message belongs.", + "type": { + "$id": "8219", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8220", + "name": "message_id", + "nameInRequest": "message_id", + "doc": "The ID of the message to retrieve.", + "type": { + "$id": "8221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5232" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/messages/{message_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Messages.getMessage", + "decorators": [] + }, + "parameters": [ + { + "$id": "8222", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1837" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8223", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1839" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8224", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) to which this message belongs.", + "type": { + "$id": "8225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8226", + "name": "message_id", + "nameInRequest": "message_id", + "doc": "The ID of the message to retrieve.", + "type": { + "$id": "8227", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5232" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Messages.getMessage" + }, + { + "$id": "8228", + "kind": "basic", + "name": "modifyMessage", + "accessibility": "public", + "apiVersions": [], + "summary": "Modifies a message.", + "operation": { + "$id": "8229", + "name": "modifyMessage", + "resourceName": "Messages", + "summary": "Modifies a message.", + "accessibility": "public", + "parameters": [ + { + "$id": "8230", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1841" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8231", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1843" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8232", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to which this message belongs.", + "type": { + "$id": "8233", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8234", + "name": "message_id", + "nameInRequest": "message_id", + "doc": "The ID of the message to modify.", + "type": { + "$id": "8235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8236", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1845" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8237", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5282" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5232" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/messages/{message_id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Messages.modifyMessage", + "decorators": [] + }, + "parameters": [ + { + "$id": "8238", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1847" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8239", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1849" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8240", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to which this message belongs.", + "type": { + "$id": "8241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8242", + "name": "message_id", + "nameInRequest": "message_id", + "doc": "The ID of the message to modify.", + "type": { + "$id": "8243", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8244", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5282" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8245", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1845" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5232" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Messages.modifyMessage" + }, + { + "$id": "8246", + "kind": "basic", + "name": "deleteMessage", + "accessibility": "public", + "apiVersions": [], + "summary": "Deletes a message.", + "operation": { + "$id": "8247", + "name": "deleteMessage", + "resourceName": "Messages", + "summary": "Deletes a message.", + "accessibility": "public", + "parameters": [ + { + "$id": "8248", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1851" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8249", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1853" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8250", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to which this message belongs.", + "type": { + "$id": "8251", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8252", + "name": "message_id", + "nameInRequest": "message_id", + "doc": "The ID of the message to delete.", + "type": { + "$id": "8253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5284" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/messages/{message_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Messages.deleteMessage", + "decorators": [] + }, + "parameters": [ + { + "$id": "8254", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1855" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8255", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1857" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8256", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to which this message belongs.", + "type": { + "$id": "8257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8258", + "name": "message_id", + "nameInRequest": "message_id", + "doc": "The ID of the message to delete.", + "type": { + "$id": "8259", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5284" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Messages.deleteMessage" + } + ], + "parameters": [ + { + "$id": "8260", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8261", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Messages", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8263", + "kind": "client", + "name": "Moderations", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8264", + "kind": "basic", + "name": "ClassifyText", + "accessibility": "public", + "apiVersions": [], + "summary": "Classifies if text is potentially harmful.", + "operation": { + "$id": "8265", + "name": "ClassifyText", + "resourceName": "Moderations", + "summary": "Classifies if text is potentially harmful.", + "accessibility": "public", + "parameters": [ + { + "$id": "8266", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1859" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8267", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1861" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8268", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5290" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5307" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/moderations", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Moderations.createModeration", + "decorators": [] + }, + "parameters": [ + { + "$id": "8269", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1863" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8270", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5290" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8271", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1861" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5307" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Moderations.createModeration" + } + ], + "parameters": [ + { + "$id": "8272", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8273", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Moderations", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8275", + "kind": "client", + "name": "Runs", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8276", + "kind": "basic", + "name": "createThreadAndRun", + "accessibility": "public", + "apiVersions": [], + "summary": "Create a thread and run it in one request.", + "operation": { + "$id": "8277", + "name": "createThreadAndRun", + "resourceName": "Runs", + "summary": "Create a thread and run it in one request.", + "accessibility": "public", + "parameters": [ + { + "$id": "8278", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8279", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1865" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8280", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1867" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8281", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5402" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5502" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/threads/runs", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Runs.createThreadAndRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "8282", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8283", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1869" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8284", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5402" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8285", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1867" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5502" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Runs.createThreadAndRun" + }, + { + "$id": "8286", + "kind": "basic", + "name": "createRun", + "accessibility": "public", + "apiVersions": [], + "summary": "Create a run.", + "operation": { + "$id": "8287", + "name": "createRun", + "resourceName": "Runs", + "summary": "Create a run.", + "accessibility": "public", + "parameters": [ + { + "$id": "8288", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8289", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1871" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8290", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to run.", + "type": { + "$id": "8291", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8292", + "name": "include[]", + "nameInRequest": "include[]", + "doc": "A list of additional fields to include in the response. Currently the only supported value is\n`step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result\ncontent.\n\nSee the\n[file search tool documentation](/docs/assistants/tools/file-search/customizing-file-search-settings)\nfor more information.", + "type": { + "$id": "8293", + "kind": "array", + "name": "ArrayIncludedRunStepProperty", + "valueType": { + "$ref": "884" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8294", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1873" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8295", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5598" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5502" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/runs", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Runs.createRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "8296", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8297", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1875" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8298", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to run.", + "type": { + "$id": "8299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8300", + "name": "include[]", + "nameInRequest": "include[]", + "doc": "A list of additional fields to include in the response. Currently the only supported value is\n`step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result\ncontent.\n\nSee the\n[file search tool documentation](/docs/assistants/tools/file-search/customizing-file-search-settings)\nfor more information.", + "type": { + "$ref": "8293" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8301", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5598" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8302", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1873" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5502" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Runs.createRun" + }, + { + "$id": "8303", + "kind": "basic", + "name": "listRuns", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns a list of runs belonging to a thread.", + "operation": { + "$id": "8304", + "name": "listRuns", + "resourceName": "Runs", + "summary": "Returns a list of runs belonging to a thread.", + "accessibility": "public", + "parameters": [ + { + "$id": "8305", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1877" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8306", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1879" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8307", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread the run belongs to.", + "type": { + "$id": "8308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8309", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8310", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8311", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8312", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8314", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8315", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5640" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/runs", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Runs.listRuns", + "decorators": [] + }, + "parameters": [ + { + "$id": "8316", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1881" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8317", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1883" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8318", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread the run belongs to.", + "type": { + "$id": "8319", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8320", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8321", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8322", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8323", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8324", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8325", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8326", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5640" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Runs.listRuns" + }, + { + "$id": "8327", + "kind": "basic", + "name": "getRun", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves a run.", + "operation": { + "$id": "8328", + "name": "getRun", + "resourceName": "Runs", + "summary": "Retrieves a run.", + "accessibility": "public", + "parameters": [ + { + "$id": "8329", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1885" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8330", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1887" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8331", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) that was run.", + "type": { + "$id": "8332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8333", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run to retrieve.", + "type": { + "$id": "8334", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5502" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/runs/{run_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Runs.getRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "8335", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1889" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8336", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1891" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8337", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) that was run.", + "type": { + "$id": "8338", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8339", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run to retrieve.", + "type": { + "$id": "8340", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5502" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Runs.getRun" + }, + { + "$id": "8341", + "kind": "basic", + "name": "modifyRun", + "accessibility": "public", + "apiVersions": [], + "summary": "Modifies a run.", + "operation": { + "$id": "8342", + "name": "modifyRun", + "resourceName": "Runs", + "summary": "Modifies a run.", + "accessibility": "public", + "parameters": [ + { + "$id": "8343", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1893" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8344", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1895" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8345", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) that was run.", + "type": { + "$id": "8346", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8347", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run to modify.", + "type": { + "$id": "8348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8349", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1897" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8350", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5650" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5502" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/runs/{run_id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Runs.modifyRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "8351", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1899" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8352", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1901" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8353", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) that was run.", + "type": { + "$id": "8354", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8355", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run to modify.", + "type": { + "$id": "8356", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8357", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5650" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8358", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1897" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5502" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Runs.modifyRun" + }, + { + "$id": "8359", + "kind": "basic", + "name": "cancelRun", + "accessibility": "public", + "apiVersions": [], + "summary": "Cancels a run that is `in_progress`.", + "operation": { + "$id": "8360", + "name": "cancelRun", + "resourceName": "Runs", + "summary": "Cancels a run that is `in_progress`.", + "accessibility": "public", + "parameters": [ + { + "$id": "8361", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1903" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8362", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1905" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8363", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to which this run belongs.", + "type": { + "$id": "8364", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8365", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run to cancel.", + "type": { + "$id": "8366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5502" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/runs/{run_id}/cancel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Runs.cancelRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "8367", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1907" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8368", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1909" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8369", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to which this run belongs.", + "type": { + "$id": "8370", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8371", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run to cancel.", + "type": { + "$id": "8372", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5502" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Runs.cancelRun" + }, + { + "$id": "8373", + "kind": "basic", + "name": "submitToolOutputsToRun", + "accessibility": "public", + "apiVersions": [], + "summary": "When a run has the `status: \"requires_action\"` and `required_action.type` is\n`submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once\nthey're all completed. All outputs must be submitted in a single request.", + "operation": { + "$id": "8374", + "name": "submitToolOutputsToRun", + "resourceName": "Runs", + "summary": "When a run has the `status: \"requires_action\"` and `required_action.type` is\n`submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once\nthey're all completed. All outputs must be submitted in a single request.", + "accessibility": "public", + "parameters": [ + { + "$id": "8375", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8376", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1911" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8377", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) to which this run belongs.", + "type": { + "$id": "8378", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8379", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run that requires the tool output submission.", + "type": { + "$id": "8380", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8381", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1913" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8382", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5652" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5502" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/runs/{run_id}/submit_tool_outputs", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Runs.submitToolOutputsToRun", + "decorators": [] + }, + "parameters": [ + { + "$id": "8383", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8384", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1915" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8385", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the [thread](/docs/api-reference/threads) to which this run belongs.", + "type": { + "$id": "8386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8387", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run that requires the tool output submission.", + "type": { + "$id": "8388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8389", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5652" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8390", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1913" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5502" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Runs.submitToolOutputsToRun" + }, + { + "$id": "8391", + "kind": "basic", + "name": "listRunSteps", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns a list of run steps belonging to a run.", + "operation": { + "$id": "8392", + "name": "listRunSteps", + "resourceName": "Runs", + "summary": "Returns a list of run steps belonging to a run.", + "accessibility": "public", + "parameters": [ + { + "$id": "8393", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1917" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8394", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1919" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8395", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread the run and run steps belong to.", + "type": { + "$id": "8396", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8397", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run the run steps belong to.", + "type": { + "$id": "8398", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8399", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8400", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8401", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8402", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8403", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8404", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8405", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8406", + "name": "include[]", + "nameInRequest": "include[]", + "doc": "A list of additional fields to include in the response. Currently the only supported value is\n`step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result\ncontent.\n\nSee the\n[file search tool documentation](/docs/assistants/tools/file-search/customizing-file-search-settings)\nfor more information.", + "type": { + "$ref": "8293" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5663" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/runs/{run_id}/steps", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Runs.listRunSteps", + "decorators": [] + }, + "parameters": [ + { + "$id": "8407", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1921" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8408", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1923" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8409", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread the run and run steps belong to.", + "type": { + "$id": "8410", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8411", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run the run steps belong to.", + "type": { + "$id": "8412", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8413", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8414", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8415", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8416", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8417", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8418", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8419", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8420", + "name": "include[]", + "nameInRequest": "include[]", + "doc": "A list of additional fields to include in the response. Currently the only supported value is\n`step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result\ncontent.\n\nSee the\n[file search tool documentation](/docs/assistants/tools/file-search/customizing-file-search-settings)\nfor more information.", + "type": { + "$ref": "8293" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5663" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Runs.listRunSteps" + }, + { + "$id": "8421", + "kind": "basic", + "name": "getRunStep", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves a run step.", + "operation": { + "$id": "8422", + "name": "getRunStep", + "resourceName": "Runs", + "summary": "Retrieves a run step.", + "accessibility": "public", + "parameters": [ + { + "$id": "8423", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1925" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8424", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1927" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8425", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to which the run and run step belongs.", + "type": { + "$id": "8426", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8427", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run to which the run step belongs.", + "type": { + "$id": "8428", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8429", + "name": "step_id", + "nameInRequest": "step_id", + "doc": "The ID of the run step to retrieve.", + "type": { + "$id": "8430", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8431", + "name": "include[]", + "nameInRequest": "include[]", + "doc": "A list of additional fields to include in the response. Currently the only supported value is\n`step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result\ncontent.\n\nSee the\n[file search tool documentation](/docs/assistants/tools/file-search/customizing-file-search-settings)\nfor more information.", + "type": { + "$ref": "8293" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5667" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/threads/{thread_id}/runs/{run_id}/steps/{step_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Runs.getRunStep", + "decorators": [] + }, + "parameters": [ + { + "$id": "8432", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1929" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8433", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1931" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8434", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to which the run and run step belongs.", + "type": { + "$id": "8435", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8436", + "name": "run_id", + "nameInRequest": "run_id", + "doc": "The ID of the run to which the run step belongs.", + "type": { + "$id": "8437", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8438", + "name": "step_id", + "nameInRequest": "step_id", + "doc": "The ID of the run step to retrieve.", + "type": { + "$id": "8439", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8440", + "name": "include[]", + "nameInRequest": "include[]", + "doc": "A list of additional fields to include in the response. Currently the only supported value is\n`step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result\ncontent.\n\nSee the\n[file search tool documentation](/docs/assistants/tools/file-search/customizing-file-search-settings)\nfor more information.", + "type": { + "$ref": "8293" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5667" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Runs.getRunStep" + } + ], + "parameters": [ + { + "$id": "8441", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8442", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8443", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Runs", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8444", + "kind": "client", + "name": "Threads", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8445", + "kind": "basic", + "name": "createThread", + "accessibility": "public", + "apiVersions": [], + "summary": "Create a thread.", + "operation": { + "$id": "8446", + "name": "createThread", + "resourceName": "Threads", + "summary": "Create a thread.", + "accessibility": "public", + "parameters": [ + { + "$id": "8447", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1933" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8448", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1935" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8449", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1937" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8450", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5406" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5793" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/threads", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Threads.createThread", + "decorators": [] + }, + "parameters": [ + { + "$id": "8451", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1939" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8452", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1941" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8453", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5406" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8454", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1937" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5793" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Threads.createThread" + }, + { + "$id": "8455", + "kind": "basic", + "name": "getThread", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves a thread.", + "operation": { + "$id": "8456", + "name": "getThread", + "resourceName": "Threads", + "summary": "Retrieves a thread.", + "accessibility": "public", + "parameters": [ + { + "$id": "8457", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1943" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8458", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1945" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8459", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to retrieve.", + "type": { + "$id": "8460", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5793" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/threads/{thread_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Threads.getThread", + "decorators": [] + }, + "parameters": [ + { + "$id": "8461", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1947" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8462", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1949" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8463", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to retrieve.", + "type": { + "$id": "8464", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5793" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Threads.getThread" + }, + { + "$id": "8465", + "kind": "basic", + "name": "modifyThread", + "accessibility": "public", + "apiVersions": [], + "summary": "Modifies a thread.", + "operation": { + "$id": "8466", + "name": "modifyThread", + "resourceName": "Threads", + "summary": "Modifies a thread.", + "accessibility": "public", + "parameters": [ + { + "$id": "8467", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1951" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8468", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1953" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8469", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to modify. Only the `metadata` can be modified.", + "type": { + "$id": "8470", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8471", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1955" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8472", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5810" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5793" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/threads/{thread_id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Threads.modifyThread", + "decorators": [] + }, + "parameters": [ + { + "$id": "8473", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1957" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8474", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1959" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8475", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to modify. Only the `metadata` can be modified.", + "type": { + "$id": "8476", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8477", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5810" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8478", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1955" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5793" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Threads.modifyThread" + }, + { + "$id": "8479", + "kind": "basic", + "name": "deleteThread", + "accessibility": "public", + "apiVersions": [], + "summary": "Delete a thread.", + "operation": { + "$id": "8480", + "name": "deleteThread", + "resourceName": "Threads", + "summary": "Delete a thread.", + "accessibility": "public", + "parameters": [ + { + "$id": "8481", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1961" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8482", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "1963" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8483", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to delete.", + "type": { + "$id": "8484", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5819" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/threads/{thread_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Threads.deleteThread", + "decorators": [] + }, + "parameters": [ + { + "$id": "8485", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1965" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8486", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "1967" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8487", + "name": "thread_id", + "nameInRequest": "thread_id", + "doc": "The ID of the thread to delete.", + "type": { + "$id": "8488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5819" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Threads.deleteThread" + } + ], + "parameters": [ + { + "$id": "8489", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8490", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8491", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Threads", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8492", + "kind": "client", + "name": "VectorStores", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8493", + "kind": "basic", + "name": "GetVectorStores", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns a list of vector stores.", + "operation": { + "$id": "8494", + "name": "GetVectorStores", + "resourceName": "VectorStores", + "summary": "Returns a list of vector stores.", + "accessibility": "public", + "parameters": [ + { + "$id": "8495", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1969" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8496", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8497", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8498", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8499", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8500", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8501", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8502", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5825" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/vector_stores", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.listVectorStores", + "decorators": [] + }, + "parameters": [ + { + "$id": "8503", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1971" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8504", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8505", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8506", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8507", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8508", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8509", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5825" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.listVectorStores" + }, + { + "$id": "8511", + "kind": "basic", + "name": "createVectorStore", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates a vector store.", + "operation": { + "$id": "8512", + "name": "createVectorStore", + "resourceName": "VectorStores", + "summary": "Creates a vector store.", + "accessibility": "public", + "parameters": [ + { + "$id": "8513", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1973" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8514", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1975" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8515", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5874" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5829" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/vector_stores", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.createVectorStore", + "decorators": [] + }, + "parameters": [ + { + "$id": "8516", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1977" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8517", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5874" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8518", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1975" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5829" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.createVectorStore" + }, + { + "$id": "8519", + "kind": "basic", + "name": "getVectorStore", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves a vector store.", + "operation": { + "$id": "8520", + "name": "getVectorStore", + "resourceName": "VectorStores", + "summary": "Retrieves a vector store.", + "accessibility": "public", + "parameters": [ + { + "$id": "8521", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1979" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8522", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store to retrieve.", + "type": { + "$id": "8523", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5829" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.getVectorStore", + "decorators": [] + }, + "parameters": [ + { + "$id": "8524", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1981" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8525", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store to retrieve.", + "type": { + "$id": "8526", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5829" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.getVectorStore" + }, + { + "$id": "8527", + "kind": "basic", + "name": "modifyVectorStore", + "accessibility": "public", + "apiVersions": [], + "summary": "Modifies a vector store.", + "operation": { + "$id": "8528", + "name": "modifyVectorStore", + "resourceName": "VectorStores", + "summary": "Modifies a vector store.", + "accessibility": "public", + "parameters": [ + { + "$id": "8529", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1983" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8530", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store to modify.", + "type": { + "$id": "8531", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8532", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1985" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8533", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5882" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5829" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.modifyVectorStore", + "decorators": [] + }, + "parameters": [ + { + "$id": "8534", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1987" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8535", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store to modify.", + "type": { + "$id": "8536", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8537", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5882" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8538", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1985" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5829" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.modifyVectorStore" + }, + { + "$id": "8539", + "kind": "basic", + "name": "deleteVectorStore", + "accessibility": "public", + "apiVersions": [], + "summary": "Delete a vector store.", + "operation": { + "$id": "8540", + "name": "deleteVectorStore", + "resourceName": "VectorStores", + "summary": "Delete a vector store.", + "accessibility": "public", + "parameters": [ + { + "$id": "8541", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1989" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8542", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store to delete.", + "type": { + "$id": "8543", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5889" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.deleteVectorStore", + "decorators": [] + }, + "parameters": [ + { + "$id": "8544", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1991" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8545", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store to delete.", + "type": { + "$id": "8546", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5889" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.deleteVectorStore" + }, + { + "$id": "8547", + "kind": "basic", + "name": "createVectorStoreFileBatch", + "accessibility": "public", + "apiVersions": [], + "summary": "Create a vector store file batch.", + "operation": { + "$id": "8548", + "name": "createVectorStoreFileBatch", + "resourceName": "VectorStores", + "summary": "Create a vector store file batch.", + "accessibility": "public", + "parameters": [ + { + "$id": "8549", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1993" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8550", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store for which to create a file batch.", + "type": { + "$id": "8551", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8552", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1995" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8553", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5895" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5900" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/file_batches", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.createVectorStoreFileBatch", + "decorators": [] + }, + "parameters": [ + { + "$id": "8554", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "1997" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8555", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store for which to create a file batch.", + "type": { + "$id": "8556", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8557", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5895" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8558", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1995" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5900" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.createVectorStoreFileBatch" + }, + { + "$id": "8559", + "kind": "basic", + "name": "getVectorStoreFileBatch", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves a vector store file batch.", + "operation": { + "$id": "8560", + "name": "getVectorStoreFileBatch", + "resourceName": "VectorStores", + "summary": "Retrieves a vector store file batch.", + "accessibility": "public", + "parameters": [ + { + "$id": "8561", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "1999" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8562", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file batch belongs to.", + "type": { + "$id": "8563", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8564", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the file batch being retrieved.", + "type": { + "$id": "8565", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5900" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/file_batches/{batch_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.getVectorStoreFileBatch", + "decorators": [] + }, + "parameters": [ + { + "$id": "8566", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2001" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8567", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file batch belongs to.", + "type": { + "$id": "8568", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8569", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the file batch being retrieved.", + "type": { + "$id": "8570", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5900" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.getVectorStoreFileBatch" + }, + { + "$id": "8571", + "kind": "basic", + "name": "CancelBatchFileJob", + "accessibility": "public", + "apiVersions": [], + "summary": "Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.", + "operation": { + "$id": "8572", + "name": "CancelBatchFileJob", + "resourceName": "VectorStores", + "summary": "Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.", + "accessibility": "public", + "parameters": [ + { + "$id": "8573", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2003" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8574", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file batch belongs to.", + "type": { + "$id": "8575", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8576", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the file batch to cancel.", + "type": { + "$id": "8577", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5900" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.cancelVectorStoreFileBatch", + "decorators": [] + }, + "parameters": [ + { + "$id": "8578", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2005" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8579", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file batch belongs to.", + "type": { + "$id": "8580", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8581", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the file batch to cancel.", + "type": { + "$id": "8582", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5900" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.cancelVectorStoreFileBatch" + }, + { + "$id": "8583", + "kind": "basic", + "name": "listFilesInVectorStoreBatch", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns a list of vector store files in a batch.", + "operation": { + "$id": "8584", + "name": "listFilesInVectorStoreBatch", + "resourceName": "VectorStores", + "summary": "Returns a list of vector store files in a batch.", + "accessibility": "public", + "parameters": [ + { + "$id": "8585", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2007" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8586", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file batch belongs to.", + "type": { + "$id": "8587", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8588", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the file batch that the files belong to.", + "type": { + "$id": "8589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8590", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8591", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8592", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8593", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8594", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8595", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8596", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8597", + "name": "filter", + "nameInRequest": "filter", + "doc": "Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`.", + "type": { + "$ref": "932" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5922" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/file_batches/{batch_id}/files", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.listFilesInVectorStoreBatch", + "decorators": [] + }, + "parameters": [ + { + "$id": "8598", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2009" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8599", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file batch belongs to.", + "type": { + "$id": "8600", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8601", + "name": "batch_id", + "nameInRequest": "batch_id", + "doc": "The ID of the file batch that the files belong to.", + "type": { + "$id": "8602", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8603", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8604", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8605", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8606", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8607", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8608", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8609", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8610", + "name": "filter", + "nameInRequest": "filter", + "doc": "Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`.", + "type": { + "$ref": "932" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5922" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.listFilesInVectorStoreBatch" + }, + { + "$id": "8611", + "kind": "basic", + "name": "listVectorStoreFiles", + "accessibility": "public", + "apiVersions": [], + "summary": "Returns a list of vector store files.", + "operation": { + "$id": "8612", + "name": "listVectorStoreFiles", + "resourceName": "VectorStores", + "summary": "Returns a list of vector store files.", + "accessibility": "public", + "parameters": [ + { + "$id": "8613", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2011" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8614", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the files belong to.", + "type": { + "$id": "8615", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8616", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8617", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8618", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8619", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8620", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8621", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8622", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8623", + "name": "filter", + "nameInRequest": "filter", + "doc": "Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`.", + "type": { + "$ref": "932" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5922" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/files", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.listVectorStoreFiles", + "decorators": [] + }, + "parameters": [ + { + "$id": "8624", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2013" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8625", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the files belong to.", + "type": { + "$id": "8626", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8627", + "name": "limit", + "nameInRequest": "limit", + "doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\ndefault is 20.", + "type": { + "$id": "8628", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8629", + "name": "order", + "nameInRequest": "order", + "doc": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\nfor descending order.", + "type": { + "$ref": "1" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8630", + "name": "after", + "nameInRequest": "after", + "doc": "A cursor for use in pagination. `after` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include after=obj_foo in order to fetch the next page of the list.", + "type": { + "$id": "8631", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8632", + "name": "before", + "nameInRequest": "before", + "doc": "A cursor for use in pagination. `before` is an object ID that defines your place in the list.\nFor instance, if you make a list request and receive 100 objects, ending with obj_foo, your\nsubsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "type": { + "$id": "8633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8634", + "name": "filter", + "nameInRequest": "filter", + "doc": "Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`.", + "type": { + "$ref": "932" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5922" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.listVectorStoreFiles" + }, + { + "$id": "8635", + "kind": "basic", + "name": "createVectorStoreFile", + "accessibility": "public", + "apiVersions": [], + "summary": "Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object).", + "operation": { + "$id": "8636", + "name": "createVectorStoreFile", + "resourceName": "VectorStores", + "summary": "Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object).", + "accessibility": "public", + "parameters": [ + { + "$id": "8637", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2015" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8638", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store for which to create a File.", + "type": { + "$id": "8639", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8640", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2017" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8641", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5960" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5926" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/files", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.createVectorStoreFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "8642", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2019" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8643", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store for which to create a File.", + "type": { + "$id": "8644", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8645", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "5960" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8646", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2017" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5926" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.createVectorStoreFile" + }, + { + "$id": "8647", + "kind": "basic", + "name": "GetFileAssociation", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves a vector store file.", + "operation": { + "$id": "8648", + "name": "GetFileAssociation", + "resourceName": "VectorStores", + "summary": "Retrieves a vector store file.", + "accessibility": "public", + "parameters": [ + { + "$id": "8649", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2021" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8650", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file belongs to.", + "type": { + "$id": "8651", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8652", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file being retrieved.", + "type": { + "$id": "8653", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5926" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/files/{file_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.getVectorStoreFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "8654", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2023" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8655", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file belongs to.", + "type": { + "$id": "8656", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8657", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file being retrieved.", + "type": { + "$id": "8658", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5926" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.getVectorStoreFile" + }, + { + "$id": "8659", + "kind": "basic", + "name": "RemoveFileFromStore", + "accessibility": "public", + "apiVersions": [], + "summary": "Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.", + "operation": { + "$id": "8660", + "name": "RemoveFileFromStore", + "resourceName": "VectorStores", + "summary": "Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.", + "accessibility": "public", + "parameters": [ + { + "$id": "8661", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2025" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8662", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file belongs to.", + "type": { + "$id": "8663", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8664", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to delete.", + "type": { + "$id": "8665", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5966" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/files/{file_id}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.deleteVectorStoreFile", + "decorators": [] + }, + "parameters": [ + { + "$id": "8666", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2027" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8667", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file belongs to.", + "type": { + "$id": "8668", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8669", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to delete.", + "type": { + "$id": "8670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5966" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.deleteVectorStoreFile" + }, + { + "$id": "8671", + "kind": "basic", + "name": "updateVectorStoreFileAttributes", + "accessibility": "public", + "apiVersions": [], + "summary": "Update the attributes of a vector store file.", + "operation": { + "$id": "8672", + "name": "updateVectorStoreFileAttributes", + "resourceName": "VectorStores", + "summary": "Update the attributes of a vector store file.", + "accessibility": "public", + "parameters": [ + { + "$id": "8673", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store the file being updated belongs to.", + "type": { + "$id": "8674", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8675", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to update attributes for.", + "type": { + "$id": "8676", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8677", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2029" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8678", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2031" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8679", + "name": "updateVectorStoreFileAttributesRequest", + "nameInRequest": "updateVectorStoreFileAttributesRequest", + "type": { + "$ref": "5972" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5926" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/files/{file_id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.updateVectorStoreFileAttributes", + "decorators": [] + }, + "parameters": [ + { + "$id": "8680", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store the file being updated belongs to.", + "type": { + "$id": "8681", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8682", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file to update attributes for.", + "type": { + "$id": "8683", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8684", + "name": "attributes", + "nameInRequest": "attributes", + "type": { + "$ref": "5974" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8685", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2029" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8686", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2031" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5926" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.updateVectorStoreFileAttributes" + }, + { + "$id": "8687", + "kind": "basic", + "name": "retrieveVectorStoreFileContent", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves the content of a vector store file.", + "operation": { + "$id": "8688", + "name": "retrieveVectorStoreFileContent", + "resourceName": "VectorStores", + "summary": "Retrieves the content of a vector store file.", + "accessibility": "public", + "parameters": [ + { + "$id": "8689", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file belongs to.", + "type": { + "$id": "8690", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8691", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file with content being retrieved.", + "type": { + "$id": "8692", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8693", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2033" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "5975" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/files/{file_id}/content", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.retrieveVectorStoreFileContent", + "decorators": [] + }, + "parameters": [ + { + "$id": "8694", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store that the file belongs to.", + "type": { + "$id": "8695", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8696", + "name": "file_id", + "nameInRequest": "file_id", + "doc": "The ID of the file with content being retrieved.", + "type": { + "$id": "8697", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8698", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2033" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "5975" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.retrieveVectorStoreFileContent" + }, + { + "$id": "8699", + "kind": "basic", + "name": "searchVectorStore", + "accessibility": "public", + "apiVersions": [], + "summary": "Searches a vector store for relevant chunks based on a query and file attributes filter.", + "operation": { + "$id": "8700", + "name": "searchVectorStore", + "resourceName": "VectorStores", + "summary": "Searches a vector store for relevant chunks based on a query and file attributes filter.", + "accessibility": "public", + "parameters": [ + { + "$id": "8701", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store to search.", + "type": { + "$id": "8702", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8703", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2035" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8704", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2037" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8705", + "name": "vectorStoreSearchRequest", + "nameInRequest": "vectorStoreSearchRequest", + "type": { + "$ref": "5993" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6004" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/vector_stores/{vector_store_id}/search", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.searchVectorStore", + "decorators": [] + }, + "parameters": [ + { + "$id": "8706", + "name": "vector_store_id", + "nameInRequest": "vector_store_id", + "doc": "The ID of the vector store to search.", + "type": { + "$id": "8707", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8708", + "name": "query", + "nameInRequest": "query", + "doc": "A query string for a search", + "type": { + "$ref": "5995" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8709", + "name": "rewrite_query", + "nameInRequest": "rewrite_query", + "doc": "Whether to rewrite the natural language query for vector search.", + "type": { + "$id": "8710", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8711", + "name": "max_num_results", + "nameInRequest": "max_num_results", + "doc": "The maximum number of results to return. This number should be between 1 and 50 inclusive.", + "type": { + "$id": "8712", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8713", + "name": "filters", + "nameInRequest": "filters", + "doc": "A filter to apply based on file attributes.", + "type": { + "$ref": "6002" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8714", + "name": "ranking_options", + "nameInRequest": "ranking_options", + "doc": "Ranking options for search.", + "type": { + "$ref": "5989" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8715", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2035" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8716", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2037" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6004" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.VectorStores.searchVectorStore" + } + ], + "parameters": [ + { + "$id": "8717", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8718", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8719", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.VectorStores", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8720", + "kind": "client", + "name": "Completions", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8721", + "kind": "basic", + "name": "createCompletion", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates a completion for the provided prompt and parameters.", + "operation": { + "$id": "8722", + "name": "createCompletion", + "resourceName": "Completions", + "summary": "Creates a completion for the provided prompt and parameters.", + "accessibility": "public", + "parameters": [ + { + "$id": "8723", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2039" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8724", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2041" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8725", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "6029" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6079" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/completions", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Completions.createCompletion", + "decorators": [] + }, + "parameters": [ + { + "$id": "8726", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2043" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8727", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "6029" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8728", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2041" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6079" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Completions.createCompletion" + } + ], + "parameters": [ + { + "$id": "8729", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8730", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8731", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Completions", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8732", + "kind": "client", + "name": "Models", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8733", + "kind": "basic", + "name": "listModels", + "accessibility": "public", + "apiVersions": [], + "summary": "Lists the currently available models, and provides basic information about each one such as the\nowner and availability.", + "operation": { + "$id": "8734", + "name": "listModels", + "resourceName": "Models", + "summary": "Lists the currently available models, and provides basic information about each one such as the\nowner and availability.", + "accessibility": "public", + "parameters": [ + { + "$id": "8735", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2045" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6110" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/models", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Models.listModels", + "decorators": [] + }, + "parameters": [ + { + "$id": "8736", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2047" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6110" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Models.listModels" + }, + { + "$id": "8737", + "kind": "basic", + "name": "retrieveModel", + "accessibility": "public", + "apiVersions": [], + "summary": "Retrieves a model instance, providing basic information about the model such as the owner and\npermissioning.", + "operation": { + "$id": "8738", + "name": "retrieveModel", + "resourceName": "Models", + "summary": "Retrieves a model instance, providing basic information about the model such as the owner and\npermissioning.", + "accessibility": "public", + "parameters": [ + { + "$id": "8739", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2049" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8740", + "name": "model", + "nameInRequest": "model", + "doc": "The ID of the model to use for this request.", + "type": { + "$id": "8741", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6114" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/models/{model}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Models.retrieveModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "8742", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2051" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8743", + "name": "model", + "nameInRequest": "model", + "doc": "The ID of the model to use for this request.", + "type": { + "$id": "8744", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6114" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Models.retrieveModel" + }, + { + "$id": "8745", + "kind": "basic", + "name": "deleteModel", + "accessibility": "public", + "apiVersions": [], + "summary": "Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.", + "operation": { + "$id": "8746", + "name": "deleteModel", + "resourceName": "Models", + "summary": "Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.", + "accessibility": "public", + "parameters": [ + { + "$id": "8747", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2053" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8748", + "name": "model", + "nameInRequest": "model", + "doc": "The model to delete", + "type": { + "$id": "8749", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6123" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "DELETE", + "uri": "{endpoint}", + "path": "/models/{model}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Models.deleteModel", + "decorators": [] + }, + "parameters": [ + { + "$id": "8750", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2055" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8751", + "name": "model", + "nameInRequest": "model", + "doc": "The model to delete", + "type": { + "$id": "8752", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6123" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Models.deleteModel" + } + ], + "parameters": [ + { + "$id": "8753", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8754", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8755", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Models", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8756", + "kind": "client", + "name": "Realtime", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8757", + "kind": "basic", + "name": "startRealtimeSession", + "accessibility": "public", + "apiVersions": [], + "summary": "Starts a real-time session for conversation or transcription.", + "operation": { + "$id": "8758", + "name": "startRealtimeSession", + "resourceName": "Realtime", + "summary": "Starts a real-time session for conversation or transcription.", + "accessibility": "public", + "parameters": [ + { + "$id": "8759", + "name": "openAIBeta", + "nameInRequest": "OpenAI-Beta", + "type": { + "$ref": "2057" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8760", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2059" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8761", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2061" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8762", + "name": "requestMessages", + "nameInRequest": "requestMessages", + "type": { + "$id": "8763", + "kind": "array", + "name": "ArrayRealtimeClientEvent", + "valueType": { + "$ref": "6129" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "8764", + "kind": "array", + "name": "ArrayRealtimeServerEvent", + "valueType": { + "$ref": "6359" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/realtime", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Realtime.startRealtimeSession", + "decorators": [] + }, + "parameters": [ + { + "$id": "8765", + "name": "openAIBeta", + "nameInRequest": "openAIBeta", + "type": { + "$ref": "2063" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8766", + "name": "requestMessages", + "nameInRequest": "requestMessages", + "type": { + "$ref": "8763" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8767", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2059" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8768", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2061" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "8764" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Realtime.startRealtimeSession" + }, + { + "$id": "8769", + "kind": "basic", + "name": "createEphemeralToken", + "accessibility": "public", + "apiVersions": [], + "summary": "Create an ephemeral API token for use in client-side applications with the Realtime API. Can be configured with the same session parameters as the session.update client event.\n\nIt responds with a session object, plus a client_secret key which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API.", + "operation": { + "$id": "8770", + "name": "createEphemeralToken", + "resourceName": "Realtime", + "summary": "Create an ephemeral API token for use in client-side applications with the Realtime API. Can be configured with the same session parameters as the session.update client event.\n\nIt responds with a session object, plus a client_secret key which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API.", + "accessibility": "public", + "parameters": [ + { + "$id": "8771", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2065" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8772", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2067" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8773", + "name": "request", + "nameInRequest": "request", + "type": { + "$ref": "6773" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6833" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/realtime/sessions", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Realtime.createEphemeralToken", + "decorators": [] + }, + "parameters": [ + { + "$id": "8774", + "name": "request", + "nameInRequest": "request", + "type": { + "$ref": "6773" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8775", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2065" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8776", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2067" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6833" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Realtime.createEphemeralToken" + }, + { + "$id": "8777", + "kind": "basic", + "name": "createEphemeralTranscriptionToken", + "accessibility": "public", + "apiVersions": [], + "summary": "Create an ephemeral API token for use in client-side applications with the Realtime API specifically for realtime transcriptions. Can be configured with the same session parameters as the transcription_session.update client event.\n\nIt responds with a session object, plus a client_secret key which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API.", + "operation": { + "$id": "8778", + "name": "createEphemeralTranscriptionToken", + "resourceName": "Realtime", + "summary": "Create an ephemeral API token for use in client-side applications with the Realtime API specifically for realtime transcriptions. Can be configured with the same session parameters as the transcription_session.update client event.\n\nIt responds with a session object, plus a client_secret key which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API.", + "accessibility": "public", + "parameters": [ + { + "$id": "8779", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2069" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8780", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2071" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8781", + "name": "request", + "nameInRequest": "request", + "type": { + "$ref": "6322" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6744" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/realtime/transcription_sessions", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Realtime.createEphemeralTranscriptionToken", + "decorators": [] + }, + "parameters": [ + { + "$id": "8782", + "name": "request", + "nameInRequest": "request", + "type": { + "$ref": "6322" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8783", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2069" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8784", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2071" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6744" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Realtime.createEphemeralTranscriptionToken" + } + ], + "parameters": [ + { + "$id": "8785", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8786", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8787", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Realtime", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + }, + { + "$id": "8788", + "kind": "client", + "name": "Uploads", + "namespace": "OpenAI", + "methods": [ + { + "$id": "8789", + "kind": "basic", + "name": "createUpload", + "accessibility": "public", + "apiVersions": [], + "summary": "Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 8 GB in total and expires after an hour after you create it.\n\nOnce you complete the Upload, we will create a [File](/docs/api-reference/files/object) object that contains all the parts you uploaded. This File is usable in the rest of our platform as a regular File object.\n\nFor certain `purpose`s, the correct `mime_type` must be specified. Please refer to documentation for the supported MIME types for your use case:\n- [Assistants](/docs/assistants/tools/file-search/supported-files)\n\nFor guidance on the proper filename extensions for each purpose, please follow the documentation on [creating a File](/docs/api-reference/files/create).", + "operation": { + "$id": "8790", + "name": "createUpload", + "resourceName": "Uploads", + "summary": "Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 8 GB in total and expires after an hour after you create it.\n\nOnce you complete the Upload, we will create a [File](/docs/api-reference/files/object) object that contains all the parts you uploaded. This File is usable in the rest of our platform as a regular File object.\n\nFor certain `purpose`s, the correct `mime_type` must be specified. Please refer to documentation for the supported MIME types for your use case:\n- [Assistants](/docs/assistants/tools/file-search/supported-files)\n\nFor guidance on the proper filename extensions for each purpose, please follow the documentation on [creating a File](/docs/api-reference/files/create).", + "accessibility": "public", + "parameters": [ + { + "$id": "8791", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2073" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8792", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2075" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8793", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "6880" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6888" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/uploads", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Uploads.createUpload", + "decorators": [] + }, + "parameters": [ + { + "$id": "8794", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2077" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8795", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "6880" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8796", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2075" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6888" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Uploads.createUpload" + }, + { + "$id": "8797", + "kind": "basic", + "name": "addUploadPart", + "accessibility": "public", + "apiVersions": [], + "summary": "Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload. \n\nEach Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.\n\nIt is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete).", + "operation": { + "$id": "8798", + "name": "addUploadPart", + "resourceName": "Uploads", + "summary": "Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload. \n\nEach Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.\n\nIt is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete).", + "accessibility": "public", + "parameters": [ + { + "$id": "8799", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2079" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8800", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$ref": "2081" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8801", + "name": "upload_id", + "nameInRequest": "upload_id", + "type": { + "$id": "8802", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8803", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "6907" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6910" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/uploads/{upload_id}/parts", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Uploads.addUploadPart", + "decorators": [] + }, + "parameters": [ + { + "$id": "8804", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2083" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8805", + "name": "contentType", + "nameInRequest": "contentType", + "type": { + "$ref": "2085" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8806", + "name": "upload_id", + "nameInRequest": "upload_id", + "type": { + "$id": "8807", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8808", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "6907" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6910" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Uploads.addUploadPart" + }, + { + "$id": "8809", + "kind": "basic", + "name": "completeUpload", + "accessibility": "public", + "apiVersions": [], + "summary": "Completes the [Upload](/docs/api-reference/uploads/object). \n\nWithin the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.\n\nYou can specify the order of the Parts by passing in an ordered list of the Part IDs.\n\nThe number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.", + "operation": { + "$id": "8810", + "name": "completeUpload", + "resourceName": "Uploads", + "summary": "Completes the [Upload](/docs/api-reference/uploads/object). \n\nWithin the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.\n\nYou can specify the order of the Parts by passing in an ordered list of the Part IDs.\n\nThe number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.", + "accessibility": "public", + "parameters": [ + { + "$id": "8811", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2087" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8812", + "name": "upload_id", + "nameInRequest": "upload_id", + "type": { + "$id": "8813", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8814", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2089" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8815", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "6919" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6888" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/uploads/{upload_id}/complete", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Uploads.completeUpload", + "decorators": [] + }, + "parameters": [ + { + "$id": "8816", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2091" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8817", + "name": "upload_id", + "nameInRequest": "upload_id", + "type": { + "$id": "8818", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8819", + "name": "requestBody", + "nameInRequest": "requestBody", + "type": { + "$ref": "6919" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8820", + "name": "contentType", + "nameInRequest": "contentType", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "2089" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6888" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Uploads.completeUpload" + }, + { + "$id": "8821", + "kind": "basic", + "name": "cancelUpload", + "accessibility": "public", + "apiVersions": [], + "summary": "Cancels the Upload. No Parts may be added after an Upload is cancelled.", + "operation": { + "$id": "8822", + "name": "cancelUpload", + "resourceName": "Uploads", + "summary": "Cancels the Upload. No Parts may be added after an Upload is cancelled.", + "accessibility": "public", + "parameters": [ + { + "$id": "8823", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$ref": "2093" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8824", + "name": "upload_id", + "nameInRequest": "upload_id", + "type": { + "$id": "8825", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "6888" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/uploads/{upload_id}/cancel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "OpenAI.Uploads.cancelUpload", + "decorators": [] + }, + "parameters": [ + { + "$id": "8826", + "name": "accept", + "nameInRequest": "accept", + "type": { + "$ref": "2095" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "8827", + "name": "upload_id", + "nameInRequest": "upload_id", + "type": { + "$id": "8828", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "response": { + "type": { + "$ref": "6888" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "OpenAI.Uploads.cancelUpload" + } + ], + "parameters": [ + { + "$id": "8829", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8830", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "type": { + "$id": "8831", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://api.openai.com/v1" + }, + "serverUrlTemplate": "{endpoint}" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "OpenAI.Uploads", + "apiVersions": [], + "parent": { + "$ref": "7222" + } + } + ] + } + ], + "auth": { + "apiKey": { + "name": "Authorization", + "in": "header", + "prefix": "Bearer" + } + } +}