|
|
@@ -169,7 +169,7 @@ class RulesEngineMetricCalculationAgent:
|
|
|
知识元数据列表,包含id、description和inputField
|
|
|
"""
|
|
|
try:
|
|
|
- url = "http://localhost:8081/api/rules/getKnowledgeMeta"
|
|
|
+ url = "http://10.192.72.11:31809/api/rules/getKnowledgeMeta"
|
|
|
headers = {
|
|
|
"Accept": "*/*",
|
|
|
"Accept-Encoding": "gzip, deflate, br",
|
|
|
@@ -179,7 +179,7 @@ class RulesEngineMetricCalculationAgent:
|
|
|
}
|
|
|
|
|
|
response = requests.post(url, headers=headers, json={}, timeout=30)
|
|
|
-
|
|
|
+ print(f"访问知识接口:{response}")
|
|
|
if response.status_code == 200:
|
|
|
knowledge_meta = response.json()
|
|
|
if isinstance(knowledge_meta, list):
|
|
|
@@ -290,7 +290,7 @@ class RulesEngineMetricCalculationAgent:
|
|
|
|
|
|
# 规则引擎API配置
|
|
|
method = "POST"
|
|
|
- url = "http://localhost:8081/api/rules/executeKnowledge"
|
|
|
+ url = "http://10.192.72.11:31809/api/rules/executeKnowledge"
|
|
|
# url = "http://10.192.72.11:31809/api/rules/executeKnowledge"
|
|
|
headers = {
|
|
|
"Accept": "*/*",
|
|
|
@@ -589,7 +589,7 @@ class RulesEngineMetricCalculationAgent:
|
|
|
|
|
|
# 规则引擎API配置
|
|
|
method = "POST"
|
|
|
- url = "http://localhost:8081/api/rules/executeKnowledge"
|
|
|
+ url = "http://10.192.72.11:31809/api/rules/executeKnowledge"
|
|
|
headers = {
|
|
|
"Accept": "*/*",
|
|
|
"Accept-Encoding": "gzip, deflate, br",
|