Skip to content

feat: add possibility to save and delete prompts#99

Merged
VinShurik merged 2 commits into
developmentfrom
feat/upload-prompts
May 28, 2026
Merged

feat: add possibility to save and delete prompts#99
VinShurik merged 2 commits into
developmentfrom
feat/upload-prompts

Conversation

@VinShurik
Copy link
Copy Markdown
Contributor

Applicable issues

Description of changes

  • Added save() and delete() methods for prompts in both sync (Prompts) and async (AsyncPrompts) clients.
  • Implemented ETag-aware conditional operations (If-Match, If-None-Match) and mapped 412 responses to EtagMismatchError (keeping 404 -> ResourceNotFoundError).
  • Added/expanded unit tests for save/delete success, header/payload behavior, URL validation, and error mapping.
  • Added sync/async integration tests for prompt save/get/delete flows and ETag scenarios.
  • Updated README Prompts section with new save/delete usage examples for both sync and async clients.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@VinShurik VinShurik requested a review from adubovik as a code owner May 28, 2026 08:29
@VinShurik VinShurik changed the title add possibility to save and delete prompts feat: add possibility to save and delete prompts May 28, 2026
@VinShurik VinShurik requested a review from ypldan May 28, 2026 08:51
@ypldan ypldan removed the request for review from adubovik May 28, 2026 10:25
@VinShurik VinShurik merged commit b83c5b8 into development May 28, 2026
11 of 12 checks passed
@VinShurik VinShurik deleted the feat/upload-prompts branch May 28, 2026 12:06
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.

Add Prompt Save/Delete Support to Python Client

3 participants