I’m using the Agent SDK (TypeScript library) and would like to set the OPENAI_KEY. I can’t find a way to pass it to my instance of the Agent. The only documented methods are to set the environment variable or call the system-wide “setDefaultOpenAIKey”. Neither of these options works for me because I need to set the key on a function basis.
Do you have any suggestions on how I can pass the key, similar to how the OpenAI class allows instantiation by passing the “apiKey” parameter?