Wrapper function type for the wrapModelCall hook. Allows middleware to intercept and modify model execution. This enables you to:
The model request containing all parameters needed for the model call
The function that invokes the model. Call this with a ModelRequest to get the response
The AI message response from the model (or a modified version)
Wrapper function type for the wrapModelCall hook. Allows middleware to intercept and modify model execution. This enables you to: