AgenticRetrieveStreamResponseOutput
The streaming output for agentic retrieval, containing results, traces, and errors.
Inheritors
Types
A chunk of the generated answer. Emitted only when generateResponse is true.
A retrieval result event containing the retrieved items.
A trace event providing visibility into the retrieval process.
Functions
Casts this AgenticRetrieveStreamResponseOutput as a ResponseEvent and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.AgenticRetrieveResponseEvent value. Throws an exception if the AgenticRetrieveStreamResponseOutput is not a ResponseEvent.
Casts this AgenticRetrieveStreamResponseOutput as a ResponseEvent and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.AgenticRetrieveResponseEvent value. Returns null if the AgenticRetrieveStreamResponseOutput is not a ResponseEvent.
Casts this AgenticRetrieveStreamResponseOutput as a Result and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.AgenticRetrieveResultEvent value. Throws an exception if the AgenticRetrieveStreamResponseOutput is not a Result.
Casts this AgenticRetrieveStreamResponseOutput as a Result and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.AgenticRetrieveResultEvent value. Returns null if the AgenticRetrieveStreamResponseOutput is not a Result.
Casts this AgenticRetrieveStreamResponseOutput as a TraceEvent and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.AgenticRetrieveTraceEvent value. Throws an exception if the AgenticRetrieveStreamResponseOutput is not a TraceEvent.
Casts this AgenticRetrieveStreamResponseOutput as a TraceEvent and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.AgenticRetrieveTraceEvent value. Returns null if the AgenticRetrieveStreamResponseOutput is not a TraceEvent.