Skip to content

Commit 502b9f1

Browse files
chore(api): spec updates
1 parent b5be231 commit 502b9f1

2 files changed

Lines changed: 6 additions & 28 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-3d649a27af095557c5d57e31d6e8ab9deaac471b717703d8bb6700d93ade58f6.yml
3-
openapi_spec_hash: 97dd09750df553d4bed81692b7c17945
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-885805e62515d6587390efa80438fb10269cb8bf7c4b73ee8043afbdc6010319.yml
3+
openapi_spec_hash: 2f3ce77b23ff5b6365e2258fb2b29ad2
44
config_hash: 5f6ee0e4e7983e97121e1d40fd0eecda

betasessionevent.go

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,14 @@ type BetaManagedAgentsAgentMCPToolResultEventContentUnion struct {
212212
Citations BetaManagedAgentsSearchResultCitations `json:"citations"`
213213
// This field is from variant [BetaManagedAgentsSearchResultBlock].
214214
Content []BetaManagedAgentsSearchResultContent `json:"content"`
215-
// This field is from variant [BetaManagedAgentsSearchResultBlock].
216-
ToolUseID string `json:"tool_use_id"`
217-
JSON struct {
215+
JSON struct {
218216
Text respjson.Field
219217
Type respjson.Field
220218
Source respjson.Field
221219
Context respjson.Field
222220
Title respjson.Field
223221
Citations respjson.Field
224222
Content respjson.Field
225-
ToolUseID respjson.Field
226223
raw string
227224
} `json:"-"`
228225
}
@@ -854,17 +851,14 @@ type BetaManagedAgentsAgentToolResultEventContentUnion struct {
854851
Citations BetaManagedAgentsSearchResultCitations `json:"citations"`
855852
// This field is from variant [BetaManagedAgentsSearchResultBlock].
856853
Content []BetaManagedAgentsSearchResultContent `json:"content"`
857-
// This field is from variant [BetaManagedAgentsSearchResultBlock].
858-
ToolUseID string `json:"tool_use_id"`
859-
JSON struct {
854+
JSON struct {
860855
Text respjson.Field
861856
Type respjson.Field
862857
Source respjson.Field
863858
Context respjson.Field
864859
Title respjson.Field
865860
Citations respjson.Field
866861
Content respjson.Field
867-
ToolUseID respjson.Field
868862
raw string
869863
} `json:"-"`
870864
}
@@ -2781,8 +2775,6 @@ type BetaManagedAgentsSearchResultBlock struct {
27812775
Source string `json:"source" api:"required"`
27822776
// The title of the search result.
27832777
Title string `json:"title" api:"required"`
2784-
// The ID of the tool use that produced this search result.
2785-
ToolUseID string `json:"tool_use_id" api:"required"`
27862778
// Any of "search_result".
27872779
Type BetaManagedAgentsSearchResultBlockType `json:"type" api:"required"`
27882780
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
@@ -2791,7 +2783,6 @@ type BetaManagedAgentsSearchResultBlock struct {
27912783
Content respjson.Field
27922784
Source respjson.Field
27932785
Title respjson.Field
2794-
ToolUseID respjson.Field
27952786
Type respjson.Field
27962787
ExtraFields map[string]respjson.Field
27972788
raw string
@@ -2822,7 +2813,7 @@ const (
28222813

28232814
// A block containing a web search result.
28242815
//
2825-
// The properties Citations, Content, Source, Title, ToolUseID, Type are required.
2816+
// The properties Citations, Content, Source, Title, Type are required.
28262817
type BetaManagedAgentsSearchResultBlockParam struct {
28272818
// Citation settings for a search result.
28282819
Citations BetaManagedAgentsSearchResultCitationsParam `json:"citations,omitzero" api:"required"`
@@ -2832,8 +2823,6 @@ type BetaManagedAgentsSearchResultBlockParam struct {
28322823
Source string `json:"source" api:"required"`
28332824
// The title of the search result.
28342825
Title string `json:"title" api:"required"`
2835-
// The ID of the tool use that produced this search result.
2836-
ToolUseID string `json:"tool_use_id" api:"required"`
28372826
// Any of "search_result".
28382827
Type BetaManagedAgentsSearchResultBlockType `json:"type,omitzero" api:"required"`
28392828
paramObj
@@ -5602,17 +5591,14 @@ type BetaManagedAgentsUserCustomToolResultEventContentUnion struct {
56025591
Citations BetaManagedAgentsSearchResultCitations `json:"citations"`
56035592
// This field is from variant [BetaManagedAgentsSearchResultBlock].
56045593
Content []BetaManagedAgentsSearchResultContent `json:"content"`
5605-
// This field is from variant [BetaManagedAgentsSearchResultBlock].
5606-
ToolUseID string `json:"tool_use_id"`
5607-
JSON struct {
5594+
JSON struct {
56085595
Text respjson.Field
56095596
Type respjson.Field
56105597
Source respjson.Field
56115598
Context respjson.Field
56125599
Title respjson.Field
56135600
Citations respjson.Field
56145601
Content respjson.Field
5615-
ToolUseID respjson.Field
56165602
raw string
56175603
} `json:"-"`
56185604
}
@@ -5810,14 +5796,6 @@ func (u BetaManagedAgentsUserCustomToolResultEventParamsContentUnion) GetContent
58105796
return nil
58115797
}
58125798

5813-
// Returns a pointer to the underlying variant's property, if present.
5814-
func (u BetaManagedAgentsUserCustomToolResultEventParamsContentUnion) GetToolUseID() *string {
5815-
if vt := u.OfSearchResult; vt != nil {
5816-
return &vt.ToolUseID
5817-
}
5818-
return nil
5819-
}
5820-
58215799
// Returns a pointer to the underlying variant's property, if present.
58225800
func (u BetaManagedAgentsUserCustomToolResultEventParamsContentUnion) GetType() *string {
58235801
if vt := u.OfText; vt != nil {

0 commit comments

Comments
 (0)