Skip to content
Alibaba Cloud AI Agent Handbook 已开源,汇集50+工程师的一手实践经验Know more

AgentSpecs Registry

AgentSpecs Registry manages Agent specification packages. It is designed for Agent platforms, developer tools, and AI applications that need to distribute standardized Agent descriptions, resources, and versions.

Agent Registry focuses on callable Agent entries. AgentSpecs Registry focuses on specification packages that describe Agent capabilities, behavior, and resources. They can work together: a platform can distribute a standard description through AgentSpec and expose callable Agent instances through Agent Registry.

Problems It Solves

  • Multiple teams need to reuse the same Agent specification without copying it into every repository.
  • Agent specifications need versioned publishing, rollback, and label-based routing.
  • Developer tools, Agent platforms, or AI applications need to fetch AgentSpecs by name, version, or label.
  • Platform teams need to control visibility scope, business tags, and online or offline states.
  • AgentSpecs need review, security scanning, or other Pipeline checks before release.

What An AgentSpec Contains

In Nacos, an AgentSpec usually contains metadata, descriptive content, and resource information.

ContentDescription
Basic informationNamespace, name, description, business tags, source, and visibility scope
Specification contentMain AgentSpec content that describes Agent capabilities, constraints, or usage
Resource informationResource files or resource metadata distributed with the AgentSpec
Version informationVersion, state, labels, update time, and publish information

An AgentSpec can be uploaded as a ZIP package, or created and updated through draft APIs. After publishing, runtime applications can query or search available AgentSpecs through client APIs.

Lifecycle

AgentSpec follows the shared AI Resource Lifecycle.

upload or create draft -> update draft -> submit -> publish as online after approval -> offline or online again

Common management actions include:

  • Upload a ZIP package or use APIs to create and update a draft. Published packages cannot be overwritten directly; create a draft with a new version for changes.
  • Submit the draft. An enabled Pipeline node that supports AgentSpec starts reviewing; otherwise submission publishes directly.
  • Check the review result. Both approval and rejection move the version to reviewed. Publish after approval; after rejection, redraft before editing, or resubmit to rerun checks.
  • Publish or bring a version online; the server automatically updates latest. Use custom labels such as stable for controlled application rollouts.
  • Take one version offline, or enable/disable the whole AgentSpec. Enabling the resource does not automatically bring drafts or offline versions online.
  • Set visibility scope and query version details or metadata.

For emergency force publish, labels, and state rules, see AI Resource Lifecycle.

Runtime Query

AI applications, Agent platforms, and developer tools can use client APIs to fetch AgentSpecs:

  • Query an AgentSpec by name.
  • Fetch a specific version by version.
  • Fetch the version pointed to by label.
  • Search AgentSpecs with pagination and keywords.

If a client already caches content locally, it can use the md5 parameter in the API to decide whether the local content should be refreshed. For request parameters and response fields, see Client API.

Suggestions For Platform Operators

  • Use namespaces to separate environments, tenants, or business domains.
  • Use custom labels such as stable for controlled production rollouts; the server manages latest automatically.
  • Apply consistent rules for visibility scope, business tags, and publish permissions.
  • Enable Pipeline checks for high-risk AgentSpecs before they enter production.
  • Before taking an AgentSpec offline, confirm whether Agent platforms, developer tools, or AI applications still depend on that version.