Mulai Menggunakan Agent Development Kit (ADK) Ulasan

11395 ulasan

There was a code error in adk_project > app_agent > agent.py file. Syntax Error (Line 26): model_name = os. Should be model_name = os.getenv("MODEL_NAME", "gemini-2.5-flash") # Add your specific model name or default here Undefined Variable (Line 73): The code calls cloud_logging_client.close(), but cloud_logging_client is never defined anywhere in your script. This will cause a NameError. You should either remove this line or properly initialize the client earlier in your file: cloud_logging_client = google.cloud.logging.Client() Fixing those will make it work.

Sam Z. · Diulas 22 hari lalu

rubish, stop wasting my time

John D. · Diulas 22 hari lalu

Kaitlyn R. · Diulas 22 hari lalu

Steve P. · Diulas 22 hari lalu

Rick G. · Diulas 22 hari lalu

Chell R. · Diulas 22 hari lalu

Riyaad D. · Diulas 22 hari lalu

Things are broken

Edlan P. · Diulas 22 hari lalu

Steve P. · Diulas 22 hari lalu

There are issues with code. Getting model from OS env variable is missingin agent.py and also there are logging errors when you execute commands.

Varada N. · Diulas 22 hari lalu

Lab Attempt #1 EPIC FAIL. Error in agent code, since there is no source control or history, or ability to reload original code versions in case of accidental code deletion I had this error: NameError: name 'cloud_logging_client' is not defined CloudLoggingHandler shutting down, cannot send logs entries to Cloud Logging due to inconsistent threading behavior at shutdown. To avoid this issue, flush the logging handler manually or switch to StructuredLogHandler. You can also close the CloudLoggingHandler manually via handler.close or client.close. Failed to send 2 pending logs. Lab Attempt #2 Same result, same error. Shall I try doing it again? Lab Attempt #3 Used your competitor Chatgpt to successfully add logging setup code to app_agent/agent.py which fixed the problem. I can email you the corrected file if you like.

Serge M. · Diulas 22 hari lalu

May C. · Diulas 22 hari lalu

Michael Vincent S. · Diulas 22 hari lalu

Nath P. · Diulas 22 hari lalu

Augustine K. · Diulas 22 hari lalu

Jewel V. · Diulas 22 hari lalu

Manoj V. · Diulas 22 hari lalu

Cloud Shell editor isnt working as expected

Shylaja T. · Diulas 22 hari lalu

Adam R. · Diulas 22 hari lalu

Jigar T. · Diulas 22 hari lalu

I couldn't complete, kept getting errors

Roman M. · Diulas 22 hari lalu

Lucas C. · Diulas 22 hari lalu

should update the adk web command to allow crossorigins

Roj H. · Diulas 22 hari lalu

Ivan B. · Diulas 22 hari lalu

not able to create session in adk web

Roj H. · Diulas 22 hari lalu

Kami tidak dapat memastikan bahwa ulasan yang dipublikasikan berasal dari konsumen yang telah membeli atau menggunakan produk terkait. Ulasan tidak diverifikasi oleh Google.