Feature/langgraph gemini example #473
Open
+495
−0
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.