Class WebSearchPreviewTool
- 
                    
                    - All Implemented Interfaces:
 
 public final class WebSearchPreviewToolThis tool searches the web for relevant results to use in a response. Learn more about the web search tool. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classWebSearchPreviewTool.BuilderA builder for WebSearchPreviewTool. public final classWebSearchPreviewTool.TypeThe type of the web search tool. One of web_search_previeworweb_search_preview_2025_03_11.public final classWebSearchPreviewTool.SearchContextSizeHigh level guidance for the amount of context window space to use for the search. One of low,medium, orhigh.mediumis the default.public final classWebSearchPreviewTool.UserLocationThe user's location. 
 - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        typefinal WebSearchPreviewTool.Type type() The type of the web search tool. One of web_search_previeworweb_search_preview_2025_03_11.
 - 
                                        searchContextSizefinal Optional<WebSearchPreviewTool.SearchContextSize> searchContextSize() High level guidance for the amount of context window space to use for the search. One of low,medium, orhigh.mediumis the default.
 - 
                                        userLocationfinal Optional<WebSearchPreviewTool.UserLocation> userLocation() The user's location. 
 - 
                                        _typefinal JsonField<WebSearchPreviewTool.Type> _type() Returns the raw JSON value of type. Unlike type, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _searchContextSizefinal JsonField<WebSearchPreviewTool.SearchContextSize> _searchContextSize() Returns the raw JSON value of searchContextSize. Unlike searchContextSize, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _userLocationfinal JsonField<WebSearchPreviewTool.UserLocation> _userLocation() Returns the raw JSON value of userLocation. Unlike userLocation, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal WebSearchPreviewTool.Builder toBuilder() 
 - 
                                        validatefinal WebSearchPreviewTool validate() 
 - 
                                        builderfinal static WebSearchPreviewTool.Builder builder() Returns a mutable builder for constructing an instance of WebSearchPreviewTool. The following fields are required: .type()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-