Feature/langgraph gemini example#473
Open
ParthSingh0506 wants to merge 2 commits intomicrosoft:mainfrom
Open
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
Author
|
@microsoft-github-policy-service agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.