Skip to content

feat: Restruccturing Simulation eval and Scenario docs according to the latest code#630

Open
sarthakFuture wants to merge 3 commits into
devfrom
feature/run-test-apis
Open

feat: Restruccturing Simulation eval and Scenario docs according to the latest code#630
sarthakFuture wants to merge 3 commits into
devfrom
feature/run-test-apis

Conversation

@sarthakFuture
Copy link
Copy Markdown
Contributor

@sarthakFuture sarthakFuture commented May 4, 2026

…t, Eval, and Summary APIs

  • Added validation alignment plan for Column Management APIs, addressing security gaps and backend validation inconsistencies.
  • Created new MCP tools for Run Prompt APIs, enhancing validation and organization filtering.
  • Established shared validation utilities for Eval APIs, fixing organization filtering issues and ensuring consistent validation across layers.
  • Implemented organization filtering and bug fixes in Summary APIs to prevent cross-org data leaks and improve error handling.
  • Introduced centralized API base URL configuration for frontend integration.

Pull Request

Description

Describe the changes in this pull request:

  • What feature/bug does this PR address?
  • Provide any relevant links or screenshots.

Checklist

  • Code compiles correctly.
  • Created/updated tests.
  • Linting and formatting applied.
  • Documentation updated.

Linear

Fixes TH-4913

Related Issues

Closes #<issue_number>

…t, Eval, and Summary APIs

- Added validation alignment plan for Column Management APIs, addressing security gaps and backend validation inconsistencies.
- Created new MCP tools for Run Prompt APIs, enhancing validation and organization filtering.
- Established shared validation utilities for Eval APIs, fixing organization filtering issues and ensuring consistent validation across layers.
- Implemented organization filtering and bug fixes in Summary APIs to prevent cross-org data leaks and improve error handling.
- Introduced centralized API base URL configuration for frontend integration.
@sarthakFuture sarthakFuture requested review from hadarishav and nik13 May 4, 2026 07:57
Copy link
Copy Markdown
Contributor

@KarthikAvinashFI KarthikAvinashFI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title, desc and the diff don't seem to match..

Have added few comments and also getcallexecutions.mdx, updatetestcomponents.mdx, addemptyrowstodataset.mdx are 0-byte in the diff but the underlying endpoints (GET /simulate/run-tests/{id}/call-executions/, PATCH /simulate/run-tests/{id}/components/, POST /model-hub/develops/{id}/add_empty_rows/) still seem live on prod.
So, were these meant to be deleted, or left as empty placeholders?

Also - there seem to be merge conflicts with the other PR that was merged. Could you pls resolve them?

{"name": "execution_ids", "in": "query", "required": false, "description": "JSON-encoded array of test execution UUIDs to compare.", "type": "string"}
]}
responseExample={{"execution-uuid-1": {"evaluations": [{"name": "Tone Check", "average_score": 0.85}]}, "execution-uuid-2": {"evaluations": [{"name": "Tone Check", "average_score": 0.92}]}}}
responseExample={{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prod wraps it in {status, result: {...}}.
Is this an intended new shape, or should it reflect prod?

Comment thread src/pages/docs/api/run-tests/createruntest.mdx
</ParamField>
<ParamField name="404" type="Not Found">
No test run found with the specified `run_test_id`.
```json
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the newly added error blocks against Prod - with bogus inputs: a non-matching UUID returns HTTP 500 (not 404) with {"result": "Unable to fetch evaluation summary. Please try again"}, and 401 comes back as {"detail": "..."}.

@sarthakFuture sarthakFuture changed the title feat: Implement validation alignment for Column Management, Run Promp… feat: Restruccturing Simulation eval and Scenario docs according to the latest code May 14, 2026
@KarthikAvinashFI KarthikAvinashFI force-pushed the feature/run-test-apis branch from 148a286 to a440927 Compare May 16, 2026 09:45
Copy link
Copy Markdown
Contributor

nik13 commented May 21, 2026

@sarthakFuture whats the status on this? relevant ?

@sarthakFuture
Copy link
Copy Markdown
Contributor Author

sir isko aaj kl mein close krdunga....my bad aaj hi krdeta....ek do sanity changes krne the
@nik13

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.

3 participants