Skip to content

Bedrock Agent Runtime  >  Unions  >  OptimizedPromptStream

OptimizedPromptStream

Union Type

Union Member Types

OptimizedPromptStreamOptimizedPromptEvent dataclass

An event in which the prompt was optimized.

Attributes

value instance-attribute

OptimizedPromptStreamAnalyzePromptEvent dataclass

An event in which the prompt was analyzed in preparation for optimization.

Attributes

value instance-attribute

OptimizedPromptStreamInternalServerException dataclass

An internal server error occurred. Retry your request.

Attributes

value instance-attribute

OptimizedPromptStreamThrottlingException dataclass

Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase Provisioned Throughput to increase the rate or number of tokens you can process.

Attributes

value instance-attribute

OptimizedPromptStreamValidationException dataclass

Input validation failed. Check your request parameters and retry the request.

Attributes

value instance-attribute

OptimizedPromptStreamDependencyFailedException dataclass

There was an issue with a dependency. Check the resource configurations and retry the request.

Attributes

value instance-attribute

OptimizedPromptStreamAccessDeniedException dataclass

The request is denied because of missing access permissions. Check your permissions and retry your request.

Attributes

value instance-attribute

OptimizedPromptStreamBadGatewayException dataclass

There was an issue with a dependency due to a server issue. Retry your request.

Attributes

value instance-attribute

OptimizedPromptStreamUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str