agentica icon indicating copy to clipboard operation
agentica copied to clipboard

(cli): i think env not apply on code

Open Deb-neal opened this issue 7 months ago • 3 comments

agentica version

26.0

What platform is your computer? Copy the output of npx envinfo --system -npmPackages cleye --binaries

No response

Describe the bug

Image

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

  1. nestjs+react
  2. version 26.0
  3. choose aws apikey, youtube search
  4. write on env

Validations

Deb-neal avatar May 19 '25 03:05 Deb-neal

i change code like this.

Image

then, working

Deb-neal avatar May 19 '25 03:05 Deb-neal

@8471919

sunrabbit123 avatar May 19 '25 05:05 sunrabbit123

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.

8471919 avatar May 20 '25 05:05 8471919