-
Notifications
You must be signed in to change notification settings - Fork 199
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
feat: dc with api plugin generator & template update #12104
Conversation
yuqizhou77
commented
Jul 30, 2024
•
edited
Loading
edited
- A new generator for apps with API plugin built with Azure Function.
- Updated API plugin from scratch with none auth template by combining contents from the original api-plugin-from-scratch and "copilot-gpt-from-scratch-plugin". Will update templates with api key and oauth later. (TODO: will ask PM to review all readmes later.)
- Updated icons in some templates including templates of copilot extension without source code, bot plugins and api plugin from scratch with none auth.
packages/fx-core/src/component/generator/declarativeCopilotAction/generator.ts
Fixed
Show fixed
Hide fixed
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #12104 +/- ##
========================================
Coverage 89.44% 89.45%
========================================
Files 570 571 +1
Lines 33554 33583 +29
Branches 6626 6464 -162
========================================
+ Hits 30014 30043 +29
Misses 1583 1583
Partials 1957 1957
|
isDeclarativeCopilot = "is-declarative-copilot", | ||
} | ||
|
||
export class ApiPluginFromScratchGenerator extends DefaultTemplateGenerator { |
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.
You may want to add a property named componentName
. So that we can distinguish the telemetry events that are from this generator.
isDeclarativeCopilot = "is-declarative-copilot", | ||
} | ||
|
||
export class ApiPluginFromScratchGenerator extends DefaultTemplateGenerator { |
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.
A small suggestion: can we call it CopilotExtensionGenerator
?
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.
I want to differentiate it from the SpecGenerator in apispec folder. so maybe copilotExtensionFromScrathGenerator?
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.
Sure, my concern is this generator is not only for the API Plugin