A wrapper function that returns a function that is compatible with the ai-sdk. This function accepts an optional context which is added as the last argument to the method.
Optional
A wrapper function that returns a function that is compatible with the ai-sdk. This function accepts an optional context which is added as the last argument to the method.