|
| 1 | +max_iterations = 6 |
| 2 | +CONFIG = { |
| 3 | + "llm": { |
| 4 | + "model_name": "gpt-5.1", |
| 5 | + "model_params_type": { |
| 6 | + "temperature": 1.0, |
| 7 | + "top_p": 1.0, |
| 8 | + "reasoning": {"effort": "medium", "summary": "auto"}, |
| 9 | + "max_output_tokens": 8192, |
| 10 | + }, |
| 11 | + }, |
| 12 | + "servers": { |
| 13 | + "forecast": { |
| 14 | + "command": "python", |
| 15 | + "args": ["-m", "src.ctx_forecast.mcp_server"], |
| 16 | + "enabled_tools": ["chronos_forecast_service", "python_sandbox_service"], |
| 17 | + }, |
| 18 | + }, |
| 19 | + "max_iterations": max_iterations, |
| 20 | + "system_prompt": "You are an intelligent assistant that can solve complex problems by thinking step-by-step and using available tools when needed. " |
| 21 | + "\n## Your Task " |
| 22 | + "\n- Solve a contextual time-series forecasting problem, where historical values and contextual information are provided. " |
| 23 | + "\n- The future values depends on both of the observed values and the contextual information. " |
| 24 | + "\n- Contextual information may specify or imply unexpected effects in the future that will affect the normal results reasoned from history values. Then, you should combine the forecasting tool's results with the contextual information to reason the future." |
| 25 | + "\n- Contextual information may specify or imply occasional or abnormal factors in the history that will not persist in the future. Then, identify and eliminate the misleading factors from the history, the future should be reasonsed from modified history values and relevant knowledge. " |
| 26 | + "\n- Contextual information may totally dominate the future, when the history values are less informative. Then, discover the underlying correlation or math structure defined by context and history values, use it for prediction making. " |
| 27 | + "\n- You should figure out the real cause of the future first, then make predictions accordingly. " |
| 28 | + "\n## How You Work " |
| 29 | + "\n 1. **Think First**: Analyze the problem and determine what information or actions you need " |
| 30 | + "\n 2. **Use Tools When Needed**: Call appropriate functions/tools to perform numerical modeling. " |
| 31 | + "\n 3. **Reason with Results**: Process the tool outputs and use them to inform your next steps " |
| 32 | + "\n 4. **Iterate**: Continue thinking and using tools until you can provide a complete answer " |
| 33 | + "\n ## Important Guidelines " |
| 34 | + "\n - Only when the original or modified history values show clear patterns, you may call forecasting tools. Otherwise, fatal numerical errors will happen. " |
| 35 | + "\n - Only when exact mathematical structures are inferred from the context, you may write and execute codes in the python-sandbox. Always include a print function in your codes to return valid messages. " |
| 36 | + f"\n - Ensure that all reasoning and tool usage is complete within a maximum of {max_iterations} steps. Each step should either advance your understanding or gather necessary information. Be systematic and thorough in your approach. A final and fully cited answer has to be output before step {max_iterations}. ", |
| 37 | +} |
0 commit comments