Replies: 1 comment
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: Yes, this behavior is expected. The Hello! That's an excellent question, and your observations are spot on. Let's break down what's happening and discuss best practices. Why
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When running my ADK agent locally (Developer API), the model always calls the injected set_model_response tool, which cleanly enforces the output schema.
But on Vertex AI, set_model_response is never triggered. Instead, the model outputs JSON directly via response_schema. While the structure matches the schema, the content is sometimes incorrect or incomplete.
Example issue:
The JSON keys match the schema.
But the values (e.g., fields like notes, message, or other optional fields) are often incorrect, missing, or deviate from what the agent logic expects.
My questions:
Is it expected that set_model_response is bypassed entirely on Vertex AI?
If so, how do we ensure the model reliably fills all fields with correct content when using native controlled generation?
Are there recommended best practices for achieving output reliability across both environments (Developer API vs Vertex AI)?
Beta Was this translation helpful? Give feedback.
All reactions