

# RetrievedContext

One entity in the context that AgenticRetrieveStream returns: a graph node, a graph edge, or a document.

## Contents
<a name="API_RetrievedContext_Contents"></a>

 ** entityType **   <a name="context-Type-RetrievedContext-entityType"></a>
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 | DOCUMENT`   
Required: Yes

 ** content **   <a name="context-Type-RetrievedContext-content"></a>
The retrieved content of the entity.  
Type: [RetrievedContextContent](API_RetrievedContextContent.md) object  
Required: No

 ** documentId **   <a name="context-Type-RetrievedContext-documentId"></a>
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 **   <a name="context-Type-RetrievedContext-edgeId"></a>
Identifier of the edge. Set when this result is an edge (one of nodeId, edgeId, or documentId).  
Type: [EdgeIdentifier](API_EdgeIdentifier.md) object  
Required: No

 ** nodeId **   <a name="context-Type-RetrievedContext-nodeId"></a>
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 **   <a name="context-Type-RetrievedContext-properties"></a>
Arbitrary key-value properties stored on the entity.  
Type: String to [AnyValue](API_AnyValue.md) 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 **   <a name="context-Type-RetrievedContext-summary"></a>
Human-readable description or summary of the entity.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Required: No

## See Also
<a name="API_RetrievedContext_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/RetrievedContext) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/RetrievedContext) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/RetrievedContext) 