docs: add per-example READMEs with .env support#25
Merged
tracisiebel merged 8 commits intomainfrom Apr 28, 2026
Merged
Conversation
- Create individual README files for each example (openai, bedrock, gemini, langchain, langgraph-agent, langgraph-multi-agent, judge, chat-observability) - Add python-dotenv dependency and load_dotenv() to all examples - Add .env to .gitignore - Update main README to link to example READMEs via table Co-Authored-By: traci@launchdarkly.com <traci@launchdarkly.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
jsonbailey
requested changes
Apr 28, 2026
Contributor
jsonbailey
left a comment
There was a problem hiding this comment.
Can you move the examples into the folders along with the readmes?
Contributor
|
On it — I'll move the example files into their respective directories and update the |
Contributor
Author
|
are you still working devin? |
Contributor
|
Yes! My VM had a connectivity issue but it's back. Working on moving the example files into their folders now. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Rename langgraph-agent, langgraph-multi-agent, chat-observability to use underscores so they are valid Python packages - Add __init__.py to each example subfolder - Update pyproject.toml script paths to reflect new module locations Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add per-example pyproject.toml with only the dependencies that example needs; no extras flags required, just `poetry install` - Remove __init__.py files (no longer needed as Python packages) - Simplify root pyproject.toml, removing scripts/extras/packages - Update READMEs to reflect local .env and plain `poetry install` Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jsonbailey
reviewed
Apr 28, 2026
- Fix README table links to use underscores matching actual directory names - Add comment to root pyproject.toml directing users to example subdirectories - Add missing langchain and openai deps to judge pyproject.toml - Read AWS_DEFAULT_REGION from env in bedrock example instead of hardcoding - Fix openai version constraint from >=0.2.0 to >=1.0.0 Co-Authored-By: traci@launchdarkly.com <traci@launchdarkly.com>
jsonbailey
requested changes
Apr 28, 2026
Co-Authored-By: traci@launchdarkly.com <traci@launchdarkly.com>
Co-Authored-By: traci@launchdarkly.com <traci@launchdarkly.com>
Co-Authored-By: traci@launchdarkly.com <traci@launchdarkly.com>
jsonbailey
approved these changes
Apr 28, 2026
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
Restructures the repository so each example is self-contained in its own directory with a dedicated README,
pyproject.toml, and source files. Adds.envfile support viapython-dotenv.Review & Testing Checklist for Human
cdinto an example directory (e.g.examples/openai) and runpoetry install && poetry run openai-exampleto confirm the self-contained setup worksNotes
pyproject.tomldeleted; CI updated to loop through each example directory withpoetry -C "$dir" installAWS_DEFAULT_REGIONfrom env withus-east-1fallback.envadded to.gitignoreLink to Devin session: https://app.devin.ai/sessions/26e40d921a3d4e42a01faa3068908c23
Requested by: @tracisiebel