A Java-based AI agent that generates detailed cooking recipes using Google's Gemini 2.5 Pro model.
- Java 11+
- Gradle 8.13
- Google API credentials (for Gemini model access)
git clone <repository-url>
cd <repository-dir>Depending on your operating system, set these environments accordingly Below example is for Linux/Mac
export GOOGLE_GENAI_USE_VERTEXAI=FALSE
export GOOGLE_API_KEY=<Your key>Start the interactive CLI:
./gradlew runExample session:
You > Show me how to make ramen
Thinking...
Agent > Tool 'getRecipe' responded with: {status=success, General steps=1. Make bone soup...}
Apache 2.0