Skip to content

feat: add prompt management to Python SDK - #5

Merged
uddhavdave merged 2 commits into
mainfrom
ud/feat-prompt-mangement
Sep 24, 2026
Merged

uddhavdave merged 2 commits into
mainfrom
ud/feat-prompt-mangement

Conversation

@uddhavdave

@uddhavdave uddhavdave commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Export PromptStore, PromptBinding, ResolvedPrompt, and PromptError from the SDK.
  • Cache text prompts from OpenObserve in memory. Validate names and versions; refresh conditionally via ETags while retaining last-known-good snapshots on refresh failures.
  • Document setup, lifecycle, status, and credential handling; add behavioral tests and the HTTPX dependency.

Verification

  • Python 3.9: ruff check ., ruff format --check ., mypy openobserve, pytest -q tests (121 passed).
  • Matching o2-sre-agent: prompt/configuration/query/telemetry tests (69 passed).

Consumer dependency

The matching o2-sre-agent branch is ud/feat-prompt-mangement. Its registry-based uv.lock cannot be regenerated until openobserve-python-sdk is published; the old telemetry distribution shares the openobserve module namespace and must not be installed alongside it.

@uddhavdave uddhavdave changed the title feat: add remote prompt management to Python SDK feat: add prompt management to Python SDK Sep 24, 2026
@uddhavdave
uddhavdave merged commit 1ce53c7 into main Sep 24, 2026
11 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.

1 participant