Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LAE
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文靖昊
LAE
Commits
fd78ff71
Commit
fd78ff71
authored
Nov 12, 2024
by
tinywell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监测点增加“监测点类型”
parent
0804f32e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
http_tools.py
src/agent/http_tools.py
+1
-0
tool_monitor.py
src/agent/tool_monitor.py
+2
-1
agent_rate.py
src/server/agent_rate.py
+1
-1
No files found.
src/agent/http_tools.py
View file @
fd78ff71
...
@@ -55,6 +55,7 @@ class MonitorPoint(BaseModel):
...
@@ -55,6 +55,7 @@ class MonitorPoint(BaseModel):
YWUNIT
:
str
YWUNIT
:
str
SGDW
:
Optional
[
str
]
=
None
SGDW
:
Optional
[
str
]
=
None
MANUFACTURER
:
str
=
""
MANUFACTURER
:
str
=
""
MONITORTYPE
:
str
class
MonitorClient
(
BaseHttpClient
):
class
MonitorClient
(
BaseHttpClient
):
"""监测点查询客户端"""
"""监测点查询客户端"""
...
...
src/agent/tool_monitor.py
View file @
fd78ff71
...
@@ -65,7 +65,8 @@ class MonitorPointTool(BaseTool):
...
@@ -65,7 +65,8 @@ class MonitorPointTool(BaseTool):
"纬度"
:
point
[
"LATITUDE"
]
if
point
[
"LATITUDE"
]
else
""
,
"纬度"
:
point
[
"LATITUDE"
]
if
point
[
"LATITUDE"
]
else
""
,
"海拔"
:
point
[
"ELEVATION"
]
if
point
[
"ELEVATION"
]
else
""
,
"海拔"
:
point
[
"ELEVATION"
]
if
point
[
"ELEVATION"
]
else
""
,
"建设单位"
:
point
[
"BUILDUNIT"
]
if
point
[
"BUILDUNIT"
]
else
""
,
"建设单位"
:
point
[
"BUILDUNIT"
]
if
point
[
"BUILDUNIT"
]
else
""
,
"监测单位"
:
point
[
"MONITORUNIT"
]
if
point
[
"MONITORUNIT"
]
else
""
"监测单位"
:
point
[
"MONITORUNIT"
]
if
point
[
"MONITORUNIT"
]
else
""
,
"监测类型"
:
point
[
"MONITORTYPE"
]
if
point
[
"MONITORTYPE"
]
else
""
})
})
return
{
return
{
...
...
src/server/agent_rate.py
View file @
fd78ff71
...
@@ -72,7 +72,7 @@ ONLINE_RATE_SYSTEM_PROMPT = """你是一个专门处理地质监测点信息及
...
@@ -72,7 +72,7 @@ ONLINE_RATE_SYSTEM_PROMPT = """你是一个专门处理地质监测点信息及
3. 如果参数完整,则调用相应的分析工具获取数据
3. 如果参数完整,则调用相应的分析工具获取数据
4. 生成清晰的分析报告,包括数据解读
4. 生成清晰的分析报告,包括数据解读
5. 工具返回的数据务必用 markdown 格式的数据表格进行展示
5. 工具返回的数据务必用 markdown 格式的数据表格进行展示
6. 对异常情况(如数据缺失、参数错误)提供友好的解释和建议
6. 对异常情况(如数据缺失、参数错误)提供友好的解释和建议
,不要自己创造虚拟数据
注意事项:
注意事项:
- 时间格式统一使用:YYYY-MM-DD
- 时间格式统一使用:YYYY-MM-DD
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment