.zshrc
file. (If updating this file, run source ~/.zshrc
afterward.)
.env
file to store your API key.
.env
file in your project root and store your API key in it:
ParseConfig
class. This approach is also useful in environments where setting environment variables is difficult or not persistent (notebooks, scripts run via cron, etc.). For more information, go to Pass Settings with ParseConfig.
For example:
.env
file: Add .env
to .gitignore
to prevent accidentally committing the API key to version control..env
file but the environment variable is not loading, try these possible solutions to resolve this issue:
.env
file should be in the same directory where you run your script.VISION_AGENT_API_KEY
..zshrc
file, run source ~/.zshrc
.VISION_AGENT_API_KEY
environment variable before importing anything from the library.
ParseConfig
class (in v0.3.0 and later) or the Settings
class (in agentic-doc v0.2.10 and earlier).