Repository navigation
Add GitHub Enterprise Agent sample - #1314
Open
SZE KEI YAU (skysze-polyu) wants to merge 5 commits into
Open
SZE KEI YAU (skysze-polyu) wants to merge 5 commits into
SZE KEI YAU (skysze-polyu) wants to merge 5 commits into
Conversation
GitHub / GitHub Enterprise integration (desktop + web) with a chat agent and NVIDIA + Mistral language model providers. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
SZE KEI YAU (@skysze-polyu) please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Runs in a real VS Code instance via @vscode/test-electron: activation, command registration, chat participant and language model provider wiring, token counting, GitHubService host/auth logic, agent handler behavior, and Mistral SSE streaming end-to-end against a local server. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- NVIDIA/Mistral providers now fetch the live /models catalog at runtime (5-min cache, denylist filter for non-chat models) with a static fallback, so retired or account-unavailable models never appear in the picker. Verified against the real endpoint: the previously hardcoded meta/llama-3.3-70b-instruct returns 410 Gone. - setApiKey commands accept an optional key argument so automation and tests can set a key without UI interaction. - New real-API test suite (skipped unless NVIDIA_API_KEY is set) runs the full path through the extension's registered provider: live catalog discovery, real streaming completion, and error surfacing for retired models. 20/20 tests passing with a real key. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Every model call now runs through an inference layer that turns the chat/completions upstream into a responses-style agent loop: session start, upstream call, subagents (search, thinking, plan, tool call, test), output. Includes a text-marker protocol parser that tolerates unclosed tool markers, real search/test subagents, orchestrator unit tests, and README documentation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The free-form chat handler now rebuilds ChatContext.history into language model messages (historyToMessages), so multi-turn conversations keep their context instead of losing it every turn. Activation provisions the NVIDIA key from the NVIDIA_API_KEY environment variable when launched for the demo or the test harness, so the provider works with zero manual setup. Adds agent history unit tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New sample extension
github-enterprise-agent-sampledemonstrating:githubvsgithub.enterprise) and GHES REST API base URL handling@enterprise-agentchat participant with/orgsand/reposcommands plus free-form chat viarequest.modelnvidiavendor (NIM API, 4 models)mistralvendor (4 models incl. Codestral)Details
main(Node) +browser(web worker) entries, webpack 5@types/vscodeAPI (noLanguageModelChatMessageRole.System;LanguageModelChatRequestMessagemessages;registerLanguageModelChatProvider(vendor, provider))SecretStorage; GHES host configurable viagithubEnterpriseAgent.hostCo-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com