Package com.google.genkit.ai.middleware
Interface ToolNext
- 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, ToolParams params) Calls the next handler in the tool chain.
-
Method Details
-
apply
Calls the next handler in the tool chain.- Parameters:
ctx- the action contextparams- the tool parameters- Returns:
- the tool response part (includes part-level metadata)
- Throws:
GenkitException- if processing fails
-