Record Class QwenChatRequestParameters.SearchOptions
java.lang.Object
java.lang.Record
dev.langchain4j.community.model.dashscope.QwenChatRequestParameters.SearchOptions
- Record Components:
enableSource- Whether to display the searched information in the returned results. Default value is false.enableCitation- Whether to enable the [1] or [ref_1] style superscript annotation function. This function takes effect only when enable_source is true. Default value is false.citationFormat- Subscript style. Only available when enable_citation is true. Supported styles: “[1]” and “[ref_1]”. Default value is “[1]”.forcedSearch- Whether to force search to start.searchStrategy- The amount of Internet information searched. Supported values: “standard” and “pro”. Default value is “standard”.
- Enclosing class:
QwenChatRequestParameters
public static record QwenChatRequestParameters.SearchOptions(Boolean enableSource, Boolean enableCitation, String citationFormat, Boolean forcedSearch, String searchStrategy)
extends Record
The strategy for network search.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thecitationFormatrecord component.Returns the value of theenableCitationrecord component.Returns the value of theenableSourcerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforcedSearchrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesearchStrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchOptions
public SearchOptions(Boolean enableSource, Boolean enableCitation, String citationFormat, Boolean forcedSearch, String searchStrategy) Creates an instance of aSearchOptionsrecord class.- Parameters:
enableSource- the value for theenableSourcerecord componentenableCitation- the value for theenableCitationrecord componentcitationFormat- the value for thecitationFormatrecord componentforcedSearch- the value for theforcedSearchrecord componentsearchStrategy- the value for thesearchStrategyrecord component
-
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
enableSource
Returns the value of theenableSourcerecord component.- Returns:
- the value of the
enableSourcerecord component
-
enableCitation
Returns the value of theenableCitationrecord component.- Returns:
- the value of the
enableCitationrecord component
-
citationFormat
Returns the value of thecitationFormatrecord component.- Returns:
- the value of the
citationFormatrecord component
-
forcedSearch
Returns the value of theforcedSearchrecord component.- Returns:
- the value of the
forcedSearchrecord component
-
searchStrategy
Returns the value of thesearchStrategyrecord component.- Returns:
- the value of the
searchStrategyrecord component
-