-
Notifications
You must be signed in to change notification settings - Fork 778
docs: add dapr-agents operations page with docs on Agent Metadata Schema #5006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v1.16
Are you sure you want to change the base?
Changes from 2 commits
84dd9c8
5e188ff
e7bb06d
41d7d17
bcbabdd
1535b6b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| --- | ||
| type: docs | ||
| title: "Operations" | ||
| linkTitle: "Operations" | ||
| weight: 80 | ||
| description: "Get started with secure and reliable operations of Dapr Agents" | ||
| aliases: | ||
| - /developing-ai/dapr-agents/dapr-agents-operations | ||
| --- | ||
|
|
||
| ## Operations | ||
|
|
||
| ### Agent Registry | ||
|
|
||
| #### Agent Metadata Schema | ||
|
|
||
| Dapr Agents utilizes an Agent Registry (often referenced as `agent-registry` statestore) to communicate Agent capabilities. The Agent Registry contains Agent metadata, including the agent's name, description, version and much more. | ||
|
|
||
| In order to facilitate easier handling of version changes to the agent metadata, Dapr Agents supplies versioned JSON schemas. Within the [dapr agents repository] you'll find 3 types of JSON schema files: | ||
CasperGN marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - [index.json](https://raw.githubusercontent.com/dapr/dapr-agents/main/schemas/agent-metadata/index.json) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These URLS do not resolve. What are they intending to show?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This Agents PR needs to be merged first: dapr/dapr-agents#373
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. Once 373 is in main the links will resolve properly |
||
| - [latest.json](https://raw.githubusercontent.com/dapr/dapr-agents/main/schemas/agent-metadata/latest.json) | ||
| - `v{version}.json` | ||
|
|
||
| The `index.json` can be used as a lookup table and looks like: | ||
|
|
||
| ``` | ||
| { | ||
| "current_version": "X.Y.Z", | ||
| "schema_url": "https://raw.githubusercontent.com/dapr/dapr-agents/main/schemas/agent-metadata/vX.Y.Z.json", | ||
| "available_versions": [ | ||
| "vX.Y.Z", | ||
| "vA.B.C" | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| When the agent starts up it will insert its own metadata into the supplied Agent Registry. The Agent Metadata object contains the key `schema_version` which can be used as a reference to fetch the valid schema for that agent version: | ||
CasperGN marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```sh | ||
| curl -s -v "https://raw.githubusercontent.com/dapr/dapr-agents/main/schemas/agent-metadata/v$(jq -r '.schema_version' agent-metadata.json).json" | ||
| ``` | ||
Uh oh!
There was an error while loading. Please reload this page.