fix(sdk): expose retrieval controls consistently - #3715
Draft
ehz0ah wants to merge 1 commit into
Draft
Conversation
Add time, level, and provenance options to the standalone Python SDK and expose provenance in the TypeScript SDK while preserving existing defaults.
ehz0ah
force-pushed
the
fix/sdk-retrieval-contract-parity
branch
from
August 4, 2026 02:44
875ddb6 to
f73d92d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Expose the retrieval controls already accepted by the OpenViking server through the standalone Python and TypeScript SDKs.
The standalone Python SDK now supports
since,until,time_field,level, andinclude_provenanceon bothfindandsearch. The TypeScript SDK now supportsincludeProvenance, serialized asinclude_provenance.Human Involvement
Related Issue
No single issue covers the cross-SDK parity gap. Go provenance parity remains owned by #2731 and is intentionally not changed here.
Type of Change
Changes Made
includeProvenanceto the TypeScript SDK and send the server'sinclude_provenancefield.Testing
Commands:
ruff format --checkreports pre-existing formatting differences elsewhere in the two touched Python files; this PR avoids unrelated whole-file formatting churn.Checklist
Screenshots (if applicable)
Not applicable.
Additional Notes
The new Python parameters are appended to the existing signatures, preserving positional compatibility. Unset Python and TypeScript options are omitted from request bodies; explicit
falseremains representable for TypeScript provenance.