This pull request introduces changes to improve the environment variable loading mechanism and remove redundant load_dotenv calls from multiple files. The key changes include centralizing the loading of environment variables in the __init__.py file and cleaning up the other files accordingly.
This pull request introduces changes to improve the environment variable loading mechanism and remove redundant
load_dotenv
calls from multiple files. The key changes include centralizing the loading of environment variables in the__init__.py
file and cleaning up the other files accordingly.Environment variable management:
src/agent/__init__.py
: Addeddotenv
loading logic to centralize environment variable management. ([src/agent/__init__.pyR1-R11](diffhunk://#diff-e05d322bfca6d9922da50771bd590560cbc8e110a46cfdf3d3ffefe1785e400dR1-R11)
)Code cleanup:
src/agent/completions.py
: Removed redundantload_dotenv
call. ([src/agent/completions.pyL6-L10](diffhunk://#diff-a8368bd8b80728800a31a574835c38f9f17086c0c609f85e33e85db4404f15d4L6-L10)
)src/agent/logging.py
: Removed redundantload_dotenv
call. ([src/agent/logging.pyL6-L8](diffhunk://#diff-e2ac9f83a42dfd736e1404a3ae247df28ddfa23686b8f44443bfbcdb6af9202fL6-L8)
)src/agent/tools.py
: Removed redundantload_dotenv
call. ([src/agent/tools.pyL7-L9](diffhunk://#diff-e0b516691ff100add4484a056628cf60d1ad3e562e1540f1a63a67d44cf3efb6L7-L9)
)