Spaces:
Running
Running
mriusero
commited on
Commit
·
d0d21eb
1
Parent(s):
ba3d8a5
feat: tool desc
Browse files
src/agent/tools/check_downtines.py
CHANGED
@@ -4,10 +4,7 @@ from src.agent.utils.tooling import tool
|
|
4 |
@tool
|
5 |
def get_downtimes() -> str:
|
6 |
"""
|
7 |
-
This tool provide the production downtimes which is useful for understanding production issues and causes.
|
8 |
-
Data contains :
|
9 |
-
- Timestamps of downtimes starts and endings,
|
10 |
-
- Event, Error Code and Error Description
|
11 |
"""
|
12 |
try:
|
13 |
with open("data/downtimes.json", "r") as f:
|
|
|
4 |
@tool
|
5 |
def get_downtimes() -> str:
|
6 |
"""
|
7 |
+
This tool provide the production downtimes which is useful for understanding production issues and causes. Data contains information about downtimes including their description, duration and causes.
|
|
|
|
|
|
|
8 |
"""
|
9 |
try:
|
10 |
with open("data/downtimes.json", "r") as f:
|
src/agent/tools/check_production.py
CHANGED
@@ -4,8 +4,7 @@ from src.agent.utils.tooling import tool
|
|
4 |
@tool
|
5 |
def get_production_status() -> str:
|
6 |
"""
|
7 |
-
This tool retrieves the current production status including various metrics such as operating time, unplanned stops, quality rates, availability, and performance indicators.
|
8 |
-
Useful for understanding the overall production health and efficiency.
|
9 |
"""
|
10 |
try:
|
11 |
with open("data/status.json", "r") as f:
|
|
|
4 |
@tool
|
5 |
def get_production_status() -> str:
|
6 |
"""
|
7 |
+
This tool retrieves the current production status including various metrics such as operating time, unplanned stops, quality rates, availability, and performance indicators. Useful for understanding the overall production health and efficiency.
|
|
|
8 |
"""
|
9 |
try:
|
10 |
with open("data/status.json", "r") as f:
|