feat(agent): add ontology binding to Data Fabric context config#1728
Open
sankalp-uipath wants to merge 14 commits into
Open
feat(agent): add ontology binding to Data Fabric context config#1728sankalp-uipath wants to merge 14 commits into
sankalp-uipath wants to merge 14 commits into
Conversation
| None, description="Context settings" | ||
| ) | ||
| entity_set: Optional[List[DataFabricEntityItem]] = Field(None, alias="entitySet") | ||
| ontology: Optional[DataFabricOntologyItem] = Field( |
milind-jain-uipath
requested changes
Jun 17, 2026
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…-ontology-binding # Conflicts: # packages/uipath-platform/src/uipath/platform/entities/_entities_service.py
…older_key_headers
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🚨 Heads up:
|
🚨 Heads up:
|
…-ontology-binding # Conflicts: # packages/uipath-platform/pyproject.toml # packages/uipath-platform/uv.lock # packages/uipath/pyproject.toml # packages/uipath/uv.lock
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
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.



What
Makes a Data Fabric ontology a standalone, first-class agent resource that a context references, plus the SDK method to fetch its files:
agent/models/agent.py— addsAgentOntologyResourceConfig($resourceType: "ontology", carrying its ownname+folderId) as a top-level resource, andontology_refs(aliasontologyRefs) onAgentContextResourceConfig. A context references ontologies by name; the ontology is defined once and can be shared across contexts/agents.platform/entities/_entities_service.py—get_ontology_file_async(ontology_name, file_type="owl", folder_key=None)onEntitiesService: validates name and file_type, hitsGET datafabric_/api/ontologies/{name}/files/{type}on the authenticated, folder-scoped client, returns the JSON wrapper.Why
An ontology is reusable domain knowledge, not a property of one entity set — so it's a resource, and the consumer (context) references it via
ontologyRefs, keeping the ontology a clean, shareable artifact. This replaces the earlier nestedontologySetfield.Notes
ontology_refsdefaults toNone.AgentDefinition._normalize_resourcesnow keeps"ontology"in its known-resource set — otherwise$resourceType:"ontology"was coerced toUnknownbefore the union discriminated, so refs never resolved at runtime. The new regression test goes through the fullAgentDefinitionparse (the path the per-resource union tests missed).^[a-z][a-z0-9-]{0,63}$) and file_type (owl/r2rml/shacl/summary/context) are allowlisted before entering the URL.folderId, contextontologyRefs, and full-definition normalization;get_ontology_file_asynccovered for spec, folder header, file types, and rejected name/type.ontology_refs→ standalone resources).uipath→2.11.10,uipath-platform→0.1.74, pinuipath-platform>=0.1.74; lockfiles relocked. Thebuild:devlabel publishes the dev builds PR feat: add integration service invocation support #911 consumes.Development Packages
uipath-platform
uipath