Skip to content

Commit e07435e

Browse files
feat(api): update via SDK Studio (#73)
1 parent 25477c7 commit e07435e

5 files changed

Lines changed: 7 additions & 58 deletions

File tree

.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-a1e925a06906199ea147a4e0fe2d763425765bea27d6c2d3b51111b45fcffabd.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/contextual-ai%2Fsunrise-c978f14e96782dd2ca8a8dbfdd822941e52df70306cb99d93218c61363460f03.yml

src/contextual/resources/agents/agents.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ def create(
127127
creates an empty `Datastore` and configures the `Agent` to use the newly created
128128
`Datastore`.
129129
130-
> Note that self-serve users are currently required to create agents through our
131-
> UI. Otherwise, they will receive the following message: "This endpoint is
132-
> disabled as you need to go through checkout. Please use the UI to make this
133-
> request."
134-
135130
Args:
136131
name: Name of the agent
137132
@@ -443,11 +438,6 @@ async def create(
443438
creates an empty `Datastore` and configures the `Agent` to use the newly created
444439
`Datastore`.
445440
446-
> Note that self-serve users are currently required to create agents through our
447-
> UI. Otherwise, they will receive the following message: "This endpoint is
448-
> disabled as you need to go through checkout. Please use the UI to make this
449-
> request."
450-
451441
Args:
452442
name: Name of the agent
453443

src/contextual/resources/datastores/datastores.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ def create(
8383
from multiple sources of information. This linkage of `Datastore` to `Agent` is
8484
done through the `Create Agent` or `Edit Agent` APIs.
8585
86-
> Note that self-serve users are currently required to create datastores through
87-
> our UI. Otherwise, they will receive the following message: "This endpoint is
88-
> disabled as you need to go through checkout. Please use the UI to make this
89-
> request."
90-
9186
Args:
9287
name: Name of the datastore
9388
@@ -290,11 +285,6 @@ async def create(
290285
from multiple sources of information. This linkage of `Datastore` to `Agent` is
291286
done through the `Create Agent` or `Edit Agent` APIs.
292287
293-
> Note that self-serve users are currently required to create datastores through
294-
> our UI. Otherwise, they will receive the following message: "This endpoint is
295-
> disabled as you need to go through checkout. Please use the UI to make this
296-
> request."
297-
298288
Args:
299289
name: Name of the datastore
300290

src/contextual/types/agents/query_create_params.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Iterable
6-
from datetime import datetime
7-
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
8-
9-
from ..._utils import PropertyInfo
5+
from typing import List, Union, Iterable
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
107

118
__all__ = ["QueryCreateParams", "Message", "DocumentsFilters", "DocumentsFiltersBaseMetadataFilter"]
129

@@ -107,20 +104,7 @@ class DocumentsFiltersBaseMetadataFilter(TypedDict, total=False):
107104
]
108105
"""Operator to be used for the filter."""
109106

110-
value: Annotated[
111-
Union[
112-
str,
113-
Union[str, datetime],
114-
float,
115-
bool,
116-
Iterable[object],
117-
Iterable[object],
118-
Iterable[object],
119-
Iterable[object],
120-
Iterable[object],
121-
],
122-
PropertyInfo(format="iso8601"),
123-
]
107+
value: Union[str, float, bool, List[Union[str, float, bool]], None]
124108
"""The value to be searched for in the field.
125109
126110
In case of exists operator, it is not needed.

src/contextual/types/datastores/composite_metadata_filter_param.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING, Union, Iterable, Optional
6-
from datetime import datetime
7-
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict, TypeAliasType
5+
from typing import TYPE_CHECKING, List, Union, Iterable, Optional
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict, TypeAliasType
87

9-
from ..._utils import PropertyInfo
108
from ..._compat import PYDANTIC_V2
119

1210
__all__ = ["CompositeMetadataFilterParam", "Filter", "FilterBaseMetadataFilter"]
@@ -21,20 +19,7 @@ class FilterBaseMetadataFilter(TypedDict, total=False):
2119
]
2220
"""Operator to be used for the filter."""
2321

24-
value: Annotated[
25-
Union[
26-
str,
27-
Union[str, datetime],
28-
float,
29-
bool,
30-
Iterable[object],
31-
Iterable[object],
32-
Iterable[object],
33-
Iterable[object],
34-
Iterable[object],
35-
],
36-
PropertyInfo(format="iso8601"),
37-
]
22+
value: Union[str, float, bool, List[Union[str, float, bool]], None]
3823
"""The value to be searched for in the field.
3924
4025
In case of exists operator, it is not needed.

0 commit comments

Comments
 (0)