At the time of writing Functions are unable to make use of App Platform's internal routing, meaning they cannot call other components in the same App Platform they're in. This limitation means there is little value of having Functions inside an App Platform as they do not enjoy the same abilities other components have by making use of internal routing.
Please consider making it possible for Functions to make use of internal routing inside App Platform.