Class ToolParams

java.lang.Object
com.google.genkit.ai.middleware.ToolParams

public class ToolParams extends Object
  • Constructor Details

    • ToolParams

      public ToolParams(Part requestPart, Tool<?,?> tool)
      Creates ToolParams.
      Parameters:
      requestPart - the tool request part (includes metadata) about to be executed
      tool - the resolved tool being called
  • Method Details

    • getRequestPart

      public Part getRequestPart()
      Returns the full tool request part, including part-level metadata.
    • getRequest

      public ToolRequest getRequest()
      Convenience method: returns the tool request from the request part.
    • getTool

      public Tool<?,?> getTool()
      Returns the resolved tool being called.