Skip to content

chore(vertexai): Clean up the internal Agent Engine structs.#14184

Merged
BenjaminKazemi merged 1 commit intogoogleapis:mainfrom
BenjaminKazemi:vertexai_test_helper
Mar 17, 2026
Merged

chore(vertexai): Clean up the internal Agent Engine structs.#14184
BenjaminKazemi merged 1 commit intogoogleapis:mainfrom
BenjaminKazemi:vertexai_test_helper

Conversation

@BenjaminKazemi
Copy link
Contributor

chore(vertexai): Clean up the internal Agent Engine structs.

@BenjaminKazemi BenjaminKazemi requested review from a team as code owners March 16, 2026 21:46
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request provides a good cleanup of the internal Agent Engine structs by removing redundant code for handling config parameters. The changes are applied consistently across multiple files (agentengines.go, memories.go, memoryrevisions.go, sandboxes.go, sessionevents.go, sessions.go). For functions that process configurations, the redundant assignment after a helper call is removed, relying on the helper to modify the request object directly. For functions where the configuration was not used, the related code blocks are deleted entirely. These changes improve code clarity and maintainability.

@BenjaminKazemi BenjaminKazemi force-pushed the vertexai_test_helper branch 3 times, most recently from f6fe701 to e230439 Compare March 16, 2026 23:17
@BenjaminKazemi BenjaminKazemi merged commit 4fd6b77 into googleapis:main Mar 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants