Repository navigation
Conversation
`multi_turn_simulation()` calls `POST /agents/{systemVersionId}/simulate`
once per turn. That endpoint was removed from the API in
scorecard-ai/scorecard#1008, which retired the Sim Agents and multi-turn
simulation surfaces, so every call now 404s. The helper cannot be made
to work from the client side.
Removes `src/scorecard_ai/lib/_multi_turn_simulation.py` and its exports
from `scorecard_ai.lib`: `multi_turn_simulation`, `StopCheck`,
`StopChecks`, `ChatMessage`, and `ConversationInfo`. Nothing else in the
package imported the module.
BREAKING CHANGE: `multi_turn_simulation`, `StopCheck`, `StopChecks`,
`ChatMessage`, and `ConversationInfo` are no longer exported from
`scorecard_ai.lib`. The API endpoint they relied on no longer exists, so
pinning an older SDK version does not keep them working.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Yash1hi
approved these changes
Sep 22, 2026
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.
multi_turn_simulation()callsPOST /agents/{systemVersionId}/simulateonce per conversation turn (_multi_turn_simulation.py:210). That endpoint was removed from the API in scorecard-ai/scorecard#1008, which retired the Sim Agents, Endpoints, and Playground surfaces along with endpoint runs and multi-turn simulation.Every call to the helper now 404s, and there is no client-side way to make it work — the simulated-user turn was computed server-side from a Sim Agent's system version, and Sim Agents are gone.
What this removes
src/scorecard_ai/lib/_multi_turn_simulation.pyin full.scorecard_ai.lib:multi_turn_simulation,StopCheck,StopChecks,ChatMessage,ConversationInfo.Nothing else in the package imported that module —
_helpers.pyandwrap_llms.pyare untouched, andrun_and_evaluate/async_run_and_evaluate/wrap*are unaffected.Why removal rather than a deprecation shim
Pinning an older SDK version does not help here: the endpoint is gone server-side, so the helper is dead for every released version, not just this one. A shim that always raises would leave ~300 lines of unreachable code behind for no working upgrade path.
The trade-off is that
from scorecard_ai.lib import ChatMessagenow raisesImportErrorrather than failing at call time.ChatMessagewas aTypedDictofrole/contentdefined inside the multi-turn module and used only by it, so anyone depending on it can replace it with their own two-field dict.Marked
feat!with aBREAKING CHANGE:trailer so release-please cuts a major.Test plan
ruff check src/scorecard_ai/lib/— all checks passed.ruff format --check src/scorecard_ai/lib/— 4 files already formatted.pip install -e .into a clean venv, then importedscorecard_aiandscorecard_ai.lib: both import cleanly,__all__is down to the six surviving names, and none of the five removed names resolve.CHANGELOG.mdentry, left alone.Related
🤖 Generated with Claude Code