Repository navigation
DEV-231585 feat: add get_asset_operating_model tool - #162
Open
tomaszfrojek-collibra wants to merge 1 commit into
Open
tomaszfrojek-collibra wants to merge 1 commit into
tomaszfrojek-collibra wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Sonnet 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.
Description of your changes
Adds the
get_asset_operating_modeltool (DEV-231585). It returns the attributes and relations an asset type has in the operating model, so an agent can write a correct first query and has whatcreate_assetneeds. It is intended to replaceprepare_create_asset, whose output field names it mirrors (status,message,resolved,attributeSchema,relationTypes,availableStatuses).assetType(required) accepts a UUID, publicId or exact name;domain(optional) accepts a UUID or exact name. With a domain, the assignment comes fromGET /assignments/assetType/{id}/domain/{id}, so scope and inheritance are resolved server-side instead of by the client-side hierarchy walk inGetScopedAssignment. Without a domain, it uses the unscoped assignment fromGET /assignments/assetType/{id}; if only scoped assignments exist, it asks for a domain.stringType,description,allowedValues) and relation roles/legs are always hydrated, best-effort. Statuses are included.get_asset_detailsandcreate_assetdescriptions now point to the new tool instead ofprepare_create_asset.Out of scope: removing
prepare_create_asset(needs alignment with Maestro, AI Services and AI Interfaces), browse/option lists on unresolved input, and sharing the resolver/hydration code withprepare_create_asset(copied, as it is private to that package).Tests: client tests for both endpoints (mapping, trait inheritance, 404, 500, malformed body, default-assignment selection) and tool tests against a fake Collibra (all identifier forms, ambiguous/unknown input, not-allowed vs. creatable-nowhere, partial hydration, no-domain paths).
Impact Analysis
get_asset_detailsandcreate_asset.GET /assignments/assetType/{assetTypeId}/domain/{domainId}; on older versions the lookup returns a "Failed to retrieve operating model" message.prepare_create_assetremoval and migration path.Checklist
🤖 Generated with Claude Code