InvokeHarnessStreamOutput¶
Union Type¶
InvokeHarnessStreamOutput
module-attribute
¶
InvokeHarnessStreamOutput = Union[InvokeHarnessStreamOutputMessageStart | InvokeHarnessStreamOutputContentBlockStart | InvokeHarnessStreamOutputContentBlockDelta | InvokeHarnessStreamOutputContentBlockStop | InvokeHarnessStreamOutputMessageStop | InvokeHarnessStreamOutputMetadata | InvokeHarnessStreamOutputInternalServerException | InvokeHarnessStreamOutputValidationException | InvokeHarnessStreamOutputRuntimeClientError | InvokeHarnessStreamOutputUnknown]
The streaming events returned by a harness invocation.
Union Member Types¶
InvokeHarnessStreamOutputMessageStart
dataclass
¶
Indicates the start of a new message from the agent.
Attributes¶
InvokeHarnessStreamOutputContentBlockStart
dataclass
¶
Indicates the start of a new content block.
Attributes¶
InvokeHarnessStreamOutputContentBlockDelta
dataclass
¶
A delta update to the current content block.
Attributes¶
InvokeHarnessStreamOutputContentBlockStop
dataclass
¶
Indicates the end of the current content block.
Attributes¶
InvokeHarnessStreamOutputMessageStop
dataclass
¶
Indicates the end of the current message.
Attributes¶
InvokeHarnessStreamOutputMetadata
dataclass
¶
Token usage and latency metrics for the invocation.
Attributes¶
InvokeHarnessStreamOutputInternalServerException
dataclass
¶
The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
Attributes¶
InvokeHarnessStreamOutputValidationException
dataclass
¶
The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.