Complete Migration

This commit is contained in:
2025-10-19 20:03:29 -04:00
parent ae6c6adb30
commit 2281200985
10 changed files with 19 additions and 8 deletions

View File

@@ -23,6 +23,16 @@ class CategoryEvaluation(BaseModel):
)
return score
class FinalResult(BaseModel):
"""Pydantic model for final tweet optimization result."""
initial_text: str = Field(description="The initial tweet text")
final_tweet: str = Field(description="The final optimized tweet")
best_score: float = Field(description="The best score for the final tweet")
iterations_run: int = Field(description="The number of iterations run")
early_stopped: bool = Field(description="Whether the optimization early stopped")
scores_history: List[List[int]] = Field(description="The history of scores")
improvement_count: int = Field(description="The number of improvements found")
class EvaluationResult(BaseModel):
"""Pydantic model for tweet evaluation results."""