fix(tools): sanitize anyOf schemas for Vertex AI function declarations
Pydantic-generated Optional[X] fields produced a wrapping anyOf schema with no top-level type, which Vertex AI rejects. Flattened the pattern into X plus nullable: true, gated on the Vertex AI variant so AI Studio behaviour is unchanged. Merged upstream via Copybara as 642439c.












