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

Using semantic memory type enum instead of string in API contract. #410

Merged
merged 5 commits into from
Sep 28, 2023

Conversation

alliscode
Copy link
Member

@alliscode alliscode commented Sep 27, 2023

Motivation and Context

Currently the memory retrieval API requires the name of the memory as input, however, the memoryName is something that's configured in the backend and is not known by external clients. This PR refactors things to use a memoryType based on a stable enum as the public interface to the API which allows the memoryName to remain a configuration detail of the backend.  
-->

See issue #388

Description

Contribution Checklist

@github-actions github-actions bot added the webapi Pull requests that update .net code label Sep 27, 2023
@alliscode alliscode added this pull request to the merge queue Sep 28, 2023
Merged via the queue into microsoft:main with commit 969394b Sep 28, 2023
@alliscode alliscode deleted the memory-name-fix branch September 28, 2023 16:13
teamleader-dev pushed a commit to vlink-group/chat-copilot that referenced this pull request Oct 7, 2024
…icrosoft#410)

### Motivation and Context

Currently the memory retrieval API requires the name of the memory as
input, however, the memoryName is something that's configured in the
backend and is not known by external clients. This PR refactors things
to use a memoryType based on a stable enum as the public interface to
the API which allows the memoryName to remain a configuration detail of
the backend.  
-->

See issue microsoft#388 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

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

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Ben Thomas <[email protected]>
kb0039 pushed a commit to aaronba/chat-copilot that referenced this pull request Jan 8, 2025
…icrosoft#410)

### Motivation and Context

Currently the memory retrieval API requires the name of the memory as
input, however, the memoryName is something that's configured in the
backend and is not known by external clients. This PR refactors things
to use a memoryType based on a stable enum as the public interface to
the API which allows the memoryName to remain a configuration detail of
the backend.  
-->

See issue microsoft#388 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

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

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Ben Thomas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webapi Pull requests that update .net code
Projects
None yet
5 participants