Generate text with extended thinking capabilities
Official documentation: https://ai.google.dev/gemini-api/docs/text-generationStreaming text generation with thinking process using Google Gemini 2.5 Pro model.
HARM_CATEGORY_HATE_SPEECHHARM_CATEGORY_SEXUALLY_EXPLICITHARM_CATEGORY_HARASSMENTHARM_CATEGORY_DANGEROUS_CONTENTHARM_CATEGORY_CIVIC_INTEGRITYtemperature (number): Sampling temperaturetopP (number): Nucleus sampling parameterthinkingConfig (object): Thinking configuration
includeThoughts (boolean): Whether to include thinking processthinkingBudget (integer): Thinking budget (maximum 26240)