Complete Migration

This commit is contained in:
2025-10-19 19:17:58 -04:00
parent d942a89c33
commit f26e256e7e
29 changed files with 2034 additions and 1 deletions

99
agent.json Normal file
View File

@@ -0,0 +1,99 @@
{
"tweet_generator.generate.predict": {
"traces": [],
"train": [],
"demos": [],
"signature": {
"instructions": "Generate or improve a tweet based on input text and detailed evaluation feedback with reasoning.",
"fields": [
{
"prefix": "Input Text:",
"description": "Original text or current tweet to improve"
},
{
"prefix": "Current Tweet:",
"description": "Current best tweet version (empty for first generation)"
},
{
"prefix": "Previous Evaluation:",
"description": "Previous evaluation with category-by-category reasoning and scores (empty for first generation)"
},
{
"prefix": "Reasoning: Let's think step by step in order to",
"description": "${reasoning}"
},
{
"prefix": "Improved Tweet:",
"description": "Generated or improved tweet text (max 280 characters)"
}
]
},
"lm": {
"model": "openrouter/google/gemini-2.5-flash",
"model_type": "chat",
"cache": true,
"num_retries": 3,
"finetuning_model": null,
"launch_kwargs": {},
"train_kwargs": {},
"temperature": 0.7,
"max_tokens": 4096,
"api_key": "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",
"api_base": "https://openrouter.ai/api/v1"
}
},
"tweet_evaluator.evaluate.predict": {
"traces": [],
"train": [],
"demos": [],
"signature": {
"instructions": "Evaluate a tweet across multiple custom categories. For each category, provide detailed reasoning explaining the score, then assign a score. Ensure the tweet maintains the same meaning as the original text.",
"fields": [
{
"prefix": "Original Text:",
"description": "Original input text that started the optimization"
},
{
"prefix": "Current Best Tweet:",
"description": "Current best tweet version for comparison (empty for first evaluation)"
},
{
"prefix": "Tweet Text:",
"description": "Tweet text to evaluate"
},
{
"prefix": "Categories:",
"description": "Comma-separated list of evaluation category descriptions"
},
{
"prefix": "Reasoning: Let's think step by step in order to",
"description": "${reasoning}"
},
{
"prefix": "Evaluations:",
"description": "List of evaluations with category name, detailed reasoning, and score (1-9) for each category. Ensure the tweet conveys the same meaning as the original text."
}
]
},
"lm": {
"model": "openrouter/openai/gpt-5",
"model_type": "chat",
"cache": true,
"num_retries": 3,
"finetuning_model": null,
"launch_kwargs": {},
"train_kwargs": {},
"temperature": 1.0,
"max_completion_tokens": 16000,
"api_key": "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",
"api_base": "https://openrouter.ai/api/v1"
}
},
"metadata": {
"dependency_versions": {
"python": "3.13",
"dspy": "3.0.3",
"cloudpickle": "3.1"
}
}
}