Repository navigation
feat(cobuild): resolve object references to Dataiku UI links - #218
Conversation
ec3c4df to
14675be
Compare
crmapj
left a comment
There was a problem hiding this comment.
The additive object_links field and instance pinning look good. Please fix the GenAI evaluation store URL and its test before merging. The Markdown parsing note is non-blocking.
| "FINE_TUNED_MODEL": "savedmodels/{id}/versions/", | ||
| "GEN_AI_MODEL": "savedmodels/{id}/versions/", | ||
| "MODEL_EVALUATION_STORE": "modelevaluationstores/{id}/evaluations/", | ||
| "GENAI_EVALUATION_STORE": "modelevaluationstores/{id}/evaluations/", |
There was a problem hiding this comment.
GENAI_EVALUATION_STORE currently gets the classic model evaluation store URL. The DSS 15.1 and 15.2 routers register the GenAI view at /projects/{projectKey}/genaievaluationstores/{id}/evaluations/. Please use genaievaluationstores/{id}/evaluations/ for this type, keep modelevaluationstores/ for MODEL_EVALUATION_STORE, and update the test that currently expects the classic path.
| "LABELING_TASK": "labelingtasks/{id}", | ||
| "FLOW_ZONE": "flow/?zoneId={id}", | ||
| } | ||
| _OBJECT_LINK = re.compile(r"\]\(([A-Z_]+):((?:\\.|[^)\\\r\n])+)\)", re.IGNORECASE) |
There was a problem hiding this comment.
Non-blocking: this matches the ]( suffix even without an opening bracket, and it also extracts links from inline code. I verified that both name](DATASET:example) and a backticked [name](DATASET:example) produce an entry. Please consider limiting extraction to actual inline links and adding negative tests for those cases.
crmapj
left a comment
There was a problem hiding this comment.
Thanks for fixing the GenAI evaluation store route. I verified that GenAI and classic stores now resolve to their respective views and that the resolver skips the Markdown cases from the earlier review. All 41 focused Cobuild and link tests passed.
This is a V1 of returning Dataiku object links through headless to the agent. Starting by just propagating links generated by Cobuild through the Cobuild conversation tools.
Cobuild returns Dataiku object references such as
[app](WEB_APP:PROJECT.id), which are not browser URLs outside Dataiku. Addobject_linksto terminal Cobuild responses, resolving supported references into absolute UI URLs on the conversation's pinned instance while preserving the original message.The resolver handles local and project-qualified IDs, URL-encodes identifiers, deduplicates destinations, and leaves unknown or invalid references unresolved. The Cobuild guide tells agents to share relevant links after verified milestones and fall back to
project_urlwhen needed. Destinations follow Dataiku's default object views.Stacked on #194 (
feat/product-api-operations) to use the shared-helper organization. This PR changes only the Cobuild resolver, its tests, and related documentation.Validation:
uv sync --lockeduv run pre-commit run --all-files --show-diff-on-failureuv run pytest: 1,036 passed; two Linux-only TLS tests skipped on macOSuv buildand a clean Python 3.12 wheel import/link-resolution smoke test