fix: adk deploy agent_engine uses correct URI during an update

Co-authored-by: Max Ind <maxind@google.com>
PiperOrigin-RevId: 835269976
This commit is contained in:
Max Ind
2025-11-21 10:17:08 -08:00
committed by Copybara-Service
parent 11df1e886d
commit a4453c884c
+1 -1
View File
@@ -915,7 +915,7 @@ def to_agent_engine(
)
else:
if project and region and not agent_engine_id.startswith('projects/'):
agent_engine_id = f'projects/{project}/locations/{region}/agentEngines/{agent_engine_id}'
agent_engine_id = f'projects/{project}/locations/{region}/reasoningEngines/{agent_engine_id}'
client.agent_engines.update(name=agent_engine_id, config=agent_config)
click.secho(f'✅ Updated agent engine: {agent_engine_id}', fg='green')
finally: