Skip to content

feat(sdk): forward target_type and target_id on evaluation calls (5/7)#183

Draft
abhinav-galileo wants to merge 1 commit intoabhi/rfc-1-1-pr4-tenant-aware-writesfrom
abhi/rfc-1-1-pr5-python-sdk-target
Draft

feat(sdk): forward target_type and target_id on evaluation calls (5/7)#183
abhinav-galileo wants to merge 1 commit intoabhi/rfc-1-1-pr4-tenant-aware-writesfrom
abhi/rfc-1-1-pr5-python-sdk-target

Conversation

@abhinav-galileo
Copy link
Copy Markdown
Collaborator

Stacked on top of #182. Kept in draft until the full stack is validated.

Summary

  • Threads optional `target_type` and `target_id` through `check_evaluation`, `check_evaluation_with_local`, and the top-level `evaluate_controls` helper.
  • Fields default to `None` so every existing call site works unchanged.
  • Model-level pairing validation is inherited from `EvaluationRequest`: supplying only one of the two raises before the network call.

Test plan

  • `make check` clean locally (503 SDK tests including 4 new)
  • New SDK coverage:
    • `check_evaluation` forwards both fields into the request body when supplied
    • `check_evaluation` raises `ValidationError` before any server call when only one of the two fields is set
    • `evaluate_controls` forwards both fields through to `check_evaluation_with_local`
    • `evaluate_controls` defaults both fields to `None` when omitted, matching prior behavior
  • Validated on integration branch with PR1-PR5 merged

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@abhinav-galileo abhinav-galileo force-pushed the abhi/rfc-1-1-pr4-tenant-aware-writes branch from 0c1787e to 2532c58 Compare April 20, 2026 20:34
@abhinav-galileo abhinav-galileo force-pushed the abhi/rfc-1-1-pr5-python-sdk-target branch from d6c4da5 to 8652936 Compare April 20, 2026 20:34
@abhinav-galileo abhinav-galileo force-pushed the abhi/rfc-1-1-pr4-tenant-aware-writes branch from 2532c58 to 0bc87a8 Compare April 20, 2026 20:47
@abhinav-galileo abhinav-galileo force-pushed the abhi/rfc-1-1-pr5-python-sdk-target branch from 8652936 to 42fa1fb Compare April 20, 2026 20:48
Threads optional target_type / target_id through check_evaluation,
check_evaluation_with_local, and evaluate_controls so callers can opt into
target-bearing evaluation when the server supports it. Fields default to
None so existing call sites are unchanged.
@abhinav-galileo abhinav-galileo force-pushed the abhi/rfc-1-1-pr4-tenant-aware-writes branch from 0bc87a8 to 5cb6d26 Compare April 20, 2026 20:49
@abhinav-galileo abhinav-galileo force-pushed the abhi/rfc-1-1-pr5-python-sdk-target branch from 42fa1fb to aa5acb0 Compare April 20, 2026 20:49
@abhinav-galileo abhinav-galileo changed the title feat(sdk): forward target_type and target_id on evaluation calls (5/6) feat(sdk): forward target_type and target_id on evaluation calls (5/5) Apr 20, 2026
@abhinav-galileo abhinav-galileo changed the title feat(sdk): forward target_type and target_id on evaluation calls (5/5) feat(sdk): forward target_type and target_id on evaluation calls (5/6) Apr 20, 2026
@abhinav-galileo abhinav-galileo changed the title feat(sdk): forward target_type and target_id on evaluation calls (5/6) feat(sdk): forward target_type and target_id on evaluation calls (5/7) Apr 21, 2026
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