AgenticRetrieveStreamOutput
Events produced during a streaming retrieval.
Contents
This data type is a UNION, so only one of the following members can be specified when used or returned.
- accessDeniedException
-
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
-
The retrieval failed because of an internal error. The stream ends after this event.
Type: Exception
HTTP Status Code: 500
Required: No
- resourceNotFoundException
-
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 chunk of the generated answer. Concatenate the chunks, in the order received, to get the complete answer.
Type: AgenticRetrieveResponseEvent object
Required: No
- result
-
The final event of a successful stream: the complete answer and the context retrieved for it.
Type: AgenticRetrieveResultEvent object
Required: No
- traceEvent
-
A progress event: a planning or retrieval step started, succeeded, or failed.
Type: AgenticRetrieveTraceEvent object
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: