Class SetModelResponseTool

java.lang.Object
com.google.adk.tools.BaseTool
com.google.adk.tools.SetModelResponseTool

public class SetModelResponseTool extends BaseTool
Internal tool used for output schema workaround.

This tool allows the model to set its final response when output_schema is configured alongside other tools. The model should use this tool to provide its final structured response instead of outputting text directly.

  • Field Details

  • Constructor Details

    • SetModelResponseTool

      public SetModelResponseTool(com.google.genai.types.Schema outputSchema)
  • Method Details