Package com.google.genkit.ai.middleware
Interface ModelNext
- 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, ModelParams params) Calls the next handler in the model chain.
-
Method Details
-
apply
Calls the next handler in the model chain.- Parameters:
ctx- the action contextparams- the model parameters- Returns:
- the model response
- Throws:
GenkitException- if processing fails
-