Class ResponsesWebSearchTool
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesTool
com.azure.ai.openai.responses.models.ResponsesWebSearchTool
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesTool>
The ResponsesWebSearchTool model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResponsesWebSearchTool class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsesWebSearchToolfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesWebSearchTool from the JsonReader.Get the searchContextSize property: The search_context_size property.getType()Get the type property: The type property.Get the userLocation property: The user_location property.setSearchContextSize(ResponsesWebSearchContextSize searchContextSize) Set the searchContextSize property: The search_context_size property.setUserLocation(ResponsesWebSearchLocation userLocation) Set the userLocation property: The user_location property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResponsesWebSearchTool
public ResponsesWebSearchTool()Creates an instance of ResponsesWebSearchTool class.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesTool- Returns:
- the type value.
-
getUserLocation
Get the userLocation property: The user_location property.- Returns:
- the userLocation value.
-
setUserLocation
Set the userLocation property: The user_location property.- Parameters:
userLocation- the userLocation value to set.- Returns:
- the ResponsesWebSearchTool object itself.
-
getSearchContextSize
Get the searchContextSize property: The search_context_size property.- Returns:
- the searchContextSize value.
-
setSearchContextSize
Set the searchContextSize property: The search_context_size property.- Parameters:
searchContextSize- the searchContextSize value to set.- Returns:
- the ResponsesWebSearchTool object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesTool>- Overrides:
toJsonin classResponsesTool- Throws:
IOException
-
fromJson
public static ResponsesWebSearchTool fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesWebSearchTool from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesWebSearchTool if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ResponsesWebSearchTool.
-