LiteLLM and Google ADK

Google ADK + LiteLLM: Build Model-Agnostic Agents (Gemini, OpenAI, Claude)

Switch between OpenAI, Claude, and Gemini with one line of code 📚 Series Navigation: This is Post 2 of the Google ADK Tutorial Series. ← Previous: Introduction to Google ADK What You’ll Learn By the end of this post, you’ll: Understand how LiteLLM works with ADK Configure multiple LLM providers Switch between models without changing code Implement fallback strategies for reliability Optimize costs by choosing the right model for each task Code on GitHub: The complete working example from this post is available at google-adk-samples/model_agnostic_agent ...

January 16, 2026 · 10 min
Auto-generate MongoDB Queries with OpenAI Assistants API

Auto-generate MongoDB Queries with OpenAI Assistants API

This is a continuation to the previous article on generating MongoDB Queries using OpenAI Chat Completion API . In this article, we will look at how to construct MongoDB Queries using OpenAI Assistants API given an input and an expected output. In this article, we will cover the following: Create an assistant using Assistants API and use it to generate MongoDB queries. Use custom function tool to format the output in JSON format. ...

January 31, 2024 · 13 min
Mastering MongoDB Queries with OpenAI: A Guide to Generating Queries for Desired Outputs

Mastering MongoDB Queries with OpenAI: A Guide to Generating Queries for Desired Outputs

I’m a big fan of mongoplayground.net as it is one of the most useful and widely used tools for swiftly testing various MongoDB queries while working on a problem. Although this tool is really handy and convenient to use, I have always wondered if there is a way to automatically generate the query for a given input and an expected output, rather than having to manually construct these queries. Thanks to Generative AI tools, this is now possible! ...

January 8, 2024 · 12 min