InvokeHarnessStreamOutput
The streaming events returned by a harness invocation.
Inheritors
Types
A delta update to the current content block.
Indicates the start of a new content block.
Indicates the end of the current content block.
Indicates the start of a new message from the agent.
Indicates the end of the current message.
Token usage and latency metrics for the invocation.
Functions
Casts this InvokeHarnessStreamOutput as a ContentBlockDelta and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessContentBlockDeltaEvent value. Throws an exception if the InvokeHarnessStreamOutput is not a ContentBlockDelta.
Casts this InvokeHarnessStreamOutput as a ContentBlockDelta and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessContentBlockDeltaEvent value. Returns null if the InvokeHarnessStreamOutput is not a ContentBlockDelta.
Casts this InvokeHarnessStreamOutput as a ContentBlockStart and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessContentBlockStartEvent value. Throws an exception if the InvokeHarnessStreamOutput is not a ContentBlockStart.
Casts this InvokeHarnessStreamOutput as a ContentBlockStart and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessContentBlockStartEvent value. Returns null if the InvokeHarnessStreamOutput is not a ContentBlockStart.
Casts this InvokeHarnessStreamOutput as a ContentBlockStop and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessContentBlockStopEvent value. Throws an exception if the InvokeHarnessStreamOutput is not a ContentBlockStop.
Casts this InvokeHarnessStreamOutput as a ContentBlockStop and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessContentBlockStopEvent value. Returns null if the InvokeHarnessStreamOutput is not a ContentBlockStop.
Casts this InvokeHarnessStreamOutput as a MessageStart and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessMessageStartEvent value. Throws an exception if the InvokeHarnessStreamOutput is not a MessageStart.
Casts this InvokeHarnessStreamOutput as a MessageStart and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessMessageStartEvent value. Returns null if the InvokeHarnessStreamOutput is not a MessageStart.
Casts this InvokeHarnessStreamOutput as a MessageStop and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessMessageStopEvent value. Throws an exception if the InvokeHarnessStreamOutput is not a MessageStop.
Casts this InvokeHarnessStreamOutput as a MessageStop and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessMessageStopEvent value. Returns null if the InvokeHarnessStreamOutput is not a MessageStop.
Casts this InvokeHarnessStreamOutput as a Metadata and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessMetadataEvent value. Throws an exception if the InvokeHarnessStreamOutput is not a Metadata.
Casts this InvokeHarnessStreamOutput as a Metadata and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessMetadataEvent value. Returns null if the InvokeHarnessStreamOutput is not a Metadata.