

# AgenticRetrieveResultEvent

The final event of a successful stream: the answer and the ranked retrieved context.

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

 ** retrievedContext **   <a name="context-Type-AgenticRetrieveResultEvent-retrievedContext"></a>
The ranked, structured context that the agent assembled across all iterations, without duplicates. Always present. Each entry is a graph node, a graph edge, or a document.  
Type: Array of [RetrievedContext](API_RetrievedContext.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 1000 items.  
Required: Yes

 ** answer **   <a name="context-Type-AgenticRetrieveResultEvent-answer"></a>
The synthesized natural-language answer, when one was generated.  
Type: String  
Required: No

 ** citations **   <a name="context-Type-AgenticRetrieveResultEvent-citations"></a>
Maps spans of answer to the supporting entities, when an answer was generated.  
Type: Array of [Citation](API_Citation.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 1000 items.  
Required: No

## See Also
<a name="API_AgenticRetrieveResultEvent_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/AgenticRetrieveResultEvent) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/AgenticRetrieveResultEvent) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/AgenticRetrieveResultEvent) 