Migration from vertexai.rag to agentplatform: 4 Pitfalls Encountered* vertexai.rag module deprecated, migration to agentplatform required* API rewriting is straightforward but undocumented pitfalls exist* Key changes: client instance pattern and response type modificationslin-yuchen2026.07.16vertexaiagentplatformmigrationragaideprecationapidesigntroubleshootingpythonsdkcloudplatform