@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240814 → 0.0.20240828

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.
Files changed (3) hide show
  1. package/index.d.ts +1294 -139
  2. package/package.json +1 -1
  3. package/readme.md +44 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.aiplatform-v1",
3
- "version": "0.0.20240814",
3
+ "version": "0.0.20240828",
4
4
  "description": "TypeScript typings for Vertex AI API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -72,5 +72,48 @@ gapi.auth.authorize(
72
72
  After that you can use Vertex AI API resources: <!-- TODO: make this work for multiple namespaces -->
73
73
 
74
74
  ```typescript
75
-
75
+ /*
76
+ Creates a Dataset.
77
+ */
78
+ await gapi.client.aiplatform.datasets.create({});
79
+
80
+ /*
81
+ Deletes a Dataset.
82
+ */
83
+ await gapi.client.aiplatform.datasets.delete({name: 'name'});
84
+
85
+ /*
86
+ Gets a Dataset.
87
+ */
88
+ await gapi.client.aiplatform.datasets.get({name: 'name'});
89
+
90
+ /*
91
+ Lists Datasets in a Location.
92
+ */
93
+ await gapi.client.aiplatform.datasets.list({});
94
+
95
+ /*
96
+ Updates a Dataset.
97
+ */
98
+ await gapi.client.aiplatform.datasets.patch({name: 'name'});
99
+
100
+ /*
101
+ Return a list of tokens based on the input text.
102
+ */
103
+ await gapi.client.aiplatform.endpoints.computeTokens({endpoint: 'endpoint'});
104
+
105
+ /*
106
+ Perform a token counting.
107
+ */
108
+ await gapi.client.aiplatform.endpoints.countTokens({endpoint: 'endpoint'});
109
+
110
+ /*
111
+ Generate content with multimodal inputs.
112
+ */
113
+ await gapi.client.aiplatform.endpoints.generateContent({model: 'model'});
114
+
115
+ /*
116
+ Generate content with multimodal inputs with streaming support.
117
+ */
118
+ await gapi.client.aiplatform.endpoints.streamGenerateContent({model: 'model'});
76
119
  ```