AgenticRetrieveResultEvent
The final event of a successful stream: the answer and the ranked retrieved context.
Contents
- retrievedContext
-
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 objects
Array Members: Minimum number of 0 items. Maximum number of 1000 items.
Required: Yes
- answer
-
The synthesized natural-language answer, when one was generated.
Type: String
Required: No
- citations
-
Maps spans of answer to the supporting entities, when an answer was generated.
Type: Array of Citation objects
Array Members: Minimum number of 0 items. Maximum number of 1000 items.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: