Elements class
Elements are additional message components, including inline citations
(where each citation is associated with a specific portion of the message
text) and cited_sources (which are general references used to generate the
response and are not directly linked to specific segments of the text).
Both citations and cited_sources can be provided as input when creating
or updating a message and are populated on output when reading a message.
Constructors
-
Elements({List<
Citation> ? citations, List<CitedSource> ? citedSources}) - Elements.fromJson(Map json_)
Properties
-
citations
↔ List<
Citation> ? -
A list of inline citations referenced within the message text (via ``
tags) that render as interactive hover cards.
getter/setter pair
-
citedSources
↔ List<
CitedSource> ? -
A list of sources to be displayed under the message as footer links.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited