MulaiMulai sekarang secara gratis

In the loop: Running our agent

Latihan ini adalah bagian dari kursus

Building AI Agents with Google ADK

Lihat Kursus

Petunjuk latihan

You're now ready to bring your agent to life! To chat with your LlmAgent, stitch together these essential elements:

  • Set the session ID to "welcome_session".
  • Create a session, using the session service to initialize the session.
  • Initialize a Runner using the agent, app name, and session service.
  • Call the runner asynchronously to stream the response from the agent.


Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga