-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace os.environ with dotenv for better environment variable manage…
…ment Fixes #68 Update code samples to use `python-dotenv` for environment variable management. * **02-explore-agentic-frameworks/code_samples/02-autogen.ipynb** - Import `load_dotenv` from `dotenv`. - Add `load_dotenv()` after the import statements. - Replace `os.environ` with `os.getenv` for accessing environment variables. * **02-explore-agentic-frameworks/code_samples/02-semantic-kernel.ipynb** - Import `load_dotenv` from `dotenv`. - Add `load_dotenv()` after the import statements. - Replace `os.environ` with `os.getenv` for accessing environment variables. * **04-tool-use/code_samples/04-semantic-kernel-tool.ipynb** - Import `load_dotenv` from `dotenv`. - Add `load_dotenv()` after the import statements. - Replace `os.environ` with `os.getenv` for accessing environment variables. * **04-tool-use/code_samples/04-sematic-kernel-python-aiagent-bookinghotel.ipynb** - Import `load_dotenv` from `dotenv`. - Add `load_dotenv()` after the import statements. - Replace `os.environ` with `os.getenv` for accessing environment variables. * **05-agentic-rag/code_samples/05-autogen-chromadb.ipynb** - Import `load_dotenv` from `dotenv`. - Add `load_dotenv()` after the import statements. - Replace `os.environ` with `os.getenv` for accessing environment variables. * **07-planning-design/code_samples/07-autogen.ipynb** - Import `load_dotenv` from `dotenv`. - Add `load_dotenv()` after the import statements. - Replace `os.environ` with `os.getenv` for accessing environment variables. * **requirements.txt** - Add `python-dotenv` to the list of dependencies. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/ai-agents-for-beginners/issues/68?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
0b48064
commit dcc2f13
Showing
7 changed files
with
20 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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