hindsight-client 0.2.0__py3-none-any.whl → 0.2.1__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.
- {hindsight_client-0.2.0.dist-info → hindsight_client-0.2.1.dist-info}/METADATA +1 -1
- hindsight_client-0.2.1.dist-info/RECORD +62 -0
- hindsight_client_api/__init__.py +58 -119
- hindsight_client_api/api_client.py +6 -13
- hindsight_client_api/configuration.py +4 -15
- hindsight_client_api/exceptions.py +2 -22
- hindsight_client_api/models/__init__.py +1 -1
- hindsight_client_api/models/entity_input.py +22 -10
- hindsight_client_api/models/memory_item.py +10 -6
- hindsight_client_api/rest.py +60 -38
- hindsight_client-0.2.0.dist-info/RECORD +0 -110
- hindsight_client_api/docs/AddBackgroundRequest.md +0 -31
- hindsight_client_api/docs/BackgroundResponse.md +0 -31
- hindsight_client_api/docs/BankListItem.md +0 -35
- hindsight_client_api/docs/BankListResponse.md +0 -30
- hindsight_client_api/docs/BankProfileResponse.md +0 -33
- hindsight_client_api/docs/BankStatsResponse.md +0 -39
- hindsight_client_api/docs/BanksApi.md +0 -517
- hindsight_client_api/docs/Budget.md +0 -15
- hindsight_client_api/docs/CancelOperationResponse.md +0 -32
- hindsight_client_api/docs/ChunkData.md +0 -33
- hindsight_client_api/docs/ChunkIncludeOptions.md +0 -30
- hindsight_client_api/docs/ChunkResponse.md +0 -35
- hindsight_client_api/docs/CreateBankRequest.md +0 -32
- hindsight_client_api/docs/DeleteDocumentResponse.md +0 -33
- hindsight_client_api/docs/DeleteResponse.md +0 -32
- hindsight_client_api/docs/DispositionTraits.md +0 -32
- hindsight_client_api/docs/DocumentResponse.md +0 -36
- hindsight_client_api/docs/DocumentsApi.md +0 -313
- hindsight_client_api/docs/EntitiesApi.md +0 -230
- hindsight_client_api/docs/EntityDetailResponse.md +0 -36
- hindsight_client_api/docs/EntityIncludeOptions.md +0 -30
- hindsight_client_api/docs/EntityListItem.md +0 -35
- hindsight_client_api/docs/EntityListResponse.md +0 -30
- hindsight_client_api/docs/EntityObservationResponse.md +0 -31
- hindsight_client_api/docs/EntityStateResponse.md +0 -32
- hindsight_client_api/docs/GraphDataResponse.md +0 -33
- hindsight_client_api/docs/HTTPValidationError.md +0 -29
- hindsight_client_api/docs/IncludeOptions.md +0 -31
- hindsight_client_api/docs/ListDocumentsResponse.md +0 -33
- hindsight_client_api/docs/ListMemoryUnitsResponse.md +0 -33
- hindsight_client_api/docs/MemoryApi.md +0 -499
- hindsight_client_api/docs/MemoryItem.md +0 -34
- hindsight_client_api/docs/MonitoringApi.md +0 -136
- hindsight_client_api/docs/OperationResponse.md +0 -36
- hindsight_client_api/docs/OperationsApi.md +0 -154
- hindsight_client_api/docs/OperationsListResponse.md +0 -31
- hindsight_client_api/docs/RecallRequest.md +0 -36
- hindsight_client_api/docs/RecallResponse.md +0 -33
- hindsight_client_api/docs/RecallResult.md +0 -40
- hindsight_client_api/docs/ReflectFact.md +0 -35
- hindsight_client_api/docs/ReflectIncludeOptions.md +0 -30
- hindsight_client_api/docs/ReflectRequest.md +0 -35
- hindsight_client_api/docs/ReflectResponse.md +0 -32
- hindsight_client_api/docs/RetainRequest.md +0 -31
- hindsight_client_api/docs/RetainResponse.md +0 -33
- hindsight_client_api/docs/UpdateDispositionRequest.md +0 -30
- hindsight_client_api/docs/ValidationError.md +0 -31
- hindsight_client_api/docs/ValidationErrorLocInner.md +0 -28
- {hindsight_client-0.2.0.dist-info → hindsight_client-0.2.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
hindsight_client/__init__.py,sha256=PyDJ4UVKmtRN5OeBs0-rl-tUtqS8OoX53qvejKGC3JU,3114
|
|
2
|
+
hindsight_client/hindsight_client.py,sha256=FzlKL3HsoOvyYRipe4sKnZUJ-FWHrNe86fkAavPPSZA,16172
|
|
3
|
+
hindsight_client_api/__init__.py,sha256=MR6Cu4R590spgLgUehHBamgZ0r8Osxx9o7cN6rDbtMs,4572
|
|
4
|
+
hindsight_client_api/api_client.py,sha256=yFIRrXfpV3BoHTh1Xo-ixJVgzz39asRCp9_KDN1-UCs,27537
|
|
5
|
+
hindsight_client_api/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
6
|
+
hindsight_client_api/configuration.py,sha256=ByAYUPBL5JZ753cBbAcS0alWiOH_ZemiAskUXGnaBik,17229
|
|
7
|
+
hindsight_client_api/exceptions.py,sha256=cZAGBnRIB3RWaxddPD7rP_-oHUFfV8QqDKslBBZZows,5899
|
|
8
|
+
hindsight_client_api/rest.py,sha256=bP7YkGFnvF6_fX3e9Vf3XfltJ-qdNPQ9GVne07WUi-Y,7900
|
|
9
|
+
hindsight_client_api/api/__init__.py,sha256=Kn3AGORXpRNUKhh0v-I9-8BoZYGgVxhzIQ1_suO261w,420
|
|
10
|
+
hindsight_client_api/api/banks_api.py,sha256=Vk607GRBbRz_Wwr59z7iOSsz-VwY5JRtjawY7fruOBU,79646
|
|
11
|
+
hindsight_client_api/api/documents_api.py,sha256=F890v_gYJgbbaqE760jSpTEzT1fVBJ8Lk0Zo-H0ueiQ,46778
|
|
12
|
+
hindsight_client_api/api/entities_api.py,sha256=QGw4UBbQueXMWG5zx9AD30SuRxDqUaQWpLbFAXClU3k,35098
|
|
13
|
+
hindsight_client_api/api/memory_api.py,sha256=aJmZe253m8sL1dJB8HKYPyGDbE5j6JJi3T-rPDPWYbQ,77697
|
|
14
|
+
hindsight_client_api/api/monitoring_api.py,sha256=pt_jMV8GN6xpxX-iqk-FjrlihXLuygCKCXxg9ksEMcE,19807
|
|
15
|
+
hindsight_client_api/api/operations_api.py,sha256=C-ABeir4C-fz7mbN9_uDGqhVReA9OzsuvC0YYJdWlNo,23249
|
|
16
|
+
hindsight_client_api/models/__init__.py,sha256=IXptlAcDu0NKhMMqgBJsXZEYOzyRG65xl4eLywVn5ns,3602
|
|
17
|
+
hindsight_client_api/models/add_background_request.py,sha256=3rld3CjxNSPbxX9CoDSr5WEuhEoo-gRrCZ709Vvy9rI,2867
|
|
18
|
+
hindsight_client_api/models/background_response.py,sha256=SUFt-k6ipl2SXAvHb3IU3IJ5LuXIGEoK8_pVbZO3Dgw,3144
|
|
19
|
+
hindsight_client_api/models/bank_list_item.py,sha256=grJYCFBinjxEy1M8ZxPiy8asUVKj58b2KnScE2tmU-Q,4137
|
|
20
|
+
hindsight_client_api/models/bank_list_response.py,sha256=LiACkek7iqhA5mmVvYQkMnf4J5bfSFwBJ_mkC0u_Nz4,2896
|
|
21
|
+
hindsight_client_api/models/bank_profile_response.py,sha256=1vMc2814672N61dLK2a8b_H0yJfbOxSgiAQvHztvyrk,3030
|
|
22
|
+
hindsight_client_api/models/bank_stats_response.py,sha256=ekrmI8GnALqfSzOIRXF0a8mXPWyyqzz76SSEl7gfnRE,3521
|
|
23
|
+
hindsight_client_api/models/budget.py,sha256=AwTSqd59PKqQEM1g3qM3E7fSH2lUFll9iFLjzRMhtDE,702
|
|
24
|
+
hindsight_client_api/models/cancel_operation_response.py,sha256=jxLGkFmZ8aWRMcHVmnnnl306u8R10mSS5Yo9n-vtNCM,2656
|
|
25
|
+
hindsight_client_api/models/chunk_data.py,sha256=3iU9LmeMrMr2cdnSoE38_ipx7YZxAHU46v72ShVbPKo,2828
|
|
26
|
+
hindsight_client_api/models/chunk_include_options.py,sha256=96r8h9pZbHGvK2OMC3q4xfoBqXRwCSypmcCDO0KCM7A,2634
|
|
27
|
+
hindsight_client_api/models/chunk_response.py,sha256=5E6XHhhEO7AF_OMNk6vJZFT47_IRex8bGHlFW-AEPLs,2888
|
|
28
|
+
hindsight_client_api/models/create_bank_request.py,sha256=5IEuAmetFFtI1NFH0gTzTCtVni49TNVXAnrqz9n9lhk,3668
|
|
29
|
+
hindsight_client_api/models/delete_document_response.py,sha256=k_gHKh2qiUOyAS-iLzPPGVNFwTltvH2gbFceLU-JBrI,2788
|
|
30
|
+
hindsight_client_api/models/delete_response.py,sha256=8TjUUMXrEfbxxMHj5PsCaqEib2qpaA3JT45cbxToFj0,3126
|
|
31
|
+
hindsight_client_api/models/disposition_traits.py,sha256=I61B7L3BkGQlAxBONDILwE-hH_S3oY2IFrbeTzpj9Mg,3055
|
|
32
|
+
hindsight_client_api/models/document_response.py,sha256=hvtlBhm0EEGldM5Gh82cwnFYCL2ckwI2upDySdhbFZ0,3256
|
|
33
|
+
hindsight_client_api/models/entity_detail_response.py,sha256=51Pv6lQEVGjUZ2KimRP0xFCowwOgt0ShcNITeHLF0Ro,4312
|
|
34
|
+
hindsight_client_api/models/entity_include_options.py,sha256=j6o0SPWslW7y461xahbw4l1VXMIU1B5vxR3MX8cJ2FY,2635
|
|
35
|
+
hindsight_client_api/models/entity_input.py,sha256=e8d-WuZxv0G_b8BlwASi_Eymwd87-O4Ap2RkaMa3VSU,2760
|
|
36
|
+
hindsight_client_api/models/entity_list_item.py,sha256=ZtdnkJ-xz7djdls1RaYXl7BEF_q1YIcan61MrHH0x6g,3602
|
|
37
|
+
hindsight_client_api/models/entity_list_response.py,sha256=J3EYrjHKJk8AjcUQH2uEI3s1Hw11mIyQDgKrvPRhd4w,2913
|
|
38
|
+
hindsight_client_api/models/entity_observation_response.py,sha256=Sbz_m0MssD-gYyV4sAeD56HGrnmlWcdO0bBs73K65YU,2804
|
|
39
|
+
hindsight_client_api/models/entity_state_response.py,sha256=VNxiaOcNy2vCXuNGJMD1WbTTqwUguizvCxJHkt7Lyuw,3239
|
|
40
|
+
hindsight_client_api/models/graph_data_response.py,sha256=24l32YX7rzsNZBIeLAL2TX25O3-7Ji-I-9WkYPHWSNQ,2721
|
|
41
|
+
hindsight_client_api/models/http_validation_error.py,sha256=KKvY67lajAI7hAys0IZHeeTsG2ArvpVIATqSMjbWGOY,2937
|
|
42
|
+
hindsight_client_api/models/include_options.py,sha256=FlB8QT_bqA141_tSv51QvZRbqKZdcaR2estkHg6eBGc,3645
|
|
43
|
+
hindsight_client_api/models/list_documents_response.py,sha256=8lXIfprjJHpWCgiKkw4-M8d2y4NOTcK76HoF1otMekI,2675
|
|
44
|
+
hindsight_client_api/models/list_memory_units_response.py,sha256=gEC-opRav_3cWdKvoO7Hure3dnVyFiFC0gtDP0TE7H8,2684
|
|
45
|
+
hindsight_client_api/models/memory_item.py,sha256=FBUa4h31a03CSkTmjg7Qxxg_VpbqbIRiQ8kXKQtaEX0,4548
|
|
46
|
+
hindsight_client_api/models/operation_response.py,sha256=ach9QI35J3FtPKLzZDqb54Xfov7ouiEhto4nztCKc8I,3467
|
|
47
|
+
hindsight_client_api/models/operations_list_response.py,sha256=3XOfvTBBkv7VmYo-PZX0wVK_RtMCZkQdaPkXXhGIiRU,3088
|
|
48
|
+
hindsight_client_api/models/recall_request.py,sha256=IPYeipQO7qxUepB01iCkz2ACNWQg5jXLIPzSAxsTQts,4053
|
|
49
|
+
hindsight_client_api/models/recall_response.py,sha256=t_qYAUMHXFBnXX7kCF8EeLfqeyF9V01wvQizCDvf4dY,5103
|
|
50
|
+
hindsight_client_api/models/recall_result.py,sha256=fI-TCBDFGuSIytFsI7FADtJkmvsTOX-G3bFFRxLJbMY,5402
|
|
51
|
+
hindsight_client_api/models/reflect_fact.py,sha256=sYW00LmDpY7VptK0E4I0gUWHkCRaCTeypuHSdciknw8,3973
|
|
52
|
+
hindsight_client_api/models/reflect_include_options.py,sha256=q3TqMu-zrJw8LIHOl5pb0baDEQlOlFkBI5gE9MEmKQQ,2584
|
|
53
|
+
hindsight_client_api/models/reflect_request.py,sha256=OOfOiLh0pmrIVo5ZFBFL09H69v8UGzWWlyp5I-CPCpE,4007
|
|
54
|
+
hindsight_client_api/models/reflect_response.py,sha256=jqh3gJvqlz2MKbk4H9sgHe3EfprmpIoMZgxHMuxQlVw,3414
|
|
55
|
+
hindsight_client_api/models/retain_request.py,sha256=LABq0vwi3ZYnb1RB6UCLw6PoFT4Q4qap8LNWLquh7jE,3178
|
|
56
|
+
hindsight_client_api/models/retain_response.py,sha256=b3t5H7_ixi7jZw_kvb2XYh0Q6IDTfHvWRR2KaKqf7ls,2796
|
|
57
|
+
hindsight_client_api/models/update_disposition_request.py,sha256=6D3qceEJByBWcZrfSbNXrdlrDtnj0_QXh2zosc49-5E,2817
|
|
58
|
+
hindsight_client_api/models/validation_error.py,sha256=XnK71WeEUbZyXPbzv1uKaNAFEYxfsiS7G0cvjTgCxiM,3029
|
|
59
|
+
hindsight_client_api/models/validation_error_loc_inner.py,sha256=q51Yi64xsxhsy3_AAD5DlcfI2-g_81hQoN6Olh3I8ag,4812
|
|
60
|
+
hindsight_client-0.2.1.dist-info/METADATA,sha256=GNKDXo5mybB4RWailkuwWGNJ1Qxce180XK99ZEIZ1pY,647
|
|
61
|
+
hindsight_client-0.2.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
62
|
+
hindsight_client-0.2.1.dist-info/RECORD,,
|
hindsight_client_api/__init__.py
CHANGED
|
@@ -16,127 +16,66 @@
|
|
|
16
16
|
|
|
17
17
|
__version__ = "0.0.7"
|
|
18
18
|
|
|
19
|
-
# Define package exports
|
|
20
|
-
__all__ = [
|
|
21
|
-
"BanksApi",
|
|
22
|
-
"DocumentsApi",
|
|
23
|
-
"EntitiesApi",
|
|
24
|
-
"MemoryApi",
|
|
25
|
-
"MonitoringApi",
|
|
26
|
-
"OperationsApi",
|
|
27
|
-
"ApiResponse",
|
|
28
|
-
"ApiClient",
|
|
29
|
-
"Configuration",
|
|
30
|
-
"OpenApiException",
|
|
31
|
-
"ApiTypeError",
|
|
32
|
-
"ApiValueError",
|
|
33
|
-
"ApiKeyError",
|
|
34
|
-
"ApiAttributeError",
|
|
35
|
-
"ApiException",
|
|
36
|
-
"AddBackgroundRequest",
|
|
37
|
-
"BackgroundResponse",
|
|
38
|
-
"BankListItem",
|
|
39
|
-
"BankListResponse",
|
|
40
|
-
"BankProfileResponse",
|
|
41
|
-
"BankStatsResponse",
|
|
42
|
-
"Budget",
|
|
43
|
-
"CancelOperationResponse",
|
|
44
|
-
"ChunkData",
|
|
45
|
-
"ChunkIncludeOptions",
|
|
46
|
-
"ChunkResponse",
|
|
47
|
-
"CreateBankRequest",
|
|
48
|
-
"DeleteDocumentResponse",
|
|
49
|
-
"DeleteResponse",
|
|
50
|
-
"DispositionTraits",
|
|
51
|
-
"DocumentResponse",
|
|
52
|
-
"EntityDetailResponse",
|
|
53
|
-
"EntityIncludeOptions",
|
|
54
|
-
"EntityListItem",
|
|
55
|
-
"EntityListResponse",
|
|
56
|
-
"EntityObservationResponse",
|
|
57
|
-
"EntityStateResponse",
|
|
58
|
-
"GraphDataResponse",
|
|
59
|
-
"HTTPValidationError",
|
|
60
|
-
"IncludeOptions",
|
|
61
|
-
"ListDocumentsResponse",
|
|
62
|
-
"ListMemoryUnitsResponse",
|
|
63
|
-
"MemoryItem",
|
|
64
|
-
"OperationResponse",
|
|
65
|
-
"OperationsListResponse",
|
|
66
|
-
"RecallRequest",
|
|
67
|
-
"RecallResponse",
|
|
68
|
-
"RecallResult",
|
|
69
|
-
"ReflectFact",
|
|
70
|
-
"ReflectIncludeOptions",
|
|
71
|
-
"ReflectRequest",
|
|
72
|
-
"ReflectResponse",
|
|
73
|
-
"RetainRequest",
|
|
74
|
-
"RetainResponse",
|
|
75
|
-
"UpdateDispositionRequest",
|
|
76
|
-
"ValidationError",
|
|
77
|
-
"ValidationErrorLocInner",
|
|
78
|
-
]
|
|
79
|
-
|
|
80
19
|
# import apis into sdk package
|
|
81
|
-
from hindsight_client_api.api.banks_api import BanksApi
|
|
82
|
-
from hindsight_client_api.api.documents_api import DocumentsApi
|
|
83
|
-
from hindsight_client_api.api.entities_api import EntitiesApi
|
|
84
|
-
from hindsight_client_api.api.memory_api import MemoryApi
|
|
85
|
-
from hindsight_client_api.api.monitoring_api import MonitoringApi
|
|
86
|
-
from hindsight_client_api.api.operations_api import OperationsApi
|
|
20
|
+
from hindsight_client_api.api.banks_api import BanksApi
|
|
21
|
+
from hindsight_client_api.api.documents_api import DocumentsApi
|
|
22
|
+
from hindsight_client_api.api.entities_api import EntitiesApi
|
|
23
|
+
from hindsight_client_api.api.memory_api import MemoryApi
|
|
24
|
+
from hindsight_client_api.api.monitoring_api import MonitoringApi
|
|
25
|
+
from hindsight_client_api.api.operations_api import OperationsApi
|
|
87
26
|
|
|
88
27
|
# import ApiClient
|
|
89
|
-
from hindsight_client_api.api_response import ApiResponse
|
|
90
|
-
from hindsight_client_api.api_client import ApiClient
|
|
91
|
-
from hindsight_client_api.configuration import Configuration
|
|
92
|
-
from hindsight_client_api.exceptions import OpenApiException
|
|
93
|
-
from hindsight_client_api.exceptions import ApiTypeError
|
|
94
|
-
from hindsight_client_api.exceptions import ApiValueError
|
|
95
|
-
from hindsight_client_api.exceptions import ApiKeyError
|
|
96
|
-
from hindsight_client_api.exceptions import ApiAttributeError
|
|
97
|
-
from hindsight_client_api.exceptions import ApiException
|
|
28
|
+
from hindsight_client_api.api_response import ApiResponse
|
|
29
|
+
from hindsight_client_api.api_client import ApiClient
|
|
30
|
+
from hindsight_client_api.configuration import Configuration
|
|
31
|
+
from hindsight_client_api.exceptions import OpenApiException
|
|
32
|
+
from hindsight_client_api.exceptions import ApiTypeError
|
|
33
|
+
from hindsight_client_api.exceptions import ApiValueError
|
|
34
|
+
from hindsight_client_api.exceptions import ApiKeyError
|
|
35
|
+
from hindsight_client_api.exceptions import ApiAttributeError
|
|
36
|
+
from hindsight_client_api.exceptions import ApiException
|
|
98
37
|
|
|
99
38
|
# import models into sdk package
|
|
100
|
-
from hindsight_client_api.models.add_background_request import AddBackgroundRequest
|
|
101
|
-
from hindsight_client_api.models.background_response import BackgroundResponse
|
|
102
|
-
from hindsight_client_api.models.bank_list_item import BankListItem
|
|
103
|
-
from hindsight_client_api.models.bank_list_response import BankListResponse
|
|
104
|
-
from hindsight_client_api.models.bank_profile_response import BankProfileResponse
|
|
105
|
-
from hindsight_client_api.models.bank_stats_response import BankStatsResponse
|
|
106
|
-
from hindsight_client_api.models.budget import Budget
|
|
107
|
-
from hindsight_client_api.models.cancel_operation_response import CancelOperationResponse
|
|
108
|
-
from hindsight_client_api.models.chunk_data import ChunkData
|
|
109
|
-
from hindsight_client_api.models.chunk_include_options import ChunkIncludeOptions
|
|
110
|
-
from hindsight_client_api.models.chunk_response import ChunkResponse
|
|
111
|
-
from hindsight_client_api.models.create_bank_request import CreateBankRequest
|
|
112
|
-
from hindsight_client_api.models.delete_document_response import DeleteDocumentResponse
|
|
113
|
-
from hindsight_client_api.models.delete_response import DeleteResponse
|
|
114
|
-
from hindsight_client_api.models.disposition_traits import DispositionTraits
|
|
115
|
-
from hindsight_client_api.models.document_response import DocumentResponse
|
|
116
|
-
from hindsight_client_api.models.entity_detail_response import EntityDetailResponse
|
|
117
|
-
from hindsight_client_api.models.entity_include_options import EntityIncludeOptions
|
|
118
|
-
from hindsight_client_api.models.
|
|
119
|
-
from hindsight_client_api.models.
|
|
120
|
-
from hindsight_client_api.models.
|
|
121
|
-
from hindsight_client_api.models.
|
|
122
|
-
from hindsight_client_api.models.
|
|
123
|
-
from hindsight_client_api.models.
|
|
124
|
-
from hindsight_client_api.models.
|
|
125
|
-
from hindsight_client_api.models.
|
|
126
|
-
from hindsight_client_api.models.
|
|
127
|
-
from hindsight_client_api.models.
|
|
128
|
-
from hindsight_client_api.models.
|
|
129
|
-
from hindsight_client_api.models.
|
|
130
|
-
from hindsight_client_api.models.
|
|
131
|
-
from hindsight_client_api.models.
|
|
132
|
-
from hindsight_client_api.models.
|
|
133
|
-
from hindsight_client_api.models.
|
|
134
|
-
from hindsight_client_api.models.
|
|
135
|
-
from hindsight_client_api.models.
|
|
136
|
-
from hindsight_client_api.models.
|
|
137
|
-
from hindsight_client_api.models.
|
|
138
|
-
from hindsight_client_api.models.
|
|
139
|
-
from hindsight_client_api.models.
|
|
140
|
-
from hindsight_client_api.models.
|
|
141
|
-
from hindsight_client_api.models.
|
|
142
|
-
|
|
39
|
+
from hindsight_client_api.models.add_background_request import AddBackgroundRequest
|
|
40
|
+
from hindsight_client_api.models.background_response import BackgroundResponse
|
|
41
|
+
from hindsight_client_api.models.bank_list_item import BankListItem
|
|
42
|
+
from hindsight_client_api.models.bank_list_response import BankListResponse
|
|
43
|
+
from hindsight_client_api.models.bank_profile_response import BankProfileResponse
|
|
44
|
+
from hindsight_client_api.models.bank_stats_response import BankStatsResponse
|
|
45
|
+
from hindsight_client_api.models.budget import Budget
|
|
46
|
+
from hindsight_client_api.models.cancel_operation_response import CancelOperationResponse
|
|
47
|
+
from hindsight_client_api.models.chunk_data import ChunkData
|
|
48
|
+
from hindsight_client_api.models.chunk_include_options import ChunkIncludeOptions
|
|
49
|
+
from hindsight_client_api.models.chunk_response import ChunkResponse
|
|
50
|
+
from hindsight_client_api.models.create_bank_request import CreateBankRequest
|
|
51
|
+
from hindsight_client_api.models.delete_document_response import DeleteDocumentResponse
|
|
52
|
+
from hindsight_client_api.models.delete_response import DeleteResponse
|
|
53
|
+
from hindsight_client_api.models.disposition_traits import DispositionTraits
|
|
54
|
+
from hindsight_client_api.models.document_response import DocumentResponse
|
|
55
|
+
from hindsight_client_api.models.entity_detail_response import EntityDetailResponse
|
|
56
|
+
from hindsight_client_api.models.entity_include_options import EntityIncludeOptions
|
|
57
|
+
from hindsight_client_api.models.entity_input import EntityInput
|
|
58
|
+
from hindsight_client_api.models.entity_list_item import EntityListItem
|
|
59
|
+
from hindsight_client_api.models.entity_list_response import EntityListResponse
|
|
60
|
+
from hindsight_client_api.models.entity_observation_response import EntityObservationResponse
|
|
61
|
+
from hindsight_client_api.models.entity_state_response import EntityStateResponse
|
|
62
|
+
from hindsight_client_api.models.graph_data_response import GraphDataResponse
|
|
63
|
+
from hindsight_client_api.models.http_validation_error import HTTPValidationError
|
|
64
|
+
from hindsight_client_api.models.include_options import IncludeOptions
|
|
65
|
+
from hindsight_client_api.models.list_documents_response import ListDocumentsResponse
|
|
66
|
+
from hindsight_client_api.models.list_memory_units_response import ListMemoryUnitsResponse
|
|
67
|
+
from hindsight_client_api.models.memory_item import MemoryItem
|
|
68
|
+
from hindsight_client_api.models.operation_response import OperationResponse
|
|
69
|
+
from hindsight_client_api.models.operations_list_response import OperationsListResponse
|
|
70
|
+
from hindsight_client_api.models.recall_request import RecallRequest
|
|
71
|
+
from hindsight_client_api.models.recall_response import RecallResponse
|
|
72
|
+
from hindsight_client_api.models.recall_result import RecallResult
|
|
73
|
+
from hindsight_client_api.models.reflect_fact import ReflectFact
|
|
74
|
+
from hindsight_client_api.models.reflect_include_options import ReflectIncludeOptions
|
|
75
|
+
from hindsight_client_api.models.reflect_request import ReflectRequest
|
|
76
|
+
from hindsight_client_api.models.reflect_response import ReflectResponse
|
|
77
|
+
from hindsight_client_api.models.retain_request import RetainRequest
|
|
78
|
+
from hindsight_client_api.models.retain_response import RetainResponse
|
|
79
|
+
from hindsight_client_api.models.update_disposition_request import UpdateDispositionRequest
|
|
80
|
+
from hindsight_client_api.models.validation_error import ValidationError
|
|
81
|
+
from hindsight_client_api.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
@@ -21,7 +21,6 @@ import mimetypes
|
|
|
21
21
|
import os
|
|
22
22
|
import re
|
|
23
23
|
import tempfile
|
|
24
|
-
import uuid
|
|
25
24
|
|
|
26
25
|
from urllib.parse import quote
|
|
27
26
|
from typing import Tuple, Optional, List, Dict, Union
|
|
@@ -360,8 +359,6 @@ class ApiClient:
|
|
|
360
359
|
return obj.get_secret_value()
|
|
361
360
|
elif isinstance(obj, self.PRIMITIVE_TYPES):
|
|
362
361
|
return obj
|
|
363
|
-
elif isinstance(obj, uuid.UUID):
|
|
364
|
-
return str(obj)
|
|
365
362
|
elif isinstance(obj, list):
|
|
366
363
|
return [
|
|
367
364
|
self.sanitize_for_serialization(sub_obj) for sub_obj in obj
|
|
@@ -388,10 +385,6 @@ class ApiClient:
|
|
|
388
385
|
else:
|
|
389
386
|
obj_dict = obj.__dict__
|
|
390
387
|
|
|
391
|
-
if isinstance(obj_dict, list):
|
|
392
|
-
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
|
|
393
|
-
return self.sanitize_for_serialization(obj_dict)
|
|
394
|
-
|
|
395
388
|
return {
|
|
396
389
|
key: self.sanitize_for_serialization(val)
|
|
397
390
|
for key, val in obj_dict.items()
|
|
@@ -414,7 +407,7 @@ class ApiClient:
|
|
|
414
407
|
data = json.loads(response_text)
|
|
415
408
|
except ValueError:
|
|
416
409
|
data = response_text
|
|
417
|
-
elif re.match(r'^application/(json|[\w
|
|
410
|
+
elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
|
|
418
411
|
if response_text == "":
|
|
419
412
|
data = ""
|
|
420
413
|
else:
|
|
@@ -463,13 +456,13 @@ class ApiClient:
|
|
|
463
456
|
|
|
464
457
|
if klass in self.PRIMITIVE_TYPES:
|
|
465
458
|
return self.__deserialize_primitive(data, klass)
|
|
466
|
-
elif klass
|
|
459
|
+
elif klass == object:
|
|
467
460
|
return self.__deserialize_object(data)
|
|
468
|
-
elif klass
|
|
461
|
+
elif klass == datetime.date:
|
|
469
462
|
return self.__deserialize_date(data)
|
|
470
|
-
elif klass
|
|
463
|
+
elif klass == datetime.datetime:
|
|
471
464
|
return self.__deserialize_datetime(data)
|
|
472
|
-
elif klass
|
|
465
|
+
elif klass == decimal.Decimal:
|
|
473
466
|
return decimal.Decimal(data)
|
|
474
467
|
elif issubclass(klass, Enum):
|
|
475
468
|
return self.__deserialize_enum(data, klass)
|
|
@@ -527,7 +520,7 @@ class ApiClient:
|
|
|
527
520
|
if k in collection_formats:
|
|
528
521
|
collection_format = collection_formats[k]
|
|
529
522
|
if collection_format == 'multi':
|
|
530
|
-
new_params.extend((k,
|
|
523
|
+
new_params.extend((k, str(value)) for value in v)
|
|
531
524
|
else:
|
|
532
525
|
if collection_format == 'ssv':
|
|
533
526
|
delimiter = ' '
|
|
@@ -17,7 +17,7 @@ import http.client as httplib
|
|
|
17
17
|
import logging
|
|
18
18
|
from logging import FileHandler
|
|
19
19
|
import sys
|
|
20
|
-
from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict
|
|
20
|
+
from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict
|
|
21
21
|
from typing_extensions import NotRequired, Self
|
|
22
22
|
|
|
23
23
|
import urllib3
|
|
@@ -159,10 +159,6 @@ class Configuration:
|
|
|
159
159
|
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
|
|
160
160
|
in PEM format.
|
|
161
161
|
:param retries: Number of retries for API requests.
|
|
162
|
-
:param ca_cert_data: verify the peer using concatenated CA certificate data
|
|
163
|
-
in PEM (str) or DER (bytes) format.
|
|
164
|
-
:param cert_file: the path to a client certificate file, for mTLS.
|
|
165
|
-
:param key_file: the path to a client key file, for mTLS.
|
|
166
162
|
|
|
167
163
|
"""
|
|
168
164
|
|
|
@@ -176,16 +172,13 @@ class Configuration:
|
|
|
176
172
|
username: Optional[str]=None,
|
|
177
173
|
password: Optional[str]=None,
|
|
178
174
|
access_token: Optional[str]=None,
|
|
179
|
-
server_index: Optional[int]=None,
|
|
175
|
+
server_index: Optional[int]=None,
|
|
180
176
|
server_variables: Optional[ServerVariablesT]=None,
|
|
181
177
|
server_operation_index: Optional[Dict[int, int]]=None,
|
|
182
178
|
server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None,
|
|
183
179
|
ignore_operation_servers: bool=False,
|
|
184
180
|
ssl_ca_cert: Optional[str]=None,
|
|
185
181
|
retries: Optional[int] = None,
|
|
186
|
-
ca_cert_data: Optional[Union[str, bytes]] = None,
|
|
187
|
-
cert_file: Optional[str]=None,
|
|
188
|
-
key_file: Optional[str]=None,
|
|
189
182
|
*,
|
|
190
183
|
debug: Optional[bool] = None,
|
|
191
184
|
) -> None:
|
|
@@ -263,14 +256,10 @@ class Configuration:
|
|
|
263
256
|
self.ssl_ca_cert = ssl_ca_cert
|
|
264
257
|
"""Set this to customize the certificate file to verify the peer.
|
|
265
258
|
"""
|
|
266
|
-
self.
|
|
267
|
-
"""Set this to verify the peer using PEM (str) or DER (bytes)
|
|
268
|
-
certificate data.
|
|
269
|
-
"""
|
|
270
|
-
self.cert_file = cert_file
|
|
259
|
+
self.cert_file = None
|
|
271
260
|
"""client certificate file
|
|
272
261
|
"""
|
|
273
|
-
self.key_file =
|
|
262
|
+
self.key_file = None
|
|
274
263
|
"""client key file
|
|
275
264
|
"""
|
|
276
265
|
self.assert_hostname = None
|
|
@@ -150,13 +150,6 @@ class ApiException(OpenApiException):
|
|
|
150
150
|
if http_resp.status == 404:
|
|
151
151
|
raise NotFoundException(http_resp=http_resp, body=body, data=data)
|
|
152
152
|
|
|
153
|
-
# Added new conditions for 409 and 422
|
|
154
|
-
if http_resp.status == 409:
|
|
155
|
-
raise ConflictException(http_resp=http_resp, body=body, data=data)
|
|
156
|
-
|
|
157
|
-
if http_resp.status == 422:
|
|
158
|
-
raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
|
|
159
|
-
|
|
160
153
|
if 500 <= http_resp.status <= 599:
|
|
161
154
|
raise ServiceException(http_resp=http_resp, body=body, data=data)
|
|
162
155
|
raise ApiException(http_resp=http_resp, body=body, data=data)
|
|
@@ -169,11 +162,8 @@ class ApiException(OpenApiException):
|
|
|
169
162
|
error_message += "HTTP response headers: {0}\n".format(
|
|
170
163
|
self.headers)
|
|
171
164
|
|
|
172
|
-
if self.body:
|
|
173
|
-
error_message += "HTTP response body: {0}\n".format(self.body)
|
|
174
|
-
|
|
175
|
-
if self.data:
|
|
176
|
-
error_message += "HTTP response data: {0}\n".format(self.data)
|
|
165
|
+
if self.data or self.body:
|
|
166
|
+
error_message += "HTTP response body: {0}\n".format(self.data or self.body)
|
|
177
167
|
|
|
178
168
|
return error_message
|
|
179
169
|
|
|
@@ -198,16 +188,6 @@ class ServiceException(ApiException):
|
|
|
198
188
|
pass
|
|
199
189
|
|
|
200
190
|
|
|
201
|
-
class ConflictException(ApiException):
|
|
202
|
-
"""Exception for HTTP 409 Conflict."""
|
|
203
|
-
pass
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
class UnprocessableEntityException(ApiException):
|
|
207
|
-
"""Exception for HTTP 422 Unprocessable Entity."""
|
|
208
|
-
pass
|
|
209
|
-
|
|
210
|
-
|
|
211
191
|
def render_path(path_to_item):
|
|
212
192
|
"""Returns a string representation of a path"""
|
|
213
193
|
result = ""
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
Do not edit the class manually.
|
|
13
13
|
""" # noqa: E501
|
|
14
14
|
|
|
15
|
+
|
|
15
16
|
# import models into model package
|
|
16
17
|
from hindsight_client_api.models.add_background_request import AddBackgroundRequest
|
|
17
18
|
from hindsight_client_api.models.background_response import BackgroundResponse
|
|
@@ -56,4 +57,3 @@ from hindsight_client_api.models.retain_response import RetainResponse
|
|
|
56
57
|
from hindsight_client_api.models.update_disposition_request import UpdateDispositionRequest
|
|
57
58
|
from hindsight_client_api.models.validation_error import ValidationError
|
|
58
59
|
from hindsight_client_api.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
59
|
-
|
|
@@ -22,16 +22,12 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
|
|
26
25
|
class EntityInput(BaseModel):
|
|
27
26
|
"""
|
|
28
27
|
Entity to associate with retained content.
|
|
29
|
-
"""
|
|
30
|
-
|
|
28
|
+
""" # noqa: E501
|
|
31
29
|
text: StrictStr = Field(description="The entity name/text")
|
|
32
|
-
type: Optional[StrictStr] =
|
|
33
|
-
default=None, description="Optional entity type (e.g., 'PERSON', 'ORG', 'CONCEPT')"
|
|
34
|
-
)
|
|
30
|
+
type: Optional[StrictStr] = None
|
|
35
31
|
__properties: ClassVar[List[str]] = ["text", "type"]
|
|
36
32
|
|
|
37
33
|
model_config = ConfigDict(
|
|
@@ -40,12 +36,14 @@ class EntityInput(BaseModel):
|
|
|
40
36
|
protected_namespaces=(),
|
|
41
37
|
)
|
|
42
38
|
|
|
39
|
+
|
|
43
40
|
def to_str(self) -> str:
|
|
44
41
|
"""Returns the string representation of the model using alias"""
|
|
45
42
|
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
43
|
|
|
47
44
|
def to_json(self) -> str:
|
|
48
45
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
47
|
return json.dumps(self.to_dict())
|
|
50
48
|
|
|
51
49
|
@classmethod
|
|
@@ -54,8 +52,17 @@ class EntityInput(BaseModel):
|
|
|
54
52
|
return cls.from_dict(json.loads(json_str))
|
|
55
53
|
|
|
56
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
-
"""Return the dictionary representation of the model using alias.
|
|
58
|
-
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
59
66
|
|
|
60
67
|
_dict = self.model_dump(
|
|
61
68
|
by_alias=True,
|
|
@@ -65,7 +72,7 @@ class EntityInput(BaseModel):
|
|
|
65
72
|
# set to None if type (nullable) is None
|
|
66
73
|
# and model_fields_set contains the field
|
|
67
74
|
if self.type is None and "type" in self.model_fields_set:
|
|
68
|
-
_dict[
|
|
75
|
+
_dict['type'] = None
|
|
69
76
|
|
|
70
77
|
return _dict
|
|
71
78
|
|
|
@@ -78,5 +85,10 @@ class EntityInput(BaseModel):
|
|
|
78
85
|
if not isinstance(obj, dict):
|
|
79
86
|
return cls.model_validate(obj)
|
|
80
87
|
|
|
81
|
-
_obj = cls.model_validate({
|
|
88
|
+
_obj = cls.model_validate({
|
|
89
|
+
"text": obj.get("text"),
|
|
90
|
+
"type": obj.get("type")
|
|
91
|
+
})
|
|
82
92
|
return _obj
|
|
93
|
+
|
|
94
|
+
|
|
@@ -18,11 +18,11 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
from datetime import datetime
|
|
21
|
-
from pydantic import BaseModel, ConfigDict,
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from hindsight_client_api.models.entity_input import EntityInput
|
|
23
24
|
from typing import Optional, Set
|
|
24
25
|
from typing_extensions import Self
|
|
25
|
-
from hindsight_client_api.models.entity_input import EntityInput
|
|
26
26
|
|
|
27
27
|
class MemoryItem(BaseModel):
|
|
28
28
|
"""
|
|
@@ -33,10 +33,7 @@ class MemoryItem(BaseModel):
|
|
|
33
33
|
context: Optional[StrictStr] = None
|
|
34
34
|
metadata: Optional[Dict[str, StrictStr]] = None
|
|
35
35
|
document_id: Optional[StrictStr] = None
|
|
36
|
-
entities: Optional[List[EntityInput]] =
|
|
37
|
-
default=None,
|
|
38
|
-
description="Optional entities to combine with auto-extracted entities."
|
|
39
|
-
)
|
|
36
|
+
entities: Optional[List[EntityInput]] = None
|
|
40
37
|
__properties: ClassVar[List[str]] = ["content", "timestamp", "context", "metadata", "document_id", "entities"]
|
|
41
38
|
|
|
42
39
|
model_config = ConfigDict(
|
|
@@ -78,6 +75,13 @@ class MemoryItem(BaseModel):
|
|
|
78
75
|
exclude=excluded_fields,
|
|
79
76
|
exclude_none=True,
|
|
80
77
|
)
|
|
78
|
+
# override the default output from pydantic by calling `to_dict()` of each item in entities (list)
|
|
79
|
+
_items = []
|
|
80
|
+
if self.entities:
|
|
81
|
+
for _item_entities in self.entities:
|
|
82
|
+
if _item_entities:
|
|
83
|
+
_items.append(_item_entities.to_dict())
|
|
84
|
+
_dict['entities'] = _items
|
|
81
85
|
# set to None if timestamp (nullable) is None
|
|
82
86
|
# and model_fields_set contains the field
|
|
83
87
|
if self.timestamp is None and "timestamp" in self.model_fields_set:
|