RetrievedContext
One entity in the context that AgenticRetrieveStream returns: a graph node, a graph edge, or a document.
Contents
- entityType
-
Specifies whether this result is a node, an edge, or a document. Valid values:
-
NODE- The result is a node. -
EDGE- The result is an edge. -
DOCUMENT- The result is a document.
Type: String
Valid Values:
NODE | EDGE | DOCUMENTRequired: Yes
-
- content
-
The retrieved content of the entity.
Type: RetrievedContextContent object
Required: No
- documentId
-
Identifier of the document. Set when this result is a document (one of nodeId, edgeId, or documentId).
Type: String
Length Constraints: Minimum length of 1.
Required: No
- edgeId
-
Identifier of the edge. Set when this result is an edge (one of nodeId, edgeId, or documentId).
Type: EdgeIdentifier object
Required: No
- nodeId
-
Identifier of the node. Set when this result is a node (one of nodeId, edgeId, or documentId).
Type: String
Length Constraints: Minimum length of 0. Maximum length of 2048.
Pattern:
[\w\-\.#:@/%~]+Required: No
- properties
-
Arbitrary key-value properties stored on the entity.
Type: String to AnyValue object map
Map Entries: Minimum number of 0 items. Maximum number of 50 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Required: No
- summary
-
Human-readable description or summary of the entity.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1024.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: