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.
  • Constructor Details

    • SearchOptions

      public SearchOptions(Boolean enableSource, Boolean enableCitation, String citationFormat, Boolean forcedSearch, String searchStrategy)
      Creates an instance of a SearchOptions record class.
      Parameters:
      enableSource - the value for the enableSource record component
      enableCitation - the value for the enableCitation record component
      citationFormat - the value for the citationFormat record component
      forcedSearch - the value for the forcedSearch record component
      searchStrategy - the value for the searchStrategy record component
  • Method Details

    • builder

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enableSource

      public Boolean enableSource()
      Returns the value of the enableSource record component.
      Returns:
      the value of the enableSource record component
    • enableCitation

      public Boolean enableCitation()
      Returns the value of the enableCitation record component.
      Returns:
      the value of the enableCitation record component
    • citationFormat

      public String citationFormat()
      Returns the value of the citationFormat record component.
      Returns:
      the value of the citationFormat record component
    • forcedSearch

      public Boolean forcedSearch()
      Returns the value of the forcedSearch record component.
      Returns:
      the value of the forcedSearch record component
    • searchStrategy

      public String searchStrategy()
      Returns the value of the searchStrategy record component.
      Returns:
      the value of the searchStrategy record component