-
Notifications
You must be signed in to change notification settings - Fork 50
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
fix(agent): fix enable user input bug #642
Conversation
|
How might the second option operate?
|
I have tested both solutions, and they are both functional. However, there is a subtle difference in their behaviour. With the second approach, the action group is always created (as demonstrated in the screenshot below), and the only variation lies in whether it is enabled or disabled. In any case this action group will not be shown in the console as an action group but rather as a configuration parameter on the agent. |
Thank you very much. Upon review, would you mind updating for the second option? |
@aws-rafams . Thank you so much for suggesting the fix. It looks good to me however option 2 by Scott also make sense. once you create the userinput on the console you can enable or disable it. With option 1, Can we please verify that CDK destroy is removing all the resources with SkipResourceInUseCheckOnDelete set to true. |
Please review test results (specifically the % npx projen test --testPathPattern='.*agent\.test.*'
...
Agent with guardrails through addGuardrail
✓ Knowledge Base is created (105 ms)
✓ Data Source is created (1 ms)
✓ Agent is created (1 ms)
✓ Agent is created with one knowledge base (1 ms)
✕ Agent action group and ApiSchema from S3 (2 ms)
✓ Guardrail is associated (17 ms)
✓ Agent Alias is created (1 ms)
✓ No unsuppressed Errors (58 ms)
Agent with guardrails through constructor
✓ Knowledge Base is created (48 ms)
✓ Data Source is created (1 ms)
✓ Agent is created (1 ms)
✓ Agent is created with one knowledge base
✕ Agent action group and ApiSchema from S3 (1 ms)
✓ Guardrail is associated (3 ms)
✓ Agent Alias is created (1 ms)
✓ No unsuppressed Errors (46 ms)
Agent without guardrails
✓ Knowledge Base is created (47 ms)
✓ Data Source is created (1 ms)
✓ Agent is created (1 ms)
✓ Agent is created with one knowledge base
✕ Agent action group and ApiSchema from S3 (1 ms)
✓ Guardrail should not be associated (1 ms)
✓ Agent Alias is created (1 ms)
✓ No unsuppressed Errors (44 ms)
... |
tests have been updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
is anything missing for this PR to be merged? |
I will just test it today in my account and if everything is good will approve, thanks @aws-rafams ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested by deploying an agent and following the steps described in the bug ticket, works as expected. Thanks @aws-rafams for your contribution!
Fixes #626
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.