Spaces:
Paused
Paused
File size: 464 Bytes
9c9a39f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from langchain_core.tools import tool
import json
@tool
def robot_information(project_name: str) -> str:
"""Retrieves detailed information about the robots in the named project in real-time in JSON format"""
print("retrieved robot")
data = {
"information": [
{"name": "Robot1", "battery": 90, "type": "heavy"},
{"name": "Robot2", "battery": 34, "type": "medium"}
]
}
return json.dumps(data) |