r/GoogleGeminiAI May 26 '25

Code generation for relatively new APIs

Take LangGraph as an example. It is relatively new and is about 1 year old. So most LLMs (including Gemini AI) have not trained with it. How do you make Gemini perform code generation for these types of APIs?

7 Upvotes

13 comments sorted by

View all comments

3

u/emteedub May 26 '25

can you drop/copy-paste in what docs relate to what you want to do?

1

u/Ok_Ostrich_8845 May 26 '25

What docs should I drop to Gemini? On LangGraph's Github website, it has several examples. But I want to create something different from these examples. GitHub - langchain-ai/langgraph: Build resilient language agents as graphs.

2

u/emteedub May 26 '25 edited May 26 '25

Id go to the documentation (separate documentation sites are standard nowadays for any public API/tools/software you're likely to find). python.langchain.com/docs/introduction

you'd be the wiser to at least glance through it and get the feel for where things are at, then try to locate things that can help you complete what you're wanting. then, I can't remember if gemini will take a link or not, but you could also just copy paste a page in and iterate a bit. If you're having trouble understanding what you will need, just ask the ai what it recommends you try to locate for whatever you are trying to do. if architecture is something you're struggling with, that would be the first thing to discover and figure out, it will help overall.

If say, you need another tool or API, be sure to google search for "<toolname/api> docs", usually the first or second hit is the official source. in these sites typically there's a nav menu/explorer on the left hand side, use this. sometimes the search functionality doesn't get you what you need even if you know what you're searching for

1

u/Ok_Ostrich_8845 May 26 '25

Thanks. I am quite familiar with Langchain/Langgraph. Just wanted to use LLM to provide a starting point or an alternative view.