Skip to main content

Documentation Index

Fetch the complete documentation index at: https://springaicommunity.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Gemini agent wraps the Gemini CLI via GeminiAgentApi. Configure it through Spring properties under agent-client.gemini.*.
agent-client:
  gemini:
    model: gemini-2.5-flash
    timeout: PT5M
    yolo: true

Configuration Properties

Prefix: agent-client.gemini
PropertyTypeDefaultDescription
modelStringgemini-2.5-flashGemini model to use for agent tasks
timeoutDuration5mTimeout for agent task execution
yolobooleantrueBypass all permission checks
executable-pathStringPath to the Gemini CLI executable (auto-discovered if not set)
temperatureDoubleTemperature for controlling response randomness (0.0–1.0)
max-tokensIntegerMaximum number of tokens to generate in the response

Yolo Mode

When yolo=true (default), Gemini runs autonomously without permission prompts:
agent-client:
  gemini:
    yolo: true    # Default — no permission prompts
Set yolo: false if you want Gemini to ask for confirmation before executing commands.

Temperature

Control response randomness with the temperature property:
agent-client:
  gemini:
    temperature: 0.2    # More deterministic
ValueBehavior
0.0Most deterministic — consistent outputs
0.5Balanced
1.0Most creative — varied outputs
Temperature support depends on the Gemini CLI version. Check your CLI version with gemini --version.

Mode System

Gemini works in any directory with default settings — no mode-derived behavior currently exists. The LOOSE and STRICT modes are a no-op for Gemini today. Future STRICT mode knobs for Gemini will be added when there is a concrete safety control to gate (following the promotion rubric).

Authentication

export GEMINI_API_KEY=...
# or
export GOOGLE_API_KEY=...
The Gemini CLI accepts either GEMINI_API_KEY or GOOGLE_API_KEY environment variables.