@google-cloud/agentregistry 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,108 @@
1
+ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."
2
+ [//]: # "The comments you see below are used to generate those parts of the template in later states."
3
+ <img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
4
+
5
+ # [Agent Registry API: Nodejs Client][homepage]
6
+
7
+ [//]: # "releaseLevel"
8
+
9
+ [![npm version](https://img.shields.io/npm/v/@google-cloud/agentregistry.svg)](https://www.npmjs.org/package/@google-cloud/agentregistry)
10
+
11
+ Agent Registry API client for Node.js
12
+
13
+ [//]: # "partials.introduction"
14
+
15
+ A comprehensive list of changes in each version may be found in
16
+ [the CHANGELOG][homepage_changelog].
17
+
18
+ * [Agent Registry API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/agentregistry/latest)
19
+ * [Agent Registry API Documentation](https://docs.cloud.google.com/agent-registry/overview)
20
+
21
+ Read more about the client libraries for Cloud APIs, including the older
22
+ Google APIs Client Libraries, in [Client Libraries Explained][explained].
23
+
24
+ [explained]: https://cloud.google.com/apis/docs/client-libraries-explained
25
+
26
+ **Table of contents:**
27
+
28
+ * [Quickstart](#quickstart)
29
+ * [Before you begin](#before-you-begin)
30
+ * [Installing the client library](#installing-the-client-library)
31
+
32
+ * [Versioning](#versioning)
33
+ * [Contributing](#contributing)
34
+ * [License](#license)
35
+
36
+ ## Quickstart
37
+ ### Before you begin
38
+
39
+ 1. [Select or create a Cloud Platform project][projects].
40
+ 1. [Enable billing for your project][billing].
41
+ 1. [Enable the Agent Registry API API][enable_api].
42
+ 1. [Set up authentication][auth] so you can access the
43
+ API from your local workstation.
44
+ ### Installing the client library
45
+
46
+ ```bash
47
+ npm install @google-cloud/agentregistry
48
+ ```
49
+
50
+ [//]: # "partials.body"
51
+
52
+ ## Samples
53
+
54
+ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
55
+
56
+ [//]: # "samples"
57
+
58
+ ## Supported Node.js Versions
59
+
60
+ Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
61
+ Libraries are compatible with all current _active_ and _maintenance_ versions of
62
+ Node.js.
63
+ If you are using an end-of-life version of Node.js, we recommend that you update
64
+ as soon as possible to an actively supported LTS version.
65
+
66
+ Google's client libraries support legacy versions of Node.js runtimes on a
67
+ best-efforts basis with the following warnings:
68
+
69
+ * Legacy versions are not tested in continuous integration.
70
+ * Some security patches and features cannot be backported.
71
+ * Dependencies cannot be kept up-to-date.
72
+
73
+ Client libraries targeting some end-of-life versions of Node.js are available, and
74
+ can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
75
+ The dist-tags follow the naming convention `legacy-(version)`.
76
+ For example, `npm install @google-cloud/agentregistry@legacy-8` installs client libraries
77
+ for versions compatible with Node.js 8.
78
+
79
+ ## Versioning
80
+
81
+ This library follows [Semantic Versioning](http://semver.org/).
82
+
83
+ More Information: [Google Cloud Platform Launch Stages][launch_stages]
84
+
85
+ [launch_stages]: https://cloud.google.com/terms/launch-stages
86
+
87
+ ## Contributing
88
+
89
+ Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
90
+
91
+ Please note that this `README.md`
92
+ and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
93
+ are generated from a central template.
94
+
95
+ ## License
96
+
97
+ Apache Version 2.0
98
+
99
+ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
100
+
101
+ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
102
+ [projects]: https://console.cloud.google.com/project
103
+ [billing]: https://support.google.com/cloud/answer/6293499#enable-billing
104
+ [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=agentregistry.googleapis.com
105
+ [auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
106
+ [homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-agentregistry/samples
107
+ [homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-agentregistry/CHANGELOG.md
108
+ [homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-agentregistry
@@ -0,0 +1,168 @@
1
+ // Copyright 2026 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.cloud.agentregistry.v1;
18
+
19
+ import "google/api/field_behavior.proto";
20
+ import "google/api/field_info.proto";
21
+ import "google/api/resource.proto";
22
+ import "google/cloud/agentregistry/v1/properties.proto";
23
+ import "google/protobuf/struct.proto";
24
+ import "google/protobuf/timestamp.proto";
25
+
26
+ option csharp_namespace = "Google.Cloud.AgentRegistry.V1";
27
+ option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb";
28
+ option java_multiple_files = true;
29
+ option java_outer_classname = "AgentProto";
30
+ option java_package = "com.google.cloud.agentregistry.v1";
31
+ option php_namespace = "Google\\Cloud\\AgentRegistry\\V1";
32
+ option ruby_package = "Google::Cloud::AgentRegistry::V1";
33
+
34
+ // Represents an Agent.
35
+ // "A2A" below refers to the Agent-to-Agent protocol.
36
+ message Agent {
37
+ option (google.api.resource) = {
38
+ type: "agentregistry.googleapis.com/Agent"
39
+ pattern: "projects/{project}/locations/{location}/agents/{agent}"
40
+ plural: "agents"
41
+ singular: "agent"
42
+ };
43
+
44
+ // Represents the protocol of an Agent.
45
+ message Protocol {
46
+ // The type of the protocol.
47
+ enum Type {
48
+ // Unspecified type.
49
+ TYPE_UNSPECIFIED = 0;
50
+
51
+ // The interfaces point to an A2A Agent following the A2A
52
+ // specification.
53
+ A2A_AGENT = 1;
54
+
55
+ // Agent does not follow any standard protocol.
56
+ CUSTOM = 2;
57
+ }
58
+
59
+ // Output only. The type of the protocol.
60
+ Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
61
+
62
+ // Output only. The version of the protocol, for example, the A2A Agent Card
63
+ // version.
64
+ string protocol_version = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
65
+
66
+ // Output only. The connection details for the Agent.
67
+ repeated Interface interfaces = 3
68
+ [(google.api.field_behavior) = OUTPUT_ONLY];
69
+ }
70
+
71
+ // Represents the skills of an Agent.
72
+ message Skill {
73
+ // Output only. A unique identifier for the agent's skill.
74
+ string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
75
+
76
+ // Output only. A human-readable name for the agent's skill.
77
+ string name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
78
+
79
+ // Output only. A more detailed description of the skill.
80
+ string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
81
+
82
+ // Output only. Keywords describing the skill.
83
+ repeated string tags = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
84
+
85
+ // Output only. Example prompts or scenarios this skill can handle.
86
+ repeated string examples = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
87
+ }
88
+
89
+ // Full Agent Card payload, often obtained from the A2A Agent Card.
90
+ message Card {
91
+ // Represents the type of the agent card.
92
+ enum Type {
93
+ // Unspecified type.
94
+ TYPE_UNSPECIFIED = 0;
95
+
96
+ // Indicates that the card is an A2A Agent Card.
97
+ A2A_AGENT_CARD = 1;
98
+ }
99
+
100
+ // Output only. The type of agent card.
101
+ Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
102
+
103
+ // Output only. The content of the agent card.
104
+ google.protobuf.Struct content = 2
105
+ [(google.api.field_behavior) = OUTPUT_ONLY];
106
+ }
107
+
108
+ // Identifier. The resource name of an Agent.
109
+ // Format: `projects/{project}/locations/{location}/agents/{agent}`.
110
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
111
+
112
+ // Output only. A stable, globally unique identifier for agents.
113
+ string agent_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
114
+
115
+ // Output only. The location where agent is hosted. The value is defined by
116
+ // the hosting environment (i.e. cloud provider).
117
+ string location = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
118
+
119
+ // Output only. The display name of the agent, often obtained from the A2A
120
+ // Agent Card.
121
+ string display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
122
+
123
+ // Output only. The description of the Agent, often obtained from the A2A
124
+ // Agent Card. Empty if Agent Card has no description.
125
+ string description = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
126
+
127
+ // Output only. The version of the Agent, often obtained from the A2A Agent
128
+ // Card. Empty if Agent Card has no version or agent is not an A2A Agent.
129
+ string version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
130
+
131
+ // Output only. The connection details for the Agent.
132
+ repeated Protocol protocols = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
133
+
134
+ // Output only. Skills the agent possesses, often obtained from the A2A Agent
135
+ // Card.
136
+ repeated Skill skills = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
137
+
138
+ // Output only. A universally unique identifier for the Agent.
139
+ string uid = 10 [
140
+ (google.api.field_info).format = UUID4,
141
+ (google.api.field_behavior) = OUTPUT_ONLY
142
+ ];
143
+
144
+ // Output only. Create time.
145
+ google.protobuf.Timestamp create_time = 11
146
+ [(google.api.field_behavior) = OUTPUT_ONLY];
147
+
148
+ // Output only. Update time.
149
+ google.protobuf.Timestamp update_time = 12
150
+ [(google.api.field_behavior) = OUTPUT_ONLY];
151
+
152
+ // Output only. Attributes of the Agent.
153
+ // Valid values:
154
+ //
155
+ // * `agentregistry.googleapis.com/system/Framework`: {"framework":
156
+ // "google-adk"} - the agent framework used to develop the Agent. Example
157
+ // values: "google-adk", "langchain", "custom".
158
+ // * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
159
+ // "principal://..."} - the runtime identity associated with the Agent.
160
+ // * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
161
+ // - the URI of the underlying resource hosting the Agent, for
162
+ // example, the Reasoning Engine URI.
163
+ map<string, google.protobuf.Struct> attributes = 13
164
+ [(google.api.field_behavior) = OUTPUT_ONLY];
165
+
166
+ // Output only. Full Agent Card payload, when available.
167
+ Card card = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
168
+ }