Skip to content

SystemPromptRecommendationResult

Structure Class

SystemPromptRecommendationResult dataclass

Bases: _SerdeShape

The result of a system prompt recommendation, containing the optimized prompt.

Attributes

configuration_bundle class-attribute instance-attribute
configuration_bundle: RecommendationResultConfigurationBundle | 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 = ...

The error code if the recommendation failed.

error_message class-attribute instance-attribute
error_message: str | None = ...

The error message if the recommendation failed.

explanation class-attribute instance-attribute
explanation: str | 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 = ...

The optimized system prompt text generated by the recommendation.