Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

christian-kreuzberger-dtx
Copy link
Collaborator

AI Alert This PR has been fully created with the power of GitHub Copilot

  • Replace manual API calls with @dynatrace-sdk/client-davis-copilot
  • Simplify imports by removing unused type exports
  • Keep only Dql2NlResponse export for external compatibility
  • Improve reliability and maintainability of Davis CoPilot functions
  • Update function implementations to use PublicClient from official SDK

Copy link

github-actions bot commented Sep 15, 2025

📦 Package.json Changes Detected

This PR modifies package.json. Please review the following changes carefully, and tick the following checklist boxes:

Checklist for Reviewers

  • Verify that new and/or updated dependencies are necessary and from trusted sources
  • Review any script changes for (security) implications
  • Verify whether a new version should be released after merging the PR

Package.json Diff

diff --git a/package.json b/package.json
index 3f2b9e1..dfb80bb 100644
--- a/package.json
+++ b/package.json
@@ -48,6 +48,7 @@
   "license": "MIT",
   "dependencies": {
     "@dynatrace-sdk/client-automation": "^5.3.0",
+    "@dynatrace-sdk/client-davis-copilot": "^1.0.0",
     "@dynatrace-sdk/client-platform-management-service": "^1.6.3",
     "@dynatrace-sdk/client-query": "^1.18.1",
     "@dynatrace-sdk/shared-errors": "^1.0.0",

This comment was automatically generated by the PR Package.json Comment workflow.

src/capabilities/davis-copilot.ts Outdated Show resolved Hide resolved
@MrManny MrManny requested a review from Copilot September 16, 2025 12:12
@MrManny
Copy link
Collaborator

MrManny commented Sep 16, 2025

AI Alert This PR has been fully created with the power of GitHub Copilot

AI Alert This PR has been fully reviewed with the power of GitHub Copilot

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the Davis CoPilot integration to use the official @dynatrace-sdk/client-davis-copilot package instead of manual API calls. The main objective is to improve reliability and maintainability by replacing custom HTTP requests with standardized SDK methods.

  • Migrated from manual HTTP client calls to the official Dynatrace SDK for Davis CoPilot
  • Removed extensive manual type definitions in favor of SDK imports
  • Added response handling logic for streaming and non-streaming conversation responses

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/capabilities/davis-copilot.ts Major refactor replacing manual API calls with official SDK client, removing custom type definitions, and adding response handling for conversation API
package.json Added dependency for @dynatrace-sdk/client-davis-copilot package
CHANGELOG.md Added entry documenting the migration to official SDK

src/capabilities/davis-copilot.ts Show resolved Hide resolved
src/capabilities/davis-copilot.ts Outdated Show resolved Hide resolved
src/capabilities/davis-copilot.ts Outdated Show resolved Hide resolved
@christian-kreuzberger-dtx
Copy link
Collaborator Author

@raphael-wigoutschnigg-dt @MrManny please re-review. I've looked into the API and SDK, and removed handling for streaming responses in the chat endpoint.

@MrManny
Copy link
Collaborator

MrManny commented Sep 16, 2025

@raphael-wigoutschnigg-dt @MrManny please re-review. I've looked into the API and SDK, and removed handling for streaming responses in the chat endpoint.

Will do! Sorry, was a bit tied up with meetings today, so I tried to delegate this to Copilot for maximum irony. Will probably get to it tomorrow before lunch.

- Replace manual API calls with @dynatrace-sdk/client-davis-copilot
- Simplify imports by removing unused type exports
- Keep only Dql2NlResponse export for external compatibility
- Improve reliability and maintainability of Davis CoPilot functions
- Update function implementations to use PublicClient from official SDK
@christian-kreuzberger-dtx christian-kreuzberger-dtx force-pushed the feature/refactor-davis-copilot-to-official-sdk branch from bf9ceee to 9b45112 Compare September 17, 2025 16:58
@christian-kreuzberger-dtx christian-kreuzberger-dtx merged commit ddb49d9 into main Sep 17, 2025
5 checks passed
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.