

# AgenticRetrieveStreamOutput

Events produced during a streaming retrieval.

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

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** accessDeniedException **   <a name="context-Type-AgenticRetrieveStreamOutput-accessDeniedException"></a>
You don't have sufficient access to perform this operation. The stream ends after this event.  
Type: Exception  
HTTP Status Code: 403  
Required: No

 ** internalServerException **   <a name="context-Type-AgenticRetrieveStreamOutput-internalServerException"></a>
The retrieval failed because of an internal error. The stream ends after this event.  
Type: Exception  
HTTP Status Code: 500  
Required: No

 ** resourceNotFoundException **   <a name="context-Type-AgenticRetrieveStreamOutput-resourceNotFoundException"></a>
A resource that the retrieval needs was not found. The stream ends after this event.  
Type: Exception  
HTTP Status Code: 404  
Required: No

 ** responseEvent **   <a name="context-Type-AgenticRetrieveStreamOutput-responseEvent"></a>
A chunk of the generated answer. Concatenate the chunks, in the order received, to get the complete answer.  
Type: [AgenticRetrieveResponseEvent](API_AgenticRetrieveResponseEvent.md) object  
Required: No

 ** result **   <a name="context-Type-AgenticRetrieveStreamOutput-result"></a>
The final event of a successful stream: the complete answer and the context retrieved for it.  
Type: [AgenticRetrieveResultEvent](API_AgenticRetrieveResultEvent.md) object  
Required: No

 ** traceEvent **   <a name="context-Type-AgenticRetrieveStreamOutput-traceEvent"></a>
A progress event: a planning or retrieval step started, succeeded, or failed.  
Type: [AgenticRetrieveTraceEvent](API_AgenticRetrieveTraceEvent.md) object  
Required: No

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