egain-api-python 0.1.7__py3-none-any.whl → 0.1.9__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.
- egain_api_python/_version.py +2 -2
- egain_api_python/models/getbestanswerop.py +1 -1
- egain_api_python/models/referenceresponse.py +5 -4
- egain_api_python/models/retrievechunksop.py +1 -1
- egain_api_python/models/searchresult.py +6 -5
- egain_api_python/retrieve.py +6 -6
- {egain_api_python-0.1.7.dist-info → egain_api_python-0.1.9.dist-info}/METADATA +2 -2
- {egain_api_python-0.1.7.dist-info → egain_api_python-0.1.9.dist-info}/RECORD +11 -11
- {egain_api_python-0.1.7.dist-info → egain_api_python-0.1.9.dist-info}/WHEEL +0 -0
- {egain_api_python-0.1.7.dist-info → egain_api_python-0.1.9.dist-info}/licenses/LICENSE +0 -0
- {egain_api_python-0.1.7.dist-info → egain_api_python-0.1.9.dist-info}/top_level.txt +0 -0
egain_api_python/_version.py
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
import importlib.metadata
|
4
4
|
|
5
5
|
__title__: str = "egain-api-python"
|
6
|
-
__version__: str = "0.1.
|
6
|
+
__version__: str = "0.1.9"
|
7
7
|
__openapi_doc_version__: str = "4.0.0"
|
8
8
|
__gen_version__: str = "2.723.11"
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.1.
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.1.9 2.723.11 4.0.0 egain-api-python"
|
10
10
|
|
11
11
|
try:
|
12
12
|
if __package__ is not None:
|
@@ -10,10 +10,11 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
10
|
|
11
11
|
ReferenceResponseDocType = Literal[
|
12
12
|
"HTML",
|
13
|
-
"
|
13
|
+
"DOCX",
|
14
14
|
"PDF",
|
15
|
+
"PPTX",
|
15
16
|
]
|
16
|
-
r"""Format of the source document (HTML,
|
17
|
+
r"""Format of the source document (HTML, DOCX, PPTX, or PDF)."""
|
17
18
|
|
18
19
|
|
19
20
|
ReferenceResponseSource = Literal[
|
@@ -31,7 +32,7 @@ class ReferenceResponseTypedDict(TypedDict):
|
|
31
32
|
name: str
|
32
33
|
r"""The name of the Article or source content."""
|
33
34
|
doc_type: ReferenceResponseDocType
|
34
|
-
r"""Format of the source document (HTML,
|
35
|
+
r"""Format of the source document (HTML, DOCX, PPTX, or PDF)."""
|
35
36
|
source: ReferenceResponseSource
|
36
37
|
r"""Source Type"""
|
37
38
|
doc_name: NotRequired[str]
|
@@ -49,7 +50,7 @@ class ReferenceResponse(BaseModel):
|
|
49
50
|
r"""The name of the Article or source content."""
|
50
51
|
|
51
52
|
doc_type: Annotated[ReferenceResponseDocType, pydantic.Field(alias="docType")]
|
52
|
-
r"""Format of the source document (HTML,
|
53
|
+
r"""Format of the source document (HTML, DOCX, PPTX, or PDF)."""
|
53
54
|
|
54
55
|
source: ReferenceResponseSource
|
55
56
|
r"""Source Type"""
|
@@ -10,10 +10,11 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
10
|
|
11
11
|
SearchResultDocType = Literal[
|
12
12
|
"HTML",
|
13
|
-
"
|
14
|
-
"
|
13
|
+
"DOCX",
|
14
|
+
"PDF",
|
15
|
+
"PPTX",
|
15
16
|
]
|
16
|
-
r"""Format of the source document (HTML,
|
17
|
+
r"""Format of the source document (HTML, DOCX, PPTX, or PDF)."""
|
17
18
|
|
18
19
|
|
19
20
|
SearchResultSource = Literal[
|
@@ -37,7 +38,7 @@ class SearchResultTypedDict(TypedDict):
|
|
37
38
|
name: str
|
38
39
|
r"""The name of the Article or source content."""
|
39
40
|
doc_type: SearchResultDocType
|
40
|
-
r"""Format of the source document (HTML,
|
41
|
+
r"""Format of the source document (HTML, DOCX, PPTX, or PDF)."""
|
41
42
|
source: SearchResultSource
|
42
43
|
r"""The repository or system where the content originated (e.g., eGain Article, eGain Attachment)."""
|
43
44
|
snippet: str
|
@@ -60,7 +61,7 @@ class SearchResult(BaseModel):
|
|
60
61
|
r"""The name of the Article or source content."""
|
61
62
|
|
62
63
|
doc_type: Annotated[SearchResultDocType, pydantic.Field(alias="docType")]
|
63
|
-
r"""Format of the source document (HTML,
|
64
|
+
r"""Format of the source document (HTML, DOCX, PPTX, or PDF)."""
|
64
65
|
|
65
66
|
source: SearchResultSource
|
66
67
|
r"""The repository or system where the content originated (e.g., eGain Article, eGain Attachment)."""
|
egain_api_python/retrieve.py
CHANGED
@@ -33,9 +33,9 @@ class Retrieve(BaseSDK):
|
|
33
33
|
|
34
34
|
The Retrieve API enables enterprises to directly access relevant content chunks from their organizational knowledge sources. It is designed for scenarios where developers want granular control over retrieved information, such as powering custom search, analytics, or retrieval-augmented generation (RAG) pipelines.
|
35
35
|
|
36
|
-
The Retrieve API
|
37
|
-
- **Certified Answers**:
|
38
|
-
- **Chunk
|
36
|
+
The Retrieve API's response will either be a Certified Answer or a list of chunks.
|
37
|
+
- **Certified Answers Response**: This response is observed when there's a matching certified answer to the user's query.
|
38
|
+
- **Chunk List Response**: This response is observed, if there is no matched Certified Answer.
|
39
39
|
|
40
40
|
Responses for both chunks and certified answers include relevance scores and metadata. By leveraging the Retrieve API, organizations can build tailored experiences while retaining confidence in the source material.
|
41
41
|
|
@@ -164,9 +164,9 @@ class Retrieve(BaseSDK):
|
|
164
164
|
|
165
165
|
The Retrieve API enables enterprises to directly access relevant content chunks from their organizational knowledge sources. It is designed for scenarios where developers want granular control over retrieved information, such as powering custom search, analytics, or retrieval-augmented generation (RAG) pipelines.
|
166
166
|
|
167
|
-
The Retrieve API
|
168
|
-
- **Certified Answers**:
|
169
|
-
- **Chunk
|
167
|
+
The Retrieve API's response will either be a Certified Answer or a list of chunks.
|
168
|
+
- **Certified Answers Response**: This response is observed when there's a matching certified answer to the user's query.
|
169
|
+
- **Chunk List Response**: This response is observed, if there is no matched Certified Answer.
|
170
170
|
|
171
171
|
Responses for both chunks and certified answers include relevance scores and metadata. By leveraging the Retrieve API, organizations can build tailored experiences while retaining confidence in the source material.
|
172
172
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: egain-api-python
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.9
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Author: Speakeasy
|
6
6
|
Requires-Python: >=3.9.2
|
@@ -642,7 +642,7 @@ with Egain(
|
|
642
642
|
],
|
643
643
|
}, channel={
|
644
644
|
"name": "Eight Bank Website",
|
645
|
-
}, server_url="https
|
645
|
+
}, server_url="https://api.aidev.egain.cloud/core/aiservices/v4")
|
646
646
|
|
647
647
|
# Handle response
|
648
648
|
print(res)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
egain_api_python/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
|
2
|
-
egain_api_python/_version.py,sha256=
|
2
|
+
egain_api_python/_version.py,sha256=60bLXNxR3Ae5Qmv-uojlwkMpOIJsBkQpHgGbMNWZ9FA,476
|
3
3
|
egain_api_python/aiservices.py,sha256=vFG7gOYnOknIMJvxgzD2dUFFqtlsD2WZoLrrb-YpbKM,787
|
4
4
|
egain_api_python/answers.py,sha256=SjgG4GQNR3cZLXae0CXEp23FgKun0XrLFO-ZYl0wtAc,12769
|
5
5
|
egain_api_python/articlelists.py,sha256=j29Fvkfjuq9OZbmMnlZm1WPkdz2eu2zkdvxd8JULzz8,23630
|
@@ -24,7 +24,7 @@ egain_api_python/portal_topic.py,sha256=qAWWdS-8QIjk0eZz8H41NrhLDh2zBqRaktCGSWRF
|
|
24
24
|
egain_api_python/portal_userdetails.py,sha256=2GX9Rcx3lsLCnKzJhcnLTblXucmpnDXsN1hQRBg9MBA,8727
|
25
25
|
egain_api_python/portal_userprofile.py,sha256=Besu9eXLochrHKQDIvecDKPCkZzKK6Ks-4J2Kl8disM,18895
|
26
26
|
egain_api_python/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
27
|
-
egain_api_python/retrieve.py,sha256=
|
27
|
+
egain_api_python/retrieve.py,sha256=eJuMm-2za7QAHY7Qsj9KV5MQexvvLQBYPZubNUxRdi4,13136
|
28
28
|
egain_api_python/sdk.py,sha256=UdGlQRaLy66ujS2hKtLxwFs4j9chPvkv5dBzjNf4Eg0,8747
|
29
29
|
egain_api_python/sdkconfiguration.py,sha256=nFhpX1-i5QKAweb124Yd1YYRXh9dU671gDMm0ra6iUo,1635
|
30
30
|
egain_api_python/search.py,sha256=rwdpqvim6S5Z0HNGxe3ln4LHk1KqomTm8qNEWGFBnGE,11881
|
@@ -174,7 +174,7 @@ egain_api_python/models/getarticlepersonalizationop.py,sha256=mNirdQnZoFVZpxpmaW
|
|
174
174
|
egain_api_python/models/getarticleratingsop.py,sha256=O6rF8pKPFK08ToL3Ib3Qx4zzw4huHRFw0kBhAN7T4Ds,3587
|
175
175
|
egain_api_python/models/getarticlesintopicop.py,sha256=u3fcw9Y8LLkUulVzJPWL-jhMP4k6ND7OfpFEEaCw4Cs,8949
|
176
176
|
egain_api_python/models/getattachmentbyidinportalop.py,sha256=OUzIdSanWoDzNGwdGPcjRSKlOvTccE4zZGJfce-xxEk,2728
|
177
|
-
egain_api_python/models/getbestanswerop.py,sha256=
|
177
|
+
egain_api_python/models/getbestanswerop.py,sha256=2qA0hk473drr6ndO6s_FLNIETG0P0tVGnFYr5guhNsI,3635
|
178
178
|
egain_api_python/models/getbookmarkop.py,sha256=GBAVyKHZqqJDgazWDhhsmZ71JQX-leW9mqRpXv7KpKE,1399
|
179
179
|
egain_api_python/models/getcasebasereleasebyidop.py,sha256=CT3ukkOsJF_TZkr6qbtTxotzGMXnEbmezuRAAUYottY,2923
|
180
180
|
egain_api_python/models/getcasebyidop.py,sha256=_FqZFbM1lke2943ovzJ62aTUZ8d2PJknFKRoOqYrGb8,3452
|
@@ -240,11 +240,11 @@ egain_api_python/models/quickpickrating.py,sha256=OwZU3xsJzPYLAtcJJuvHMkZCO8NQF0
|
|
240
240
|
egain_api_python/models/quickpickresult.py,sha256=YH0Ml5gq3yJvWOoDBFAW1XNPEomyHJXTuPLkv40tb-I,1037
|
241
241
|
egain_api_python/models/quickpickresults.py,sha256=kUHHWZjFgmwsNEox9ehGsgU5wcapm3qD4uz0kAlWeio,865
|
242
242
|
egain_api_python/models/ratearticleop.py,sha256=QQiRo2K35ctT4kjBS3ri6ImepxhIVagCanaREYP1zWg,3224
|
243
|
-
egain_api_python/models/referenceresponse.py,sha256=
|
243
|
+
egain_api_python/models/referenceresponse.py,sha256=K-vzwy4X2ZoGYSj0LmVbxxtAebrBO7wJ4Qx1G4Nfdno,2063
|
244
244
|
egain_api_python/models/rejectghsolutionop.py,sha256=e24KKMYYRRKUeXmfQmuaVL0VqLEW0k6ntjdGoV5ZTXE,2040
|
245
245
|
egain_api_python/models/relatedquestions.py,sha256=-mrpY6GvMaywlW5xejN3L7CT36hGLsxfy6jqIsxtNH0,879
|
246
246
|
egain_api_python/models/restorequickpickop.py,sha256=N9fl3zebetUpOa3JEbzLnRcArqjXtTx_QPANUYXsgSU,2791
|
247
|
-
egain_api_python/models/retrievechunksop.py,sha256=
|
247
|
+
egain_api_python/models/retrievechunksop.py,sha256=EnQ-Cr_EAGMGKqTlMrer3Ub8L7wdPkslIMysSsdu8mA,3644
|
248
248
|
egain_api_python/models/retrieverequest.py,sha256=A9mhXNdX6_tp4LndHhlIaINBJz9HQSye37DepjJSw0o,1894
|
249
249
|
egain_api_python/models/retrieveresponse.py,sha256=HikIPFPE7tqmlTPhMRHi4j70xDdawogszzXduAFJg6Y,4190
|
250
250
|
egain_api_python/models/role.py,sha256=aEQXpao0y3T5WbKAY04XXtbUIrNOtDsiCeRdQ9lsDbA,597
|
@@ -259,7 +259,7 @@ egain_api_python/models/schemas_tags.py,sha256=Z1ZAiHqxbDpbxh_p7Jh-6mYPEir9riBpT
|
|
259
259
|
egain_api_python/models/schemas_wserrorcommon.py,sha256=R9OG3XOhiyet3uibAoDNGZPeq2rnPcHL0Nl0Y4OA8R0,424
|
260
260
|
egain_api_python/models/searchfilterattribute.py,sha256=Ih4EgldWKl-QPE9VRPspiDoaMcGuuzgqMgTC44ekp4Y,2512
|
261
261
|
egain_api_python/models/searchpriortoescalationop.py,sha256=sAiAszG3ywEqQ23Xm5US4OKSlSDraisRlUWNSS_vOyA,4807
|
262
|
-
egain_api_python/models/searchresult.py,sha256=
|
262
|
+
egain_api_python/models/searchresult.py,sha256=GnU-3wtMVAZaywuuYwVBY6gvEAwuxSou7ixwl_j_umM,3247
|
263
263
|
egain_api_python/models/searchsuggestionop.py,sha256=4tluMg5_fDxMXyNH1Oi4UKo5p3u4kcv2LpP-SA4iK-w,3792
|
264
264
|
egain_api_python/models/security.py,sha256=UqCkttTO29yuwhatMKhQEeEjjbD1FtXL_SAQTrDGsao,710
|
265
265
|
egain_api_python/models/selectuserprofileop.py,sha256=iQjtJlat8byVpk7YsE4fTfgLShwbNYaVov4p4JtV2wE,1703
|
@@ -323,8 +323,8 @@ egain_api_python/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7
|
|
323
323
|
egain_api_python/utils/unmarshal_json_response.py,sha256=nZEaLmlsWi3z3q8Qp7ZM2jgxizRcfOBA7l8GPJuv1SY,592
|
324
324
|
egain_api_python/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
325
325
|
egain_api_python/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
326
|
-
egain_api_python-0.1.
|
327
|
-
egain_api_python-0.1.
|
328
|
-
egain_api_python-0.1.
|
329
|
-
egain_api_python-0.1.
|
330
|
-
egain_api_python-0.1.
|
326
|
+
egain_api_python-0.1.9.dist-info/licenses/LICENSE,sha256=ICtvDBOvFUvPgUEGtnyxAarCTU0IASpQZdnv8QMnHlI,1062
|
327
|
+
egain_api_python-0.1.9.dist-info/METADATA,sha256=LkWy1UJUd5Fe49TazmEx2tDhTh1rW-lYj21ECSIrJCo,33248
|
328
|
+
egain_api_python-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
329
|
+
egain_api_python-0.1.9.dist-info/top_level.txt,sha256=SjFjGp6Ocutn5yM4tqZHMJwpuZxFzT6qiIcELk251PA,17
|
330
|
+
egain_api_python-0.1.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|