Cristian Fontanilla
05/07/2026, 10:20 PMvertex-ai provider and I want to leverage some Google-specific features directly from my clients.baml configuration.
My use cases — I want to know if and how these are supported:
1. Google Search grounding
2. URL Context
3. RAG Engine Grounding (Vertex RAG Engine with ragCorpora)
4. Cached Content (explicit caching with a pre-created cache name)
5. File Inputs — both from GCS (gs:// URLs) and runtime uploads (user-uploaded files)
What I understand so far:
- BAML's vertex-ai provider does pass-through of unknown options fields to the Vertex REST API
- generationConfig and safetySettings are documented and work
- For the features above, I'm not sure if the pass-through covers them, or if there's a different recommended approach in BAML
My question:
Is there an officially supported way to use these Vertex AI features directly from clients.baml? If so, what's the correct syntax? If not, what's the recommended pattern for integrating them in a BAML-based project?
Thanks! 🙏aaronv (BAML)
05/07/2026, 10:49 PMCristian Fontanilla
05/13/2026, 8:19 PMaaronv (BAML)
05/13/2026, 8:30 PM