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)