GroundingSource class
One cited source (extraInfo.grounding.sources[] / live groundingSources[]), §2.1.
id is only reliable as the [n] marker ordinal on the live partial
shape (the kb frame's groundingSources[], where the wire sends a
numeric id equal to the marker). On the authoritative shape
(extraInfo.grounding.sources[], from history/refetch), the wire id is
an opaque sqid unrelated to the marker ordinal — marker resolution falls
back to positional pairing with GroundingInfo.citedIds in that case
(see GroundingInfo.sourceForMarker).
Constructors
-
GroundingSource({required int id, required GroundingOrigin origin, required String mediaType, required String name, String? embeddingId, String? kbId, String? dataSourceId, String? linkId, String? url, String? attachmentId, String? type, List<
String> pageNumbers = const [], int? chunkOrder, double? similarity, String? toolSessionId}) -
GroundingSource.fromMap(Map<
String, dynamic> json) -
factory
Properties
- attachmentId → String?
-
final
- chunkOrder → int?
-
final
- dataSourceId → String?
-
final
- embeddingId → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
final
- kbId → String?
-
final
- linkId → String?
-
final
- mediaType → String
-
final
- name → String
-
final
- origin → GroundingOrigin
-
final
-
pageNumbers
→ List<
String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- similarity → double?
-
final
- toolSessionId → String?
-
final
- type → String?
-
final
- url → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited