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.

@FunctionalInterface public interface ToolNext
  • Method Summary

    Modifier and Type
    Method
    Description
    Calls the next handler in the tool chain.
  • Method Details

    • apply

      Part apply(ActionContext ctx, ToolParams params) throws GenkitException
      Calls the next handler in the tool chain.
      Parameters:
      ctx - the action context
      params - the tool parameters
      Returns:
      the tool response part (includes part-level metadata)
      Throws:
      GenkitException - if processing fails