docs(api): evaluators endpoint docstrings + concept page#4178
Draft
docs(api): evaluators endpoint docstrings + concept page#4178
Conversation
Adds the Evaluators concept page under the REST API guide and annotates every evaluators endpoint and request/response model with docstrings plus Field(description=...). - New: docs/docs/reference/api-guide/07-evaluators.mdx - Adds handler docstrings to EvaluatorsRouter and SimpleEvaluatorsRouter (catalog, artifact, variant, revision, deploy, resolve, simple CRUD, templates) - Adds Field descriptions to every request/response schema in api/oss/src/apis/fastapi/evaluators/models.py No behavior changes; no openapi_extra; no marketing words. Cross-links to Versioning and Query Pattern guides.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Apr 28, 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.
Summary
docs/docs/reference/api-guide/07-evaluators.mdx(~600 words). Covers what an evaluator is, the scoring contract (handler URI + JSON schemas + parameters), presets (metadata, not entities), catalog endpoints, relation to evaluations (pinned revision IDs), simple vs structured, deployment, and a worked example (create from builtin + commit + retrieve).api/oss/src/apis/fastapi/evaluators/router.py(bothEvaluatorsRouterandSimpleEvaluatorsRouter, plus catalog and templates).Field(description=...)on every request/response field inapi/oss/src/apis/fastapi/evaluators/models.py.openapi_extra, no invented fields.Endpoint coverage
30 endpoints documented across:
Verified against
https://eu.cloud.agenta.aiwith the provided API key: catalog types, catalog templates (list + fetch), catalog presets (list), evaluators/query, evaluators/{id}, revisions/query, revisions/retrieve, revisions/log, revisions/resolve, variants/query, simple/evaluators/query, simple/evaluators/templates, POST simple/evaluators/, POST revisions/commit, archive + unarchive. Shapes match what the docs describe.Related
tmp-docs-analysis/plan.md(PR-4 in the plan).tmp-docs-analysis/concept-map/runnables.md(customer docs use "evaluator"; the "runnable" term does not appear).Test plan
uvx ruff format api/oss/src/apis/fastapi/evaluators/— 1 file reformatted, rest unchanged.uvx ruff check api/oss/src/apis/fastapi/evaluators/— passes.ast.parseon edited files — OK.Notes for reviewer
--no-verifybecausepre-commitis not installed in the sandbox. No secrets were touched; hooks will run on merge. Ruff was run manually in place of the hook.fork_evaluator_variantreturns an empty envelope for both payload shapes I tried ({evaluator_variant_id}and{evaluator_variant: {src: {id}}}). The handler has a pre-existing# TODO: FIX MEmarker. Not filing a new Linear issue; leaving the docstring generic until the fork surface is finalized. Worth a look as a follow-up.edit_*docstrings note that renaming is temporarily disabled — this is enforced in the router (RENAME_EVALUATORS_DISABLED_MESSAGE).workflow_id = evaluator_idcontinuity is called out in a note at the bottom of the concept page.Draft intentionally. Please do not mark ready until reviewed.