Feature/langgraph gemini example#473
Conversation
- Demonstrates LangGraph integration with Google Gemini - Includes bulletproof placeholder handling for APO - Adds persistent training result storage - Provides Windows compatibility fixes - Comprehensive README with troubleshooting
|
@microsoft-github-policy-service agree |
|
Hi. Thanks a lot for the contribution! Would you be willing to move the example to |
|
Hi @ultmaster Thanks for the quick feedback! I'd be happy to move the example to contrib/recipes. I noticed the test failures are in the Should I:
Or would you prefer I close this and open a new PR directly in contrib/recipes with the formatting fixes? Happy to do whichever is easiest for you! |
The |
… Moved examples/langgraph-news-agent to contrib/recipes/langgraph-news-agent- Applied pre-commit formatting (isort, black, trailing whitespace)- Fixed end-of-file newlines- Merged latest changes from main branch
|
Done! I've merged the latest changes from main, applied all pre-commit formatting fixes, and moved the example to contrib/recipes/langgraph-news-agent as requested. Ready for review! |
Summary
Adds a complete LangGraph + Google Gemini integration example demonstrating APO (Automatic Prompt Optimization) training.
Features
What's Included
agent_train.py- Complete training script with news agent + APO setupREADME.md- Detailed setup instructions and troubleshootingrequirements.txt- All Python dependencies.env.example- API key configuration template.gitignore- Prevents accidental secret commitsProblem Solved
This example addresses common issues developers face when integrating LangGraph with Agent Lightning:
{query}, causing runtime errorsbeam_roundsparameter causes training to run indefinitelyTesting
Tested on:
Related
This example fills a gap in the current examples - there are no LangGraph integrations or non-OpenAI LLM examples in the repository yet.
Note: I'm writing a companion blog article with a detailed walkthrough that
can serve as additional community documentation.