Skip to content
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

refactor(fx-core): scaffold question and generator refactor #13106

Open
wants to merge 97 commits into
base: dev
Choose a base branch
from

Conversation

jayzhang
Copy link
Member

@jayzhang jayzhang commented Jan 24, 2025

  1. Clean unused template name and template "copilot-gpt-from-scratch-plugin".
  2. Use mapping between question tree node and template name by data property.
  3. Use mapping between generator and template name in activate function.

TODO: Refactor specGenerator to multiple generators in following PR.

@tecton tecton marked this pull request as draft February 7, 2025 03:11
@tecton tecton changed the title refactor: scaffold refactor refactor(fx-core): scaffold question and generator refactor Feb 7, 2025
@jayzhang jayzhang requested a review from anchenyi February 7, 2025 04:51
anchenyi
anchenyi previously approved these changes Feb 8, 2025
@jayzhang jayzhang marked this pull request as ready for review February 8, 2025 01:56
hund030
hund030 previously approved these changes Feb 8, 2025
function checkDeclarativeCopilot(inputs: Inputs) {
return inputs[QuestionNames.Capabilities] === CapabilityOptions.declarativeAgent().id;
}
export const specGenerator = new SpecGenerator();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo? I am guessing you want to export CopilotExtensionGenerator

import { TemplateNames } from "../templateNames";
import { Template } from "./interface";

export const copilotPluginTemplates: Template[] = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This data will be moved to me.ts.

return TemplateNames.DefaultBot;
}

return undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing Declarative Agent? Need to make sure all templates are listed here, otherwise the single select list will b empty.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants