Adapts a resolved SDK descriptor to the FunctionDescriptor the preview renders.
Parameters
name: string
The CANONICAL function name — what the preview matches against the hint to tell a
current descriptor from one still arriving for the previous function.
Adapts a resolved SDK descriptor to the FunctionDescriptor the preview renders.