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

Add JsonPathSkill #181

Merged
merged 5 commits into from
Mar 28, 2023
Merged

Add JsonPathSkill #181

merged 5 commits into from
Mar 28, 2023

Conversation

adrianwyatt
Copy link
Contributor

@adrianwyatt adrianwyatt commented Mar 28, 2023

Motivation and Context

Add JsonPathSkill for parsing results from OpenAPI calls.

Description

Simple JsonPath skill with a single SK function. The function supports returning a single value as plaintext, or anything else is returned as reserialized JSON, just as JArrays and JObjects.
I used Newtonsoft.Json for JsonPath parsing since System.Text.Json does not support JsonPath. In the future we could move this into the core skills of the kernel if we write out own JsonPath parser or use a future System.Text.Json.

@dluc
Copy link
Collaborator

dluc commented Mar 28, 2023

seems odd that we have rely to newtonsoft for something that we'll want soon in the core of the kernel

@adrianwyatt adrianwyatt changed the title Feature openapi Add JsonPathSkill Mar 28, 2023
@adrianwyatt adrianwyatt added the PR: ready for review All feedback addressed, ready for reviews label Mar 28, 2023
@adrianwyatt adrianwyatt self-assigned this Mar 28, 2023
@adrianwyatt adrianwyatt added PR: feedback to address Waiting for PR owner to address comments/questions and removed PR: ready for review All feedback addressed, ready for reviews labels Mar 28, 2023
@adrianwyatt adrianwyatt removed the request for review from SergeyMenshykh March 28, 2023 18:43
@adrianwyatt adrianwyatt added PR: ready to merge PR has been approved by all reviewers, and is ready to merge. and removed PR: feedback to address Waiting for PR owner to address comments/questions labels Mar 28, 2023
@shawncal shawncal merged commit 6e47f69 into microsoft:feature-openapi Mar 28, 2023
dehoward pushed a commit to lemillermicrosoft/semantic-kernel that referenced this pull request Jun 1, 2023
### Motivation and Context
Add JsonPathSkill for parsing results from OpenAPI calls.

### Description
Simple JsonPath skill with a single SK function. The function supports
returning a single value as plaintext, or anything else is returned as
reserialized JSON, just as JArrays and JObjects.
I used Newtonsoft.Json for JsonPath parsing since System.Text.Json does
*not* support JsonPath. In the future we could move this into the core
skills of the kernel if we write out own JsonPath parser or use a future
System.Text.Json.
golden-aries pushed a commit to golden-aries/semantic-kernel that referenced this pull request Oct 10, 2023
### Motivation and Context

<!-- Thank you for your contribution to the copilot-chat repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Found copy & paste errors in our deployment scripts usage descriptions.
They don't match the actual options.

### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Clean the usage descriptions for the deployment scripts.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/copilot-chat/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
Bryan-Roe added a commit to BMR-Cloud-Dev/semantic that referenced this pull request Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: ready to merge PR has been approved by all reviewers, and is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants