Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -102,13 +102,13 @@ def query_financial_data(company_name, query_type):
|
|
| 102 |
|
| 103 |
try:
|
| 104 |
# 使用 MCP 协议调用工具
|
| 105 |
-
#
|
| 106 |
search_resp = requests.post(
|
| 107 |
f"{MCP_URL}/message",
|
| 108 |
json={
|
| 109 |
"method": "tools/call",
|
| 110 |
"params": {
|
| 111 |
-
"name": "
|
| 112 |
"arguments": {"company_input": company_name}
|
| 113 |
}
|
| 114 |
},
|
|
|
|
| 102 |
|
| 103 |
try:
|
| 104 |
# 使用 MCP 协议调用工具
|
| 105 |
+
# 先搜索公司(使用 advanced_search_company)
|
| 106 |
search_resp = requests.post(
|
| 107 |
f"{MCP_URL}/message",
|
| 108 |
json={
|
| 109 |
"method": "tools/call",
|
| 110 |
"params": {
|
| 111 |
+
"name": "advanced_search_company",
|
| 112 |
"arguments": {"company_input": company_name}
|
| 113 |
}
|
| 114 |
},
|