egain-api-python 0.1.9__tar.gz → 0.2.1__tar.gz
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-0.1.9/src/egain_api_python.egg-info → egain_api_python-0.2.1}/PKG-INFO +118 -208
- egain_api_python-0.2.1/README.md +691 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/pyproject.toml +1 -1
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/_version.py +2 -2
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/aiservices.py +5 -0
- egain_api_python-0.2.1/src/egain_api_python/aiservices_prompt.py +279 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/answers.py +20 -14
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/content.py +0 -3
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/errors/__init__.py +5 -5
- egain_api_python-0.2.1/src/egain_api_python/errors/executepromptop.py +35 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/errors/schemas_wserrorcommon.py +1 -1
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/export.py +46 -20
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/general.py +2 -2
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/import_.py +48 -78
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/__init__.py +170 -185
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/additionalsnippets.py +17 -9
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/aisearchop.py +20 -10
- egain_api_python-0.2.1/src/egain_api_python/models/aisearchresponse.py +36 -0
- egain_api_python-0.2.1/src/egain_api_python/models/aispaginationinfo.py +32 -0
- egain_api_python-0.2.1/src/egain_api_python/models/aitopicbreadcrumb.py +24 -0
- egain_api_python-0.2.1/src/egain_api_python/models/aitopicsummary.py +25 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/answersrequest.py +9 -2
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/answersresponse.py +15 -4
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articleaisearchresult.py +31 -54
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articlewitheditions.py +4 -2
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/cancelimportop.py +1 -1
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createimportjobop.py +1 -1
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createimportvalidationjobop.py +1 -1
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createsuggestion.py +13 -1
- egain_api_python-0.2.1/src/egain_api_python/models/datasourcecredentials.py +32 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/edition.py +2 -8
- egain_api_python-0.2.1/src/egain_api_python/models/executeprompt.py +92 -0
- egain_api_python-0.2.1/src/egain_api_python/models/executepromptop.py +35 -0
- egain_api_python-0.2.1/src/egain_api_python/models/executepromptresponse.py +58 -0
- egain_api_python-0.1.9/src/egain_api_python/models/uploadattachmentop.py → egain_api_python-0.2.1/src/egain_api_python/models/exportcontentop.py +16 -14
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getalltopicsop.py +9 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getarticleeditiondetailsop.py +2 -2
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getbestanswerop.py +23 -13
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getimportstatusop.py +1 -1
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getmyportalsop.py +2 -2
- egain_api_python-0.2.1/src/egain_api_python/models/getprompttemplatebyidop.py +95 -0
- egain_api_python-0.2.1/src/egain_api_python/models/getprompttemplatesop.py +121 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/importcontent.py +3 -13
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/knowledgeexport.py +19 -16
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/languagecode_parameter.py +11 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/languagequeryparameter.py +11 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/mandatorylanguagequeryparameter.py +12 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/portal.py +2 -2
- egain_api_python-0.2.1/src/egain_api_python/models/prompttemplate.py +150 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/publishprofile.py +2 -8
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/referenceresponse.py +3 -3
- egain_api_python-0.2.1/src/egain_api_python/models/replacement.py +16 -0
- egain_api_python-0.2.1/src/egain_api_python/models/requiredlanguagecode.py +40 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/retrievechunksop.py +23 -13
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/retrieverequest.py +9 -2
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/retrieveresponse.py +15 -4
- egain_api_python-0.2.1/src/egain_api_python/models/searchreplacement.py +36 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/searchresult.py +29 -7
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/searchsuggestionop.py +2 -2
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/shorturl.py +2 -2
- egain_api_python-0.2.1/src/egain_api_python/models/staticreplacement.py +30 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/suggestion.py +24 -1
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/validateimportcontent.py +3 -13
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/portal_article.py +6 -4
- egain_api_python-0.1.9/src/egain_api_python/health.py → egain_api_python-0.2.1/src/egain_api_python/portal_attachment.py +99 -97
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/portal_sdk.py +0 -3
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/portal_suggestion.py +2 -2
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/portal_topic.py +6 -0
- egain_api_python-0.1.9/src/egain_api_python/portal_attachment.py → egain_api_python-0.2.1/src/egain_api_python/prompt.py +110 -157
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/retrieve.py +16 -10
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/sdk.py +4 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/search.py +43 -21
- {egain_api_python-0.1.9 → egain_api_python-0.2.1/src/egain_api_python.egg-info}/PKG-INFO +118 -208
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python.egg-info/SOURCES.txt +17 -17
- egain_api_python-0.1.9/README.md +0 -781
- egain_api_python-0.1.9/src/egain_api_python/errors/gethealthop.py +0 -88
- egain_api_python-0.1.9/src/egain_api_python/escalation.py +0 -955
- egain_api_python-0.1.9/src/egain_api_python/models/aisearchresponse.py +0 -63
- egain_api_python-0.1.9/src/egain_api_python/models/articlesearchresult.py +0 -243
- egain_api_python-0.1.9/src/egain_api_python/models/articlesearchresults.py +0 -32
- egain_api_python-0.1.9/src/egain_api_python/models/avertcustomerescalationop.py +0 -44
- egain_api_python-0.1.9/src/egain_api_python/models/completecustomerescalationop.py +0 -44
- egain_api_python-0.1.9/src/egain_api_python/models/contactperson.py +0 -43
- egain_api_python-0.1.9/src/egain_api_python/models/contacts.py +0 -21
- egain_api_python-0.1.9/src/egain_api_python/models/email.py +0 -21
- egain_api_python-0.1.9/src/egain_api_python/models/exportcontentop.py +0 -14
- egain_api_python-0.1.9/src/egain_api_python/models/gethealthop.py +0 -257
- egain_api_python-0.1.9/src/egain_api_python/models/optionalarticleattributes.py +0 -20
- egain_api_python-0.1.9/src/egain_api_python/models/phone.py +0 -21
- egain_api_python-0.1.9/src/egain_api_python/models/searchpriortoescalationop.py +0 -108
- egain_api_python-0.1.9/src/egain_api_python/models/startcustomerescalationop.py +0 -66
- egain_api_python-0.1.9/src/egain_api_python/models/startescalationrequest.py +0 -94
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/LICENSE +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/setup.cfg +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/__init__.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/_hooks/__init__.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/_hooks/registration.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/_hooks/sdkhooks.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/_hooks/types.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/articlelists.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/basesdk.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/connectorssearchevents.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/errors/egaindefaulterror.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/errors/egainerror.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/errors/no_response_error.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/errors/responsevalidationerror.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/errors/wserrorcommon.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/federatedsearchevent.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/guidedhelp.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/httpclient.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/acceptghsolutionop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/acceptlanguage.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/accessibleportal.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/action.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/actionsearch.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/addasreferenceop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/addbookmarkop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/addtoreplyop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/allaccessibleportals.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/answer.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/answeredquestion.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/answerrange.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/article.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articleactivitylink.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articleadditionalattributes.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articleattachment.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articlelist.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articlelistresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articlelistsresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articlepermissions.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articlepermissionsresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articlerating.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articleratingsresponse.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articleresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articleresultadditionalattributes.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articleresults.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articlesort.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articlesortorder.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/articletype.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/attachment.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/attachmentadditionalattributes.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/attachmentcontent.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/attachmentcontentresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/attachmentforcreatesuggestion.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/attachments.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/attachmentsummary.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/attachmentupload.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/bookmark.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/bookmarkresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/bookmarkstatus.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/case.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/caseadditionalattributes.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/caseanswer.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/casebase.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/casebaseresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/casebasesearchsettings.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/caselistresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/caselistresults.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/casequestion.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/casequestiondetail.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/casesearch.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/clusterid.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/clusterresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/clusterresults.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/comment.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/comments.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/compliancearticleresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/compliancearticleresultadditionalattributes.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/compliancearticleresults.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/complianceforarticle.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/complyarticleop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/components_schemas_tag.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/components_schemas_tagcategory.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/components_schemas_taggroup.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/configurableattribute.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/configurableattributes.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createbookmark.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createdby.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createfederatedsearchevent.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createfederatedsearchresulteventop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createquickpick.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createquickpickop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createsearchresulteventforconnectors.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createsearchresulteventforconnectorsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createsignedurlop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createviewedsearchresulteventforconnectors.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/createviewedsearchresultseventforconnectorsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/customattribute.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/deletebookmarkop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/deletesuggestionop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/department.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/detailfield.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/displayfield.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/dynamiccluster.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/dynamicsearch.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/editionwithcontent.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/exportstatus.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/exportstatusop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/feedbackarticleforsuggestion.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/folderbreadcrumb.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/foldersummary.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getacknowledgedcompliancearticlesop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getallarticlelistsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getallcasebasesreleasesop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getallcasesop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getallportalsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getallprofilesinportalop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getallquickpicksop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getalluserprofilesop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getancestortopicsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getannouncementarticlesop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getarticleattachmentbyidop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getarticlebyidop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getarticlebyidwitheditionsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getarticlelistdetailsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getarticlepermissionsbyidop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getarticlepersonalizationop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getarticleratingsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getarticlesintopicop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getattachmentbyidinportalop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getbookmarkop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getcasebasereleasebyidop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getcasebyidop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getchildtopicsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getclusterbycasebasereleaseidop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getmysubscriptionop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getpendingcompliancearticlesop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getpopulararticlesop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getportaldetailsbyidop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getrelatedarticlesforsuggestionop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getrelatedarticlesop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getsuggestionattachmentbyidop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getsuggestionattachmentsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getsuggestioncommentsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getsuggestionop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/gettagcategoriesforinterestforportalop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/gettopicbreadcrumbforarticleop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getuserdetailsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/getusermilestonesop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/ghsearchrequest.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/ghsearchresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/ghstepsearchrequest.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/image.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/importstatus.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/kblanguage.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/kblanguagecode.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/kblanguages.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/l10nstring.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/languagecode.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/link.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/makesuggestionop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/metadata.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/milestone.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/milestonename.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/milestones.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/modifiedby.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/modifysuggestion.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/modifysuggestionsop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/order.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/ownedby.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/paginationinfo.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/personalization.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/portalresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/portalsettings.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/profile.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/profileresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/publishview.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/question.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/questionandanswer.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/quickpickrating.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/quickpickresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/quickpickresults.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/ratearticleop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/rejectghsolutionop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/relatedquestions.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/restorequickpickop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/role.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/roletemplate.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/schemas_answer.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/schemas_customattribute.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/schemas_link.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/schemas_tag.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/schemas_tagcategory.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/schemas_taggroup.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/schemas_tags.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/schemas_wserrorcommon.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/searchfilterattribute.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/security.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/selectuserprofileop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/sessioncontextvariable.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/sortidname.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/sortidnamedepartment.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/stage.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/startghsearchop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/startquestionandanswer.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/stepghsearchop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/stringattributevalue.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/structuredauthoringfields.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/subscribearticleop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/suggestionadditionalattributes.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/suggestionattachment.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/suggestions.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/tag.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/tagcategoriesforinterest.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/tagcategory.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/taggroup.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/taggroups.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/tags.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/topic.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/topicadditionalattributes.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/topicbreadcrumb.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/topicresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/topicsummary.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/topictreenode.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/topictreeresult.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/unsubscribearticleop.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/userdetails.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/userprofile.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/userprofiles.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/userview.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/virtualcase.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/workflow.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/workflowmilestone.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/models/wserrorcommon.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/populararticles.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/portal_bookmark.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/portal_userdetails.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/portal_userprofile.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/py.typed +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/sdkconfiguration.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/types/__init__.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/types/basemodel.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/usermilestones.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/__init__.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/annotations.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/datetimes.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/enums.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/eventstreaming.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/forms.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/headers.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/logger.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/metadata.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/queryparams.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/requestbodies.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/retries.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/security.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/serializers.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/unmarshal_json_response.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/url.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python/utils/values.py +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python.egg-info/dependency_links.txt +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python.egg-info/requires.txt +0 -0
- {egain_api_python-0.1.9 → egain_api_python-0.2.1}/src/egain_api_python.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: egain-api-python
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Speakeasy
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -71,7 +71,6 @@ For more information about the API: [Full SDK Documentation](https://github.com/
|
|
|
71
71
|
* [SDK Example Usage](#sdk-example-usage)
|
|
72
72
|
* [Authentication](#authentication)
|
|
73
73
|
* [Available Resources and Operations](#available-resources-and-operations)
|
|
74
|
-
* [File uploads](#file-uploads)
|
|
75
74
|
* [Retries](#retries)
|
|
76
75
|
* [Error Handling](#error-handling)
|
|
77
76
|
* [Server Selection](#server-selection)
|
|
@@ -175,7 +174,7 @@ with Egain(
|
|
|
175
174
|
access_token=os.getenv("EGAIN_ACCESS_TOKEN", ""),
|
|
176
175
|
) as egain:
|
|
177
176
|
|
|
178
|
-
res = egain.aiservices.retrieve.retrieve_chunks(q="
|
|
177
|
+
res = egain.aiservices.retrieve.retrieve_chunks(q="What is a loan?", portal_id="PROD-1000", language="en-US", filter_user_profile_id="PROD-1030", filter_tags={
|
|
179
178
|
"PROD-1234": [
|
|
180
179
|
"PROD-2000",
|
|
181
180
|
"PROD-2003",
|
|
@@ -185,7 +184,7 @@ with Egain(
|
|
|
185
184
|
],
|
|
186
185
|
}, channel={
|
|
187
186
|
"name": "Eight Bank Website",
|
|
188
|
-
})
|
|
187
|
+
}, event_id="6154589f-b43f-4471-b2c7-92c6c888a664", client_session_id="6154589f-b43f-4471-b2c7-92c6c888a643", session_id="6154589f-b43f-4471-b2c7-92c6c888a689")
|
|
189
188
|
|
|
190
189
|
# Handle response
|
|
191
190
|
print(res)
|
|
@@ -207,7 +206,7 @@ async def main():
|
|
|
207
206
|
access_token=os.getenv("EGAIN_ACCESS_TOKEN", ""),
|
|
208
207
|
) as egain:
|
|
209
208
|
|
|
210
|
-
res = await egain.aiservices.retrieve.retrieve_chunks_async(q="
|
|
209
|
+
res = await egain.aiservices.retrieve.retrieve_chunks_async(q="What is a loan?", portal_id="PROD-1000", language="en-US", filter_user_profile_id="PROD-1030", filter_tags={
|
|
211
210
|
"PROD-1234": [
|
|
212
211
|
"PROD-2000",
|
|
213
212
|
"PROD-2003",
|
|
@@ -217,7 +216,7 @@ async def main():
|
|
|
217
216
|
],
|
|
218
217
|
}, channel={
|
|
219
218
|
"name": "Eight Bank Website",
|
|
220
|
-
})
|
|
219
|
+
}, event_id="6154589f-b43f-4471-b2c7-92c6c888a664", client_session_id="6154589f-b43f-4471-b2c7-92c6c888a643", session_id="6154589f-b43f-4471-b2c7-92c6c888a689")
|
|
221
220
|
|
|
222
221
|
# Handle response
|
|
223
222
|
print(res)
|
|
@@ -247,17 +246,7 @@ with Egain(
|
|
|
247
246
|
access_token=os.getenv("EGAIN_ACCESS_TOKEN", ""),
|
|
248
247
|
) as egain:
|
|
249
248
|
|
|
250
|
-
res = egain.aiservices.
|
|
251
|
-
"PROD-1234": [
|
|
252
|
-
"PROD-2000",
|
|
253
|
-
"PROD-2003",
|
|
254
|
-
],
|
|
255
|
-
"PROD-2005": [
|
|
256
|
-
"PROD-2007",
|
|
257
|
-
],
|
|
258
|
-
}, channel={
|
|
259
|
-
"name": "Eight Bank Website",
|
|
260
|
-
})
|
|
249
|
+
res = egain.aiservices.prompt.execute_prompt(prompt_id="<id>", department="Service", language_code="en-US", event_type="generate", client_session_id="123e4567-e89b-12d3-a456-426614174000", streaming=False)
|
|
261
250
|
|
|
262
251
|
# Handle response
|
|
263
252
|
print(res)
|
|
@@ -271,177 +260,148 @@ with Egain(
|
|
|
271
260
|
<details open>
|
|
272
261
|
<summary>Available methods</summary>
|
|
273
262
|
|
|
274
|
-
#### [aiservices.answers](docs/sdks/answers/README.md)
|
|
263
|
+
#### [aiservices.answers](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/answers/README.md)
|
|
275
264
|
|
|
276
|
-
* [get_best_answer](docs/sdks/answers/README.md#get_best_answer) -
|
|
265
|
+
* [get_best_answer](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/answers/README.md#get_best_answer) - Generate an Answer
|
|
277
266
|
|
|
278
|
-
#### [aiservices.
|
|
267
|
+
#### [aiservices.prompt](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/aiservicesprompt/README.md)
|
|
279
268
|
|
|
280
|
-
* [
|
|
269
|
+
* [execute_prompt](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/aiservicesprompt/README.md#execute_prompt) - Execute a predefined prompt
|
|
281
270
|
|
|
282
|
-
#### [
|
|
271
|
+
#### [aiservices.retrieve](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/retrieve/README.md)
|
|
283
272
|
|
|
284
|
-
* [
|
|
273
|
+
* [retrieve_chunks](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/retrieve/README.md#retrieve_chunks) - Retrieve Chunks
|
|
285
274
|
|
|
286
|
-
#### [content.import_](docs/sdks/import/README.md)
|
|
275
|
+
#### [content.import_](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/import/README.md)
|
|
287
276
|
|
|
288
|
-
* [create_import_job](docs/sdks/import/README.md#create_import_job) - Import
|
|
289
|
-
* [get_import_status](docs/sdks/import/README.md#get_import_status) - Get
|
|
290
|
-
* [create_import_validation_job](docs/sdks/import/README.md#create_import_validation_job) -
|
|
291
|
-
* [cancel_import](docs/sdks/import/README.md#cancel_import) - Cancel
|
|
277
|
+
* [create_import_job](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/import/README.md#create_import_job) - Create Import Job
|
|
278
|
+
* [get_import_status](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/import/README.md#get_import_status) - Get Job Status
|
|
279
|
+
* [create_import_validation_job](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/import/README.md#create_import_validation_job) - Create Validation Job
|
|
280
|
+
* [cancel_import](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/import/README.md#cancel_import) - Cancel Job
|
|
292
281
|
|
|
293
|
-
#### [portal.article](docs/sdks/portalarticle/README.md)
|
|
282
|
+
#### [portal.article](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md)
|
|
294
283
|
|
|
295
|
-
* [get_article_by_id](docs/sdks/portalarticle/README.md#get_article_by_id) - Get Article by ID
|
|
296
|
-
* [get_article_by_id_with_editions](docs/sdks/portalarticle/README.md#get_article_by_id_with_editions) - Get Article By ID with Editions
|
|
297
|
-
* [get_article_edition_details](docs/sdks/portalarticle/README.md#get_article_edition_details) - Get Article Edition Details
|
|
298
|
-
* [add_to_reply](docs/sdks/portalarticle/README.md#add_to_reply) - Add Article to Reply
|
|
299
|
-
* [add_as_reference](docs/sdks/portalarticle/README.md#add_as_reference) - Add as Reference
|
|
300
|
-
* [get_articles_in_topic](docs/sdks/portalarticle/README.md#get_articles_in_topic) - Get Articles in Topic
|
|
301
|
-
* [get_article_attachment_by_id](docs/sdks/portalarticle/README.md#get_article_attachment_by_id) - Get Article Attachment By ID
|
|
302
|
-
* [get_attachment_by_id_in_portal](docs/sdks/portalarticle/README.md#get_attachment_by_id_in_portal) - Get Article Attachment in Portal
|
|
303
|
-
* [get_related_articles](docs/sdks/portalarticle/README.md#get_related_articles) - Get Related Articles
|
|
304
|
-
* [get_announcement_articles](docs/sdks/portalarticle/README.md#get_announcement_articles) - Get Announcement Articles
|
|
305
|
-
* [get_article_ratings](docs/sdks/portalarticle/README.md#get_article_ratings) - Get Article Ratings
|
|
306
|
-
* [rate_article](docs/sdks/portalarticle/README.md#rate_article) - Rate an Article
|
|
307
|
-
* [get_pending_compliance_articles](docs/sdks/portalarticle/README.md#get_pending_compliance_articles) - Get Pending Article Compliances
|
|
308
|
-
* [get_acknowledged_compliance_articles](docs/sdks/portalarticle/README.md#get_acknowledged_compliance_articles) - Get Acknowledged Article Compliances
|
|
309
|
-
* [comply_article](docs/sdks/portalarticle/README.md#comply_article) - Comply With an Article
|
|
310
|
-
* [get_my_subscription](docs/sdks/portalarticle/README.md#get_my_subscription) - My Subscription
|
|
311
|
-
* [subscribe_article](docs/sdks/portalarticle/README.md#subscribe_article) - Subscribe to an Article
|
|
312
|
-
* [unsubscribe_article](docs/sdks/portalarticle/README.md#unsubscribe_article) - Unsubscribe to an Article
|
|
313
|
-
* [get_article_permissions_by_id](docs/sdks/portalarticle/README.md#get_article_permissions_by_id) - Get Article Permissions By ID
|
|
314
|
-
* [get_article_personalization](docs/sdks/portalarticle/README.md#get_article_personalization) - Get Article Personalization Details
|
|
284
|
+
* [get_article_by_id](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_article_by_id) - Get Article by ID
|
|
285
|
+
* [get_article_by_id_with_editions](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_article_by_id_with_editions) - Get Article By ID with Editions
|
|
286
|
+
* [get_article_edition_details](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_article_edition_details) - Get Article Edition Details
|
|
287
|
+
* [add_to_reply](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#add_to_reply) - Add Article to Reply
|
|
288
|
+
* [add_as_reference](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#add_as_reference) - Add as Reference
|
|
289
|
+
* [get_articles_in_topic](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_articles_in_topic) - Get Articles in Topic
|
|
290
|
+
* [get_article_attachment_by_id](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_article_attachment_by_id) - Get Article Attachment By ID
|
|
291
|
+
* [get_attachment_by_id_in_portal](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_attachment_by_id_in_portal) - Get Article Attachment in Portal
|
|
292
|
+
* [get_related_articles](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_related_articles) - Get Related Articles
|
|
293
|
+
* [get_announcement_articles](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_announcement_articles) - Get Announcement Articles
|
|
294
|
+
* [get_article_ratings](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_article_ratings) - Get Article Ratings
|
|
295
|
+
* [rate_article](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#rate_article) - Rate an Article
|
|
296
|
+
* [get_pending_compliance_articles](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_pending_compliance_articles) - Get Pending Article Compliances
|
|
297
|
+
* [get_acknowledged_compliance_articles](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_acknowledged_compliance_articles) - Get Acknowledged Article Compliances
|
|
298
|
+
* [comply_article](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#comply_article) - Comply With an Article
|
|
299
|
+
* [get_my_subscription](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_my_subscription) - My Subscription
|
|
300
|
+
* [subscribe_article](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#subscribe_article) - Subscribe to an Article
|
|
301
|
+
* [unsubscribe_article](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#unsubscribe_article) - Unsubscribe to an Article
|
|
302
|
+
* [get_article_permissions_by_id](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_article_permissions_by_id) - Get Article Permissions By ID
|
|
303
|
+
* [get_article_personalization](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalarticle/README.md#get_article_personalization) - Get Article Personalization Details
|
|
315
304
|
|
|
316
|
-
#### [portal.articlelists](docs/sdks/articlelists/README.md)
|
|
305
|
+
#### [portal.articlelists](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/articlelists/README.md)
|
|
317
306
|
|
|
318
|
-
* [get_all_article_lists](docs/sdks/articlelists/README.md#get_all_article_lists) - Get All Article Lists
|
|
319
|
-
* [get_article_list_details](docs/sdks/articlelists/README.md#get_article_list_details) - Get Article List by ID
|
|
307
|
+
* [get_all_article_lists](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/articlelists/README.md#get_all_article_lists) - Get All Article Lists
|
|
308
|
+
* [get_article_list_details](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/articlelists/README.md#get_article_list_details) - Get Article List by ID
|
|
320
309
|
|
|
321
|
-
#### [portal.attachment](docs/sdks/portalattachment/README.md)
|
|
310
|
+
#### [portal.attachment](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalattachment/README.md)
|
|
322
311
|
|
|
323
|
-
* [create_signed_url](docs/sdks/portalattachment/README.md#create_signed_url) - Generate Signed URL to Upload API
|
|
324
|
-
* [upload_attachment](docs/sdks/portalattachment/README.md#upload_attachment) - Upload Attachment
|
|
312
|
+
* [create_signed_url](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalattachment/README.md#create_signed_url) - Generate Signed URL to Upload API
|
|
325
313
|
|
|
326
|
-
#### [portal.bookmark](docs/sdks/portalbookmark/README.md)
|
|
314
|
+
#### [portal.bookmark](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalbookmark/README.md)
|
|
327
315
|
|
|
328
|
-
* [addbookmark](docs/sdks/portalbookmark/README.md#addbookmark) - Add a Bookmark
|
|
329
|
-
* [getbookmark](docs/sdks/portalbookmark/README.md#getbookmark) - Get All Bookmarks for a Portal
|
|
330
|
-
* [deletebookmark](docs/sdks/portalbookmark/README.md#deletebookmark) - Delete a Bookmark
|
|
316
|
+
* [addbookmark](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalbookmark/README.md#addbookmark) - Add a Bookmark
|
|
317
|
+
* [getbookmark](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalbookmark/README.md#getbookmark) - Get All Bookmarks for a Portal
|
|
318
|
+
* [deletebookmark](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalbookmark/README.md#deletebookmark) - Delete a Bookmark
|
|
331
319
|
|
|
332
|
-
#### [portal.connectorssearchevents](docs/sdks/connectorssearchevents/README.md)
|
|
320
|
+
#### [portal.connectorssearchevents](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/connectorssearchevents/README.md)
|
|
333
321
|
|
|
334
|
-
* [create_search_result_event_for_connectors](docs/sdks/connectorssearchevents/README.md#create_search_result_event_for_connectors) - Event for Search Using Connectors
|
|
335
|
-
* [create_viewed_search_results_event_for_connectors](docs/sdks/connectorssearchevents/README.md#create_viewed_search_results_event_for_connectors) - Event for Viewed Search Results Using Connectors
|
|
322
|
+
* [create_search_result_event_for_connectors](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/connectorssearchevents/README.md#create_search_result_event_for_connectors) - Event for Search Using Connectors
|
|
323
|
+
* [create_viewed_search_results_event_for_connectors](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/connectorssearchevents/README.md#create_viewed_search_results_event_for_connectors) - Event for Viewed Search Results Using Connectors
|
|
336
324
|
|
|
337
|
-
#### [portal.
|
|
325
|
+
#### [portal.export](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/export/README.md)
|
|
338
326
|
|
|
339
|
-
* [
|
|
340
|
-
* [
|
|
341
|
-
* [complete_customer_escalation](docs/sdks/escalation/README.md#complete_customer_escalation) - Complete Customer Escalation
|
|
342
|
-
* [avert_customer_escalation](docs/sdks/escalation/README.md#avert_customer_escalation) - Avert Customer Escalation
|
|
327
|
+
* [export_content](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/export/README.md#export_content) - Export Knowledge
|
|
328
|
+
* [export_status](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/export/README.md#export_status) - Get Export Job Status
|
|
343
329
|
|
|
344
|
-
#### [portal.
|
|
330
|
+
#### [portal.federatedsearchevent](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/federatedsearchevent/README.md)
|
|
345
331
|
|
|
346
|
-
* [
|
|
347
|
-
* [export_status](docs/sdks/export/README.md#export_status) - Get Export Job Status
|
|
332
|
+
* [create_federated_search_result_event](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/federatedsearchevent/README.md#create_federated_search_result_event) - Event For Viewed Federated Search Result
|
|
348
333
|
|
|
349
|
-
#### [portal.
|
|
334
|
+
#### [portal.general](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/general/README.md)
|
|
350
335
|
|
|
351
|
-
* [
|
|
336
|
+
* [get_all_portals](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/general/README.md#get_all_portals) - Get All Portals
|
|
337
|
+
* [get_my_portals](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/general/README.md#get_my_portals) - Get All Portals Accessible To User
|
|
338
|
+
* [get_portal_details_by_id](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/general/README.md#get_portal_details_by_id) - Get Portal Details By ID
|
|
339
|
+
* [get_tag_categories_for_interest_for_portal](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/general/README.md#get_tag_categories_for_interest_for_portal) - Get Tag Categories for Interest for a Portal
|
|
352
340
|
|
|
353
|
-
#### [portal.
|
|
341
|
+
#### [portal.guidedhelp](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md)
|
|
354
342
|
|
|
355
|
-
* [
|
|
356
|
-
* [
|
|
357
|
-
* [
|
|
358
|
-
* [
|
|
343
|
+
* [get_all_casebases_releases](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#get_all_casebases_releases) - Get Available Casebases Releases
|
|
344
|
+
* [get_casebase_release_by_id](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#get_casebase_release_by_id) - Get Details of a Casebase Release
|
|
345
|
+
* [get_cluster_by_casebase_release_id](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#get_cluster_by_casebase_release_id) - Get Cluster Details of a Casebase Release
|
|
346
|
+
* [get_all_profiles_in_portal](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#get_all_profiles_in_portal) - Get All Profiles Available in Portal
|
|
347
|
+
* [start_gh_search](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#start_gh_search) - Start a Guided Help Search
|
|
348
|
+
* [step_gh_search](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#step_gh_search) - Perform a Step in a Guided Help Search
|
|
349
|
+
* [get_all_cases](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#get_all_cases) - Get All Cases of a Cluster in Release
|
|
350
|
+
* [get_case_by_id](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#get_case_by_id) - Get Details of a Case
|
|
351
|
+
* [accept_gh_solution](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#accept_gh_solution) - Accept Solution
|
|
352
|
+
* [reject_gh_solution](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#reject_gh_solution) - Reject Solution
|
|
353
|
+
* [create_quickpick](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#create_quickpick) - Create Quickpick
|
|
354
|
+
* [get_all_quick_picks](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#get_all_quick_picks) - Get All Quickpicks for a Portal
|
|
355
|
+
* [restore_quickpick](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/guidedhelp/README.md#restore_quickpick) - Resume a Quickpick
|
|
359
356
|
|
|
360
|
-
#### [portal.
|
|
357
|
+
#### [portal.populararticles](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/populararticles/README.md)
|
|
361
358
|
|
|
362
|
-
* [
|
|
363
|
-
* [get_casebase_release_by_id](docs/sdks/guidedhelp/README.md#get_casebase_release_by_id) - Get Details of a Casebase Release
|
|
364
|
-
* [get_cluster_by_casebase_release_id](docs/sdks/guidedhelp/README.md#get_cluster_by_casebase_release_id) - Get Cluster Details of a Casebase Release
|
|
365
|
-
* [get_all_profiles_in_portal](docs/sdks/guidedhelp/README.md#get_all_profiles_in_portal) - Get All Profiles Available in Portal
|
|
366
|
-
* [start_gh_search](docs/sdks/guidedhelp/README.md#start_gh_search) - Start a Guided Help Search
|
|
367
|
-
* [step_gh_search](docs/sdks/guidedhelp/README.md#step_gh_search) - Perform a Step in a Guided Help Search
|
|
368
|
-
* [get_all_cases](docs/sdks/guidedhelp/README.md#get_all_cases) - Get All Cases of a Cluster in Release
|
|
369
|
-
* [get_case_by_id](docs/sdks/guidedhelp/README.md#get_case_by_id) - Get Details of a Case
|
|
370
|
-
* [accept_gh_solution](docs/sdks/guidedhelp/README.md#accept_gh_solution) - Accept Solution
|
|
371
|
-
* [reject_gh_solution](docs/sdks/guidedhelp/README.md#reject_gh_solution) - Reject Solution
|
|
372
|
-
* [create_quickpick](docs/sdks/guidedhelp/README.md#create_quickpick) - Create Quickpick
|
|
373
|
-
* [get_all_quick_picks](docs/sdks/guidedhelp/README.md#get_all_quick_picks) - Get All Quickpicks for a Portal
|
|
374
|
-
* [restore_quickpick](docs/sdks/guidedhelp/README.md#restore_quickpick) - Resume a Quickpick
|
|
359
|
+
* [getpopulararticles](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/populararticles/README.md#getpopulararticles) - Get Popular Articles
|
|
375
360
|
|
|
376
|
-
#### [portal.
|
|
361
|
+
#### [portal.search](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/search/README.md)
|
|
377
362
|
|
|
378
|
-
* [
|
|
363
|
+
* [ai_search](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/search/README.md#ai_search) - Hybrid Search
|
|
379
364
|
|
|
380
|
-
#### [portal.
|
|
365
|
+
#### [portal.suggestion](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md)
|
|
381
366
|
|
|
382
|
-
* [
|
|
367
|
+
* [make_suggestion](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md#make_suggestion) - Make a Suggestion
|
|
368
|
+
* [modify_suggestions](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md#modify_suggestions) - Modify Suggestion
|
|
369
|
+
* [search_suggestion](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md#search_suggestion) - Get Suggestion by Status
|
|
370
|
+
* [get_suggestion](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md#get_suggestion) - Get Suggestion by ID
|
|
371
|
+
* [delete_suggestion](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md#delete_suggestion) - Delete a Suggestion
|
|
372
|
+
* [get_related_articles_for_suggestion](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md#get_related_articles_for_suggestion) - Get Related Articles for Suggestion
|
|
373
|
+
* [get_suggestion_comments](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md#get_suggestion_comments) - Get Suggestion Comments
|
|
374
|
+
* [get_suggestion_attachments](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md#get_suggestion_attachments) - Get Suggestion Attachments
|
|
375
|
+
* [get_suggestion_attachment_by_id](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portalsuggestion/README.md#get_suggestion_attachment_by_id) - Get Suggestion Attachment by ID
|
|
383
376
|
|
|
384
|
-
#### [portal.
|
|
377
|
+
#### [portal.topic](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaltopic/README.md)
|
|
385
378
|
|
|
386
|
-
* [
|
|
387
|
-
* [
|
|
388
|
-
* [
|
|
389
|
-
* [
|
|
390
|
-
* [delete_suggestion](docs/sdks/portalsuggestion/README.md#delete_suggestion) - Delete a Suggestion
|
|
391
|
-
* [get_related_articles_for_suggestion](docs/sdks/portalsuggestion/README.md#get_related_articles_for_suggestion) - Get Related Articles for Suggestion
|
|
392
|
-
* [get_suggestion_comments](docs/sdks/portalsuggestion/README.md#get_suggestion_comments) - Get Suggestion Comments
|
|
393
|
-
* [get_suggestion_attachments](docs/sdks/portalsuggestion/README.md#get_suggestion_attachments) - Get Suggestion Attachments
|
|
394
|
-
* [get_suggestion_attachment_by_id](docs/sdks/portalsuggestion/README.md#get_suggestion_attachment_by_id) - Get Suggestion Attachment by ID
|
|
379
|
+
* [get_topic_breadcrumb_for_article](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaltopic/README.md#get_topic_breadcrumb_for_article) - Get Topic Breadcrumb for Article
|
|
380
|
+
* [getchildtopics](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaltopic/README.md#getchildtopics) - Get Immediate Child Topics
|
|
381
|
+
* [getancestortopics](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaltopic/README.md#getancestortopics) - Get All Ancestor Topics
|
|
382
|
+
* [getalltopics](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaltopic/README.md#getalltopics) - Get All Topics
|
|
395
383
|
|
|
396
|
-
#### [portal.
|
|
384
|
+
#### [portal.userdetails](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaluserdetails/README.md)
|
|
397
385
|
|
|
398
|
-
* [
|
|
399
|
-
* [getchildtopics](docs/sdks/portaltopic/README.md#getchildtopics) - Get Immediate Child Topics
|
|
400
|
-
* [getancestortopics](docs/sdks/portaltopic/README.md#getancestortopics) - Get All Ancestor Topics
|
|
401
|
-
* [getalltopics](docs/sdks/portaltopic/README.md#getalltopics) - Get All Topics
|
|
386
|
+
* [get_user_details](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaluserdetails/README.md#get_user_details) - Get User Details
|
|
402
387
|
|
|
403
|
-
#### [portal.
|
|
388
|
+
#### [portal.usermilestones](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/usermilestones/README.md)
|
|
404
389
|
|
|
405
|
-
* [
|
|
390
|
+
* [get_user_milestones](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/usermilestones/README.md#get_user_milestones) - Get User Milestones
|
|
406
391
|
|
|
407
|
-
#### [portal.
|
|
392
|
+
#### [portal.userprofile](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaluserprofile/README.md)
|
|
408
393
|
|
|
409
|
-
* [
|
|
394
|
+
* [get_all_user_profiles](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaluserprofile/README.md#get_all_user_profiles) - Get All User Profiles Assigned to User
|
|
395
|
+
* [select_user_profile](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/portaluserprofile/README.md#select_user_profile) - Select User Profile
|
|
410
396
|
|
|
411
|
-
|
|
397
|
+
### [prompt](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/prompt/README.md)
|
|
412
398
|
|
|
413
|
-
* [
|
|
414
|
-
* [
|
|
399
|
+
* [get_prompt_templates](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/prompt/README.md#get_prompt_templates) - Get Prompt Templates
|
|
400
|
+
* [get_prompt_template_by_id](https://github.com/eGain/egain-api-python/blob/main/docs/sdks/prompt/README.md#get_prompt_template_by_id) - Get Prompt Template By ID
|
|
415
401
|
|
|
416
402
|
</details>
|
|
417
403
|
<!-- End Available Resources and Operations [operations] -->
|
|
418
404
|
|
|
419
|
-
<!-- Start File uploads [file-upload] -->
|
|
420
|
-
## File uploads
|
|
421
|
-
|
|
422
|
-
Certain SDK methods accept file objects as part of a request body or multi-part request. It is possible and typically recommended to upload files as a stream rather than reading the entire contents into memory. This avoids excessive memory consumption and potentially crashing with out-of-memory errors when working with very large files. The following example demonstrates how to attach a file stream to a request.
|
|
423
|
-
|
|
424
|
-
> [!TIP]
|
|
425
|
-
>
|
|
426
|
-
> For endpoints that handle file uploads bytes arrays can also be used. However, using streams is recommended for large files.
|
|
427
|
-
>
|
|
428
|
-
|
|
429
|
-
```python
|
|
430
|
-
from egain_api_python import Egain
|
|
431
|
-
import os
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
with Egain(
|
|
435
|
-
access_token=os.getenv("EGAIN_ACCESS_TOKEN", ""),
|
|
436
|
-
) as egain:
|
|
437
|
-
|
|
438
|
-
egain.portal.attachment.upload_attachment(accept_language="en-US", signature="<value>", request_body=open("example.file", "rb"))
|
|
439
|
-
|
|
440
|
-
# Use the SDK ...
|
|
441
|
-
|
|
442
|
-
```
|
|
443
|
-
<!-- End File uploads [file-upload] -->
|
|
444
|
-
|
|
445
405
|
<!-- Start Retries [retries] -->
|
|
446
406
|
## Retries
|
|
447
407
|
|
|
@@ -458,17 +418,7 @@ with Egain(
|
|
|
458
418
|
access_token=os.getenv("EGAIN_ACCESS_TOKEN", ""),
|
|
459
419
|
) as egain:
|
|
460
420
|
|
|
461
|
-
res = egain.aiservices.
|
|
462
|
-
"PROD-1234": [
|
|
463
|
-
"PROD-2000",
|
|
464
|
-
"PROD-2003",
|
|
465
|
-
],
|
|
466
|
-
"PROD-2005": [
|
|
467
|
-
"PROD-2007",
|
|
468
|
-
],
|
|
469
|
-
}, channel={
|
|
470
|
-
"name": "Eight Bank Website",
|
|
471
|
-
},
|
|
421
|
+
res = egain.aiservices.prompt.execute_prompt(prompt_id="<id>", department="Service", language_code="en-US", event_type="generate", client_session_id="123e4567-e89b-12d3-a456-426614174000", streaming=False,
|
|
472
422
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
|
473
423
|
|
|
474
424
|
# Handle response
|
|
@@ -488,17 +438,7 @@ with Egain(
|
|
|
488
438
|
access_token=os.getenv("EGAIN_ACCESS_TOKEN", ""),
|
|
489
439
|
) as egain:
|
|
490
440
|
|
|
491
|
-
res = egain.aiservices.
|
|
492
|
-
"PROD-1234": [
|
|
493
|
-
"PROD-2000",
|
|
494
|
-
"PROD-2003",
|
|
495
|
-
],
|
|
496
|
-
"PROD-2005": [
|
|
497
|
-
"PROD-2007",
|
|
498
|
-
],
|
|
499
|
-
}, channel={
|
|
500
|
-
"name": "Eight Bank Website",
|
|
501
|
-
})
|
|
441
|
+
res = egain.aiservices.prompt.execute_prompt(prompt_id="<id>", department="Service", language_code="en-US", event_type="generate", client_session_id="123e4567-e89b-12d3-a456-426614174000", streaming=False)
|
|
502
442
|
|
|
503
443
|
# Handle response
|
|
504
444
|
print(res)
|
|
@@ -509,7 +449,7 @@ with Egain(
|
|
|
509
449
|
<!-- Start Error Handling [errors] -->
|
|
510
450
|
## Error Handling
|
|
511
451
|
|
|
512
|
-
[`EgainError`](
|
|
452
|
+
[`EgainError`](https://github.com/eGain/egain-api-python/blob/main/src/egain_api_python/errors/egainerror.py) is the base class for all HTTP error responses. It has the following properties:
|
|
513
453
|
|
|
514
454
|
| Property | Type | Description |
|
|
515
455
|
| ------------------ | ---------------- | --------------------------------------------------------------------------------------- |
|
|
@@ -523,7 +463,6 @@ with Egain(
|
|
|
523
463
|
### Example
|
|
524
464
|
```python
|
|
525
465
|
from egain_api_python import Egain, errors
|
|
526
|
-
from egain_api_python.utils import parse_datetime
|
|
527
466
|
import os
|
|
528
467
|
|
|
529
468
|
|
|
@@ -533,14 +472,7 @@ with Egain(
|
|
|
533
472
|
res = None
|
|
534
473
|
try:
|
|
535
474
|
|
|
536
|
-
res = egain.
|
|
537
|
-
"type": "AWS S3 bucket",
|
|
538
|
-
"path": "s3://mybucket/myfolder/",
|
|
539
|
-
"region": "us-east-1",
|
|
540
|
-
"credentials": {},
|
|
541
|
-
}, operation="import", schedule_time={
|
|
542
|
-
"date_": parse_datetime("2024-03-01T10:00:00.000Z"),
|
|
543
|
-
})
|
|
475
|
+
res = egain.aiservices.prompt.execute_prompt(prompt_id="<id>", department="Service", language_code="en-US", event_type="generate", client_session_id="123e4567-e89b-12d3-a456-426614174000", streaming=False)
|
|
544
476
|
|
|
545
477
|
# Handle response
|
|
546
478
|
print(res)
|
|
@@ -555,17 +487,15 @@ with Egain(
|
|
|
555
487
|
print(e.raw_response)
|
|
556
488
|
|
|
557
489
|
# Depending on the method different errors may be thrown
|
|
558
|
-
if isinstance(e, errors.
|
|
559
|
-
print(e.data.code) #
|
|
560
|
-
print(e.data.developer_message) # str
|
|
561
|
-
print(e.data.details) # Optional[List[models.WSErrorCommonDetail]]
|
|
562
|
-
print(e.data.user_message) # Optional[str]
|
|
490
|
+
if isinstance(e, errors.BadRequestError):
|
|
491
|
+
print(e.data.code) # Optional[int]
|
|
492
|
+
print(e.data.developer_message) # Optional[str]
|
|
563
493
|
```
|
|
564
494
|
|
|
565
495
|
### Error Classes
|
|
566
496
|
**Primary errors:**
|
|
567
|
-
* [`EgainError`](
|
|
568
|
-
* [`WSErrorCommon`](
|
|
497
|
+
* [`EgainError`](https://github.com/eGain/egain-api-python/blob/main/src/egain_api_python/errors/egainerror.py): The base class for HTTP error responses.
|
|
498
|
+
* [`WSErrorCommon`](https://github.com/eGain/egain-api-python/blob/main/src/egain_api_python/errors/wserrorcommon.py): Bad Request. *
|
|
569
499
|
|
|
570
500
|
<details><summary>Less common errors (7)</summary>
|
|
571
501
|
|
|
@@ -577,10 +507,10 @@ with Egain(
|
|
|
577
507
|
* [`httpx.TimeoutException`](https://www.python-httpx.org/exceptions/#httpx.TimeoutException): HTTP request timed out.
|
|
578
508
|
|
|
579
509
|
|
|
580
|
-
**Inherit from [`EgainError`](
|
|
581
|
-
* [`SchemasWSErrorCommon`](
|
|
582
|
-
* [`
|
|
583
|
-
* [`ResponseValidationError`](
|
|
510
|
+
**Inherit from [`EgainError`](https://github.com/eGain/egain-api-python/blob/main/src/egain_api_python/errors/egainerror.py)**:
|
|
511
|
+
* [`SchemasWSErrorCommon`](https://github.com/eGain/egain-api-python/blob/main/src/egain_api_python/errors/schemaswserrorcommon.py): Not acceptable. Applicable to 4 of 76 methods.*
|
|
512
|
+
* [`BadRequestError`](https://github.com/eGain/egain-api-python/blob/main/src/egain_api_python/errors/badrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 76 methods.*
|
|
513
|
+
* [`ResponseValidationError`](https://github.com/eGain/egain-api-python/blob/main/src/egain_api_python/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
|
|
584
514
|
|
|
585
515
|
</details>
|
|
586
516
|
|
|
@@ -603,17 +533,7 @@ with Egain(
|
|
|
603
533
|
access_token=os.getenv("EGAIN_ACCESS_TOKEN", ""),
|
|
604
534
|
) as egain:
|
|
605
535
|
|
|
606
|
-
res = egain.aiservices.
|
|
607
|
-
"PROD-1234": [
|
|
608
|
-
"PROD-2000",
|
|
609
|
-
"PROD-2003",
|
|
610
|
-
],
|
|
611
|
-
"PROD-2005": [
|
|
612
|
-
"PROD-2007",
|
|
613
|
-
],
|
|
614
|
-
}, channel={
|
|
615
|
-
"name": "Eight Bank Website",
|
|
616
|
-
})
|
|
536
|
+
res = egain.aiservices.prompt.execute_prompt(prompt_id="<id>", department="Service", language_code="en-US", event_type="generate", client_session_id="123e4567-e89b-12d3-a456-426614174000", streaming=False)
|
|
617
537
|
|
|
618
538
|
# Handle response
|
|
619
539
|
print(res)
|
|
@@ -632,17 +552,7 @@ with Egain(
|
|
|
632
552
|
access_token=os.getenv("EGAIN_ACCESS_TOKEN", ""),
|
|
633
553
|
) as egain:
|
|
634
554
|
|
|
635
|
-
res = egain.aiservices.
|
|
636
|
-
"PROD-1234": [
|
|
637
|
-
"PROD-2000",
|
|
638
|
-
"PROD-2003",
|
|
639
|
-
],
|
|
640
|
-
"PROD-2005": [
|
|
641
|
-
"PROD-2007",
|
|
642
|
-
],
|
|
643
|
-
}, channel={
|
|
644
|
-
"name": "Eight Bank Website",
|
|
645
|
-
}, server_url="https://api.aidev.egain.cloud/core/aiservices/v4")
|
|
555
|
+
res = egain.aiservices.prompt.execute_prompt(prompt_id="<id>", department="Service", language_code="en-US", event_type="generate", client_session_id="123e4567-e89b-12d3-a456-426614174000", streaming=False, server_url="https://api.aidev.egain.cloud/core/aiservices/v4")
|
|
646
556
|
|
|
647
557
|
# Handle response
|
|
648
558
|
print(res)
|