{ "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": "", "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": "", "api_base": "https://openrouter.ai/api/v1" } }, "metadata": { "dependency_versions": { "python": "3.13", "dspy": "3.0.3", "cloudpickle": "3.1" } } }