Environment variables
Part 4 of the Agent Developer Guide
This is Part 4 of the Agent Developer Guide. Start at the beginning here.
Many Python libraries, especially LangChain, use ENV variables to configure their behavior and these ENV variables often contain secrets like the OPENAI_API_KEY.
You can easily map ENV variables to secrets and to global variables using the enviroment configuration entry.
This is an example of passing the OPENAI_API_KEY to the agent and also configuring LangSmith integration:
With this syntax you can leverage the secrets management of LangStream to pass secrets to your agent.
If you have multiple agents in the same pipeline, they won't have access to the secrets of each other.
What's next?
You've reached the end of the Agent Developer Guide. Well done!
Last updated