qanswer_sdk 3.1327.0__py3-none-any.whl → 3.1329.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_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- qanswer_sdk/models/__init__.py +1 -0
- qanswer_sdk/models/slot_info_with_latest_version.py +95 -0
- qanswer_sdk/models/socket_report_copilot_generation_from_slots_response.py +10 -10
- {qanswer_sdk-3.1327.0.dist-info → qanswer_sdk-3.1329.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1327.0.dist-info → qanswer_sdk-3.1329.0.dist-info}/RECORD +9 -8
- {qanswer_sdk-3.1327.0.dist-info → qanswer_sdk-3.1329.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.1329.0"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from qanswer_sdk.api.admin_api import AdminApi
|
|
@@ -338,6 +338,7 @@ from qanswer_sdk.models.signout_request import SignoutRequest
|
|
|
338
338
|
from qanswer_sdk.models.slot import Slot
|
|
339
339
|
from qanswer_sdk.models.slot_history_entry import SlotHistoryEntry
|
|
340
340
|
from qanswer_sdk.models.slot_in_prompt import SlotInPrompt
|
|
341
|
+
from qanswer_sdk.models.slot_info_with_latest_version import SlotInfoWithLatestVersion
|
|
341
342
|
from qanswer_sdk.models.slot_update import SlotUpdate
|
|
342
343
|
from qanswer_sdk.models.socket_conversation_message import SocketConversationMessage
|
|
343
344
|
from qanswer_sdk.models.socket_data_extraction import SocketDataExtraction
|
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.1329.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.1329.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
|
@@ -276,6 +276,7 @@ from qanswer_sdk.models.signout_request import SignoutRequest
|
|
|
276
276
|
from qanswer_sdk.models.slot import Slot
|
|
277
277
|
from qanswer_sdk.models.slot_history_entry import SlotHistoryEntry
|
|
278
278
|
from qanswer_sdk.models.slot_in_prompt import SlotInPrompt
|
|
279
|
+
from qanswer_sdk.models.slot_info_with_latest_version import SlotInfoWithLatestVersion
|
|
279
280
|
from qanswer_sdk.models.slot_update import SlotUpdate
|
|
280
281
|
from qanswer_sdk.models.socket_conversation_message import SocketConversationMessage
|
|
281
282
|
from qanswer_sdk.models.socket_data_extraction import SocketDataExtraction
|
|
@@ -0,0 +1,95 @@
|
|
|
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, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from qanswer_sdk.models.slot_history_entry import SlotHistoryEntry
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class SlotInfoWithLatestVersion(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
SlotInfoWithLatestVersion
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
id: StrictInt
|
|
31
|
+
node_id: StrictStr
|
|
32
|
+
latest_version: SlotHistoryEntry
|
|
33
|
+
__properties: ClassVar[List[str]] = ["id", "node_id", "latest_version"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of SlotInfoWithLatestVersion from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
# override the default output from pydantic by calling `to_dict()` of latest_version
|
|
75
|
+
if self.latest_version:
|
|
76
|
+
_dict['latest_version'] = self.latest_version.to_dict()
|
|
77
|
+
return _dict
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
+
"""Create an instance of SlotInfoWithLatestVersion from a dict"""
|
|
82
|
+
if obj is None:
|
|
83
|
+
return None
|
|
84
|
+
|
|
85
|
+
if not isinstance(obj, dict):
|
|
86
|
+
return cls.model_validate(obj)
|
|
87
|
+
|
|
88
|
+
_obj = cls.model_validate({
|
|
89
|
+
"id": obj.get("id"),
|
|
90
|
+
"node_id": obj.get("node_id"),
|
|
91
|
+
"latest_version": SlotHistoryEntry.from_dict(obj["latest_version"]) if obj.get("latest_version") is not None else None
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
95
|
+
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from qanswer_sdk.models.
|
|
22
|
+
from qanswer_sdk.models.slot_info_with_latest_version import SlotInfoWithLatestVersion
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ class SocketReportCopilotGenerationFromSlotsResponse(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
SocketReportCopilotGenerationFromSlotsResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
|
|
30
|
+
slot_versions: List[SlotInfoWithLatestVersion]
|
|
31
31
|
username: StrictStr = Field(description="Username of the dataset")
|
|
32
32
|
dataset: StrictStr = Field(description="Name of the dataset")
|
|
33
33
|
jwt: StrictStr = Field(description="JTW token for authentification to join the conversation.")
|
|
@@ -37,7 +37,7 @@ class SocketReportCopilotGenerationFromSlotsResponse(BaseModel):
|
|
|
37
37
|
status: StrictStr
|
|
38
38
|
done: StrictInt
|
|
39
39
|
total: StrictInt
|
|
40
|
-
__properties: ClassVar[List[str]] = ["
|
|
40
|
+
__properties: ClassVar[List[str]] = ["slot_versions", "username", "dataset", "jwt", "api_key", "conversation_id", "user", "status", "done", "total"]
|
|
41
41
|
|
|
42
42
|
@field_validator('status')
|
|
43
43
|
def status_validate_enum(cls, value):
|
|
@@ -85,13 +85,13 @@ class SocketReportCopilotGenerationFromSlotsResponse(BaseModel):
|
|
|
85
85
|
exclude=excluded_fields,
|
|
86
86
|
exclude_none=True,
|
|
87
87
|
)
|
|
88
|
-
# override the default output from pydantic by calling `to_dict()` of each item in
|
|
88
|
+
# override the default output from pydantic by calling `to_dict()` of each item in slot_versions (list)
|
|
89
89
|
_items = []
|
|
90
|
-
if self.
|
|
91
|
-
for
|
|
92
|
-
if
|
|
93
|
-
_items.append(
|
|
94
|
-
_dict['
|
|
90
|
+
if self.slot_versions:
|
|
91
|
+
for _item_slot_versions in self.slot_versions:
|
|
92
|
+
if _item_slot_versions:
|
|
93
|
+
_items.append(_item_slot_versions.to_dict())
|
|
94
|
+
_dict['slot_versions'] = _items
|
|
95
95
|
return _dict
|
|
96
96
|
|
|
97
97
|
@classmethod
|
|
@@ -104,7 +104,7 @@ class SocketReportCopilotGenerationFromSlotsResponse(BaseModel):
|
|
|
104
104
|
return cls.model_validate(obj)
|
|
105
105
|
|
|
106
106
|
_obj = cls.model_validate({
|
|
107
|
-
"
|
|
107
|
+
"slot_versions": [SlotInfoWithLatestVersion.from_dict(_item) for _item in obj["slot_versions"]] if obj.get("slot_versions") is not None else None,
|
|
108
108
|
"username": obj.get("username"),
|
|
109
109
|
"dataset": obj.get("dataset"),
|
|
110
110
|
"jwt": obj.get("jwt"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qanswer_sdk
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1329.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.1329.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=k3LgiqOIciLe6C4mModXzwZf1oCdIpw5JPJot4TVhz4,28027
|
|
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
|
|
@@ -46,11 +46,11 @@ qanswer_sdk/api/tool_llm_api.py,sha256=NagpzoyhZxTT4ArcIL17Tf50FKxsZJaMvl2HaR4by
|
|
|
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=s-UAmhWbg8I6j-BTesTNVOy1WksWowd9NhyLetNiVEI,27387
|
|
50
50
|
qanswer_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
51
|
-
qanswer_sdk/configuration.py,sha256=
|
|
51
|
+
qanswer_sdk/configuration.py,sha256=wDa8S4lY2JgjMHfkm1NBOHj_hHaGinyu82admUbLahw,16184
|
|
52
52
|
qanswer_sdk/exceptions.py,sha256=BCaz7REoUyrBq8zuVBNTmEHGvJfM1YyLSyOnkB1XQLU,5907
|
|
53
|
-
qanswer_sdk/models/__init__.py,sha256=
|
|
53
|
+
qanswer_sdk/models/__init__.py,sha256=R0gQYugDIp84VeaCgTltV0vMXaZAgFxH8M2iTJTC-_M,24398
|
|
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
|
|
@@ -313,6 +313,7 @@ qanswer_sdk/models/signout_request.py,sha256=YYnM_n3ZJM9uMPr7GyskYFU8UGky5xO6KyQ
|
|
|
313
313
|
qanswer_sdk/models/slot.py,sha256=MDYUKWhD7aRfkUg78y_ZcugsWcJUEAepfFUtKtiROjE,6928
|
|
314
314
|
qanswer_sdk/models/slot_history_entry.py,sha256=zMAmiLcPF2AVf2WgwheQiY0DS5OM4SaSWyf1MaJx8HI,4874
|
|
315
315
|
qanswer_sdk/models/slot_in_prompt.py,sha256=S83L-wC9CmNymXmXkf7OPXXdjm7fsRCEFm5N3O8j0Ks,2624
|
|
316
|
+
qanswer_sdk/models/slot_info_with_latest_version.py,sha256=R1siBfjJJncW7v4FI6ua7Y5wNkRsPBcp9Ro4sRDI730,2978
|
|
316
317
|
qanswer_sdk/models/slot_update.py,sha256=XrDXWN2ammp1kLBgHPI8Aav72_a-0HspPhxxsORkMHs,5757
|
|
317
318
|
qanswer_sdk/models/socket_conversation_message.py,sha256=aYFcitA29644HqH9Nn2mIRL1OK_mXFQKhpj9JAJoBKw,9210
|
|
318
319
|
qanswer_sdk/models/socket_data_extraction.py,sha256=IBf9maEwDMd_z_wQQMK38xINgXoltJvr6Q3vtJm_k9U,3992
|
|
@@ -320,7 +321,7 @@ qanswer_sdk/models/socket_file_metadata.py,sha256=BSPzIxfe4FRUIlBmTO6R48f2AX8VZ1
|
|
|
320
321
|
qanswer_sdk/models/socket_join_conversation.py,sha256=YuUGn51hFz8TwicYttSFFxDwQBDj1e1kqOydfHWc3Dg,3264
|
|
321
322
|
qanswer_sdk/models/socket_join_dataset.py,sha256=GwaK5IiBs7eCCWfRSmRP4iQ1ywpAnbbI6x4mH8qYzm4,2939
|
|
322
323
|
qanswer_sdk/models/socket_report_continuation_response.py,sha256=Q0nRSf5nQ46DuGBaFK8gQmLNrcWD6rDHJ8ALvOfrh-A,3783
|
|
323
|
-
qanswer_sdk/models/socket_report_copilot_generation_from_slots_response.py,sha256=
|
|
324
|
+
qanswer_sdk/models/socket_report_copilot_generation_from_slots_response.py,sha256=LsOvZW7SYzJj2J9jifZMgiadx-LbH1OBlkyVfYeClRA,4669
|
|
324
325
|
qanswer_sdk/models/socket_report_copilot_refinement_response.py,sha256=dMofavsPnV2wD2hQrn29y9T1o2aKa37I1JBpdtfBF5k,3868
|
|
325
326
|
qanswer_sdk/models/socket_speech2_text_response.py,sha256=EYYFqcHVMkyn51FmAEiklh8miFZuK1luxyVvAO-lvP0,3377
|
|
326
327
|
qanswer_sdk/models/socket_stop_conversation.py,sha256=6BSqMK5hNbf56TGFUH-fwCW8B4XGM_u4ySVadcf-J4E,3264
|
|
@@ -378,6 +379,6 @@ qanswer_sdk/models/website_connector_settings.py,sha256=mlKuTG7Nsmv4XyEDUpVlg8ZO
|
|
|
378
379
|
qanswer_sdk/models/widget_configs.py,sha256=H38KJ4wCup7MXD-PeTHaF0xnR1VZmCTSIxNNmQzIPVc,3703
|
|
379
380
|
qanswer_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
380
381
|
qanswer_sdk/rest.py,sha256=9cpA9eEQsfuHcThVnF2c7CEK0HCJYGyGZnWqmfkQpT8,9344
|
|
381
|
-
qanswer_sdk-3.
|
|
382
|
-
qanswer_sdk-3.
|
|
383
|
-
qanswer_sdk-3.
|
|
382
|
+
qanswer_sdk-3.1329.0.dist-info/METADATA,sha256=hefj6dfO0wsjqM3xAQk8fUn8y0WhgNpj_hiX2OSmTgs,6532
|
|
383
|
+
qanswer_sdk-3.1329.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
384
|
+
qanswer_sdk-3.1329.0.dist-info/RECORD,,
|
|
File without changes
|