hindsight-client 0.1.14__py3-none-any.whl → 0.1.16__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.
Files changed (114) hide show
  1. hindsight_client/hindsight_client.py +11 -10
  2. {hindsight_client-0.1.14.dist-info → hindsight_client-0.1.16.dist-info}/METADATA +1 -1
  3. hindsight_client-0.1.16.dist-info/RECORD +109 -0
  4. hindsight_client_api/__init__.py +21 -3
  5. hindsight_client_api/api/__init__.py +5 -1
  6. hindsight_client_api/api/banks_api.py +2045 -0
  7. hindsight_client_api/api/documents_api.py +1234 -0
  8. hindsight_client_api/api/entities_api.py +921 -0
  9. hindsight_client_api/api/memory_api.py +1901 -0
  10. hindsight_client_api/api/monitoring_api.py +1 -1
  11. hindsight_client_api/api/operations_api.py +610 -0
  12. hindsight_client_api/api_client.py +1 -1
  13. hindsight_client_api/configuration.py +2 -2
  14. hindsight_client_api/docs/BankListItem.md +2 -2
  15. hindsight_client_api/docs/BankStatsResponse.md +39 -0
  16. hindsight_client_api/docs/BanksApi.md +517 -0
  17. hindsight_client_api/docs/CancelOperationResponse.md +32 -0
  18. hindsight_client_api/docs/DeleteDocumentResponse.md +33 -0
  19. hindsight_client_api/docs/DeleteResponse.md +2 -0
  20. hindsight_client_api/docs/DocumentsApi.md +313 -0
  21. hindsight_client_api/docs/EntitiesApi.md +230 -0
  22. hindsight_client_api/docs/MemoryApi.md +499 -0
  23. hindsight_client_api/docs/OperationResponse.md +36 -0
  24. hindsight_client_api/docs/OperationsApi.md +154 -0
  25. hindsight_client_api/docs/OperationsListResponse.md +31 -0
  26. hindsight_client_api/exceptions.py +1 -1
  27. hindsight_client_api/models/__init__.py +6 -1
  28. hindsight_client_api/models/add_background_request.py +1 -1
  29. hindsight_client_api/models/background_response.py +1 -1
  30. hindsight_client_api/models/bank_list_item.py +13 -3
  31. hindsight_client_api/models/bank_list_response.py +1 -1
  32. hindsight_client_api/models/bank_profile_response.py +1 -1
  33. hindsight_client_api/models/bank_stats_response.py +105 -0
  34. hindsight_client_api/models/budget.py +1 -1
  35. hindsight_client_api/models/cancel_operation_response.py +91 -0
  36. hindsight_client_api/models/chunk_data.py +1 -1
  37. hindsight_client_api/models/chunk_include_options.py +1 -1
  38. hindsight_client_api/models/chunk_response.py +1 -1
  39. hindsight_client_api/models/create_bank_request.py +1 -1
  40. hindsight_client_api/models/delete_document_response.py +93 -0
  41. hindsight_client_api/models/delete_response.py +19 -5
  42. hindsight_client_api/models/disposition_traits.py +1 -1
  43. hindsight_client_api/models/document_response.py +1 -1
  44. hindsight_client_api/models/entity_detail_response.py +1 -1
  45. hindsight_client_api/models/entity_include_options.py +1 -1
  46. hindsight_client_api/models/entity_list_item.py +1 -1
  47. hindsight_client_api/models/entity_list_response.py +1 -1
  48. hindsight_client_api/models/entity_observation_response.py +1 -1
  49. hindsight_client_api/models/entity_state_response.py +1 -1
  50. hindsight_client_api/models/graph_data_response.py +1 -1
  51. hindsight_client_api/models/http_validation_error.py +1 -1
  52. hindsight_client_api/models/include_options.py +1 -1
  53. hindsight_client_api/models/list_documents_response.py +1 -1
  54. hindsight_client_api/models/list_memory_units_response.py +1 -1
  55. hindsight_client_api/models/memory_item.py +1 -1
  56. hindsight_client_api/models/operation_response.py +109 -0
  57. hindsight_client_api/models/operations_list_response.py +97 -0
  58. hindsight_client_api/models/recall_request.py +1 -1
  59. hindsight_client_api/models/recall_response.py +1 -1
  60. hindsight_client_api/models/recall_result.py +1 -1
  61. hindsight_client_api/models/reflect_fact.py +1 -1
  62. hindsight_client_api/models/reflect_include_options.py +1 -1
  63. hindsight_client_api/models/reflect_request.py +1 -1
  64. hindsight_client_api/models/reflect_response.py +1 -1
  65. hindsight_client_api/models/retain_request.py +1 -1
  66. hindsight_client_api/models/retain_response.py +1 -1
  67. hindsight_client_api/models/update_disposition_request.py +1 -1
  68. hindsight_client_api/models/validation_error.py +1 -1
  69. hindsight_client_api/models/validation_error_loc_inner.py +1 -1
  70. hindsight_client_api/rest.py +1 -1
  71. hindsight_client-0.1.14.dist-info/RECORD +0 -131
  72. hindsight_client_api/api/default_api.py +0 -5976
  73. hindsight_client_api/docs/DefaultApi.md +0 -1568
  74. hindsight_client_api/test/__init__.py +0 -0
  75. hindsight_client_api/test/test_add_background_request.py +0 -53
  76. hindsight_client_api/test/test_background_response.py +0 -53
  77. hindsight_client_api/test/test_bank_list_item.py +0 -60
  78. hindsight_client_api/test/test_bank_list_response.py +0 -68
  79. hindsight_client_api/test/test_bank_profile_response.py +0 -58
  80. hindsight_client_api/test/test_budget.py +0 -33
  81. hindsight_client_api/test/test_chunk_data.py +0 -57
  82. hindsight_client_api/test/test_chunk_include_options.py +0 -51
  83. hindsight_client_api/test/test_chunk_response.py +0 -62
  84. hindsight_client_api/test/test_create_bank_request.py +0 -53
  85. hindsight_client_api/test/test_default_api.py +0 -178
  86. hindsight_client_api/test/test_delete_response.py +0 -52
  87. hindsight_client_api/test/test_disposition_traits.py +0 -56
  88. hindsight_client_api/test/test_document_response.py +0 -64
  89. hindsight_client_api/test/test_entity_detail_response.py +0 -71
  90. hindsight_client_api/test/test_entity_include_options.py +0 -51
  91. hindsight_client_api/test/test_entity_list_item.py +0 -61
  92. hindsight_client_api/test/test_entity_list_response.py +0 -56
  93. hindsight_client_api/test/test_entity_observation_response.py +0 -53
  94. hindsight_client_api/test/test_entity_state_response.py +0 -64
  95. hindsight_client_api/test/test_graph_data_response.py +0 -82
  96. hindsight_client_api/test/test_http_validation_error.py +0 -58
  97. hindsight_client_api/test/test_include_options.py +0 -54
  98. hindsight_client_api/test/test_list_documents_response.py +0 -66
  99. hindsight_client_api/test/test_list_memory_units_response.py +0 -66
  100. hindsight_client_api/test/test_memory_item.py +0 -58
  101. hindsight_client_api/test/test_monitoring_api.py +0 -45
  102. hindsight_client_api/test/test_recall_request.py +0 -64
  103. hindsight_client_api/test/test_recall_response.py +0 -76
  104. hindsight_client_api/test/test_recall_result.py +0 -67
  105. hindsight_client_api/test/test_reflect_fact.py +0 -57
  106. hindsight_client_api/test/test_reflect_include_options.py +0 -51
  107. hindsight_client_api/test/test_reflect_request.py +0 -56
  108. hindsight_client_api/test/test_reflect_response.py +0 -55
  109. hindsight_client_api/test/test_retain_request.py +0 -57
  110. hindsight_client_api/test/test_retain_response.py +0 -58
  111. hindsight_client_api/test/test_update_disposition_request.py +0 -52
  112. hindsight_client_api/test/test_validation_error.py +0 -60
  113. hindsight_client_api/test/test_validation_error_loc_inner.py +0 -50
  114. {hindsight_client-0.1.14.dist-info → hindsight_client-0.1.16.dist-info}/WHEEL +0 -0
@@ -0,0 +1,313 @@
1
+ # hindsight_client_api.DocumentsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_document**](DocumentsApi.md#delete_document) | **DELETE** /v1/default/banks/{bank_id}/documents/{document_id} | Delete a document
8
+ [**get_chunk**](DocumentsApi.md#get_chunk) | **GET** /v1/default/chunks/{chunk_id} | Get chunk details
9
+ [**get_document**](DocumentsApi.md#get_document) | **GET** /v1/default/banks/{bank_id}/documents/{document_id} | Get document details
10
+ [**list_documents**](DocumentsApi.md#list_documents) | **GET** /v1/default/banks/{bank_id}/documents | List documents
11
+
12
+
13
+ # **delete_document**
14
+ > DeleteDocumentResponse delete_document(bank_id, document_id, authorization=authorization)
15
+
16
+ Delete a document
17
+
18
+ Delete a document and all its associated memory units and links.
19
+
20
+ This will cascade delete:
21
+ - The document itself
22
+ - All memory units extracted from this document
23
+ - All links (temporal, semantic, entity) associated with those memory units
24
+
25
+ This operation cannot be undone.
26
+
27
+ ### Example
28
+
29
+
30
+ ```python
31
+ import hindsight_client_api
32
+ from hindsight_client_api.models.delete_document_response import DeleteDocumentResponse
33
+ from hindsight_client_api.rest import ApiException
34
+ from pprint import pprint
35
+
36
+ # Defining the host is optional and defaults to http://localhost
37
+ # See configuration.py for a list of all supported configuration parameters.
38
+ configuration = hindsight_client_api.Configuration(
39
+ host = "http://localhost"
40
+ )
41
+
42
+
43
+ # Enter a context with an instance of the API client
44
+ async with hindsight_client_api.ApiClient(configuration) as api_client:
45
+ # Create an instance of the API class
46
+ api_instance = hindsight_client_api.DocumentsApi(api_client)
47
+ bank_id = 'bank_id_example' # str |
48
+ document_id = 'document_id_example' # str |
49
+ authorization = 'authorization_example' # str | (optional)
50
+
51
+ try:
52
+ # Delete a document
53
+ api_response = await api_instance.delete_document(bank_id, document_id, authorization=authorization)
54
+ print("The response of DocumentsApi->delete_document:\n")
55
+ pprint(api_response)
56
+ except Exception as e:
57
+ print("Exception when calling DocumentsApi->delete_document: %s\n" % e)
58
+ ```
59
+
60
+
61
+
62
+ ### Parameters
63
+
64
+
65
+ Name | Type | Description | Notes
66
+ ------------- | ------------- | ------------- | -------------
67
+ **bank_id** | **str**| |
68
+ **document_id** | **str**| |
69
+ **authorization** | **str**| | [optional]
70
+
71
+ ### Return type
72
+
73
+ [**DeleteDocumentResponse**](DeleteDocumentResponse.md)
74
+
75
+ ### Authorization
76
+
77
+ No authorization required
78
+
79
+ ### HTTP request headers
80
+
81
+ - **Content-Type**: Not defined
82
+ - **Accept**: application/json
83
+
84
+ ### HTTP response details
85
+
86
+ | Status code | Description | Response headers |
87
+ |-------------|-------------|------------------|
88
+ **200** | Successful Response | - |
89
+ **422** | Validation Error | - |
90
+
91
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
92
+
93
+ # **get_chunk**
94
+ > ChunkResponse get_chunk(chunk_id, authorization=authorization)
95
+
96
+ Get chunk details
97
+
98
+ Get a specific chunk by its ID
99
+
100
+ ### Example
101
+
102
+
103
+ ```python
104
+ import hindsight_client_api
105
+ from hindsight_client_api.models.chunk_response import ChunkResponse
106
+ from hindsight_client_api.rest import ApiException
107
+ from pprint import pprint
108
+
109
+ # Defining the host is optional and defaults to http://localhost
110
+ # See configuration.py for a list of all supported configuration parameters.
111
+ configuration = hindsight_client_api.Configuration(
112
+ host = "http://localhost"
113
+ )
114
+
115
+
116
+ # Enter a context with an instance of the API client
117
+ async with hindsight_client_api.ApiClient(configuration) as api_client:
118
+ # Create an instance of the API class
119
+ api_instance = hindsight_client_api.DocumentsApi(api_client)
120
+ chunk_id = 'chunk_id_example' # str |
121
+ authorization = 'authorization_example' # str | (optional)
122
+
123
+ try:
124
+ # Get chunk details
125
+ api_response = await api_instance.get_chunk(chunk_id, authorization=authorization)
126
+ print("The response of DocumentsApi->get_chunk:\n")
127
+ pprint(api_response)
128
+ except Exception as e:
129
+ print("Exception when calling DocumentsApi->get_chunk: %s\n" % e)
130
+ ```
131
+
132
+
133
+
134
+ ### Parameters
135
+
136
+
137
+ Name | Type | Description | Notes
138
+ ------------- | ------------- | ------------- | -------------
139
+ **chunk_id** | **str**| |
140
+ **authorization** | **str**| | [optional]
141
+
142
+ ### Return type
143
+
144
+ [**ChunkResponse**](ChunkResponse.md)
145
+
146
+ ### Authorization
147
+
148
+ No authorization required
149
+
150
+ ### HTTP request headers
151
+
152
+ - **Content-Type**: Not defined
153
+ - **Accept**: application/json
154
+
155
+ ### HTTP response details
156
+
157
+ | Status code | Description | Response headers |
158
+ |-------------|-------------|------------------|
159
+ **200** | Successful Response | - |
160
+ **422** | Validation Error | - |
161
+
162
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
163
+
164
+ # **get_document**
165
+ > DocumentResponse get_document(bank_id, document_id, authorization=authorization)
166
+
167
+ Get document details
168
+
169
+ Get a specific document including its original text
170
+
171
+ ### Example
172
+
173
+
174
+ ```python
175
+ import hindsight_client_api
176
+ from hindsight_client_api.models.document_response import DocumentResponse
177
+ from hindsight_client_api.rest import ApiException
178
+ from pprint import pprint
179
+
180
+ # Defining the host is optional and defaults to http://localhost
181
+ # See configuration.py for a list of all supported configuration parameters.
182
+ configuration = hindsight_client_api.Configuration(
183
+ host = "http://localhost"
184
+ )
185
+
186
+
187
+ # Enter a context with an instance of the API client
188
+ async with hindsight_client_api.ApiClient(configuration) as api_client:
189
+ # Create an instance of the API class
190
+ api_instance = hindsight_client_api.DocumentsApi(api_client)
191
+ bank_id = 'bank_id_example' # str |
192
+ document_id = 'document_id_example' # str |
193
+ authorization = 'authorization_example' # str | (optional)
194
+
195
+ try:
196
+ # Get document details
197
+ api_response = await api_instance.get_document(bank_id, document_id, authorization=authorization)
198
+ print("The response of DocumentsApi->get_document:\n")
199
+ pprint(api_response)
200
+ except Exception as e:
201
+ print("Exception when calling DocumentsApi->get_document: %s\n" % e)
202
+ ```
203
+
204
+
205
+
206
+ ### Parameters
207
+
208
+
209
+ Name | Type | Description | Notes
210
+ ------------- | ------------- | ------------- | -------------
211
+ **bank_id** | **str**| |
212
+ **document_id** | **str**| |
213
+ **authorization** | **str**| | [optional]
214
+
215
+ ### Return type
216
+
217
+ [**DocumentResponse**](DocumentResponse.md)
218
+
219
+ ### Authorization
220
+
221
+ No authorization required
222
+
223
+ ### HTTP request headers
224
+
225
+ - **Content-Type**: Not defined
226
+ - **Accept**: application/json
227
+
228
+ ### HTTP response details
229
+
230
+ | Status code | Description | Response headers |
231
+ |-------------|-------------|------------------|
232
+ **200** | Successful Response | - |
233
+ **422** | Validation Error | - |
234
+
235
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
236
+
237
+ # **list_documents**
238
+ > ListDocumentsResponse list_documents(bank_id, q=q, limit=limit, offset=offset, authorization=authorization)
239
+
240
+ List documents
241
+
242
+ List documents with pagination and optional search. Documents are the source content from which memory units are extracted.
243
+
244
+ ### Example
245
+
246
+
247
+ ```python
248
+ import hindsight_client_api
249
+ from hindsight_client_api.models.list_documents_response import ListDocumentsResponse
250
+ from hindsight_client_api.rest import ApiException
251
+ from pprint import pprint
252
+
253
+ # Defining the host is optional and defaults to http://localhost
254
+ # See configuration.py for a list of all supported configuration parameters.
255
+ configuration = hindsight_client_api.Configuration(
256
+ host = "http://localhost"
257
+ )
258
+
259
+
260
+ # Enter a context with an instance of the API client
261
+ async with hindsight_client_api.ApiClient(configuration) as api_client:
262
+ # Create an instance of the API class
263
+ api_instance = hindsight_client_api.DocumentsApi(api_client)
264
+ bank_id = 'bank_id_example' # str |
265
+ q = 'q_example' # str | (optional)
266
+ limit = 100 # int | (optional) (default to 100)
267
+ offset = 0 # int | (optional) (default to 0)
268
+ authorization = 'authorization_example' # str | (optional)
269
+
270
+ try:
271
+ # List documents
272
+ api_response = await api_instance.list_documents(bank_id, q=q, limit=limit, offset=offset, authorization=authorization)
273
+ print("The response of DocumentsApi->list_documents:\n")
274
+ pprint(api_response)
275
+ except Exception as e:
276
+ print("Exception when calling DocumentsApi->list_documents: %s\n" % e)
277
+ ```
278
+
279
+
280
+
281
+ ### Parameters
282
+
283
+
284
+ Name | Type | Description | Notes
285
+ ------------- | ------------- | ------------- | -------------
286
+ **bank_id** | **str**| |
287
+ **q** | **str**| | [optional]
288
+ **limit** | **int**| | [optional] [default to 100]
289
+ **offset** | **int**| | [optional] [default to 0]
290
+ **authorization** | **str**| | [optional]
291
+
292
+ ### Return type
293
+
294
+ [**ListDocumentsResponse**](ListDocumentsResponse.md)
295
+
296
+ ### Authorization
297
+
298
+ No authorization required
299
+
300
+ ### HTTP request headers
301
+
302
+ - **Content-Type**: Not defined
303
+ - **Accept**: application/json
304
+
305
+ ### HTTP response details
306
+
307
+ | Status code | Description | Response headers |
308
+ |-------------|-------------|------------------|
309
+ **200** | Successful Response | - |
310
+ **422** | Validation Error | - |
311
+
312
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
313
+
@@ -0,0 +1,230 @@
1
+ # hindsight_client_api.EntitiesApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_entity**](EntitiesApi.md#get_entity) | **GET** /v1/default/banks/{bank_id}/entities/{entity_id} | Get entity details
8
+ [**list_entities**](EntitiesApi.md#list_entities) | **GET** /v1/default/banks/{bank_id}/entities | List entities
9
+ [**regenerate_entity_observations**](EntitiesApi.md#regenerate_entity_observations) | **POST** /v1/default/banks/{bank_id}/entities/{entity_id}/regenerate | Regenerate entity observations
10
+
11
+
12
+ # **get_entity**
13
+ > EntityDetailResponse get_entity(bank_id, entity_id, authorization=authorization)
14
+
15
+ Get entity details
16
+
17
+ Get detailed information about an entity including observations (mental model).
18
+
19
+ ### Example
20
+
21
+
22
+ ```python
23
+ import hindsight_client_api
24
+ from hindsight_client_api.models.entity_detail_response import EntityDetailResponse
25
+ from hindsight_client_api.rest import ApiException
26
+ from pprint import pprint
27
+
28
+ # Defining the host is optional and defaults to http://localhost
29
+ # See configuration.py for a list of all supported configuration parameters.
30
+ configuration = hindsight_client_api.Configuration(
31
+ host = "http://localhost"
32
+ )
33
+
34
+
35
+ # Enter a context with an instance of the API client
36
+ async with hindsight_client_api.ApiClient(configuration) as api_client:
37
+ # Create an instance of the API class
38
+ api_instance = hindsight_client_api.EntitiesApi(api_client)
39
+ bank_id = 'bank_id_example' # str |
40
+ entity_id = 'entity_id_example' # str |
41
+ authorization = 'authorization_example' # str | (optional)
42
+
43
+ try:
44
+ # Get entity details
45
+ api_response = await api_instance.get_entity(bank_id, entity_id, authorization=authorization)
46
+ print("The response of EntitiesApi->get_entity:\n")
47
+ pprint(api_response)
48
+ except Exception as e:
49
+ print("Exception when calling EntitiesApi->get_entity: %s\n" % e)
50
+ ```
51
+
52
+
53
+
54
+ ### Parameters
55
+
56
+
57
+ Name | Type | Description | Notes
58
+ ------------- | ------------- | ------------- | -------------
59
+ **bank_id** | **str**| |
60
+ **entity_id** | **str**| |
61
+ **authorization** | **str**| | [optional]
62
+
63
+ ### Return type
64
+
65
+ [**EntityDetailResponse**](EntityDetailResponse.md)
66
+
67
+ ### Authorization
68
+
69
+ No authorization required
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: application/json
75
+
76
+ ### HTTP response details
77
+
78
+ | Status code | Description | Response headers |
79
+ |-------------|-------------|------------------|
80
+ **200** | Successful Response | - |
81
+ **422** | Validation Error | - |
82
+
83
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
84
+
85
+ # **list_entities**
86
+ > EntityListResponse list_entities(bank_id, limit=limit, authorization=authorization)
87
+
88
+ List entities
89
+
90
+ List all entities (people, organizations, etc.) known by the bank, ordered by mention count.
91
+
92
+ ### Example
93
+
94
+
95
+ ```python
96
+ import hindsight_client_api
97
+ from hindsight_client_api.models.entity_list_response import EntityListResponse
98
+ from hindsight_client_api.rest import ApiException
99
+ from pprint import pprint
100
+
101
+ # Defining the host is optional and defaults to http://localhost
102
+ # See configuration.py for a list of all supported configuration parameters.
103
+ configuration = hindsight_client_api.Configuration(
104
+ host = "http://localhost"
105
+ )
106
+
107
+
108
+ # Enter a context with an instance of the API client
109
+ async with hindsight_client_api.ApiClient(configuration) as api_client:
110
+ # Create an instance of the API class
111
+ api_instance = hindsight_client_api.EntitiesApi(api_client)
112
+ bank_id = 'bank_id_example' # str |
113
+ limit = 100 # int | Maximum number of entities to return (optional) (default to 100)
114
+ authorization = 'authorization_example' # str | (optional)
115
+
116
+ try:
117
+ # List entities
118
+ api_response = await api_instance.list_entities(bank_id, limit=limit, authorization=authorization)
119
+ print("The response of EntitiesApi->list_entities:\n")
120
+ pprint(api_response)
121
+ except Exception as e:
122
+ print("Exception when calling EntitiesApi->list_entities: %s\n" % e)
123
+ ```
124
+
125
+
126
+
127
+ ### Parameters
128
+
129
+
130
+ Name | Type | Description | Notes
131
+ ------------- | ------------- | ------------- | -------------
132
+ **bank_id** | **str**| |
133
+ **limit** | **int**| Maximum number of entities to return | [optional] [default to 100]
134
+ **authorization** | **str**| | [optional]
135
+
136
+ ### Return type
137
+
138
+ [**EntityListResponse**](EntityListResponse.md)
139
+
140
+ ### Authorization
141
+
142
+ No authorization required
143
+
144
+ ### HTTP request headers
145
+
146
+ - **Content-Type**: Not defined
147
+ - **Accept**: application/json
148
+
149
+ ### HTTP response details
150
+
151
+ | Status code | Description | Response headers |
152
+ |-------------|-------------|------------------|
153
+ **200** | Successful Response | - |
154
+ **422** | Validation Error | - |
155
+
156
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
157
+
158
+ # **regenerate_entity_observations**
159
+ > EntityDetailResponse regenerate_entity_observations(bank_id, entity_id, authorization=authorization)
160
+
161
+ Regenerate entity observations
162
+
163
+ Regenerate observations for an entity based on all facts mentioning it.
164
+
165
+ ### Example
166
+
167
+
168
+ ```python
169
+ import hindsight_client_api
170
+ from hindsight_client_api.models.entity_detail_response import EntityDetailResponse
171
+ from hindsight_client_api.rest import ApiException
172
+ from pprint import pprint
173
+
174
+ # Defining the host is optional and defaults to http://localhost
175
+ # See configuration.py for a list of all supported configuration parameters.
176
+ configuration = hindsight_client_api.Configuration(
177
+ host = "http://localhost"
178
+ )
179
+
180
+
181
+ # Enter a context with an instance of the API client
182
+ async with hindsight_client_api.ApiClient(configuration) as api_client:
183
+ # Create an instance of the API class
184
+ api_instance = hindsight_client_api.EntitiesApi(api_client)
185
+ bank_id = 'bank_id_example' # str |
186
+ entity_id = 'entity_id_example' # str |
187
+ authorization = 'authorization_example' # str | (optional)
188
+
189
+ try:
190
+ # Regenerate entity observations
191
+ api_response = await api_instance.regenerate_entity_observations(bank_id, entity_id, authorization=authorization)
192
+ print("The response of EntitiesApi->regenerate_entity_observations:\n")
193
+ pprint(api_response)
194
+ except Exception as e:
195
+ print("Exception when calling EntitiesApi->regenerate_entity_observations: %s\n" % e)
196
+ ```
197
+
198
+
199
+
200
+ ### Parameters
201
+
202
+
203
+ Name | Type | Description | Notes
204
+ ------------- | ------------- | ------------- | -------------
205
+ **bank_id** | **str**| |
206
+ **entity_id** | **str**| |
207
+ **authorization** | **str**| | [optional]
208
+
209
+ ### Return type
210
+
211
+ [**EntityDetailResponse**](EntityDetailResponse.md)
212
+
213
+ ### Authorization
214
+
215
+ No authorization required
216
+
217
+ ### HTTP request headers
218
+
219
+ - **Content-Type**: Not defined
220
+ - **Accept**: application/json
221
+
222
+ ### HTTP response details
223
+
224
+ | Status code | Description | Response headers |
225
+ |-------------|-------------|------------------|
226
+ **200** | Successful Response | - |
227
+ **422** | Validation Error | - |
228
+
229
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
230
+