Class BingGroundingSearchConfiguration
java.lang.Object
com.azure.ai.agents.persistent.models.BingGroundingSearchConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BingGroundingSearchConfiguration>
public final class BingGroundingSearchConfiguration
extends Object
implements com.azure.json.JsonSerializable<BingGroundingSearchConfiguration>
Search configuration for Bing Grounding.
-
Constructor Summary
ConstructorsConstructorDescriptionBingGroundingSearchConfiguration(String connectionId) Creates an instance of BingGroundingSearchConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BingGroundingSearchConfiguration from the JsonReader.Get the connectionId property: Connection id for grounding with bing search.getCount()Get the count property: The number of search results to return in the bing api response.Get the freshness property: Filter search results by a specific time range.Get the market property: The market where the results come from.Get the setLang property: The language to use for user interface strings when calling Bing API.Set the count property: The number of search results to return in the bing api response.setFreshness(String freshness) Set the freshness property: Filter search results by a specific time range.Set the market property: The market where the results come from.setSetLang(String setLang) Set the setLang property: The language to use for user interface strings when calling Bing API.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
-
BingGroundingSearchConfiguration
Creates an instance of BingGroundingSearchConfiguration class.- Parameters:
connectionId- the connectionId value to set.
-
-
Method Details
-
getConnectionId
Get the connectionId property: Connection id for grounding with bing search.- Returns:
- the connectionId value.
-
getMarket
Get the market property: The market where the results come from.- Returns:
- the market value.
-
setMarket
Set the market property: The market where the results come from.- Parameters:
market- the market value to set.- Returns:
- the BingGroundingSearchConfiguration object itself.
-
getSetLang
Get the setLang property: The language to use for user interface strings when calling Bing API.- Returns:
- the setLang value.
-
setSetLang
Set the setLang property: The language to use for user interface strings when calling Bing API.- Parameters:
setLang- the setLang value to set.- Returns:
- the BingGroundingSearchConfiguration object itself.
-
getCount
Get the count property: The number of search results to return in the bing api response.- Returns:
- the count value.
-
setCount
Set the count property: The number of search results to return in the bing api response.- Parameters:
count- the count value to set.- Returns:
- the BingGroundingSearchConfiguration object itself.
-
getFreshness
Get the freshness property: Filter search results by a specific time range. Accepted values: https://learn.microsoft.com/bing/search-apis/bing-web-search/reference/query-parameters.- Returns:
- the freshness value.
-
setFreshness
Set the freshness property: Filter search results by a specific time range. Accepted values: https://learn.microsoft.com/bing/search-apis/bing-web-search/reference/query-parameters.- Parameters:
freshness- the freshness value to set.- Returns:
- the BingGroundingSearchConfiguration object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BingGroundingSearchConfiguration>- Throws:
IOException
-
fromJson
public static BingGroundingSearchConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BingGroundingSearchConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BingGroundingSearchConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BingGroundingSearchConfiguration.
-