from upsonic.tools import tool
@tool(
requires_user_input=True,
user_input_fields=["api_key"]
)
def api_call(endpoint: str, api_key: str) -> str:
"""
Make an API call with user-provided key.
Args:
endpoint: API endpoint URL
api_key: API authentication key
Returns:
API response
"""
return f"API call to {endpoint} completed"