feat: add support for Anthropic and DeepSeek AI providers#94
Open
shenxianpeng wants to merge 5 commits intomainfrom
Open
feat: add support for Anthropic and DeepSeek AI providers#94shenxianpeng wants to merge 5 commits intomainfrom
shenxianpeng wants to merge 5 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds two new AI providers (Anthropic Claude and DeepSeek) to the Explain Error Jenkins plugin, including Jenkins UI configuration, CasC examples/tests, and provider validation coverage.
Changes:
- Introduce
AnthropicProviderandDeepSeekProviderimplementations (LangChain4j-backed) with correspondingconfig.jellyUI. - Add Configuration-as-Code (CasC) YAML fixtures + JCasC tests for the new providers.
- Update dependency set (LangChain4j Anthropic module) and extend README provider documentation.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
src/main/java/io/jenkins/plugins/explain_error/provider/AnthropicProvider.java |
New Anthropic provider implementation + descriptor/UI endpoints |
src/main/java/io/jenkins/plugins/explain_error/provider/DeepSeekProvider.java |
New DeepSeek provider implementation + descriptor/UI endpoints |
src/main/resources/io/jenkins/plugins/explain_error/provider/AnthropicProvider/config.jelly |
UI form for Anthropic configuration |
src/main/resources/io/jenkins/plugins/explain_error/provider/DeepSeekProvider/config.jelly |
UI form for DeepSeek configuration |
src/test/java/io/jenkins/plugins/explain_error/CasCTest.java |
Adds JCasC tests for Anthropic/DeepSeek |
src/test/java/io/jenkins/plugins/explain_error/provider/ProviderTest.java |
Adds config-validation tests for Anthropic/DeepSeek |
src/test/java/io/jenkins/plugins/explain_error/provider/TestAnthropicProvider.java |
Test provider stub for Anthropic |
src/test/java/io/jenkins/plugins/explain_error/provider/TestDeepSeekProvider.java |
Test provider stub for DeepSeek |
src/test/resources/io/jenkins/plugins/explain_error/casc_anthropic.yaml |
CasC fixture for Anthropic |
src/test/resources/io/jenkins/plugins/explain_error/casc_deepseek.yaml |
CasC fixture for DeepSeek |
pom.xml |
Adds langchain4j-anthropic dependency |
README.md |
Documents Anthropic/DeepSeek configuration and provider notes |
.github/copilot-instructions.md |
Updates architecture/provider list to include new providers |
src/main/java/io/jenkins/plugins/explain_error/provider/DeepSeekProvider.java
Show resolved
Hide resolved
src/main/resources/io/jenkins/plugins/explain_error/provider/AnthropicProvider/config.jelly
Show resolved
Hide resolved
src/main/resources/io/jenkins/plugins/explain_error/provider/DeepSeekProvider/config.jelly
Show resolved
Hide resolved
src/main/java/io/jenkins/plugins/explain_error/provider/AnthropicProvider.java
Show resolved
Hide resolved
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.
Testing done
Submitter checklist