cnhkmcp 1.4.7__py3-none-any.whl → 1.4.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cnhkmcp/__init__.py +1 -1
- cnhkmcp/untracked/platform_functions.py +9 -6
- {cnhkmcp-1.4.7.dist-info → cnhkmcp-1.4.8.dist-info}/METADATA +1 -1
- {cnhkmcp-1.4.7.dist-info → cnhkmcp-1.4.8.dist-info}/RECORD +8 -8
- {cnhkmcp-1.4.7.dist-info → cnhkmcp-1.4.8.dist-info}/WHEEL +0 -0
- {cnhkmcp-1.4.7.dist-info → cnhkmcp-1.4.8.dist-info}/entry_points.txt +0 -0
- {cnhkmcp-1.4.7.dist-info → cnhkmcp-1.4.8.dist-info}/licenses/LICENSE +0 -0
- {cnhkmcp-1.4.7.dist-info → cnhkmcp-1.4.8.dist-info}/top_level.txt +0 -0
cnhkmcp/__init__.py
CHANGED
|
@@ -371,7 +371,9 @@ class BrainApiClient:
|
|
|
371
371
|
print("Alpha done simulating, getting alpha details")
|
|
372
372
|
alpha_id = simulation_progress.json()["alpha"]
|
|
373
373
|
alpha = self.session.get("https://api.worldquantbrain.com/alphas/" + alpha_id)
|
|
374
|
-
|
|
374
|
+
result = alpha.json()
|
|
375
|
+
result['note'] = "if you got a negative alpha sharpe, you can just add a minus sign in front of the last line of the Alpha to flip then think the next step."
|
|
376
|
+
return result
|
|
375
377
|
|
|
376
378
|
except Exception as e:
|
|
377
379
|
self.log(f"❌ Failed to create simulation: {str(e)}", "ERROR")
|
|
@@ -1822,7 +1824,7 @@ async def create_simulation(
|
|
|
1822
1824
|
result = await brain_client.create_simulation(simulation_data)
|
|
1823
1825
|
return result
|
|
1824
1826
|
except Exception as e:
|
|
1825
|
-
return {"error": str(e)}
|
|
1827
|
+
return {"error": str(e), "note":", you need to call three mcp tools get_operators, get_platform_setting_options and get_datafields to check whether you correctly use the operators, setting the simulation settings, and existing data fields."}
|
|
1826
1828
|
|
|
1827
1829
|
# get_simulation_status MCP tool removed as requested
|
|
1828
1830
|
# wait_for_simulation MCP tool removed as requested
|
|
@@ -2588,7 +2590,7 @@ async def create_multiSim(
|
|
|
2588
2590
|
response = brain_client.session.post(f"{brain_client.base_url}/simulations", json=multisimulation_data)
|
|
2589
2591
|
|
|
2590
2592
|
if response.status_code != 201:
|
|
2591
|
-
return {"error": f"Failed to create multisimulation. Status: {response.status_code}"}
|
|
2593
|
+
return {"error": f"Failed to create multisimulation. Status: {response.status_code},, you need to call three mcp tools get_operators, get_platform_setting_options and get_datafields to check whether you correctly use the operators, setting the simulation settings, and existing data fields."}
|
|
2592
2594
|
|
|
2593
2595
|
# Get multisimulation location
|
|
2594
2596
|
location = response.headers.get('Location', '')
|
|
@@ -2599,7 +2601,7 @@ async def create_multiSim(
|
|
|
2599
2601
|
return await _wait_for_multisimulation_completion(location, len(alpha_expressions))
|
|
2600
2602
|
|
|
2601
2603
|
except Exception as e:
|
|
2602
|
-
return {"error": f"Error creating multisimulation: {str(e)}"}
|
|
2604
|
+
return {"error": f"Error creating multisimulation: {str(e)}, , you need to call three mcp tools get_operators, get_platform_setting_options and get_datafields to check whether you correctly use the operators, setting the simulation settings, and existing data fields."}
|
|
2603
2605
|
|
|
2604
2606
|
async def _wait_for_multisimulation_completion(location: str, expected_children: int) -> Dict[str, Any]:
|
|
2605
2607
|
"""Wait for multisimulation to complete and return results"""
|
|
@@ -2714,11 +2716,12 @@ async def _wait_for_multisimulation_completion(location: str, expected_children:
|
|
|
2714
2716
|
'total_created': len(alpha_results),
|
|
2715
2717
|
'multisimulation_id': location.split('/')[-1],
|
|
2716
2718
|
'multisimulation_location': location,
|
|
2717
|
-
'alpha_results': alpha_results
|
|
2719
|
+
'alpha_results': alpha_results,
|
|
2720
|
+
'note': "if you got a negative alpha sharpe, you can just add a minus sign in front of the last line of the Alpha to flip then think the next step."
|
|
2718
2721
|
}
|
|
2719
2722
|
|
|
2720
2723
|
except Exception as e:
|
|
2721
|
-
return {"error": f"Error waiting for multisimulation completion: {str(e)}"}
|
|
2724
|
+
return {"error": f"Error waiting for multisimulation completion: {str(e)}, you need to call three mcp tools get_operators, get_platform_setting_options and get_datafields to check whether you correctly use the operators, setting the simulation settings, and existing data fields."}
|
|
2722
2725
|
|
|
2723
2726
|
@mcp.tool()
|
|
2724
2727
|
async def get_daily_and_quarterly_payment(email: str = "", password: str = "") -> Dict[str, Any]:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
cnhkmcp/__init__.py,sha256=
|
|
1
|
+
cnhkmcp/__init__.py,sha256=6HAUbLyRJK-E8TxYkbuGHZ57oAxeH8LgrUVK19ttNhY,2758
|
|
2
2
|
cnhkmcp/untracked/arXiv_API_Tool_Manual.md,sha256=I3hvI5mpmIjBuWptufoVSWFnuhyUc67oCGHEuR0p_xs,13552
|
|
3
3
|
cnhkmcp/untracked/arxiv_api.py,sha256=-E-Ub9K-DXAYaCjrbobyfQ9H97gaZBc7pL6xPEyVHec,9020
|
|
4
4
|
cnhkmcp/untracked/forum_functions.py,sha256=QW-CplAsqDkw-Wcwq-1tuZBq48dEO-vXZ8xw7X65EuE,42303
|
|
5
|
-
cnhkmcp/untracked/platform_functions.py,sha256=
|
|
5
|
+
cnhkmcp/untracked/platform_functions.py,sha256=KQQlh-ZFQn6541H2DMoL3mEn4BiNkr-cg87lTSy6qMs,121144
|
|
6
6
|
cnhkmcp/untracked/sample_mcp_config.json,sha256=QSFvZ086bxUQsvmLjcE6pL9ObzKn4FGnt9npWPo7Eps,1044
|
|
7
7
|
cnhkmcp/untracked/user_config.json,sha256=_INn1X1qIsITrmEno-BRlQOAGm9wnNCw-6B333DEvnk,695
|
|
8
8
|
cnhkmcp/untracked/示例参考文档_BRAIN_Alpha_Test_Requirements_and_Tips.md,sha256=W4dtQrqoTN72UyvIsvkGRF0HFOJLHSDeeSlbR3gqQg0,17133
|
|
@@ -66,9 +66,9 @@ cnhkmcp/untracked/mcp文件论坛版2_如果原版启动不了浏览器就试这
|
|
|
66
66
|
cnhkmcp/untracked/mcp文件论坛版2_如果原版启动不了浏览器就试这个/user_config.json,sha256=_INn1X1qIsITrmEno-BRlQOAGm9wnNCw-6B333DEvnk,695
|
|
67
67
|
cnhkmcp/untracked/mcp文件论坛版2_如果原版启动不了浏览器就试这个/让AI读这个文档来学会下载浏览器.md,sha256=v5QPSMjRDh52ZjgC4h8QjImnaqlVRLjTHGxmGjTo36g,3396
|
|
68
68
|
cnhkmcp/untracked/mcp文件论坛版2_如果原版启动不了浏览器就试这个/配置前运行我_安装必要依赖包.py,sha256=BnUyL5g6PaC62yEuS-8vcDSJ0oKu3k6jqQxi2jginuQ,6612
|
|
69
|
-
cnhkmcp-1.4.
|
|
70
|
-
cnhkmcp-1.4.
|
|
71
|
-
cnhkmcp-1.4.
|
|
72
|
-
cnhkmcp-1.4.
|
|
73
|
-
cnhkmcp-1.4.
|
|
74
|
-
cnhkmcp-1.4.
|
|
69
|
+
cnhkmcp-1.4.8.dist-info/licenses/LICENSE,sha256=QLxO2eNMnJQEdI_R1UV2AOD-IvuA8zVrkHWA4D9gtoc,1081
|
|
70
|
+
cnhkmcp-1.4.8.dist-info/METADATA,sha256=3il3BOpVV4336VeR6EPmXrIN11P71A3hdNiEs5BzO9g,5171
|
|
71
|
+
cnhkmcp-1.4.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
72
|
+
cnhkmcp-1.4.8.dist-info/entry_points.txt,sha256=lTQieVyIvjhSMK4fT-XwnccY-JBC1H4vVQ3V9dDM-Pc,70
|
|
73
|
+
cnhkmcp-1.4.8.dist-info/top_level.txt,sha256=x--ibUcSgOS9Z_RWK2Qc-vfs7DaXQN-WMaaxEETJ1Bw,8
|
|
74
|
+
cnhkmcp-1.4.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|