-
Notifications
You must be signed in to change notification settings - Fork 8
Required environment variables for quickstart agent example? #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @mikael-andersson91 , This problem is not related to the misconfiguration of environment variables.
in your Thanks for opening this issue, we are currently working on an improvement to surface the underlying environment preparation errors on serverless executions. |
I've tried all the proposed solutions here, added the section to my toml file and moved my Python file to a src sub-folder. Same error as before. Here's a snippet of my project folder: toml contents:
And the rest is the exact project from the quickstart guide, with Anthropic usage removed. |
@mikael-andersson91 please attach here the NuGet ( |
my-agent.2.5.1-pr-64-dd42293.nupkg.zip I've got all of this in a private repository. Adding you temporarily as a collaborator to it. And as for what is what in there: The last workflow is what is used to combine packing and deployment of the Agent project, used here |
Thanks for providing the requested info. The problem is with the package version created by the github workflow (eg. To see the environment preparation error logs in cloud, you can now set |
I get the same error with regular release versions, such as 1.0.0 and 2.0.0 |
Or wait, I've got a working version now. Seems like the toml and src changes did the trick with a new release version: |
So I will just have to make sure to make my prerelease versions use a better version convention. Good to know :) |
Glad to see this problem solved. |
I have been trying to follow the Quickstart Guide: UiPath LangChain Agents example to build my first agent.
In my version of it, I've removed any usage of Anthropic, otherwise everything is still the same in my agent as it is in the quickstart guide.
When I run the agent locally, after having authenticated to Orchestrator and setup my OPENAI_API_KEY environment variable, everything is working fine. However, whenever I try to run it from Orchestrator I always get the same error:
{"Code":"Serverless.PythonCodedAgent.PrepareEnvironmentError","Title":"Failed to prepare environment","Detail":"An error occurred while installing the package dependencies. Please try again. If the error persists, please contact support.","Category":"System","Status":null}
From trying my luck with support from the forum (see this post), I was pointed to the fact that my environment credentials were incorrectly setup.
Which brings me to my next question... Where do I find which environment variables are required? And which environment variables are required to be configured in Orchestrator for a bare-minimum agent?
The text was updated successfully, but these errors were encountered: