Package com.google.genkit.ai.middleware
Interface GenerateNext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionapply(ActionContext ctx, GenerateParams params) Calls the next handler in the generate chain.
-
Method Details
-
apply
Calls the next handler in the generate chain.- Parameters:
ctx- the action contextparams- the generate parameters- Returns:
- the model response
- Throws:
GenkitException- if processing fails
-