Skip to content

Commit 66688d6

Browse files
feat(api): add incomplete web search call status constants (#877)
## Summary Web-search calls expose named constants for the incomplete status. ## Changes - Add incomplete status constants for stable and beta web-search calls. Co-authored-by: markstuart-oai <323302876+markstuart-oai@users.noreply.github.com>
1 parent a605079 commit 66688d6

4 files changed

Lines changed: 30 additions & 22 deletions

File tree

.castiron.stats.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
schema_version: 1
2-
generation_id: 1387c493-862c-4677-b9e8-740486503ad5
3-
openapi_spec_hash: 31ce930d0bb93c8c09944ca9f79407b5
4-
openapi_transformed_spec_hash: c534613fdbcd88ff44bf4c87957de72b
2+
generation_id: 290d91d6-1d00-4fe4-8aba-7dc84396394f
3+
openapi_spec_hash: fcdb9c99a509f5ea8b90d7abbf1dab2f
4+
openapi_transformed_spec_hash: dd244f7dd3ab9d18dc2c34970a39505f
55
config_hash: 81fd1039eb373628d87269f065d30a69
6-
codegen_sha: 08af9975a70d5a8c1db5e9de2ec5e20a46130816
7-
codegen_hash: eec1f8664961ea220614bd5870d0223e4c91737a0ab45e2d5e908690031f6ecc
8-
public_codegen_sha: 374b6e57ae267669b80ae7ab058febeb8b9c7414
6+
codegen_sha: 6515e0774438e41b3fbb6f207c174c6df66121ca
7+
codegen_hash: 7649516274443b076e79d56a45c343bbda744559d1b30e450616332ee3780166
8+
public_codegen_sha: e50d01e1cdd422d908c84dff2914399fafcc7dcc

api_reference/openapi.transformed.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61056,14 +61056,9 @@ components:
6105661056
The type of the web search tool call. Always `web_search_call`.
6105761057
x-stainless-const: true
6105861058
status:
61059-
type: string
6106061059
description: |
6106161060
The status of the web search tool call.
61062-
enum:
61063-
- in_progress
61064-
- searching
61065-
- completed
61066-
- failed
61061+
$ref: '#/components/schemas/WebSearchCallStatus'
6106761062
action:
6106861063
type: object
6106961064
description: |
@@ -62917,6 +62912,14 @@ components:
6291762912
- in_progress
6291862913
- completed
6291962914
- incomplete
62915+
WebSearchCallStatus:
62916+
type: string
62917+
enum:
62918+
- in_progress
62919+
- searching
62920+
- completed
62921+
- failed
62922+
- incomplete
6292062923
ClickButtonType:
6292162924
type: string
6292262925
enum:
@@ -72387,14 +72390,9 @@ components:
7238772390
The type of the web search tool call. Always `web_search_call`.
7238872391
x-stainless-const: true
7238972392
status:
72390-
type: string
7239172393
description: |
7239272394
The status of the web search tool call.
72393-
enum:
72394-
- in_progress
72395-
- searching
72396-
- completed
72397-
- failed
72395+
$ref: '#/components/schemas/BetaWebSearchCallStatus'
7239872396
action:
7239972397
type: object
7240072398
description: |
@@ -72514,6 +72512,14 @@ components:
7251472512
- url
7251572513
required:
7251672514
- type
72515+
BetaWebSearchCallStatus:
72516+
type: string
72517+
enum:
72518+
- in_progress
72519+
- searching
72520+
- completed
72521+
- failed
72522+
- incomplete
7251772523
BetaComputerCallOutputItemParam:
7251872524
properties:
7251972525
agent:

betaresponse.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11792,7 +11792,7 @@ type BetaResponseFunctionWebSearch struct {
1179211792
Action BetaResponseFunctionWebSearchActionUnion `json:"action" api:"required"`
1179311793
// The status of the web search tool call.
1179411794
//
11795-
// Any of "in_progress", "searching", "completed", "failed".
11795+
// Any of "in_progress", "searching", "completed", "failed", "incomplete".
1179611796
Status BetaResponseFunctionWebSearchStatus `json:"status" api:"required"`
1179711797
// The type of the web search tool call. Always `web_search_call`.
1179811798
Type constant.WebSearchCall `json:"type" default:"web_search_call"`
@@ -12015,6 +12015,7 @@ const (
1201512015
BetaResponseFunctionWebSearchStatusSearching BetaResponseFunctionWebSearchStatus = "searching"
1201612016
BetaResponseFunctionWebSearchStatusCompleted BetaResponseFunctionWebSearchStatus = "completed"
1201712017
BetaResponseFunctionWebSearchStatusFailed BetaResponseFunctionWebSearchStatus = "failed"
12018+
BetaResponseFunctionWebSearchStatusIncomplete BetaResponseFunctionWebSearchStatus = "incomplete"
1201812019
)
1201912020

1202012021
// The agent that produced this item.
@@ -12048,7 +12049,7 @@ type BetaResponseFunctionWebSearchParam struct {
1204812049
Action BetaResponseFunctionWebSearchActionUnionParam `json:"action,omitzero" api:"required"`
1204912050
// The status of the web search tool call.
1205012051
//
12051-
// Any of "in_progress", "searching", "completed", "failed".
12052+
// Any of "in_progress", "searching", "completed", "failed", "incomplete".
1205212053
Status BetaResponseFunctionWebSearchStatus `json:"status,omitzero" api:"required"`
1205312054
// The agent that produced this item.
1205412055
Agent BetaResponseFunctionWebSearchAgentParam `json:"agent,omitzero"`

responses/response.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10586,7 +10586,7 @@ type ResponseFunctionWebSearch struct {
1058610586
Action ResponseFunctionWebSearchActionUnion `json:"action" api:"required"`
1058710587
// The status of the web search tool call.
1058810588
//
10589-
// Any of "in_progress", "searching", "completed", "failed".
10589+
// Any of "in_progress", "searching", "completed", "failed", "incomplete".
1059010590
Status ResponseFunctionWebSearchStatus `json:"status" api:"required"`
1059110591
// The type of the web search tool call. Always `web_search_call`.
1059210592
Type constant.WebSearchCall `json:"type" default:"web_search_call"`
@@ -10808,6 +10808,7 @@ const (
1080810808
ResponseFunctionWebSearchStatusSearching ResponseFunctionWebSearchStatus = "searching"
1080910809
ResponseFunctionWebSearchStatusCompleted ResponseFunctionWebSearchStatus = "completed"
1081010810
ResponseFunctionWebSearchStatusFailed ResponseFunctionWebSearchStatus = "failed"
10811+
ResponseFunctionWebSearchStatusIncomplete ResponseFunctionWebSearchStatus = "incomplete"
1081110812
)
1081210813

1081310814
// The results of a web search tool call. See the
@@ -10823,7 +10824,7 @@ type ResponseFunctionWebSearchParam struct {
1082310824
Action ResponseFunctionWebSearchActionUnionParam `json:"action,omitzero" api:"required"`
1082410825
// The status of the web search tool call.
1082510826
//
10826-
// Any of "in_progress", "searching", "completed", "failed".
10827+
// Any of "in_progress", "searching", "completed", "failed", "incomplete".
1082710828
Status ResponseFunctionWebSearchStatus `json:"status,omitzero" api:"required"`
1082810829
// The type of the web search tool call. Always `web_search_call`.
1082910830
//

0 commit comments

Comments
 (0)