model method

Middleware for the raw model call.

Wraps the call to the model action.

Implementation

Future<ModelResponse> model(
  ModelRequest request,
  ActionFnArg<ModelResponseChunk, ModelRequest, void> ctx,
  Future<ModelResponse> Function(
    ModelRequest request,
    ActionFnArg<ModelResponseChunk, ModelRequest, void> ctx,
  )
  next,
) {
  return next(request, ctx);
}