Gemini Interactions Java SDK ile çok formatlı uygulamalar ve özel yönetilen temsilciler oluşturma

1. Gemini Geliştiricisi, hoş geldiniz.

Geliştirici Öğrenimleri Görsel Notu

Bu codelab'de, özel Gemini Interactions SDK'sını kullanarak Java'da yeni nesil üretken yapay zeka uygulamaları oluşturmayı öğreneceksiniz.

Gemini Interactions API nedir?

Geleneksel LLM API'leri durum bilgisi içermez ve istek-yanıt odaklıdır. Geliştiriciler, çok turlu bir sohbet asistanı veya karmaşık bir aracı döngüsü oluşturmak için geçmişte sohbet durumunu, geçmiş kısaltmayı, araç çağrısı düzenlemeyi ve yürütme döngülerini tamamen istemci taraflı uygulama kodunda yönetmek zorundaydı.

Gemini Interactions API, bu karmaşıklığı sunucuya taşır. Google'ın altyapısının görüşme grafiğini barındırdığı ve yönettiği, durum bilgisi olan, oturum tabanlı bir API'dir. Tek bir etkileşim, durum bilgisi olan bir oturumu temsil eder. API ile etkileşim kurduğunuzda API, polimorfik Adımlar'dan oluşan zengin ve yapılandırılmış bir zaman çizelgesi döndürür. Örneğin:

  • ThoughtStep: Modelin dahili akıl yürütme süreci.
  • ModelOutputStep: Model tarafından oluşturulan metin, ses veya resim içeriği.
  • ToolCallStep ve ToolResultStep: Sistem veya model tarafından başlatılan araç çağrıları.
  • UserInteractionStep: Sistemin insan girdisi veya onayı istemek için durakladığı noktalar.

Yönetilen temsilciler nedir?

Otonom temsilcileri yönetmek (döngüleri, yeniden deneme mantığını, araç yürütme ortamlarını ve durum yönetimini ele almak) oldukça zordur.

Yönetilen Temsilciler, Gemini Interactions API tarafından sağlanan platform düzeyinde bir çözümdür. Aracı döngülerini yerel olarak çalıştırmak yerine, özel aracıları doğrudan Google'ın altyapısında sağlayabilirsiniz:

  • Yerleşik temsilciler: Çok adımlı web araştırmaları yapan, bulguları bir araya getiren ve kapsamlı raporlar oluşturan Deep Research temsilcisi gibi kullanıma hazır özel temsilciler.
  • Özel Yönetilen Temsilciler: Sizin tanımladığınız otonom varlıklardır. Sistem talimatları sağlar, araçlar (ör.Google Arama veya Bash yürütme ortamı) ekler ve özelleştirilebilir ağ çıkış kuralları (ör. yalnızca GitHub gibi belirli alanlara erişime izin verme) içeren güvenli, izole ve container mimarisine alınmış bir çalışma zamanı ortamı olan Cloud Sandbox'ı yapılandırırsınız.

Gemini Interactions Java SDK'sını kullanarak standart Java uygulamalarında bu yönetilen temsilcileri kolayca başlatabilir, koordine edebilir ve onlarla ortak çalışabilirsiniz.

Neler öğreneceksiniz?

  • Yeni polimorfik Step tabanlı mimaride nasıl gezinilir?
  • Etkileyici TTS sesini doğrudan hoparlörlere aktarma
  • Lyria ile müzik (MP3 + şarkı sözleri) üretme
  • Gemini 3 Pro Image ile görsel skeçnotlar oluşturma
  • Ortak Planlama'yı kullanarak Deep Research temsilcisini yönlendirme
  • Ağ çıkış kuralları ve araçları içeren özel bir temsilci sağlama

İhtiyacınız olanlar

  • Java 21 veya sonraki sürümler.
  • Apache Maven.
  • Metin düzenleyici veya IDE (IntelliJ IDEA, VS Code vb.)
  • Gemini API anahtarı (Google AI Studio'dan)

2. Kurulum: Proje ve API Anahtarı

Maven projesi oluşturma

Aşağıdaki komutu kullanarak terminalinizden yeni bir Maven projesi başlatın:

mvn archetype:generate \
    -DgroupId=com.example \
    -DartifactId=gemini-interactions-demo \
    -DarchetypeGroupId=org.apache.maven.archetypes \
    -DarchetypeArtifactId=maven-archetype-quickstart \
    -DarchetypeVersion=1.5 \
    -DinteractiveMode=false

Yeni oluşturduğunuz proje dizinine gidin:

cd gemini-interactions-demo

pom.xml dosyanızı açın ve yapılandırın:

  1. Java 21'i hedeflemek için Java sürüm özelliklerini güncelleyin:
    <properties>
        <maven.compiler.source>21</maven.compiler.source>
        <maven.compiler.target>21</maven.compiler.target>
    </properties>
    
  2. bloğunun içine SDK bağımlılığını ekleyin:
    <dependency>
        <groupId>io.github.glaforge</groupId>
        <artifactId>gemini-interactions-api-sdk</artifactId>
        <version>0.10.1</version>
    </dependency>
    

API anahtarını yapılandırma

Google AI Studio'dan Gemini API anahtarı alın.

Anahtarı terminalinizde ortam değişkeni olarak ayarlayın:

macOS / Linux:

export GEMINI_API_KEY="your_actual_api_key"

Windows (Komut İstemi):

set GEMINI_API_KEY="your_actual_api_key"

3. Hello World: Adım mimarisinde gezinme

Interactions API, polimorfik ve adım tabanlı bir zaman çizelgesi mimarisi sunar. API, düz bir çıkış listesi döndürmek yerine, yazılı Step nesnelerinden (ör. ModelOutputStep, ThoughtStep, FunctionCallStep) oluşan bir dizi döndürür.

Bu adımda, nihai model çıktısının bu yapıdan nasıl çıkarılacağını anlamak için basit bir etkileşim yazacaksınız.

HelloInteractions.java oluştur

Aşağıdaki içeriğe sahip src/main/java/com/example/HelloInteractions.java dosyasını oluşturun:

package com.example;

import io.github.glaforge.gemini.interactions.GeminiInteractionsClient;
import io.github.glaforge.gemini.interactions.model.*;
import io.github.glaforge.gemini.interactions.model.InteractionParams.ModelInteractionParams;

public class HelloInteractions {
    public static void main(String[] args) {
        // 1. Initialize the client
        GeminiInteractionsClient client = GeminiInteractionsClient.builder()
            .apiKey(System.getenv("GEMINI_API_KEY"))
            .build();

        // 2. Build the request
        ModelInteractionParams request = ModelInteractionParams.builder()
            .model("gemini-3.5-flash")
            .input("Explain the difference between a library and a framework in one sentence.")
            .build();

        // 3. Send request
        Interaction response = client.create(request);
        
        // 4. Navigate the step-based architecture to get the output
        response.steps().stream()
            .filter(step -> step instanceof Step.ModelOutputStep)
            .map(step -> (Step.ModelOutputStep) step)
            .findFirst()
            .ifPresent(step -> System.out.println(step.content().get(0)));
    }
}

Kodu çalıştırma

Sınıfı derleyip çalıştırın:

mvn compile exec:java -Dexec.mainClass=com.example.HelloInteractions

4. Yönlendirilebilir Ses: İfade Gücü Yüksek TTS Akışı

Gemini 3.1 Flash, yönlendirilebilir metin okuma (TTS) özelliğini sunar. İstemleri kullanarak sesin hızını, tonunu ve ortamını kontrol edebilir, cümlenin ortasında duygu etiketleri (ör. [excitedly] veya [whispers]) kullanabilirsiniz.

Bu adımda, etkileyici sesler oluşturacak ve bunları doğrudan hoparlörlerinize aktaracaksınız.

StreamingDJ.java oluştur

Aşağıdaki içeriğe sahip src/main/java/com/example/StreamingDJ.java dosyasını oluşturun:

package com.example;

import io.github.glaforge.gemini.interactions.GeminiInteractionsClient;
import io.github.glaforge.gemini.interactions.model.*;
import io.github.glaforge.gemini.interactions.model.Config.SpeechConfig;
import io.github.glaforge.gemini.interactions.model.InteractionParams.ModelInteractionParams;
import javax.sound.sampled.*;
import java.util.Base64;
import java.util.stream.Stream;

public class StreamingDJ {
    public static void main(String[] args) throws Exception {
        GeminiInteractionsClient client = GeminiInteractionsClient.builder()
            .apiKey(System.getenv("GEMINI_API_KEY"))
            .build();

        // Prompt defining the voice profile and emotional tags
        String prompt = """
            # AUDIO PROFILE: Jaz R.
            ## THE SCENE: London Studio
            ### DIRECTOR'S NOTES
            Accent: Jaz is a DJ from Brixton, London.
            Style: Bouncy, energetic, high-speed delivery.
            
            #### TRANSCRIPT
            [excitedly] Yes, massive vibes in the studio! 
            [whispers] But keep it down, the boss is coming... 
            [shouting] Turn this up! Let's go!
            """;

        ModelInteractionParams request = ModelInteractionParams.builder()
            .model("gemini-3.1-flash-tts-preview")
            .input(prompt)
            .responseModalities(Interaction.Modality.AUDIO)
            .speechConfig(new SpeechConfig("Algenib", "en-GB"))
            .stream(true) // Enable streaming
            .build();

        System.out.println("Streaming audio from Gemini...");

        try (Stream<Events> eventStream = client.stream(request)) {
            // Configure the Java Audio System for 24kHz Mono 16-bit PCM
            AudioFormat format = new AudioFormat(24000, 16, 1, true, false);
            DataLine.Info info = new DataLine.Info(SourceDataLine.class, format);

            try (SourceDataLine line = (SourceDataLine) AudioSystem.getLine(info)) {
                line.open(format);
                line.start();

                // Process the stream and play audio chunks as they arrive
                eventStream.forEach(event -> {
                    if (event instanceof Events.StepDelta cd && cd.delta() instanceof Events.AudioDelta audioDelta) {
                        byte[] audioData = Base64.getDecoder().decode(audioDelta.data());
                        line.write(audioData, 0, audioData.length);
                    }
                });
                line.drain();
            }
        }
    }
}

Kodu çalıştırma

mvn compile exec:java -Dexec.mainClass=com.example.StreamingDJ

Çıkışı dinleme

Kodu çalıştırdığınızda duyacağınız ses örneğini aşağıda bulabilirsiniz (duygu etiketleriyle Algenib sesi kullanılarak):

Oluşturulan TTS çıkışını (tts_output.wav) dinleme

5. Lyria 3 ile müzik üretme

DeepMind Lyria 3 modelini kullanarak müzik ve jingle oluşturabilirsiniz. İkili yanıt modaliteleri (AUDIO ve TEXT) isteyerek hem oluşturulan sesi (MP3) hem de şarkı sözlerini alabilirsiniz.

MusicGenerator.java oluştur

Aşağıdaki içeriğe sahip src/main/java/com/example/MusicGenerator.java dosyasını oluşturun:

package com.example;

import io.github.glaforge.gemini.interactions.GeminiInteractionsClient;
import io.github.glaforge.gemini.interactions.model.*;
import io.github.glaforge.gemini.interactions.model.InteractionParams.ModelInteractionParams;
import io.github.glaforge.gemini.interactions.model.Content.AudioContent;
import java.nio.file.Files;
import java.nio.file.Paths;

public class MusicGenerator {
    public static void main(String[] args) throws Exception {
        GeminiInteractionsClient client = GeminiInteractionsClient.builder()
            .apiKey(System.getenv("GEMINI_API_KEY"))
            .build();

        ModelInteractionParams request = ModelInteractionParams.builder()
            .model("models/lyria-3-clip-preview") // 30-second clip
            .input("An uplifting rock song with acoustic guitars about coding in Java.")
            .responseModalities(
                Interaction.Modality.AUDIO,
                Interaction.Modality.TEXT) // Request both MP3 and Lyrics
            .build();

        System.out.println("Generating music (this might take a moment)...");
        Interaction response = client.create(request);

        // 1. Print the lyrics (TEXT output)
        System.out.println("\n--- Generated Lyrics ---");
        response.steps().stream()
            .filter(step -> step instanceof Step.ModelOutputStep)
            .flatMap(step -> ((Step.ModelOutputStep) step).content().stream())
            .filter(content -> content instanceof Content.TextContent)
            .forEach(content -> System.out.println(((Content.TextContent) content).text()));

        // 2. Save the MP3 (AUDIO output)
        response.steps().stream()
            .filter(step -> step instanceof Step.ModelOutputStep)
            .flatMap(step -> ((Step.ModelOutputStep) step).content().stream())
            .filter(content -> content instanceof AudioContent)
            .map(content -> (AudioContent) content)
            .findFirst()
            .ifPresent(audio -> {
                try {
                    Files.write(Paths.get("coding_song.mp3"), audio.data());
                    System.out.println("\nSuccess: Song saved to coding_song.mp3");
                } catch (Exception e) {
                    e.printStackTrace();
                }
            });
    }
}

Kodu çalıştırma

mvn compile exec:java -Dexec.mainClass=com.example.MusicGenerator

Üretilen şarkıyı dinleyin

Müzik ve şarkı sözlerini içeren, oluşturulan MP3 dosyası (coding_song.mp3):

Oluşturulan müzik parçasını (coding_song.mp3) dinleyin

6. Sketchnotes ile görselleştirme (Nano Banana Pro)

Gemini 3 Pro Image (Nano Banana Pro olarak da bilinir) görüntü üretebilir. IMAGE modalitesini talep ederek metin girişine dayalı infografikler, diyagramlar veya görsel notlar oluşturabilirsiniz.

Bu adımda, yönetilen temsilcilerle ilgili bir makalenin görsel not özetini oluşturacak ve bunu PNG dosyası olarak kaydedeceksiniz.

ImageGenerator.java oluştur

Aşağıdaki içeriğe sahip src/main/java/com/example/ImageGenerator.java dosyasını oluşturun:

package com.example;

import io.github.glaforge.gemini.interactions.GeminiInteractionsClient;
import io.github.glaforge.gemini.interactions.model.*;
import io.github.glaforge.gemini.interactions.model.InteractionParams.ModelInteractionParams;
import io.github.glaforge.gemini.interactions.model.Content.ImageContent;
import java.nio.file.Files;
import java.nio.file.Paths;

public class ImageGenerator {
    public static void main(String[] args) throws Exception {
        GeminiInteractionsClient client = GeminiInteractionsClient.builder()
            .apiKey(System.getenv("GEMINI_API_KEY"))
            .build();

        String articleSummary = """
            Managed Agents in the Gemini API allow developers to run autonomous agents
            that reason, plan, use tools, and execute code inside isolated cloud sandboxes.
            The Gemini API handles the infrastructure (containers, network, runtime).
            It is powered by the Antigravity agent running on Gemini 3.5 Flash.
            The Java Interactions SDK supports these capabilities, utilizing a Step-based
            architecture to model the execution timeline.
            """;

        ModelInteractionParams request = ModelInteractionParams.builder()
            .model("gemini-3-pro-image-preview")
            .input(String.format("""
                Create a hand-drawn and hand-written sketchnote
                style summary infographic, with a pure white background,
                about the following information:
                
                %s
                """, articleSummary))
            .responseModalities(Interaction.Modality.IMAGE) // Request IMAGE modality
            .build();

        System.out.println("Generating sketchnote (this might take a moment)...");
        Interaction response = client.create(request);

        // Save the generated image
        response.steps().stream()
            .filter(step -> step instanceof Step.ModelOutputStep)
            .flatMap(step -> ((Step.ModelOutputStep) step).content().stream())
            .filter(content -> content instanceof ImageContent)
            .map(content -> (ImageContent) content)
            .findFirst()
            .ifPresent(image -> {
                try {
                    Files.write(Paths.get("sketchnote.png"), image.data());
                    System.out.println("Success: Sketchnote saved to sketchnote.png");
                } catch (Exception e) {
                    e.printStackTrace();
                }
            });
    }
}

Kodu çalıştırma

mvn compile exec:java -Dexec.mainClass=com.example.ImageGenerator

Oluşturulan Görsel Not

Model tarafından oluşturulan görsel not (sketchnote.png) aşağıda verilmiştir:

Oluşturulan Görsel Not

7. Temsilcileri Yönlendirme: Ortak Çalışmaya Dayalı Deep Research

Deep Research, çok adımlı araştırma görevlerini yürütebilen güçlü bir temsilcidir. Ancak, temsilci veri toplamaya başlamadan önce araştırma planını incelemek, değiştirmek ve yönlendirmek için Ortak Planlama'yı kullanabilirsiniz.

Bir planı hassaslaştırmak için aynı sunucu tarafı durumunu (previousInteractionId) kullanan çok turlu bir görüşme uygulayacaksınız.

CollaborativeResearch.java oluştur

Aşağıdaki içeriğe sahip src/main/java/com/example/CollaborativeResearch.java dosyasını oluşturun:

package com.example;

import io.github.glaforge.gemini.interactions.GeminiInteractionsClient;
import io.github.glaforge.gemini.interactions.model.*;
import io.github.glaforge.gemini.interactions.model.InteractionParams.AgentInteractionParams;
import io.github.glaforge.gemini.interactions.model.Config.DeepResearchAgentConfig;
import io.github.glaforge.gemini.interactions.model.Config.ThinkingSummaries;
import io.github.glaforge.gemini.interactions.model.Config.Visualization;

public class CollaborativeResearch {
    public static void main(String[] args) throws Exception {
        GeminiInteractionsClient client = GeminiInteractionsClient.builder()
            .apiKey(System.getenv("GEMINI_API_KEY"))
            .build();

        String agentModel = "deep-research-preview-04-2026";

        // --- Phase 1: Request a Plan ---
        System.out.println("Phase 1: Requesting research plan...");
        AgentInteractionParams planParams = AgentInteractionParams.builder()
            .agent(agentModel)
            .input("Research the latest generations of Google Cloud TPUs (TPU7x and the 8th generation TPU 8t and TPU 8i).")
            .agentConfig(new DeepResearchAgentConfig(
                "deep-research", 
                ThinkingSummaries.AUTO, 
                Visualization.AUTO, 
                true // TRUE enables collaborative planning
            ))
            .background(true)
            .store(true)
            .build();

        Interaction planInteraction = client.create(planParams);
        planInteraction = waitForCompletion(client, planInteraction.id());
        
        System.out.println("\n--- Proposed Plan ---");
        printOutputText(planInteraction);

        // --- Phase 2: Refine the Plan ---
        System.out.println("\nPhase 2: Refining research plan...");
        AgentInteractionParams refineParams = AgentInteractionParams.builder()
            .agent(agentModel)
            .input("Focus on comparing the architectural, performance, and scaling differences between the TPU7x generation and the two flavors of the eighth generation: TPU 8t (optimized for training at scale) and TPU 8i (optimized for low-latency reasoning and inference).")
            .agentConfig(new DeepResearchAgentConfig(
                "deep-research", 
                ThinkingSummaries.AUTO, 
                Visualization.AUTO, 
                true // Keep collaborative planning TRUE to iterate
            ))
            .previousInteractionId(planInteraction.id()) // Resume session
            .background(true)
            .store(true)
            .build();

        Interaction refinedInteraction = client.create(refineParams);
        refinedInteraction = waitForCompletion(client, refinedInteraction.id());

        System.out.println("\n--- Refined Plan ---");
        printOutputText(refinedInteraction);

        // --- Phase 3: Approve and Execute ---
        System.out.println("\nPhase 3: Approving plan and starting deep research (this will take a few minutes)...");
        AgentInteractionParams executeParams = AgentInteractionParams.builder()
            .agent(agentModel)
            .input("Plan looks good, execute!")
            .agentConfig(new DeepResearchAgentConfig(
                "deep-research", 
                ThinkingSummaries.AUTO, 
                Visualization.AUTO, 
                false // FALSE approves the plan and executes the research
            ))
            .previousInteractionId(refinedInteraction.id()) // Resume session
            .background(true)
            .store(true)
            .build();

        Interaction finalReport = client.create(executeParams);
        finalReport = waitForCompletion(client, finalReport.id());

        System.out.println("\n--- Final Research Report ---");
        printOutputText(finalReport);
    }

    private static Interaction waitForCompletion(GeminiInteractionsClient client, String id) throws Exception {
        Interaction interaction = client.get(id);
        while (interaction.status() != Interaction.Status.COMPLETED && interaction.status() != Interaction.Status.FAILED) {
            Thread.sleep(5000);
            interaction = client.get(id);
        }
        if (interaction.status() == Interaction.Status.FAILED) {
            throw new RuntimeException("Interaction failed. Status: " + interaction.status());
        }
        return interaction;
    }

    private static void printOutputText(Interaction interaction) {
        interaction.steps().stream()
            .filter(step -> step instanceof Step.ModelOutputStep)
            .flatMap(step -> ((Step.ModelOutputStep) step).content().stream())
            .filter(content -> content instanceof Content.TextContent)
            .forEach(content -> System.out.println(((Content.TextContent) content).text()));
    }
}

Kodu çalıştırma

mvn compile exec:java -Dexec.mainClass=com.example.CollaborativeResearch

Oluşturulan Rapor Çıkışı

Deep Research temsilcisi kapsamlı ve yapılandırılmış bir rapor oluşturur. Örnek çalıştırma tarafından oluşturulan raporun tamamını burada görüntüleyebilirsiniz:

Oluşturulan Deep Research araştırma raporunu (tpu_history_report.md) görüntüleme

8. Özel Temsilciler ve Cloud Korumalı Alanları

Karmaşık geliştirici görevleri için özel temsilciler sağlayabilirsiniz. Temsilcilerin sistem talimatlarını tanımlar, onları araçlarla (ör. kod yürütme/Bash) donatır ve uzak ortamlarını (ör. ağ çıkış kuralları) yapılandırırsınız.

Bu adımda, github.com için güvenli internet erişimi olan bir temsilci oluşturacak ve bu temsilciye bir depoyu klonlayıp yapılandırma dosyalarını bulut korumalı alanında analiz etmesi talimatını vereceksiniz.

GitHubAnalyzer.java oluştur

Aşağıdaki içeriğe sahip src/main/java/com/example/GitHubAnalyzer.java dosyasını oluşturun:

package com.example;

import io.github.glaforge.gemini.interactions.GeminiInteractionsClient;
import io.github.glaforge.gemini.interactions.model.*;
import io.github.glaforge.gemini.interactions.model.InteractionParams.AgentInteractionParams;
import java.util.List;

public class GitHubAnalyzer {
    public static void main(String[] args) throws Exception {
        GeminiInteractionsClient client = GeminiInteractionsClient.builder()
            .apiKey(System.getenv("GEMINI_API_KEY"))
            .build();

        String agentId = "github-analyzer-codelab";

        // 1. Define the Custom Agent with Network Egress and Tools
        Agent customAgent = Agent.builder()
            .id(agentId)
            .description("Clones and analyzes GitHub repos.")
            .baseAgent("antigravity-preview-09-2026")
            .baseEnvironment(new EnvironmentConfig(
                new EnvironmentNetworkEgressAllowlist(List.of(
                    new AllowlistEntry("github.com") // Allow git clone over HTTPS
                )),
                List.of()
            ))
            .systemInstruction("You are an architect. Clone the repo, inspect files, and write a summary.")
            .tools(List.of(
                new AgentTool.CodeExecution(), // Enables terminal bash execution in sandbox
                new AgentTool.GoogleSearch()
            ))
            .build();

        // 2. Provision the Agent
        System.out.println("Provisioning custom agent in the cloud...");
        client.createAgent(customAgent);

        try {
            // 3. Start the Interaction
            AgentInteractionParams params = AgentInteractionParams.builder()
                .agent(agentId)
                .input("Clone https://github.com/glaforge/gemini-interactions-api-sdk and explain its pom.xml structure.")
                .environment("remote") // Crucial: Run in cloud sandbox
                .build();

            System.out.println("Starting clone and analysis (polling status)...");
            Interaction interaction = client.create(params);

            // 4. Poll for completion
            while (interaction.status() != Interaction.Status.COMPLETED) {
                System.out.println("Agent working... Status: " + interaction.status());
                Thread.sleep(5000);
                interaction = client.get(interaction.id());
            }

            // 5. Output the results
            System.out.println("\n--- Architectural Analysis ---");
            interaction.steps().stream()
                .filter(step -> step instanceof Step.ModelOutputStep)
                .flatMap(step -> ((Step.ModelOutputStep) step).content().stream())
                .filter(content -> content instanceof Content.TextContent)
                .forEach(content -> System.out.println(((Content.TextContent) content).text()));

        } finally {
            // 6. Clean up resources
            client.deleteAgent(agentId);
            System.out.println("\nCustom agent resource deleted from cloud.");
        }
    }
}

Kodu çalıştırma

mvn compile exec:java -Dexec.mainClass=com.example.GitHubAnalyzer

Oluşturulan Analiz Çıkışı

Özel temsilci tarafından oluşturulan mimari analiz raporunun tamamını, depoyu klonladıktan sonra buradan görüntüleyebilirsiniz:

GitHub Analyzer çıkışını görüntüleme (github_analysis_report.md)

9. Tebrikler!

Codelab'i tamamladınız ve Gemini Interactions SDK'yı kullanarak Java'da karmaşık, çok formatlı ve temsilci tabanlı iş akışları oluşturmayı öğrendiniz.

Başarılarınız:

  1. Adım mimarisinde gezinme: Standart modelleri sorgulamak için yeni polimorfik adım mimarisini kullandınız.
  2. Akışlı İfadeli TTS: Sesi anlık olarak yayınlamak için Yönetmen Notları ve satır içi duygu etiketleri kullanıldı.
  3. Üretilen müzik: Lyria 3 ile üretilen MP3 parçaları ve şarkı sözleri.
  4. Üretilen görsel notlar: Gemini 3 Pro Image (Nano Banana Pro) kullanılarak görsel özetler oluşturuldu.
  5. Yönlendirmeli Deep Research: Araştırma planlarını hassaslaştırmak için ortak planlamadan yararlanıldı.
  6. Temel hazırlığı yapılmış özel temsilciler: Kodu güvenli bir şekilde yürütmek için özel ağ çıkış kontrolüne sahip korumalı alan ortamları oluşturuldu.

Daha Fazla Bilgi: