Repository navigation
Conversation
…ed graph with its version OntologyService gains the ontology runtime's Records API: read_records (joins as field paths, alternatives, expansions, sort, cursor page, optional run trace), count_records and aggregate_records (answered as SqlResult, the shape /sql answers), each sync and async with the ontology binding and tracing the other methods have. get_graph_view reads the compiled graph as typed views with its ETag and answers None when if_none_match names the current version. OntologyProblem reads a refusal's code, message and per-field faults (pointer, didYouMean, fix) from the EnrichedException. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Ontology runtime's POST /ontology/{id}/records/{object}/aggregate (AggregateReader) reads its
filter and anyOf exactly as a records read does, and a count is an aggregate with no group_by. So
count_records, RecordsCountQuery and RecordsCount are removed: aggregate_records answers how many,
totals and groups with one request shape. The runtime's /count endpoint is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This branch has not been deployed
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.



Why
Agents that answer business questions from an ontology read data through the Ontology service's Records API: one request with joins written as field paths, plus counts, totals and groups through the aggregate endpoint.
OntologyServiceoffered only the raw graph and SQL, so each caller wrote its own HTTP client and models for these calls.What
OntologyService(uipath-platform) gains:read_recordsandaggregate_records(a count is an aggregate with nogroup_by), each sync and async, with theontologybinding (resource_override) and@tracedlike the existing methods.RecordsQuery: select, filter,any_of, expand, sort and a cursor page, with joins as field paths (placedBy.customerName).trace=Truereturns the statements sent.SqlResult, the shape/sqlalready answers.get_graph_view, which reads the compiled graph as typed views (objects, properties with codes, filter operators, measures, relationships with cardinality) together with itsETag. It returnsNonewhenif_none_matchnames the current version (304).OntologyProblem.of(EnrichedException)reads a refusal's code, message,retriableflag and per-field faults (pointer,didYouMean,fix).New modules:
ontology/records.pyandontology/graph.py. Version 0.3.21 → 0.3.22.Verified
tests/services/test_ontology_records.py(pytest-httpx): request bodies by alias, nested records, trace statements, aggregate, path encoding, refusal parsing, and the graph view withETag/304.ruff check,ruff format --checkandmypy src testspass.feat/ontology-agent) against a local Ontology runtime and against alpha Data Fabric.🤖 Generated with Claude Code