Skip to content

Commit 2735ed4

Browse files
feat(api): manual updates (#74)
1 parent 76b3810 commit 2735ed4

31 files changed

+2196
-513
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 82
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-9685a6d1ce0077c478727502e935941fe3e5740d45549e3693d29941b462d31a.yml
1+
configured_endpoints: 90
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-f4eb4b4f84901ac48b5fbfbde2712cf15833c5824a01aa2e164524465819a2e8.yml

api.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Methods:
103103
Types:
104104

105105
```python
106-
from asktable.types import Chat, ChatSendMessageResponse
106+
from asktable.types import AIMessage, Chat, ToolMessage, UserMessage, ChatSendMessageResponse
107107
```
108108

109109
Methods:
@@ -332,3 +332,49 @@ Methods:
332332
- <code title="patch /business-glossary/{entry_id}">client.business_glossary.<a href="./src/asktable/resources/business_glossary.py">update</a>(entry_id, \*\*<a href="src/asktable/types/business_glossary_update_params.py">params</a>) -> <a href="./src/asktable/types/entry.py">Entry</a></code>
333333
- <code title="get /business-glossary">client.business_glossary.<a href="./src/asktable/resources/business_glossary.py">list</a>(\*\*<a href="src/asktable/types/business_glossary_list_params.py">params</a>) -> <a href="./src/asktable/types/entry_with_definition.py">SyncPage[EntryWithDefinition]</a></code>
334334
- <code title="delete /business-glossary/{entry_id}">client.business_glossary.<a href="./src/asktable/resources/business_glossary.py">delete</a>(entry_id) -> <a href="./src/asktable/types/business_glossary_delete_response.py">object</a></code>
335+
336+
# Preferences
337+
338+
Types:
339+
340+
```python
341+
from asktable.types import (
342+
PreferenceCreateResponse,
343+
PreferenceRetrieveResponse,
344+
PreferenceUpdateResponse,
345+
PreferenceDeleteResponse,
346+
)
347+
```
348+
349+
Methods:
350+
351+
- <code title="post /preference">client.preferences.<a href="./src/asktable/resources/preferences.py">create</a>(\*\*<a href="src/asktable/types/preference_create_params.py">params</a>) -> <a href="./src/asktable/types/preference_create_response.py">PreferenceCreateResponse</a></code>
352+
- <code title="get /preference">client.preferences.<a href="./src/asktable/resources/preferences.py">retrieve</a>() -> <a href="./src/asktable/types/preference_retrieve_response.py">PreferenceRetrieveResponse</a></code>
353+
- <code title="patch /preference">client.preferences.<a href="./src/asktable/resources/preferences.py">update</a>(\*\*<a href="src/asktable/types/preference_update_params.py">params</a>) -> <a href="./src/asktable/types/preference_update_response.py">PreferenceUpdateResponse</a></code>
354+
- <code title="delete /preference">client.preferences.<a href="./src/asktable/resources/preferences.py">delete</a>() -> <a href="./src/asktable/types/preference_delete_response.py">object</a></code>
355+
356+
# Trainings
357+
358+
Types:
359+
360+
```python
361+
from asktable.types import TrainingCreateResponse, TrainingListResponse, TrainingDeleteResponse
362+
```
363+
364+
Methods:
365+
366+
- <code title="post /training">client.trainings.<a href="./src/asktable/resources/trainings.py">create</a>(\*\*<a href="src/asktable/types/training_create_params.py">params</a>) -> <a href="./src/asktable/types/training_create_response.py">TrainingCreateResponse</a></code>
367+
- <code title="get /training">client.trainings.<a href="./src/asktable/resources/trainings.py">list</a>(\*\*<a href="src/asktable/types/training_list_params.py">params</a>) -> <a href="./src/asktable/types/training_list_response.py">SyncPage[TrainingListResponse]</a></code>
368+
- <code title="delete /training/{id}">client.trainings.<a href="./src/asktable/resources/trainings.py">delete</a>(id, \*\*<a href="src/asktable/types/training_delete_params.py">params</a>) -> <a href="./src/asktable/types/training_delete_response.py">object</a></code>
369+
370+
# Scores
371+
372+
Types:
373+
374+
```python
375+
from asktable.types import ScoreCreateResponse
376+
```
377+
378+
Methods:
379+
380+
- <code title="post /score">client.scores.<a href="./src/asktable/resources/scores.py">create</a>(\*\*<a href="src/asktable/types/score_create_params.py">params</a>) -> <a href="./src/asktable/types/score_create_response.py">ScoreCreateResponse</a></code>

src/asktable/_client.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ class Asktable(SyncAPIClient):
5959
caches: resources.CachesResource
6060
integration: resources.IntegrationResource
6161
business_glossary: resources.BusinessGlossaryResource
62+
preferences: resources.PreferencesResource
63+
trainings: resources.TrainingsResource
64+
scores: resources.ScoresResource
6265
with_raw_response: AsktableWithRawResponse
6366
with_streaming_response: AsktableWithStreamedResponse
6467

@@ -129,6 +132,9 @@ def __init__(
129132
self.caches = resources.CachesResource(self)
130133
self.integration = resources.IntegrationResource(self)
131134
self.business_glossary = resources.BusinessGlossaryResource(self)
135+
self.preferences = resources.PreferencesResource(self)
136+
self.trainings = resources.TrainingsResource(self)
137+
self.scores = resources.ScoresResource(self)
132138
self.with_raw_response = AsktableWithRawResponse(self)
133139
self.with_streaming_response = AsktableWithStreamedResponse(self)
134140

@@ -251,6 +257,9 @@ class AsyncAsktable(AsyncAPIClient):
251257
caches: resources.AsyncCachesResource
252258
integration: resources.AsyncIntegrationResource
253259
business_glossary: resources.AsyncBusinessGlossaryResource
260+
preferences: resources.AsyncPreferencesResource
261+
trainings: resources.AsyncTrainingsResource
262+
scores: resources.AsyncScoresResource
254263
with_raw_response: AsyncAsktableWithRawResponse
255264
with_streaming_response: AsyncAsktableWithStreamedResponse
256265

@@ -321,6 +330,9 @@ def __init__(
321330
self.caches = resources.AsyncCachesResource(self)
322331
self.integration = resources.AsyncIntegrationResource(self)
323332
self.business_glossary = resources.AsyncBusinessGlossaryResource(self)
333+
self.preferences = resources.AsyncPreferencesResource(self)
334+
self.trainings = resources.AsyncTrainingsResource(self)
335+
self.scores = resources.AsyncScoresResource(self)
324336
self.with_raw_response = AsyncAsktableWithRawResponse(self)
325337
self.with_streaming_response = AsyncAsktableWithStreamedResponse(self)
326338

@@ -444,6 +456,9 @@ def __init__(self, client: Asktable) -> None:
444456
self.caches = resources.CachesResourceWithRawResponse(client.caches)
445457
self.integration = resources.IntegrationResourceWithRawResponse(client.integration)
446458
self.business_glossary = resources.BusinessGlossaryResourceWithRawResponse(client.business_glossary)
459+
self.preferences = resources.PreferencesResourceWithRawResponse(client.preferences)
460+
self.trainings = resources.TrainingsResourceWithRawResponse(client.trainings)
461+
self.scores = resources.ScoresResourceWithRawResponse(client.scores)
447462

448463

449464
class AsyncAsktableWithRawResponse:
@@ -461,6 +476,9 @@ def __init__(self, client: AsyncAsktable) -> None:
461476
self.caches = resources.AsyncCachesResourceWithRawResponse(client.caches)
462477
self.integration = resources.AsyncIntegrationResourceWithRawResponse(client.integration)
463478
self.business_glossary = resources.AsyncBusinessGlossaryResourceWithRawResponse(client.business_glossary)
479+
self.preferences = resources.AsyncPreferencesResourceWithRawResponse(client.preferences)
480+
self.trainings = resources.AsyncTrainingsResourceWithRawResponse(client.trainings)
481+
self.scores = resources.AsyncScoresResourceWithRawResponse(client.scores)
464482

465483

466484
class AsktableWithStreamedResponse:
@@ -478,6 +496,9 @@ def __init__(self, client: Asktable) -> None:
478496
self.caches = resources.CachesResourceWithStreamingResponse(client.caches)
479497
self.integration = resources.IntegrationResourceWithStreamingResponse(client.integration)
480498
self.business_glossary = resources.BusinessGlossaryResourceWithStreamingResponse(client.business_glossary)
499+
self.preferences = resources.PreferencesResourceWithStreamingResponse(client.preferences)
500+
self.trainings = resources.TrainingsResourceWithStreamingResponse(client.trainings)
501+
self.scores = resources.ScoresResourceWithStreamingResponse(client.scores)
481502

482503

483504
class AsyncAsktableWithStreamedResponse:
@@ -495,6 +516,9 @@ def __init__(self, client: AsyncAsktable) -> None:
495516
self.caches = resources.AsyncCachesResourceWithStreamingResponse(client.caches)
496517
self.integration = resources.AsyncIntegrationResourceWithStreamingResponse(client.integration)
497518
self.business_glossary = resources.AsyncBusinessGlossaryResourceWithStreamingResponse(client.business_glossary)
519+
self.preferences = resources.AsyncPreferencesResourceWithStreamingResponse(client.preferences)
520+
self.trainings = resources.AsyncTrainingsResourceWithStreamingResponse(client.trainings)
521+
self.scores = resources.AsyncScoresResourceWithStreamingResponse(client.scores)
498522

499523

500524
Client = Asktable

src/asktable/resources/__init__.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@
4848
CachesResourceWithStreamingResponse,
4949
AsyncCachesResourceWithStreamingResponse,
5050
)
51+
from .scores import (
52+
ScoresResource,
53+
AsyncScoresResource,
54+
ScoresResourceWithRawResponse,
55+
AsyncScoresResourceWithRawResponse,
56+
ScoresResourceWithStreamingResponse,
57+
AsyncScoresResourceWithStreamingResponse,
58+
)
5159
from .extapis import (
5260
ExtapisResource,
5361
AsyncExtapisResource,
@@ -64,6 +72,14 @@
6472
PoliciesResourceWithStreamingResponse,
6573
AsyncPoliciesResourceWithStreamingResponse,
6674
)
75+
from .trainings import (
76+
TrainingsResource,
77+
AsyncTrainingsResource,
78+
TrainingsResourceWithRawResponse,
79+
AsyncTrainingsResourceWithRawResponse,
80+
TrainingsResourceWithStreamingResponse,
81+
AsyncTrainingsResourceWithStreamingResponse,
82+
)
6783
from .datasources import (
6884
DatasourcesResource,
6985
AsyncDatasourcesResource,
@@ -80,6 +96,14 @@
8096
IntegrationResourceWithStreamingResponse,
8197
AsyncIntegrationResourceWithStreamingResponse,
8298
)
99+
from .preferences import (
100+
PreferencesResource,
101+
AsyncPreferencesResource,
102+
PreferencesResourceWithRawResponse,
103+
AsyncPreferencesResourceWithRawResponse,
104+
PreferencesResourceWithStreamingResponse,
105+
AsyncPreferencesResourceWithStreamingResponse,
106+
)
83107
from .single_turn import (
84108
SingleTurnResource,
85109
AsyncSingleTurnResource,
@@ -184,4 +208,22 @@
184208
"AsyncBusinessGlossaryResourceWithRawResponse",
185209
"BusinessGlossaryResourceWithStreamingResponse",
186210
"AsyncBusinessGlossaryResourceWithStreamingResponse",
211+
"PreferencesResource",
212+
"AsyncPreferencesResource",
213+
"PreferencesResourceWithRawResponse",
214+
"AsyncPreferencesResourceWithRawResponse",
215+
"PreferencesResourceWithStreamingResponse",
216+
"AsyncPreferencesResourceWithStreamingResponse",
217+
"TrainingsResource",
218+
"AsyncTrainingsResource",
219+
"TrainingsResourceWithRawResponse",
220+
"AsyncTrainingsResourceWithRawResponse",
221+
"TrainingsResourceWithStreamingResponse",
222+
"AsyncTrainingsResourceWithStreamingResponse",
223+
"ScoresResource",
224+
"AsyncScoresResource",
225+
"ScoresResourceWithRawResponse",
226+
"AsyncScoresResourceWithRawResponse",
227+
"ScoresResourceWithStreamingResponse",
228+
"AsyncScoresResourceWithStreamingResponse",
187229
]

0 commit comments

Comments
 (0)