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

[PY] feat: add prompt manager #1233

Merged
merged 8 commits into from
Feb 5, 2024
Merged

[PY] feat: add prompt manager #1233

merged 8 commits into from
Feb 5, 2024

Conversation

blackchoey
Copy link
Contributor

@blackchoey blackchoey commented Feb 2, 2024

Linked issues

closes: #1065

Details

  1. Add PromptManager and corresponding classes
  2. Accessing DataSource.name will throw error with TextDataSource instance. Update TextDataSource and DataSource class to expose the name property to fix this issue.
  3. Add from_dict method to some dataclasses to allow them initialize from a json file

Note: augmentations and actions related logic are not included in this PR as they're not ready yet. I have added comments to related issues as follow up items.

Attestation Checklist

  • My code follows the style guidelines of this project

  • I have checked for/fixed spelling, linting, and other errors

  • I have commented my code for clarity

  • I have made corresponding changes to the documentation (updating the doc strings in the code is sufficient)

  • My changes generate no new warnings

  • I have added tests that validates my changes, and provides sufficient test coverage. I have tested with:

    • Local testing
    • E2E testing in Teams
  • New and existing unit tests pass locally with my changes

@blackchoey blackchoey changed the title feat: add prompt manager [PY] feat: add prompt manager Feb 2, 2024
Base automatically changed from chyuan/prompt-and-user-input-message to PYTHON February 4, 2024 01:42
@aacebo aacebo merged commit 1208dbb into PYTHON Feb 5, 2024
18 checks passed
@aacebo aacebo deleted the chyuan/prompt-manager branch February 5, 2024 17:47
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