Skip to content

Commit 1cc7907

Browse files
feat(api): update via SDK Studio (#37)
1 parent 5178d1d commit 1cc7907

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/contextual-ai%2Fsunrise-38aec078ecb2f738881229436d0b0c1b3f1ee0d95e672441f9c902eb041c3159.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/contextual-ai%2Fsunrise-194878b194cd507d7c5418ff38cc0fc53441ef618f991990d334b4b75775cd8f.yml

src/resources/agents/agents.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export class Agents extends APIResource {
4141
* If no `datastore_id` is provided in the configuration, this API automatically
4242
* creates an empty `Datastore` and configures the `Agent` to use the newly created
4343
* `Datastore`.
44+
*
45+
* > Note that self-serve users are currently required to create agents through our
46+
* > UI. Otherwise, they will receive the following message: "This endpoint is
47+
* > disabled as you need to go through checkout. Please use the UI to make this
48+
* > request."
4449
*/
4550
create(body: AgentCreateParams, options?: Core.RequestOptions): Core.APIPromise<CreateAgentOutput> {
4651
return this._client.post('/agents', { body, ...options });

src/resources/agents/query.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,7 @@ export namespace QueryCreateParams {
434434
* The value to be searched for in the field. In case of exists operator, it is not
435435
* needed.
436436
*/
437-
value?:
438-
| string
439-
| (string & {})
440-
| number
441-
| boolean
442-
| Array<string | (string & {}) | number | boolean>
443-
| null;
437+
value?: string | number | boolean | Array<string | number | boolean> | null;
444438
}
445439
}
446440

src/resources/datastores/datastores.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export class Datastores extends APIResource {
3131
* relevant data. This flexible many-to-many relationship allows `Agents` to draw
3232
* from multiple sources of information. This linkage of `Datastore` to `Agent` is
3333
* done through the `Create Agent` or `Edit Agent` APIs.
34+
*
35+
* > Note that self-serve users are currently required to create datastores through
36+
* > our UI. Otherwise, they will receive the following message: "This endpoint is
37+
* > disabled as you need to go through checkout. Please use the UI to make this
38+
* > request."
3439
*/
3540
create(
3641
body: DatastoreCreateParams,

0 commit comments

Comments
 (0)