qanswer_sdk 3.1330.0__py3-none-any.whl → 3.1333.0__py3-none-any.whl
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.
- qanswer_sdk/__init__.py +2 -1
- qanswer_sdk/api/tool_llm_api.py +51 -0
- qanswer_sdk/api_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- qanswer_sdk/models/__init__.py +1 -0
- qanswer_sdk/models/llm.py +3 -1
- qanswer_sdk/models/paginated_report_templates.py +3 -3
- qanswer_sdk/models/report_template.py +6 -6
- qanswer_sdk/models/report_template_simplified.py +109 -0
- {qanswer_sdk-3.1330.0.dist-info → qanswer_sdk-3.1333.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1330.0.dist-info → qanswer_sdk-3.1333.0.dist-info}/RECORD +12 -11
- {qanswer_sdk-3.1330.0.dist-info → qanswer_sdk-3.1333.0.dist-info}/WHEEL +0 -0
qanswer_sdk/__init__.py
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "3.
|
|
17
|
+
__version__ = "3.1333.0"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from qanswer_sdk.api.admin_api import AdminApi
|
|
@@ -311,6 +311,7 @@ from qanswer_sdk.models.report_copilot_task_settings_update_payload import Repor
|
|
|
311
311
|
from qanswer_sdk.models.report_copilot_task_update import ReportCopilotTaskUpdate
|
|
312
312
|
from qanswer_sdk.models.report_template import ReportTemplate
|
|
313
313
|
from qanswer_sdk.models.report_template_create_payload import ReportTemplateCreatePayload
|
|
314
|
+
from qanswer_sdk.models.report_template_simplified import ReportTemplateSimplified
|
|
314
315
|
from qanswer_sdk.models.report_template_simplified_payload import ReportTemplateSimplifiedPayload
|
|
315
316
|
from qanswer_sdk.models.report_template_update_payload import ReportTemplateUpdatePayload
|
|
316
317
|
from qanswer_sdk.models.reset_password import ResetPassword
|
qanswer_sdk/api/tool_llm_api.py
CHANGED
|
@@ -53,6 +53,7 @@ class ToolLLMApi:
|
|
|
53
53
|
def create_llm_endpoint(
|
|
54
54
|
self,
|
|
55
55
|
llm_endpoint_create: LLMEndpointCreate,
|
|
56
|
+
organization_id: Optional[StrictInt] = None,
|
|
56
57
|
_request_timeout: Union[
|
|
57
58
|
None,
|
|
58
59
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -71,6 +72,8 @@ class ToolLLMApi:
|
|
|
71
72
|
|
|
72
73
|
:param llm_endpoint_create: (required)
|
|
73
74
|
:type llm_endpoint_create: LLMEndpointCreate
|
|
75
|
+
:param organization_id:
|
|
76
|
+
:type organization_id: int
|
|
74
77
|
:param _request_timeout: timeout setting for this request. If one
|
|
75
78
|
number provided, it will be total request
|
|
76
79
|
timeout. It can also be a pair (tuple) of
|
|
@@ -95,6 +98,7 @@ class ToolLLMApi:
|
|
|
95
98
|
|
|
96
99
|
_param = self._create_llm_endpoint_serialize(
|
|
97
100
|
llm_endpoint_create=llm_endpoint_create,
|
|
101
|
+
organization_id=organization_id,
|
|
98
102
|
_request_auth=_request_auth,
|
|
99
103
|
_content_type=_content_type,
|
|
100
104
|
_headers=_headers,
|
|
@@ -119,6 +123,7 @@ class ToolLLMApi:
|
|
|
119
123
|
def create_llm_endpoint_with_http_info(
|
|
120
124
|
self,
|
|
121
125
|
llm_endpoint_create: LLMEndpointCreate,
|
|
126
|
+
organization_id: Optional[StrictInt] = None,
|
|
122
127
|
_request_timeout: Union[
|
|
123
128
|
None,
|
|
124
129
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -137,6 +142,8 @@ class ToolLLMApi:
|
|
|
137
142
|
|
|
138
143
|
:param llm_endpoint_create: (required)
|
|
139
144
|
:type llm_endpoint_create: LLMEndpointCreate
|
|
145
|
+
:param organization_id:
|
|
146
|
+
:type organization_id: int
|
|
140
147
|
:param _request_timeout: timeout setting for this request. If one
|
|
141
148
|
number provided, it will be total request
|
|
142
149
|
timeout. It can also be a pair (tuple) of
|
|
@@ -161,6 +168,7 @@ class ToolLLMApi:
|
|
|
161
168
|
|
|
162
169
|
_param = self._create_llm_endpoint_serialize(
|
|
163
170
|
llm_endpoint_create=llm_endpoint_create,
|
|
171
|
+
organization_id=organization_id,
|
|
164
172
|
_request_auth=_request_auth,
|
|
165
173
|
_content_type=_content_type,
|
|
166
174
|
_headers=_headers,
|
|
@@ -185,6 +193,7 @@ class ToolLLMApi:
|
|
|
185
193
|
def create_llm_endpoint_without_preload_content(
|
|
186
194
|
self,
|
|
187
195
|
llm_endpoint_create: LLMEndpointCreate,
|
|
196
|
+
organization_id: Optional[StrictInt] = None,
|
|
188
197
|
_request_timeout: Union[
|
|
189
198
|
None,
|
|
190
199
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -203,6 +212,8 @@ class ToolLLMApi:
|
|
|
203
212
|
|
|
204
213
|
:param llm_endpoint_create: (required)
|
|
205
214
|
:type llm_endpoint_create: LLMEndpointCreate
|
|
215
|
+
:param organization_id:
|
|
216
|
+
:type organization_id: int
|
|
206
217
|
:param _request_timeout: timeout setting for this request. If one
|
|
207
218
|
number provided, it will be total request
|
|
208
219
|
timeout. It can also be a pair (tuple) of
|
|
@@ -227,6 +238,7 @@ class ToolLLMApi:
|
|
|
227
238
|
|
|
228
239
|
_param = self._create_llm_endpoint_serialize(
|
|
229
240
|
llm_endpoint_create=llm_endpoint_create,
|
|
241
|
+
organization_id=organization_id,
|
|
230
242
|
_request_auth=_request_auth,
|
|
231
243
|
_content_type=_content_type,
|
|
232
244
|
_headers=_headers,
|
|
@@ -246,6 +258,7 @@ class ToolLLMApi:
|
|
|
246
258
|
def _create_llm_endpoint_serialize(
|
|
247
259
|
self,
|
|
248
260
|
llm_endpoint_create,
|
|
261
|
+
organization_id,
|
|
249
262
|
_request_auth,
|
|
250
263
|
_content_type,
|
|
251
264
|
_headers,
|
|
@@ -268,6 +281,10 @@ class ToolLLMApi:
|
|
|
268
281
|
|
|
269
282
|
# process the path parameters
|
|
270
283
|
# process the query parameters
|
|
284
|
+
if organization_id is not None:
|
|
285
|
+
|
|
286
|
+
_query_params.append(('organization_id', organization_id))
|
|
287
|
+
|
|
271
288
|
# process the header parameters
|
|
272
289
|
# process the form parameters
|
|
273
290
|
# process the body parameter
|
|
@@ -325,6 +342,7 @@ class ToolLLMApi:
|
|
|
325
342
|
def delete_llm_endpoint(
|
|
326
343
|
self,
|
|
327
344
|
id: StrictInt,
|
|
345
|
+
organization_id: Optional[StrictInt] = None,
|
|
328
346
|
_request_timeout: Union[
|
|
329
347
|
None,
|
|
330
348
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -343,6 +361,8 @@ class ToolLLMApi:
|
|
|
343
361
|
|
|
344
362
|
:param id: (required)
|
|
345
363
|
:type id: int
|
|
364
|
+
:param organization_id:
|
|
365
|
+
:type organization_id: int
|
|
346
366
|
:param _request_timeout: timeout setting for this request. If one
|
|
347
367
|
number provided, it will be total request
|
|
348
368
|
timeout. It can also be a pair (tuple) of
|
|
@@ -367,6 +387,7 @@ class ToolLLMApi:
|
|
|
367
387
|
|
|
368
388
|
_param = self._delete_llm_endpoint_serialize(
|
|
369
389
|
id=id,
|
|
390
|
+
organization_id=organization_id,
|
|
370
391
|
_request_auth=_request_auth,
|
|
371
392
|
_content_type=_content_type,
|
|
372
393
|
_headers=_headers,
|
|
@@ -391,6 +412,7 @@ class ToolLLMApi:
|
|
|
391
412
|
def delete_llm_endpoint_with_http_info(
|
|
392
413
|
self,
|
|
393
414
|
id: StrictInt,
|
|
415
|
+
organization_id: Optional[StrictInt] = None,
|
|
394
416
|
_request_timeout: Union[
|
|
395
417
|
None,
|
|
396
418
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -409,6 +431,8 @@ class ToolLLMApi:
|
|
|
409
431
|
|
|
410
432
|
:param id: (required)
|
|
411
433
|
:type id: int
|
|
434
|
+
:param organization_id:
|
|
435
|
+
:type organization_id: int
|
|
412
436
|
:param _request_timeout: timeout setting for this request. If one
|
|
413
437
|
number provided, it will be total request
|
|
414
438
|
timeout. It can also be a pair (tuple) of
|
|
@@ -433,6 +457,7 @@ class ToolLLMApi:
|
|
|
433
457
|
|
|
434
458
|
_param = self._delete_llm_endpoint_serialize(
|
|
435
459
|
id=id,
|
|
460
|
+
organization_id=organization_id,
|
|
436
461
|
_request_auth=_request_auth,
|
|
437
462
|
_content_type=_content_type,
|
|
438
463
|
_headers=_headers,
|
|
@@ -457,6 +482,7 @@ class ToolLLMApi:
|
|
|
457
482
|
def delete_llm_endpoint_without_preload_content(
|
|
458
483
|
self,
|
|
459
484
|
id: StrictInt,
|
|
485
|
+
organization_id: Optional[StrictInt] = None,
|
|
460
486
|
_request_timeout: Union[
|
|
461
487
|
None,
|
|
462
488
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -475,6 +501,8 @@ class ToolLLMApi:
|
|
|
475
501
|
|
|
476
502
|
:param id: (required)
|
|
477
503
|
:type id: int
|
|
504
|
+
:param organization_id:
|
|
505
|
+
:type organization_id: int
|
|
478
506
|
:param _request_timeout: timeout setting for this request. If one
|
|
479
507
|
number provided, it will be total request
|
|
480
508
|
timeout. It can also be a pair (tuple) of
|
|
@@ -499,6 +527,7 @@ class ToolLLMApi:
|
|
|
499
527
|
|
|
500
528
|
_param = self._delete_llm_endpoint_serialize(
|
|
501
529
|
id=id,
|
|
530
|
+
organization_id=organization_id,
|
|
502
531
|
_request_auth=_request_auth,
|
|
503
532
|
_content_type=_content_type,
|
|
504
533
|
_headers=_headers,
|
|
@@ -518,6 +547,7 @@ class ToolLLMApi:
|
|
|
518
547
|
def _delete_llm_endpoint_serialize(
|
|
519
548
|
self,
|
|
520
549
|
id,
|
|
550
|
+
organization_id,
|
|
521
551
|
_request_auth,
|
|
522
552
|
_content_type,
|
|
523
553
|
_headers,
|
|
@@ -542,6 +572,10 @@ class ToolLLMApi:
|
|
|
542
572
|
if id is not None:
|
|
543
573
|
_path_params['id'] = id
|
|
544
574
|
# process the query parameters
|
|
575
|
+
if organization_id is not None:
|
|
576
|
+
|
|
577
|
+
_query_params.append(('organization_id', organization_id))
|
|
578
|
+
|
|
545
579
|
# process the header parameters
|
|
546
580
|
# process the form parameters
|
|
547
581
|
# process the body parameter
|
|
@@ -4543,6 +4577,7 @@ class ToolLLMApi:
|
|
|
4543
4577
|
self,
|
|
4544
4578
|
id: StrictInt,
|
|
4545
4579
|
llm_endpoint_update: LLMEndpointUpdate,
|
|
4580
|
+
organization_id: Optional[StrictInt] = None,
|
|
4546
4581
|
_request_timeout: Union[
|
|
4547
4582
|
None,
|
|
4548
4583
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4563,6 +4598,8 @@ class ToolLLMApi:
|
|
|
4563
4598
|
:type id: int
|
|
4564
4599
|
:param llm_endpoint_update: (required)
|
|
4565
4600
|
:type llm_endpoint_update: LLMEndpointUpdate
|
|
4601
|
+
:param organization_id:
|
|
4602
|
+
:type organization_id: int
|
|
4566
4603
|
:param _request_timeout: timeout setting for this request. If one
|
|
4567
4604
|
number provided, it will be total request
|
|
4568
4605
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4588,6 +4625,7 @@ class ToolLLMApi:
|
|
|
4588
4625
|
_param = self._update_llm_endpoint_serialize(
|
|
4589
4626
|
id=id,
|
|
4590
4627
|
llm_endpoint_update=llm_endpoint_update,
|
|
4628
|
+
organization_id=organization_id,
|
|
4591
4629
|
_request_auth=_request_auth,
|
|
4592
4630
|
_content_type=_content_type,
|
|
4593
4631
|
_headers=_headers,
|
|
@@ -4613,6 +4651,7 @@ class ToolLLMApi:
|
|
|
4613
4651
|
self,
|
|
4614
4652
|
id: StrictInt,
|
|
4615
4653
|
llm_endpoint_update: LLMEndpointUpdate,
|
|
4654
|
+
organization_id: Optional[StrictInt] = None,
|
|
4616
4655
|
_request_timeout: Union[
|
|
4617
4656
|
None,
|
|
4618
4657
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4633,6 +4672,8 @@ class ToolLLMApi:
|
|
|
4633
4672
|
:type id: int
|
|
4634
4673
|
:param llm_endpoint_update: (required)
|
|
4635
4674
|
:type llm_endpoint_update: LLMEndpointUpdate
|
|
4675
|
+
:param organization_id:
|
|
4676
|
+
:type organization_id: int
|
|
4636
4677
|
:param _request_timeout: timeout setting for this request. If one
|
|
4637
4678
|
number provided, it will be total request
|
|
4638
4679
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4658,6 +4699,7 @@ class ToolLLMApi:
|
|
|
4658
4699
|
_param = self._update_llm_endpoint_serialize(
|
|
4659
4700
|
id=id,
|
|
4660
4701
|
llm_endpoint_update=llm_endpoint_update,
|
|
4702
|
+
organization_id=organization_id,
|
|
4661
4703
|
_request_auth=_request_auth,
|
|
4662
4704
|
_content_type=_content_type,
|
|
4663
4705
|
_headers=_headers,
|
|
@@ -4683,6 +4725,7 @@ class ToolLLMApi:
|
|
|
4683
4725
|
self,
|
|
4684
4726
|
id: StrictInt,
|
|
4685
4727
|
llm_endpoint_update: LLMEndpointUpdate,
|
|
4728
|
+
organization_id: Optional[StrictInt] = None,
|
|
4686
4729
|
_request_timeout: Union[
|
|
4687
4730
|
None,
|
|
4688
4731
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4703,6 +4746,8 @@ class ToolLLMApi:
|
|
|
4703
4746
|
:type id: int
|
|
4704
4747
|
:param llm_endpoint_update: (required)
|
|
4705
4748
|
:type llm_endpoint_update: LLMEndpointUpdate
|
|
4749
|
+
:param organization_id:
|
|
4750
|
+
:type organization_id: int
|
|
4706
4751
|
:param _request_timeout: timeout setting for this request. If one
|
|
4707
4752
|
number provided, it will be total request
|
|
4708
4753
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4728,6 +4773,7 @@ class ToolLLMApi:
|
|
|
4728
4773
|
_param = self._update_llm_endpoint_serialize(
|
|
4729
4774
|
id=id,
|
|
4730
4775
|
llm_endpoint_update=llm_endpoint_update,
|
|
4776
|
+
organization_id=organization_id,
|
|
4731
4777
|
_request_auth=_request_auth,
|
|
4732
4778
|
_content_type=_content_type,
|
|
4733
4779
|
_headers=_headers,
|
|
@@ -4748,6 +4794,7 @@ class ToolLLMApi:
|
|
|
4748
4794
|
self,
|
|
4749
4795
|
id,
|
|
4750
4796
|
llm_endpoint_update,
|
|
4797
|
+
organization_id,
|
|
4751
4798
|
_request_auth,
|
|
4752
4799
|
_content_type,
|
|
4753
4800
|
_headers,
|
|
@@ -4772,6 +4819,10 @@ class ToolLLMApi:
|
|
|
4772
4819
|
if id is not None:
|
|
4773
4820
|
_path_params['id'] = id
|
|
4774
4821
|
# process the query parameters
|
|
4822
|
+
if organization_id is not None:
|
|
4823
|
+
|
|
4824
|
+
_query_params.append(('organization_id', organization_id))
|
|
4825
|
+
|
|
4775
4826
|
# process the header parameters
|
|
4776
4827
|
# process the form parameters
|
|
4777
4828
|
# process the body parameter
|
qanswer_sdk/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/3.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/3.1333.0/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
qanswer_sdk/configuration.py
CHANGED
|
@@ -421,7 +421,7 @@ conf = qanswer_sdk.Configuration(
|
|
|
421
421
|
"OS: {env}\n"\
|
|
422
422
|
"Python Version: {pyversion}\n"\
|
|
423
423
|
"Version of the API: 1.0\n"\
|
|
424
|
-
"SDK Package Version: 3.
|
|
424
|
+
"SDK Package Version: 3.1333.0".\
|
|
425
425
|
format(env=sys.platform, pyversion=sys.version)
|
|
426
426
|
|
|
427
427
|
def get_host_settings(self):
|
qanswer_sdk/models/__init__.py
CHANGED
|
@@ -249,6 +249,7 @@ from qanswer_sdk.models.report_copilot_task_settings_update_payload import Repor
|
|
|
249
249
|
from qanswer_sdk.models.report_copilot_task_update import ReportCopilotTaskUpdate
|
|
250
250
|
from qanswer_sdk.models.report_template import ReportTemplate
|
|
251
251
|
from qanswer_sdk.models.report_template_create_payload import ReportTemplateCreatePayload
|
|
252
|
+
from qanswer_sdk.models.report_template_simplified import ReportTemplateSimplified
|
|
252
253
|
from qanswer_sdk.models.report_template_simplified_payload import ReportTemplateSimplifiedPayload
|
|
253
254
|
from qanswer_sdk.models.report_template_update_payload import ReportTemplateUpdatePayload
|
|
254
255
|
from qanswer_sdk.models.reset_password import ResetPassword
|
qanswer_sdk/models/llm.py
CHANGED
|
@@ -35,11 +35,12 @@ class Llm(BaseModel):
|
|
|
35
35
|
cost_output_token: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="costOutputToken")
|
|
36
36
|
sensitivity_level: Optional[StrictStr] = Field(default=None, alias="sensitivityLevel")
|
|
37
37
|
is_active: Optional[StrictBool] = Field(default=None, alias="isActive")
|
|
38
|
+
is_shared: Optional[StrictBool] = Field(default=None, alias="isShared")
|
|
38
39
|
logo: Optional[Logo] = None
|
|
39
40
|
organization_llms: Optional[List[OrganizationLlm]] = Field(default=None, alias="organizationLlms")
|
|
40
41
|
user_chatbot_settings: Optional[List[UserChatbotSetting]] = Field(default=None, alias="userChatbotSettings")
|
|
41
42
|
llm_consumptions: Optional[List[LlmConsumption]] = Field(default=None, alias="llmConsumptions")
|
|
42
|
-
__properties: ClassVar[List[str]] = ["id", "pythonId", "name", "displayName", "costInputToken", "costOutputToken", "sensitivityLevel", "isActive", "logo", "organizationLlms", "userChatbotSettings", "llmConsumptions"]
|
|
43
|
+
__properties: ClassVar[List[str]] = ["id", "pythonId", "name", "displayName", "costInputToken", "costOutputToken", "sensitivityLevel", "isActive", "isShared", "logo", "organizationLlms", "userChatbotSettings", "llmConsumptions"]
|
|
43
44
|
|
|
44
45
|
model_config = ConfigDict(
|
|
45
46
|
populate_by_name=True,
|
|
@@ -124,6 +125,7 @@ class Llm(BaseModel):
|
|
|
124
125
|
"costOutputToken": obj.get("costOutputToken"),
|
|
125
126
|
"sensitivityLevel": obj.get("sensitivityLevel"),
|
|
126
127
|
"isActive": obj.get("isActive"),
|
|
128
|
+
"isShared": obj.get("isShared"),
|
|
127
129
|
"logo": Logo.from_dict(obj["logo"]) if obj.get("logo") is not None else None,
|
|
128
130
|
"organizationLlms": [OrganizationLlm.from_dict(_item) for _item in obj["organizationLlms"]] if obj.get("organizationLlms") is not None else None,
|
|
129
131
|
"userChatbotSettings": [UserChatbotSetting.from_dict(_item) for _item in obj["userChatbotSettings"]] if obj.get("userChatbotSettings") is not None else None,
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from qanswer_sdk.models.
|
|
22
|
+
from qanswer_sdk.models.report_template_simplified import ReportTemplateSimplified
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ class PaginatedReportTemplates(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
PaginatedReportTemplates
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
items: List[
|
|
30
|
+
items: List[ReportTemplateSimplified]
|
|
31
31
|
total: StrictInt
|
|
32
32
|
page: StrictInt
|
|
33
33
|
page_size: StrictInt
|
|
@@ -91,7 +91,7 @@ class PaginatedReportTemplates(BaseModel):
|
|
|
91
91
|
return cls.model_validate(obj)
|
|
92
92
|
|
|
93
93
|
_obj = cls.model_validate({
|
|
94
|
-
"items": [
|
|
94
|
+
"items": [ReportTemplateSimplified.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
|
|
95
95
|
"total": obj.get("total"),
|
|
96
96
|
"page": obj.get("page"),
|
|
97
97
|
"page_size": obj.get("page_size")
|
|
@@ -38,12 +38,12 @@ class ReportTemplate(BaseModel):
|
|
|
38
38
|
shared_to: Optional[StrictStr] = None
|
|
39
39
|
conversation_id: Optional[StrictStr] = None
|
|
40
40
|
is_duplicated: StrictBool
|
|
41
|
+
is_generating: Optional[StrictBool] = None
|
|
42
|
+
active_slot_id: Optional[StrictInt] = None
|
|
41
43
|
template_with_slots: StrictStr
|
|
42
44
|
slots: List[Slot]
|
|
43
45
|
clip_structure: Optional[TemplateClipStructureOutput] = None
|
|
44
|
-
|
|
45
|
-
active_slot_id: Optional[StrictInt] = None
|
|
46
|
-
__properties: ClassVar[List[str]] = ["id", "username", "author", "email", "template_name", "creation_date", "last_updated", "shared_to", "conversation_id", "is_duplicated", "template_with_slots", "slots", "clip_structure", "is_generating", "active_slot_id"]
|
|
46
|
+
__properties: ClassVar[List[str]] = ["id", "username", "author", "email", "template_name", "creation_date", "last_updated", "shared_to", "conversation_id", "is_duplicated", "is_generating", "active_slot_id", "template_with_slots", "slots", "clip_structure"]
|
|
47
47
|
|
|
48
48
|
model_config = ConfigDict(
|
|
49
49
|
populate_by_name=True,
|
|
@@ -116,11 +116,11 @@ class ReportTemplate(BaseModel):
|
|
|
116
116
|
"shared_to": obj.get("shared_to"),
|
|
117
117
|
"conversation_id": obj.get("conversation_id"),
|
|
118
118
|
"is_duplicated": obj.get("is_duplicated"),
|
|
119
|
+
"is_generating": obj.get("is_generating"),
|
|
120
|
+
"active_slot_id": obj.get("active_slot_id"),
|
|
119
121
|
"template_with_slots": obj.get("template_with_slots"),
|
|
120
122
|
"slots": [Slot.from_dict(_item) for _item in obj["slots"]] if obj.get("slots") is not None else None,
|
|
121
|
-
"clip_structure": TemplateClipStructureOutput.from_dict(obj["clip_structure"]) if obj.get("clip_structure") is not None else None
|
|
122
|
-
"is_generating": obj.get("is_generating"),
|
|
123
|
-
"active_slot_id": obj.get("active_slot_id")
|
|
123
|
+
"clip_structure": TemplateClipStructureOutput.from_dict(obj["clip_structure"]) if obj.get("clip_structure") is not None else None
|
|
124
124
|
})
|
|
125
125
|
return _obj
|
|
126
126
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
QAnswer: Api Documentation
|
|
5
|
+
|
|
6
|
+
APIs provided by QAnswer
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ReportTemplateSimplified(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ReportTemplateSimplified
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
id: StrictInt
|
|
30
|
+
username: StrictStr
|
|
31
|
+
author: Optional[StrictStr] = None
|
|
32
|
+
email: Optional[StrictStr] = None
|
|
33
|
+
template_name: StrictStr
|
|
34
|
+
creation_date: StrictStr
|
|
35
|
+
last_updated: StrictStr
|
|
36
|
+
shared_to: Optional[StrictStr] = None
|
|
37
|
+
conversation_id: Optional[StrictStr] = None
|
|
38
|
+
is_duplicated: StrictBool
|
|
39
|
+
is_generating: Optional[StrictBool] = None
|
|
40
|
+
active_slot_id: Optional[StrictInt] = None
|
|
41
|
+
__properties: ClassVar[List[str]] = ["id", "username", "author", "email", "template_name", "creation_date", "last_updated", "shared_to", "conversation_id", "is_duplicated", "is_generating", "active_slot_id"]
|
|
42
|
+
|
|
43
|
+
model_config = ConfigDict(
|
|
44
|
+
populate_by_name=True,
|
|
45
|
+
validate_assignment=True,
|
|
46
|
+
protected_namespaces=(),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def to_str(self) -> str:
|
|
51
|
+
"""Returns the string representation of the model using alias"""
|
|
52
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
53
|
+
|
|
54
|
+
def to_json(self) -> str:
|
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
|
56
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
57
|
+
return json.dumps(self.to_dict())
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
61
|
+
"""Create an instance of ReportTemplateSimplified from a JSON string"""
|
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
|
63
|
+
|
|
64
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
65
|
+
"""Return the dictionary representation of the model using alias.
|
|
66
|
+
|
|
67
|
+
This has the following differences from calling pydantic's
|
|
68
|
+
`self.model_dump(by_alias=True)`:
|
|
69
|
+
|
|
70
|
+
* `None` is only added to the output dict for nullable fields that
|
|
71
|
+
were set at model initialization. Other fields with value `None`
|
|
72
|
+
are ignored.
|
|
73
|
+
"""
|
|
74
|
+
excluded_fields: Set[str] = set([
|
|
75
|
+
])
|
|
76
|
+
|
|
77
|
+
_dict = self.model_dump(
|
|
78
|
+
by_alias=True,
|
|
79
|
+
exclude=excluded_fields,
|
|
80
|
+
exclude_none=True,
|
|
81
|
+
)
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of ReportTemplateSimplified from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"id": obj.get("id"),
|
|
95
|
+
"username": obj.get("username"),
|
|
96
|
+
"author": obj.get("author"),
|
|
97
|
+
"email": obj.get("email"),
|
|
98
|
+
"template_name": obj.get("template_name"),
|
|
99
|
+
"creation_date": obj.get("creation_date"),
|
|
100
|
+
"last_updated": obj.get("last_updated"),
|
|
101
|
+
"shared_to": obj.get("shared_to"),
|
|
102
|
+
"conversation_id": obj.get("conversation_id"),
|
|
103
|
+
"is_duplicated": obj.get("is_duplicated"),
|
|
104
|
+
"is_generating": obj.get("is_generating"),
|
|
105
|
+
"active_slot_id": obj.get("active_slot_id")
|
|
106
|
+
})
|
|
107
|
+
return _obj
|
|
108
|
+
|
|
109
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qanswer_sdk
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1333.0
|
|
4
4
|
Summary: QAnswer: Api Documentation
|
|
5
5
|
Home-page: https://github.com/GIT_USER_ID/GIT_REPO_ID
|
|
6
6
|
License: NoLicense
|
|
@@ -228,7 +228,7 @@ print(response.answer)
|
|
|
228
228
|
## 📌 Versioning
|
|
229
229
|
|
|
230
230
|
This SDK follows the version of the QAnswer API.
|
|
231
|
-
The current version is: `3.
|
|
231
|
+
The current version is: `3.1333.0 (branch: main)`
|
|
232
232
|
|
|
233
233
|
---
|
|
234
234
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
qanswer_sdk/__init__.py,sha256=
|
|
1
|
+
qanswer_sdk/__init__.py,sha256=DhWdbyqjaQ2D6HNpWN0_bZ_jM6UQLfgXoOij1mNPjD4,28110
|
|
2
2
|
qanswer_sdk/api/__init__.py,sha256=Lxp9OLgOUg7jmcAophNG7okim03ZaxIPxhXg-mo9y3A,3157
|
|
3
3
|
qanswer_sdk/api/admin_api.py,sha256=qy0V6peMJklmAUrDh_sZsC1dlAGu7iehosOve7QU5F4,177877
|
|
4
4
|
qanswer_sdk/api/ai_assistant_access_rights_api.py,sha256=g8vytIW8KUxZo2vcLFEdxOkvR3dTgjR5ow1mTA0erR0,197831
|
|
@@ -42,15 +42,15 @@ qanswer_sdk/api/task_sparql2text_api.py,sha256=ZTmFwWNxTGi0Useie4zvZkKfYWhLci6mV
|
|
|
42
42
|
qanswer_sdk/api/task_text2sparql_api.py,sha256=gBK7VGdZz6MM8TRLz0wF0wrMYgJrtBvAAAtJ8uFJBCU,35540
|
|
43
43
|
qanswer_sdk/api/task_text_classification_api.py,sha256=oqI4-s1pN4_m5oqAlLr92i5I6ycLhkEZg454D2X7XE4,36358
|
|
44
44
|
qanswer_sdk/api/tool_embedder_api.py,sha256=_-UjF_sQpLUaNdDNrFPydvCRa96bFGi5CmOMxwNbJNE,152553
|
|
45
|
-
qanswer_sdk/api/tool_llm_api.py,sha256=
|
|
45
|
+
qanswer_sdk/api/tool_llm_api.py,sha256=isQs7qoWheR2b9ds02BGBN_VfshETDkSCG-8N_zMK74,192767
|
|
46
46
|
qanswer_sdk/api/unit_organizations_api.py,sha256=1Z7zaqxSl6ZomXrZyLNaA-cW5RIehddTYjNG3qVAFuk,193541
|
|
47
47
|
qanswer_sdk/api/unit_teams_api.py,sha256=Soc3QkvulKcEUUkz_JIh08qGhO15pMFhTxy8Y0XKrVY,145189
|
|
48
48
|
qanswer_sdk/api/unit_user_api.py,sha256=vg0B7xjc94OahBN_kBxsw7IxWCOKML_J_umdFNPMd9g,318314
|
|
49
|
-
qanswer_sdk/api_client.py,sha256=
|
|
49
|
+
qanswer_sdk/api_client.py,sha256=Hv7TxOwZrgYN-ZNxrVRXJkwtbfoLtqI-63vM8Y6N6Ro,27387
|
|
50
50
|
qanswer_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
51
|
-
qanswer_sdk/configuration.py,sha256=
|
|
51
|
+
qanswer_sdk/configuration.py,sha256=4NpE-t2K3CuqYXVeroDYLJwjI7hz_8eFFBWpnwQQs2A,16184
|
|
52
52
|
qanswer_sdk/exceptions.py,sha256=BCaz7REoUyrBq8zuVBNTmEHGvJfM1YyLSyOnkB1XQLU,5907
|
|
53
|
-
qanswer_sdk/models/__init__.py,sha256=
|
|
53
|
+
qanswer_sdk/models/__init__.py,sha256=OtKJsNByhowINBAlckw-iGoGMpqSW115ULT3-po0MJk,24481
|
|
54
54
|
qanswer_sdk/models/access_pdf_payload_model.py,sha256=0oamrJeAIZdpjmcWby_PFmz-GrXD0ObDU3ecRpf7nRI,3626
|
|
55
55
|
qanswer_sdk/models/add_qn_a_request.py,sha256=vfpsHZE5zc58RyL1DCXI6va4Z57LH0nIrXXaOgZvbVM,3488
|
|
56
56
|
qanswer_sdk/models/add_synonyms.py,sha256=VMWFah8VTE1n_bFU0xvHivo8jC77NDp4vgVXwcyS3jo,2681
|
|
@@ -194,7 +194,7 @@ qanswer_sdk/models/list_feedback_response.py,sha256=mqLxmJq0sUSmHelJqafXQPkE5HSx
|
|
|
194
194
|
qanswer_sdk/models/list_files_connector_response.py,sha256=MZygcOm7LdHtIT06LVcKr_EIEfbmo747bJEWE1XKXDg,3241
|
|
195
195
|
qanswer_sdk/models/list_socket_events.py,sha256=xnHSMPgZSc98cnoR6Ko7FcaZnXJ01vHYXkF5BWbHcrI,3248
|
|
196
196
|
qanswer_sdk/models/list_synonyms_model.py,sha256=cRIazEYTbRS_iefZiFDGayStaUSXrmwI4cbk_U5ZS4A,2603
|
|
197
|
-
qanswer_sdk/models/llm.py,sha256=
|
|
197
|
+
qanswer_sdk/models/llm.py,sha256=iQa9jbPB7koABjYtPFhYE1y8hJKxKRYHt63PAgBOfXU,6275
|
|
198
198
|
qanswer_sdk/models/llm_consumption.py,sha256=hixBfU9SWHPUf1qOKSwVfC_a-cyMKqD8tAwsRtot_LI,4298
|
|
199
199
|
qanswer_sdk/models/llm_context_ranges.py,sha256=88TlPLQ6wFD2S-bZa-E3RByULjX0AOqZ5aN9DYYg3a8,2880
|
|
200
200
|
qanswer_sdk/models/llm_context_ranges_response.py,sha256=8KLj0k9kbSuRxgwF09py-eDfN5sE82HgP00bgPU7ZPY,2861
|
|
@@ -233,7 +233,7 @@ qanswer_sdk/models/organization_filter_dto.py,sha256=VM07trM2ny0Zj8qS04wuKt67Zi9
|
|
|
233
233
|
qanswer_sdk/models/organization_list_dto.py,sha256=Vi9DmskcXhIOdG8mWKZKOaV4sK-_UF5plWtw2ysG2g4,3325
|
|
234
234
|
qanswer_sdk/models/organization_llm.py,sha256=qdRa1zVGwAUBUCCT6NIt6FoT6h6cWrul2J4TPyUT-tg,3362
|
|
235
235
|
qanswer_sdk/models/organization_shared.py,sha256=lpWhLRUS8qK5fmrd-_jmDnvYL5SY6NNmhxJmfsMav8M,3610
|
|
236
|
-
qanswer_sdk/models/paginated_report_templates.py,sha256=
|
|
236
|
+
qanswer_sdk/models/paginated_report_templates.py,sha256=2186zhAFGOWPUgqQ3UIKJSi6RRL2Hz8pt-OI4daKReI,3184
|
|
237
237
|
qanswer_sdk/models/password.py,sha256=PrJ3DpYh6bdLzT1lhfsmuEKr0PPkZqsU-YOr8Os4Cyk,2711
|
|
238
238
|
qanswer_sdk/models/pinecone_index_model.py,sha256=MKSy39jXeCTre-jDjCBthF60pHsvTBzOHmFjBCHNa6o,2592
|
|
239
239
|
qanswer_sdk/models/plan_dto.py,sha256=mmIHxITgLUYyHsYsElP4ohk91HaSLyZPn3_kdeglMQ0,4520
|
|
@@ -284,8 +284,9 @@ qanswer_sdk/models/report_copilot_slot_task_settings_update.py,sha256=irqCW1qe8m
|
|
|
284
284
|
qanswer_sdk/models/report_copilot_task_settings.py,sha256=2WlQ9vTK1klZW8MdLVN1amuS3WEQou_mBIStCS-a5uE,4769
|
|
285
285
|
qanswer_sdk/models/report_copilot_task_settings_update_payload.py,sha256=8DZJEsiT8xzF--n-lDTVcDrPup3GHHHSlA8ri0zHQAk,3009
|
|
286
286
|
qanswer_sdk/models/report_copilot_task_update.py,sha256=8rg1jH0Zfi5c5pMZx3_9pY5Y5SzCFDJwpa3MfvU7Spo,4757
|
|
287
|
-
qanswer_sdk/models/report_template.py,sha256=
|
|
287
|
+
qanswer_sdk/models/report_template.py,sha256=aibkZFLqO2rntx0v-ZpGd4oJz6u2VCE5FYljHyk2aaw,4694
|
|
288
288
|
qanswer_sdk/models/report_template_create_payload.py,sha256=4bLt55FmsbVHnRUAHKbhUB2cZtNylPhzCkR4wGIJWyg,3404
|
|
289
|
+
qanswer_sdk/models/report_template_simplified.py,sha256=e5PUYnnfMiUlqD9rXD4cCTsssDcRzLnDIHKIcKJ0HZ4,3599
|
|
289
290
|
qanswer_sdk/models/report_template_simplified_payload.py,sha256=SoesgTUbAjcOKp0TX24O1pcTZ0F7kBQInOzQCjRgoHQ,2772
|
|
290
291
|
qanswer_sdk/models/report_template_update_payload.py,sha256=ZhyxD8-w_y22g9r5eetUiydRkPE_Yw2vUxx28fMAbqQ,3870
|
|
291
292
|
qanswer_sdk/models/reset_password.py,sha256=0ZAC_EMttOMmybgP8-GUgzEL92OUqN6VZm1t_b2jCdg,2434
|
|
@@ -379,6 +380,6 @@ qanswer_sdk/models/website_connector_settings.py,sha256=mlKuTG7Nsmv4XyEDUpVlg8ZO
|
|
|
379
380
|
qanswer_sdk/models/widget_configs.py,sha256=H38KJ4wCup7MXD-PeTHaF0xnR1VZmCTSIxNNmQzIPVc,3703
|
|
380
381
|
qanswer_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
381
382
|
qanswer_sdk/rest.py,sha256=9cpA9eEQsfuHcThVnF2c7CEK0HCJYGyGZnWqmfkQpT8,9344
|
|
382
|
-
qanswer_sdk-3.
|
|
383
|
-
qanswer_sdk-3.
|
|
384
|
-
qanswer_sdk-3.
|
|
383
|
+
qanswer_sdk-3.1333.0.dist-info/METADATA,sha256=S1gs303Va4CAbwP3PuEU3pJJeDQe9NwWgAmv8n-oL8M,6532
|
|
384
|
+
qanswer_sdk-3.1333.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
385
|
+
qanswer_sdk-3.1333.0.dist-info/RECORD,,
|
|
File without changes
|