(cli): i think env not apply on code
agentica version
26.0
What platform is your computer? Copy the output of npx envinfo --system -npmPackages cleye --binaries
No response
Describe the bug
i make project, but is not working
i choose nestjs+react,
install and write on env ( ex, aws s3, goole api key etc )
then, server start "npm run start:dev", and looking error message
i handle this error, but let me know you to make happen this error this version agentica
Reproduction
- nestjs+react
- version 26.0
- choose aws apikey, youtube search
- write on env
Validations
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug.
- [x] The provided reproduction is a minimal reproducible example of the bug.
i change code like this.
then, working
@8471919
Sorry. Code writing feature is not implemented yet. because when user didn't enters some env values, the process.env.{VARIABLE}! doesn't recognize what env is entered or not.
how do you think about this?
If user forget some env value to enter like
// .env
AWS_ACCESS_KEY_ID=aws_access_key_id
AWS_SECRET_ACCESS_KEY=no input
// agent.ts
...
controllers: [{
...
execute: new AwsS3Service({
awsAccessKeyId: process.env.AWS_ACCESS_KEY_ID!,
awsSecretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!
})
}]
in above code, If user enter only enter the AWS_ACCESS_KEY, but the AWS_SECRET_ACCESS_KEY(user not input this variable) is existed in props of new AwsS3Service, the user don't know that the Agentica code is well working before running the code.
If you want to ask for us implementing this feature, please create a new issue about this feature.