@@ -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.
28262817type 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.
58225800func (u BetaManagedAgentsUserCustomToolResultEventParamsContentUnion ) GetType () * string {
58235801 if vt := u .OfText ; vt != nil {
0 commit comments