Record Class QwenChatResponseMetadata.SearchResult
java.lang.Object
java.lang.Record
dev.langchain4j.community.model.dashscope.QwenChatResponseMetadata.SearchResult
- Record Components:
siteName- the name of the website from which the search results cameicon- the URL of the icon from the source website, or an empty string if there is no iconindex- the sequence number of the search result, indicating the index of the search result in search_resultstitle- the title of the search resulturl- the URL of the search result
- Enclosing class:
QwenChatResponseMetadata
public static record QwenChatResponseMetadata.SearchResult(String siteName, String icon, Integer index, String title, String url)
extends Record
Results from online searches.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.index()Returns the value of theindexrecord component.siteName()Returns the value of thesiteNamerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
SearchResult
Creates an instance of aSearchResultrecord class.
-
-
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). -
siteName
Returns the value of thesiteNamerecord component.- Returns:
- the value of the
siteNamerecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-