import requests import json from common import ACCOUNT_ID, BASE_URL, HEADER, LOCATION_ID profile_information_tool = { "type": "function", "function": { "name": "ProfileInformation", "description": "Gives details of the User Profile", "parameters": { "type": "object", "properties": { "profileDetails": { "type": "object", "properties": { "account_id": { "type": "string" } }, "required": None } }, "required": None } } } def ProfileInformation(): """Fetch and print user profile details.""" response = requests.get( f"{BASE_URL}profile/me", headers=HEADER ) try: response_data = response.json() formatted_response = json.dumps(response_data, indent=2) return formatted_response except requests.RequestException as e: return f"Error making API request: {str(e)}"