SystemPromptRecommendationResult¶
Structure Class¶
SystemPromptRecommendationResult
dataclass
¶
The result of a system prompt recommendation, containing the optimized prompt.
Attributes¶
configuration_bundle
class-attribute
instance-attribute
¶
configuration_bundle: RecommendationResultConfigurationBundle | None = None
The configuration bundle containing the recommended system prompt, if the input was sourced from a configuration bundle.
error_code
class-attribute
instance-attribute
¶
error_code: str | None = None
The error code if the recommendation failed.
error_message
class-attribute
instance-attribute
¶
error_message: str | None = None
The error message if the recommendation failed.
explanation
class-attribute
instance-attribute
¶
explanation: str | None = None
An explanation of why the recommendation was generated and what patterns were identified in the agent traces.
recommended_system_prompt
class-attribute
instance-attribute
¶
recommended_system_prompt: str | None = field(repr=False, default=None)
The optimized system prompt text generated by the recommendation.