ResponseStream

sealed class ResponseStream

Contains the response, citation, and trace from the SiteWise Assistant.

Inheritors

Types

Link copied to clipboard
data class Output(val value: InvocationOutput) : ResponseStream

Contains the SiteWise Assistant's response.

Link copied to clipboard
Link copied to clipboard
data class Trace(val value: Trace) : ResponseStream

Contains tracing information of the SiteWise Assistant's reasoning and data access.

Functions

Link copied to clipboard

Casts this ResponseStream as a Output and retrieves its aws.sdk.kotlin.services.iotsitewise.model.InvocationOutput value. Throws an exception if the ResponseStream is not a Output.

Link copied to clipboard
Link copied to clipboard
fun asTrace(): Trace

Casts this ResponseStream as a Trace and retrieves its aws.sdk.kotlin.services.iotsitewise.model.Trace value. Throws an exception if the ResponseStream is not a Trace.

Link copied to clipboard

Casts this ResponseStream as a Trace and retrieves its aws.sdk.kotlin.services.iotsitewise.model.Trace value. Returns null if the ResponseStream is not a Trace.