OptimizedPromptStream¶
Union Type¶
OptimizedPromptStream
module-attribute
¶
OptimizedPromptStream = Union[OptimizedPromptStreamOptimizedPromptEvent | OptimizedPromptStreamAnalyzePromptEvent | OptimizedPromptStreamInternalServerException | OptimizedPromptStreamThrottlingException | OptimizedPromptStreamValidationException | OptimizedPromptStreamDependencyFailedException | OptimizedPromptStreamAccessDeniedException | OptimizedPromptStreamBadGatewayException | OptimizedPromptStreamUnknown]
The stream containing events in the prompt optimization process.
Union Member Types¶
OptimizedPromptStreamOptimizedPromptEvent
dataclass
¶
An event in which the prompt was optimized.
Attributes¶
OptimizedPromptStreamAnalyzePromptEvent
dataclass
¶
An event in which the prompt was analyzed in preparation for optimization.
Attributes¶
OptimizedPromptStreamInternalServerException
dataclass
¶
An internal server error occurred. Retry your request.
Attributes¶
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¶
OptimizedPromptStreamValidationException
dataclass
¶
Input validation failed. Check your request parameters and retry the request.
Attributes¶
OptimizedPromptStreamDependencyFailedException
dataclass
¶
There was an issue with a dependency. Check the resource configurations and retry the request.
Attributes¶
OptimizedPromptStreamAccessDeniedException
dataclass
¶
The request is denied because of missing access permissions. Check your permissions and retry your request.