Enum WebSearchOptions.SearchContextSize
- java.lang.Object
-
- java.lang.Enum<WebSearchOptions.SearchContextSize>
-
- com.oracle.bmc.generativeaiinference.model.WebSearchOptions.SearchContextSize
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<WebSearchOptions.SearchContextSize>
- Enclosing class:
- WebSearchOptions
public static enum WebSearchOptions.SearchContextSize extends Enum<WebSearchOptions.SearchContextSize> implements BmcEnum
Specifies the size of the web search context.- HIGH: Most comprehensive context, highest cost, slower response. - MEDIUM: Balanced context, cost, and latency. - LOW: Least context, lowest cost, fastest response, but potentially lower answer quality.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebSearchOptions.SearchContextSize
create(String key)
String
getValue()
static WebSearchOptions.SearchContextSize
valueOf(String name)
Returns the enum constant of this type with the specified name.static WebSearchOptions.SearchContextSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
High
public static final WebSearchOptions.SearchContextSize High
-
Medium
public static final WebSearchOptions.SearchContextSize Medium
-
Low
public static final WebSearchOptions.SearchContextSize Low
-
-
Method Detail
-
values
public static WebSearchOptions.SearchContextSize[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WebSearchOptions.SearchContextSize c : WebSearchOptions.SearchContextSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebSearchOptions.SearchContextSize valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static WebSearchOptions.SearchContextSize create(String key)
-
-