Skip to content

OptimizedPrompt

Union Type

OptimizedPrompt module-attribute

Contains information about the optimized prompt.

Union Member Types

OptimizedPromptTextPrompt dataclass

Bases: _SerdeShape

Contains information about the text in the prompt that was optimized.

Attributes

value instance-attribute
value: TextPrompt

OptimizedPromptUnknown dataclass

Bases: _SerdeShape

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