modal.current_function_call_id
def current_function_call_id() -> Optional[str]:
Returns the function call ID for the current input.
Can only be called from Modal function (i.e. in a container context).
from modal import current_function_call_id
@app.function()
def process_stuff():
print(f"Starting to process input from {current_function_call_id()}")