@@ -55,18 +55,18 @@ from taskingai.client.rest import ApiException
55
55
from pprint import pprint
56
56
57
57
# create an instance of the API class
58
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
58
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
59
59
body = client.AssistantCreateRequestBodySchema() # AssistantCreateRequestBodySchema |
60
60
61
61
try :
62
62
# Create assistant
63
63
api_response = api_instance.create_assistant(body)
64
64
pprint(api_response)
65
65
except ApiException as e:
66
- print (" Exception when calling AssistantApi ->create_assistant: %s \n " % e)
66
+ print (" Exception when calling AsyncAssistantApi ->create_assistant: %s \n " % e)
67
67
68
68
# create an instance of the API class
69
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
69
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
70
70
body = client.ChatCreateRequestBodySchema() # ChatCreateRequestBodySchema |
71
71
assistant_id = NULL # object |
72
72
75
75
api_response = api_instance.create_chat(body, assistant_id)
76
76
pprint(api_response)
77
77
except ApiException as e:
78
- print (" Exception when calling AssistantApi ->create_chat: %s \n " % e)
78
+ print (" Exception when calling AsyncAssistantApi ->create_chat: %s \n " % e)
79
79
80
80
# create an instance of the API class
81
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
81
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
82
82
assistant_id = NULL # object |
83
83
84
84
try :
85
85
# Delete assistant
86
86
api_response = api_instance.delete_assistant(assistant_id)
87
87
pprint(api_response)
88
88
except ApiException as e:
89
- print (" Exception when calling AssistantApi ->delete_assistant: %s \n " % e)
89
+ print (" Exception when calling AsyncAssistantApi ->delete_assistant: %s \n " % e)
90
90
91
91
# create an instance of the API class
92
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
92
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
93
93
assistant_id = NULL # object |
94
94
chat_id = NULL # object |
95
95
98
98
api_response = api_instance.delete_chat(assistant_id, chat_id)
99
99
pprint(api_response)
100
100
except ApiException as e:
101
- print (" Exception when calling AssistantApi ->delete_chat: %s \n " % e)
101
+ print (" Exception when calling AsyncAssistantApi ->delete_chat: %s \n " % e)
102
102
103
103
# create an instance of the API class
104
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
104
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
105
105
body = client.ChatGenerateRequestBodySchema() # ChatGenerateRequestBodySchema |
106
106
assistant_id = NULL # object |
107
107
chat_id = NULL # object |
@@ -111,21 +111,21 @@ try:
111
111
api_response = api_instance.generate(body, assistant_id, chat_id)
112
112
pprint(api_response)
113
113
except ApiException as e:
114
- print (" Exception when calling AssistantApi ->generate: %s \n " % e)
114
+ print (" Exception when calling AsyncAssistantApi ->generate: %s \n " % e)
115
115
116
116
# create an instance of the API class
117
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
117
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
118
118
assistant_id = NULL # object |
119
119
120
120
try :
121
121
# Get assistant
122
122
api_response = api_instance.get_assistant(assistant_id)
123
123
pprint(api_response)
124
124
except ApiException as e:
125
- print (" Exception when calling AssistantApi ->get_assistant: %s \n " % e)
125
+ print (" Exception when calling AsyncAssistantApi ->get_assistant: %s \n " % e)
126
126
127
127
# create an instance of the API class
128
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
128
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
129
129
assistant_id = NULL # object |
130
130
chat_id = NULL # object |
131
131
@@ -134,10 +134,10 @@ try:
134
134
api_response = api_instance.get_chat(assistant_id, chat_id)
135
135
pprint(api_response)
136
136
except ApiException as e:
137
- print (" Exception when calling AssistantApi ->get_chat: %s \n " % e)
137
+ print (" Exception when calling AsyncAssistantApi ->get_chat: %s \n " % e)
138
138
139
139
# create an instance of the API class
140
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
140
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
141
141
assistant_id = NULL # object |
142
142
chat_id = NULL # object |
143
143
message_id = NULL # object |
@@ -147,10 +147,10 @@ try:
147
147
api_response = api_instance.get_message(assistant_id, chat_id, message_id)
148
148
pprint(api_response)
149
149
except ApiException as e:
150
- print (" Exception when calling AssistantApi ->get_message: %s \n " % e)
150
+ print (" Exception when calling AsyncAssistantApi ->get_message: %s \n " % e)
151
151
152
152
# create an instance of the API class
153
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
153
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
154
154
limit = 20 # object | (optional) (default to 20)
155
155
order = desc # object | (optional) (default to desc)
156
156
after = NULL # object | (optional)
@@ -162,21 +162,21 @@ try:
162
162
api_response = api_instance.list_assistants(limit = limit, order = order, after = after, before = before, offset = offset)
163
163
pprint(api_response)
164
164
except ApiException as e:
165
- print (" Exception when calling AssistantApi ->list_assistants: %s \n " % e)
165
+ print (" Exception when calling AsyncAssistantApi ->list_assistants: %s \n " % e)
166
166
167
167
# create an instance of the API class
168
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
168
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
169
169
assistant_id = NULL # object |
170
170
171
171
try :
172
172
# List chats
173
173
api_response = api_instance.list_chats(assistant_id)
174
174
pprint(api_response)
175
175
except ApiException as e:
176
- print (" Exception when calling AssistantApi ->list_chats: %s \n " % e)
176
+ print (" Exception when calling AsyncAssistantApi ->list_chats: %s \n " % e)
177
177
178
178
# create an instance of the API class
179
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
179
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
180
180
assistant_id = NULL # object |
181
181
chat_id = NULL # object |
182
182
limit = 20 # object | (optional) (default to 20)
@@ -190,10 +190,10 @@ try:
190
190
before = before)
191
191
pprint(api_response)
192
192
except ApiException as e:
193
- print (" Exception when calling AssistantApi ->list_messages: %s \n " % e)
193
+ print (" Exception when calling AsyncAssistantApi ->list_messages: %s \n " % e)
194
194
195
195
# create an instance of the API class
196
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
196
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
197
197
body = client.AssistantUpdateRequestBodySchema() # AssistantUpdateRequestBodySchema |
198
198
assistant_id = NULL # object |
199
199
@@ -202,10 +202,10 @@ try:
202
202
api_response = api_instance.update_assistant(body, assistant_id)
203
203
pprint(api_response)
204
204
except ApiException as e:
205
- print (" Exception when calling AssistantApi ->update_assistant: %s \n " % e)
205
+ print (" Exception when calling AsyncAssistantApi ->update_assistant: %s \n " % e)
206
206
207
207
# create an instance of the API class
208
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
208
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
209
209
body = client.ChatUpdateRequestBodySchema() # ChatUpdateRequestBodySchema |
210
210
assistant_id = NULL # object |
211
211
chat_id = NULL # object |
@@ -215,10 +215,10 @@ try:
215
215
api_response = api_instance.update_chat(body, assistant_id, chat_id)
216
216
pprint(api_response)
217
217
except ApiException as e:
218
- print (" Exception when calling AssistantApi ->update_chat: %s \n " % e)
218
+ print (" Exception when calling AsyncAssistantApi ->update_chat: %s \n " % e)
219
219
220
220
# create an instance of the API class
221
- api_instance = client.AssistantApi (client.SyncApiClient(configuration))
221
+ api_instance = client.AsyncAssistantApi (client.SyncApiClient(configuration))
222
222
body = client.MessageUpdateRequestBodySchema() # MessageUpdateRequestBodySchema |
223
223
assistant_id = NULL # object |
224
224
chat_id = NULL # object |
229
229
api_response = api_instance.update_message(body, assistant_id, chat_id, message_id)
230
230
pprint(api_response)
231
231
except ApiException as e:
232
- print (" Exception when calling AssistantApi ->update_message: %s \n " % e)
232
+ print (" Exception when calling AsyncAssistantApi ->update_message: %s \n " % e)
233
233
```
234
234
235
235
## Documentation for API Endpoints
@@ -238,20 +238,20 @@ All URIs are relative to */*
238
238
239
239
Class | Method | HTTP request | Description
240
240
------------ | ------------- | ------------- | -------------
241
- * AssistantApi * | [ ** create_assistant** ] ( docs/AssistantApi.md#create_assistant ) | ** POST** /api/v1/assistants | Create assistant
242
- * AssistantApi * | [ ** create_chat** ] ( docs/AssistantApi.md#create_chat ) | ** POST** /api/v1/assistants/{assistant_id}/chats | Create chat
243
- * AssistantApi * | [ ** delete_assistant** ] ( docs/AssistantApi.md#delete_assistant ) | ** DELETE** /api/v1/assistants/{assistant_id} | Delete assistant
244
- * AssistantApi * | [ ** delete_chat** ] ( docs/AssistantApi.md#delete_chat ) | ** DELETE** /api/v1/assistants/{assistant_id}/chats/{chat_id} | Delete chat
245
- * AssistantApi * | [ ** generate** ] ( docs/AssistantApi.md#generate ) | ** POST** /api/v1/assistants/{assistant_id}/chats/{chat_id}/generate | Generate
246
- * AssistantApi * | [ ** get_assistant** ] ( docs/AssistantApi.md#get_assistant ) | ** GET** /api/v1/assistants/{assistant_id} | Get assistant
247
- * AssistantApi * | [ ** get_chat** ] ( docs/AssistantApi.md#get_chat ) | ** GET** /api/v1/assistants/{assistant_id}/chats/{chat_id} | Get chat
248
- * AssistantApi * | [ ** get_message** ] ( docs/AssistantApi.md#get_message ) | ** GET** /api/v1/assistants/{assistant_id}/chats/{chat_id}/messages/{message_id} | Get message
249
- * AssistantApi * | [ ** list_assistants** ] ( docs/AssistantApi.md#list_assistants ) | ** GET** /api/v1/assistants | List assistants
250
- * AssistantApi * | [ ** list_chats** ] ( docs/AssistantApi.md#list_chats ) | ** GET** /api/v1/assistants/{assistant_id}/chats | List chats
251
- * AssistantApi * | [ ** list_messages** ] ( docs/AssistantApi.md#list_messages ) | ** GET** /api/v1/assistants/{assistant_id}/chats/{chat_id}/messages | List messages
252
- * AssistantApi * | [ ** update_assistant** ] ( docs/AssistantApi.md#update_assistant ) | ** POST** /api/v1/assistants/{assistant_id} | Update assistant
253
- * AssistantApi * | [ ** update_chat** ] ( docs/AssistantApi.md#update_chat ) | ** POST** /api/v1/assistants/{assistant_id}/chats/{chat_id} | Update chat
254
- * AssistantApi * | [ ** update_message** ] ( docs/AssistantApi.md#update_message ) | ** POST** /api/v1/assistants/{assistant_id}/chats/{chat_id}/messages/{message_id} | Update message
241
+ * AsyncAssistantApi * | [ ** create_assistant** ] ( docs/AssistantApi.md#create_assistant ) | ** POST** /api/v1/assistants | Create assistant
242
+ * AsyncAssistantApi * | [ ** create_chat** ] ( docs/AssistantApi.md#create_chat ) | ** POST** /api/v1/assistants/{assistant_id}/chats | Create chat
243
+ * AsyncAssistantApi * | [ ** delete_assistant** ] ( docs/AssistantApi.md#delete_assistant ) | ** DELETE** /api/v1/assistants/{assistant_id} | Delete assistant
244
+ * AsyncAssistantApi * | [ ** delete_chat** ] ( docs/AssistantApi.md#delete_chat ) | ** DELETE** /api/v1/assistants/{assistant_id}/chats/{chat_id} | Delete chat
245
+ * AsyncAssistantApi * | [ ** generate** ] ( docs/AssistantApi.md#generate ) | ** POST** /api/v1/assistants/{assistant_id}/chats/{chat_id}/generate | Generate
246
+ * AsyncAssistantApi * | [ ** get_assistant** ] ( docs/AssistantApi.md#get_assistant ) | ** GET** /api/v1/assistants/{assistant_id} | Get assistant
247
+ * AsyncAssistantApi * | [ ** get_chat** ] ( docs/AssistantApi.md#get_chat ) | ** GET** /api/v1/assistants/{assistant_id}/chats/{chat_id} | Get chat
248
+ * AsyncAssistantApi * | [ ** get_message** ] ( docs/AssistantApi.md#get_message ) | ** GET** /api/v1/assistants/{assistant_id}/chats/{chat_id}/messages/{message_id} | Get message
249
+ * AsyncAssistantApi * | [ ** list_assistants** ] ( docs/AssistantApi.md#list_assistants ) | ** GET** /api/v1/assistants | List assistants
250
+ * AsyncAssistantApi * | [ ** list_chats** ] ( docs/AssistantApi.md#list_chats ) | ** GET** /api/v1/assistants/{assistant_id}/chats | List chats
251
+ * AsyncAssistantApi * | [ ** list_messages** ] ( docs/AssistantApi.md#list_messages ) | ** GET** /api/v1/assistants/{assistant_id}/chats/{chat_id}/messages | List messages
252
+ * AsyncAssistantApi * | [ ** update_assistant** ] ( docs/AssistantApi.md#update_assistant ) | ** POST** /api/v1/assistants/{assistant_id} | Update assistant
253
+ * AsyncAssistantApi * | [ ** update_chat** ] ( docs/AssistantApi.md#update_chat ) | ** POST** /api/v1/assistants/{assistant_id}/chats/{chat_id} | Update chat
254
+ * AsyncAssistantApi * | [ ** update_message** ] ( docs/AssistantApi.md#update_message ) | ** POST** /api/v1/assistants/{assistant_id}/chats/{chat_id}/messages/{message_id} | Update message
255
255
* RetrievalApi* | [ ** create_collection** ] ( docs/RetrievalApi.md#create_collection ) | ** POST** /api/v1/collections | Create collection
256
256
* RetrievalApi* | [ ** create_record** ] ( docs/RetrievalApi.md#create_record ) | ** POST** /api/v1/collections/{collection_id}/records | Create record
257
257
* RetrievalApi* | [ ** delete_collection** ] ( docs/RetrievalApi.md#delete_collection ) | ** DELETE** /api/v1/collections/{collection_id} | Delete collection
0 commit comments