Skip to content

Commit e46f826

Browse files
committed
Merge branch 'upstream_main' into dependabot/uv/src/ogx_api/jsonschema-4.26.0
2 parents b72aca6 + 59be368 commit e46f826

48 files changed

Lines changed: 3795 additions & 1706 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

client-sdks/stainless/openapi.yml

Lines changed: 482 additions & 55 deletions
Large diffs are not rendered by default.

docs/docs/api-anthropic-messages/conformance.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Below is a detailed breakdown of conformance issues and missing properties for e
8383
| `requestBody.content.application/json.properties.requests.items.properties.params.properties.system` | Nullable added (Anthropic non-nullable); Union variants added: 3; Union variants removed: 2 |
8484
| `requestBody.content.application/json.properties.requests.items.properties.params.properties.thinking` | Type added: ['object']; Union variants removed: 3 |
8585
| `requestBody.content.application/json.properties.requests.items.properties.params.properties.tool_choice` | Union variants removed: 4 |
86-
| `requestBody.content.application/json.properties.requests.items.properties.params.properties.tools.items` | Type added: ['object']; Union variants removed: 16 |
86+
| `requestBody.content.application/json.properties.requests.items.properties.params.properties.tools.items` | Union variants added: 4; Union variants removed: 16 |
8787
| `responses.200.content.application/json.properties.type` | Default changed: message_batch -> None |
8888

8989
</details>
@@ -179,8 +179,8 @@ Below is a detailed breakdown of conformance issues and missing properties for e
179179
| `requestBody.content.application/json.properties.system` | Nullable added (Anthropic non-nullable); Union variants added: 3; Union variants removed: 2 |
180180
| `requestBody.content.application/json.properties.thinking` | Type added: ['object']; Union variants removed: 3 |
181181
| `requestBody.content.application/json.properties.tool_choice` | Union variants removed: 4 |
182-
| `requestBody.content.application/json.properties.tools.items` | Type added: ['object']; Union variants removed: 16 |
183-
| `responses.200.content.application/json.properties.content.items` | Union variants added: 5; Union variants removed: 12 |
182+
| `requestBody.content.application/json.properties.tools.items` | Union variants added: 4; Union variants removed: 16 |
183+
| `responses.200.content.application/json.properties.content.items` | Union variants added: 6; Union variants removed: 12 |
184184
| `responses.200.content.application/json.properties.model` | Type added: ['string']; Union variants removed: 17 |
185185
| `responses.200.content.application/json.properties.role` | Default changed: assistant -&gt; None |
186186
| `responses.200.content.application/json.properties.stop_reason` | Union variants added: 1; Union variants removed: 1 |

docs/static/anthropic-coverage.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
{
9494
"property": "POST.requestBody.content.application/json.properties.requests.items.properties.params.properties.tools.items",
9595
"details": [
96-
"Type added: ['object']",
96+
"Union variants added: 4",
9797
"Union variants removed: 16"
9898
]
9999
},
@@ -245,14 +245,14 @@
245245
{
246246
"property": "POST.requestBody.content.application/json.properties.tools.items",
247247
"details": [
248-
"Type added: ['object']",
248+
"Union variants added: 4",
249249
"Union variants removed: 16"
250250
]
251251
},
252252
{
253253
"property": "POST.responses.200.content.application/json.properties.content.items",
254254
"details": [
255-
"Union variants added: 5",
255+
"Union variants added: 6",
256256
"Union variants removed: 12"
257257
]
258258
},

docs/static/deprecated-ogx-spec.yaml

Lines changed: 217 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,24 +2090,35 @@ components:
20902090
title: OpenAIResponseOutputMessageMCPListTools
20912091
description: MCP list tools output message containing available tools from an MCP server.
20922092
OpenAIResponseOutputMessageWebSearchToolCall:
2093+
description: Web search tool call output message for OpenAI responses.
20932094
properties:
20942095
id:
2095-
type: string
20962096
title: Id
2097-
status:
20982097
type: string
2098+
status:
20992099
title: Status
2100-
type:
21012100
type: string
2101+
type:
21022102
title: Type
2103+
type: string
21032104
enum:
21042105
- web_search_call
2105-
type: object
2106+
action:
2107+
anyOf:
2108+
- $ref: '#/components/schemas/WebSearchActionSearch'
2109+
title: WebSearchActionSearch
2110+
- $ref: '#/components/schemas/WebSearchActionOpenPage'
2111+
title: WebSearchActionOpenPage
2112+
- $ref: '#/components/schemas/WebSearchActionFind'
2113+
title: WebSearchActionFind
2114+
- type: 'null'
2115+
title: WebSearchActionSearch | WebSearchActionOpenPage | WebSearchActionFind
2116+
nullable: true
21062117
required:
21072118
- id
21082119
- status
21092120
title: OpenAIResponseOutputMessageWebSearchToolCall
2110-
description: Web search tool call output message for OpenAI responses.
2121+
type: object
21112122
CreateConversationRequest:
21122123
properties:
21132124
items:
@@ -2116,8 +2127,8 @@ components:
21162127
oneOf:
21172128
- $ref: '#/components/schemas/OpenAIResponseMessage-Input'
21182129
title: OpenAIResponseMessage-Input
2119-
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
2120-
title: OpenAIResponseOutputMessageWebSearchToolCall
2130+
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Input'
2131+
title: OpenAIResponseOutputMessageWebSearchToolCall-Input
21212132
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFileSearchToolCall'
21222133
title: OpenAIResponseOutputMessageFileSearchToolCall
21232134
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFunctionToolCall'
@@ -2149,7 +2160,7 @@ components:
21492160
mcp_list_tools: '#/components/schemas/OpenAIResponseOutputMessageMCPListTools'
21502161
message: '#/components/schemas/OpenAIResponseMessage-Input'
21512162
reasoning: '#/components/schemas/OpenAIResponseOutputMessageReasoningItem'
2152-
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
2163+
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Input'
21532164
title: OpenAIResponseMessage-Input | ... (11 variants)
21542165
type: array
21552166
- type: 'null'
@@ -2242,8 +2253,8 @@ components:
22422253
oneOf:
22432254
- $ref: '#/components/schemas/OpenAIResponseMessage-Output'
22442255
title: OpenAIResponseMessage-Output
2245-
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
2246-
title: OpenAIResponseOutputMessageWebSearchToolCall
2256+
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Output'
2257+
title: OpenAIResponseOutputMessageWebSearchToolCall-Output
22472258
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFileSearchToolCall'
22482259
title: OpenAIResponseOutputMessageFileSearchToolCall
22492260
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFunctionToolCall'
@@ -2275,7 +2286,7 @@ components:
22752286
mcp_list_tools: '#/components/schemas/OpenAIResponseOutputMessageMCPListTools'
22762287
message: '#/components/schemas/OpenAIResponseMessage-Output'
22772288
reasoning: '#/components/schemas/OpenAIResponseOutputMessageReasoningItem'
2278-
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
2289+
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Output'
22792290
title: OpenAIResponseMessage-Output | ... (11 variants)
22802291
type: array
22812292
title: Data
@@ -2309,8 +2320,8 @@ components:
23092320
oneOf:
23102321
- $ref: '#/components/schemas/OpenAIResponseMessage-Input'
23112322
title: OpenAIResponseMessage-Input
2312-
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
2313-
title: OpenAIResponseOutputMessageWebSearchToolCall
2323+
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Input'
2324+
title: OpenAIResponseOutputMessageWebSearchToolCall-Input
23142325
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFileSearchToolCall'
23152326
title: OpenAIResponseOutputMessageFileSearchToolCall
23162327
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFunctionToolCall'
@@ -2342,7 +2353,7 @@ components:
23422353
mcp_list_tools: '#/components/schemas/OpenAIResponseOutputMessageMCPListTools'
23432354
message: '#/components/schemas/OpenAIResponseMessage-Input'
23442355
reasoning: '#/components/schemas/OpenAIResponseOutputMessageReasoningItem'
2345-
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
2356+
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Input'
23462357
title: OpenAIResponseMessage-Input | ... (11 variants)
23472358
type: array
23482359
maxItems: 20
@@ -3143,9 +3154,23 @@ components:
31433154
search_context_size:
31443155
anyOf:
31453156
- type: string
3146-
pattern: ^low|medium|high$
3157+
enum:
3158+
- low
3159+
- medium
3160+
- high
3161+
- type: 'null'
3162+
filters:
3163+
anyOf:
3164+
- $ref: '#/components/schemas/WebSearchFilters'
3165+
title: WebSearchFilters
31473166
- type: 'null'
3148-
default: medium
3167+
title: WebSearchFilters
3168+
user_location:
3169+
anyOf:
3170+
- $ref: '#/components/schemas/WebSearchUserLocation'
3171+
title: WebSearchUserLocation
3172+
- type: 'null'
3173+
title: WebSearchUserLocation
31493174
type: object
31503175
title: OpenAIResponseInputToolWebSearch
31513176
description: Web search tool configuration for OpenAI response inputs.
@@ -7516,6 +7541,64 @@ components:
75167541
- text
75177542
title: OpenAIResponseOutputMessageReasoningSummary
75187543
description: A summary of reasoning output from the model.
7544+
OpenAIResponseOutputMessageWebSearchToolCall-Input:
7545+
properties:
7546+
id:
7547+
type: string
7548+
title: Id
7549+
status:
7550+
type: string
7551+
title: Status
7552+
type:
7553+
type: string
7554+
title: Type
7555+
enum:
7556+
- web_search_call
7557+
action:
7558+
anyOf:
7559+
- $ref: '#/components/schemas/WebSearchActionSearch'
7560+
title: WebSearchActionSearch
7561+
- $ref: '#/components/schemas/WebSearchActionOpenPage'
7562+
title: WebSearchActionOpenPage
7563+
- $ref: '#/components/schemas/WebSearchActionFind'
7564+
title: WebSearchActionFind
7565+
- type: 'null'
7566+
title: WebSearchActionSearch | WebSearchActionOpenPage | WebSearchActionFind
7567+
type: object
7568+
required:
7569+
- id
7570+
- status
7571+
title: OpenAIResponseOutputMessageWebSearchToolCall
7572+
description: Web search tool call output message for OpenAI responses.
7573+
OpenAIResponseOutputMessageWebSearchToolCall-Output:
7574+
properties:
7575+
id:
7576+
type: string
7577+
title: Id
7578+
status:
7579+
type: string
7580+
title: Status
7581+
type:
7582+
type: string
7583+
title: Type
7584+
enum:
7585+
- web_search_call
7586+
action:
7587+
anyOf:
7588+
- $ref: '#/components/schemas/WebSearchActionSearch'
7589+
title: WebSearchActionSearch
7590+
- $ref: '#/components/schemas/WebSearchActionOpenPage'
7591+
title: WebSearchActionOpenPage
7592+
- $ref: '#/components/schemas/WebSearchActionFind'
7593+
title: WebSearchActionFind
7594+
- type: 'null'
7595+
title: WebSearchActionSearch | WebSearchActionOpenPage | WebSearchActionFind
7596+
type: object
7597+
required:
7598+
- id
7599+
- status
7600+
title: OpenAIResponseOutputMessageWebSearchToolCall
7601+
description: Web search tool call output message for OpenAI responses.
75197602
OpenAIResponseReasoning:
75207603
properties:
75217604
effort:
@@ -8037,6 +8120,118 @@ components:
80378120
- file_id
80388121
title: VectorStoreFileBatchFileEntry
80398122
description: A file entry for creating a vector store file batch with per-file options.
8123+
WebSearchActionFind:
8124+
properties:
8125+
type:
8126+
type: string
8127+
title: Type
8128+
enum:
8129+
- find_in_page
8130+
url:
8131+
type: string
8132+
title: Url
8133+
pattern:
8134+
type: string
8135+
title: Pattern
8136+
type: object
8137+
required:
8138+
- url
8139+
- pattern
8140+
title: WebSearchActionFind
8141+
description: 'Web search action: searches for a pattern within a loaded page.'
8142+
WebSearchActionOpenPage:
8143+
properties:
8144+
type:
8145+
type: string
8146+
title: Type
8147+
enum:
8148+
- open_page
8149+
url:
8150+
anyOf:
8151+
- type: string
8152+
- type: 'null'
8153+
type: object
8154+
title: WebSearchActionOpenPage
8155+
description: 'Web search action: opens a specific URL from search results.'
8156+
WebSearchActionSearch:
8157+
properties:
8158+
type:
8159+
type: string
8160+
title: Type
8161+
enum:
8162+
- search
8163+
query:
8164+
type: string
8165+
title: Query
8166+
queries:
8167+
anyOf:
8168+
- items:
8169+
type: string
8170+
type: array
8171+
- type: 'null'
8172+
sources:
8173+
anyOf:
8174+
- items:
8175+
$ref: '#/components/schemas/WebSearchSource'
8176+
type: array
8177+
- type: 'null'
8178+
type: object
8179+
required:
8180+
- query
8181+
title: WebSearchActionSearch
8182+
description: 'Web search action: performs a search query.'
8183+
WebSearchFilters:
8184+
properties:
8185+
allowed_domains:
8186+
anyOf:
8187+
- items:
8188+
type: string
8189+
type: array
8190+
- type: 'null'
8191+
type: object
8192+
title: WebSearchFilters
8193+
description: Domain filters for web search results.
8194+
WebSearchSource:
8195+
properties:
8196+
type:
8197+
type: string
8198+
title: Type
8199+
enum:
8200+
- url
8201+
url:
8202+
type: string
8203+
title: Url
8204+
type: object
8205+
required:
8206+
- url
8207+
title: WebSearchSource
8208+
description: A source URL returned by a web search action.
8209+
WebSearchUserLocation:
8210+
properties:
8211+
type:
8212+
type: string
8213+
title: Type
8214+
enum:
8215+
- approximate
8216+
city:
8217+
anyOf:
8218+
- type: string
8219+
- type: 'null'
8220+
country:
8221+
anyOf:
8222+
- type: string
8223+
- type: 'null'
8224+
region:
8225+
anyOf:
8226+
- type: string
8227+
- type: 'null'
8228+
timezone:
8229+
anyOf:
8230+
- type: string
8231+
- type: 'null'
8232+
type: object
8233+
title: WebSearchUserLocation
8234+
description: Approximate user location to refine web search results.
80408235
_URLOrData:
80418236
properties:
80428237
url:
@@ -10075,8 +10270,8 @@ components:
1007510270
- oneOf:
1007610271
- $ref: '#/components/schemas/OpenAIResponseMessage-Output'
1007710272
title: OpenAIResponseMessage-Output
10078-
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
10079-
title: OpenAIResponseOutputMessageWebSearchToolCall
10273+
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Output'
10274+
title: OpenAIResponseOutputMessageWebSearchToolCall-Output
1008010275
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFileSearchToolCall'
1008110276
title: OpenAIResponseOutputMessageFileSearchToolCall
1008210277
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFunctionToolCall'
@@ -10099,7 +10294,7 @@ components:
1009910294
mcp_list_tools: '#/components/schemas/OpenAIResponseOutputMessageMCPListTools'
1010010295
message: '#/components/schemas/OpenAIResponseMessage-Output'
1010110296
reasoning: '#/components/schemas/OpenAIResponseOutputMessageReasoningItem'
10102-
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
10297+
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Output'
1010310298
x-stainless-naming: OpenAIResponseMessageOutputOneOf
1010410299
title: OpenAIResponseMessage-Output | ... (8 variants)
1010510300
- $ref: '#/components/schemas/OpenAIResponseInputFunctionToolCallOutput'
@@ -10114,8 +10309,8 @@ components:
1011410309
oneOf:
1011510310
- $ref: '#/components/schemas/OpenAIResponseMessage-Output'
1011610311
title: OpenAIResponseMessage-Output
10117-
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
10118-
title: OpenAIResponseOutputMessageWebSearchToolCall
10312+
- $ref: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Output'
10313+
title: OpenAIResponseOutputMessageWebSearchToolCall-Output
1011910314
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFileSearchToolCall'
1012010315
title: OpenAIResponseOutputMessageFileSearchToolCall
1012110316
- $ref: '#/components/schemas/OpenAIResponseOutputMessageFunctionToolCall'
@@ -10138,7 +10333,7 @@ components:
1013810333
mcp_list_tools: '#/components/schemas/OpenAIResponseOutputMessageMCPListTools'
1013910334
message: '#/components/schemas/OpenAIResponseMessage-Output'
1014010335
reasoning: '#/components/schemas/OpenAIResponseOutputMessageReasoningItem'
10141-
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall'
10336+
web_search_call: '#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall-Output'
1014210337
x-stainless-naming: OpenAIResponseOutputItem
1014310338
title: OpenAIResponseMessage-Output | ... (8 variants)
1014410339
ChatCompletionMessageToolCall:

0 commit comments

Comments
 (0)