hindsight-client 0.1.13__py3-none-any.whl → 0.1.15__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/hindsight_client.py +11 -10
- {hindsight_client-0.1.13.dist-info → hindsight_client-0.1.15.dist-info}/METADATA +1 -1
- hindsight_client-0.1.15.dist-info/RECORD +109 -0
- hindsight_client_api/__init__.py +21 -3
- hindsight_client_api/api/__init__.py +5 -1
- hindsight_client_api/api/banks_api.py +2045 -0
- hindsight_client_api/api/documents_api.py +1234 -0
- hindsight_client_api/api/entities_api.py +921 -0
- hindsight_client_api/api/memory_api.py +1901 -0
- hindsight_client_api/api/monitoring_api.py +1 -1
- hindsight_client_api/api/operations_api.py +610 -0
- hindsight_client_api/api_client.py +1 -1
- hindsight_client_api/configuration.py +2 -2
- hindsight_client_api/docs/BankListItem.md +2 -2
- hindsight_client_api/docs/BankStatsResponse.md +39 -0
- hindsight_client_api/docs/BanksApi.md +517 -0
- hindsight_client_api/docs/CancelOperationResponse.md +32 -0
- hindsight_client_api/docs/DeleteDocumentResponse.md +33 -0
- hindsight_client_api/docs/DeleteResponse.md +2 -0
- hindsight_client_api/docs/DocumentsApi.md +313 -0
- hindsight_client_api/docs/EntitiesApi.md +230 -0
- hindsight_client_api/docs/MemoryApi.md +499 -0
- hindsight_client_api/docs/OperationResponse.md +36 -0
- hindsight_client_api/docs/OperationsApi.md +154 -0
- hindsight_client_api/docs/OperationsListResponse.md +31 -0
- hindsight_client_api/exceptions.py +1 -1
- hindsight_client_api/models/__init__.py +6 -1
- hindsight_client_api/models/add_background_request.py +1 -1
- hindsight_client_api/models/background_response.py +1 -1
- hindsight_client_api/models/bank_list_item.py +13 -3
- hindsight_client_api/models/bank_list_response.py +1 -1
- hindsight_client_api/models/bank_profile_response.py +1 -1
- hindsight_client_api/models/bank_stats_response.py +105 -0
- hindsight_client_api/models/budget.py +1 -1
- hindsight_client_api/models/cancel_operation_response.py +91 -0
- hindsight_client_api/models/chunk_data.py +1 -1
- hindsight_client_api/models/chunk_include_options.py +1 -1
- hindsight_client_api/models/chunk_response.py +1 -1
- hindsight_client_api/models/create_bank_request.py +1 -1
- hindsight_client_api/models/delete_document_response.py +93 -0
- hindsight_client_api/models/delete_response.py +19 -5
- hindsight_client_api/models/disposition_traits.py +1 -1
- hindsight_client_api/models/document_response.py +1 -1
- hindsight_client_api/models/entity_detail_response.py +1 -1
- hindsight_client_api/models/entity_include_options.py +1 -1
- hindsight_client_api/models/entity_list_item.py +1 -1
- hindsight_client_api/models/entity_list_response.py +1 -1
- hindsight_client_api/models/entity_observation_response.py +1 -1
- hindsight_client_api/models/entity_state_response.py +1 -1
- hindsight_client_api/models/graph_data_response.py +1 -1
- hindsight_client_api/models/http_validation_error.py +1 -1
- hindsight_client_api/models/include_options.py +1 -1
- hindsight_client_api/models/list_documents_response.py +1 -1
- hindsight_client_api/models/list_memory_units_response.py +1 -1
- hindsight_client_api/models/memory_item.py +1 -1
- hindsight_client_api/models/operation_response.py +109 -0
- hindsight_client_api/models/operations_list_response.py +97 -0
- hindsight_client_api/models/recall_request.py +1 -1
- hindsight_client_api/models/recall_response.py +1 -1
- hindsight_client_api/models/recall_result.py +1 -1
- hindsight_client_api/models/reflect_fact.py +1 -1
- hindsight_client_api/models/reflect_include_options.py +1 -1
- hindsight_client_api/models/reflect_request.py +1 -1
- hindsight_client_api/models/reflect_response.py +1 -1
- hindsight_client_api/models/retain_request.py +1 -1
- hindsight_client_api/models/retain_response.py +1 -1
- hindsight_client_api/models/update_disposition_request.py +1 -1
- hindsight_client_api/models/validation_error.py +1 -1
- hindsight_client_api/models/validation_error_loc_inner.py +1 -1
- hindsight_client_api/rest.py +1 -1
- hindsight_client-0.1.13.dist-info/RECORD +0 -131
- hindsight_client_api/api/default_api.py +0 -5976
- hindsight_client_api/docs/DefaultApi.md +0 -1568
- hindsight_client_api/test/__init__.py +0 -0
- hindsight_client_api/test/test_add_background_request.py +0 -53
- hindsight_client_api/test/test_background_response.py +0 -53
- hindsight_client_api/test/test_bank_list_item.py +0 -60
- hindsight_client_api/test/test_bank_list_response.py +0 -68
- hindsight_client_api/test/test_bank_profile_response.py +0 -58
- hindsight_client_api/test/test_budget.py +0 -33
- hindsight_client_api/test/test_chunk_data.py +0 -57
- hindsight_client_api/test/test_chunk_include_options.py +0 -51
- hindsight_client_api/test/test_chunk_response.py +0 -62
- hindsight_client_api/test/test_create_bank_request.py +0 -53
- hindsight_client_api/test/test_default_api.py +0 -178
- hindsight_client_api/test/test_delete_response.py +0 -52
- hindsight_client_api/test/test_disposition_traits.py +0 -56
- hindsight_client_api/test/test_document_response.py +0 -64
- hindsight_client_api/test/test_entity_detail_response.py +0 -71
- hindsight_client_api/test/test_entity_include_options.py +0 -51
- hindsight_client_api/test/test_entity_list_item.py +0 -61
- hindsight_client_api/test/test_entity_list_response.py +0 -56
- hindsight_client_api/test/test_entity_observation_response.py +0 -53
- hindsight_client_api/test/test_entity_state_response.py +0 -64
- hindsight_client_api/test/test_graph_data_response.py +0 -82
- hindsight_client_api/test/test_http_validation_error.py +0 -58
- hindsight_client_api/test/test_include_options.py +0 -54
- hindsight_client_api/test/test_list_documents_response.py +0 -66
- hindsight_client_api/test/test_list_memory_units_response.py +0 -66
- hindsight_client_api/test/test_memory_item.py +0 -58
- hindsight_client_api/test/test_monitoring_api.py +0 -45
- hindsight_client_api/test/test_recall_request.py +0 -64
- hindsight_client_api/test/test_recall_response.py +0 -76
- hindsight_client_api/test/test_recall_result.py +0 -67
- hindsight_client_api/test/test_reflect_fact.py +0 -57
- hindsight_client_api/test/test_reflect_include_options.py +0 -51
- hindsight_client_api/test/test_reflect_request.py +0 -56
- hindsight_client_api/test/test_reflect_response.py +0 -55
- hindsight_client_api/test/test_retain_request.py +0 -57
- hindsight_client_api/test/test_retain_response.py +0 -58
- hindsight_client_api/test/test_update_disposition_request.py +0 -52
- hindsight_client_api/test/test_validation_error.py +0 -60
- hindsight_client_api/test/test_validation_error_loc_inner.py +0 -50
- {hindsight_client-0.1.13.dist-info → hindsight_client-0.1.15.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
# hindsight_client_api.BanksApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**add_bank_background**](BanksApi.md#add_bank_background) | **POST** /v1/default/banks/{bank_id}/background | Add/merge memory bank background
|
|
8
|
+
[**create_or_update_bank**](BanksApi.md#create_or_update_bank) | **PUT** /v1/default/banks/{bank_id} | Create or update memory bank
|
|
9
|
+
[**delete_bank**](BanksApi.md#delete_bank) | **DELETE** /v1/default/banks/{bank_id} | Delete memory bank
|
|
10
|
+
[**get_agent_stats**](BanksApi.md#get_agent_stats) | **GET** /v1/default/banks/{bank_id}/stats | Get statistics for memory bank
|
|
11
|
+
[**get_bank_profile**](BanksApi.md#get_bank_profile) | **GET** /v1/default/banks/{bank_id}/profile | Get memory bank profile
|
|
12
|
+
[**list_banks**](BanksApi.md#list_banks) | **GET** /v1/default/banks | List all memory banks
|
|
13
|
+
[**update_bank_disposition**](BanksApi.md#update_bank_disposition) | **PUT** /v1/default/banks/{bank_id}/profile | Update memory bank disposition
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# **add_bank_background**
|
|
17
|
+
> BackgroundResponse add_bank_background(bank_id, add_background_request, authorization=authorization)
|
|
18
|
+
|
|
19
|
+
Add/merge memory bank background
|
|
20
|
+
|
|
21
|
+
Add new background information or merge with existing. LLM intelligently resolves conflicts, normalizes to first person, and optionally infers disposition traits.
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
import hindsight_client_api
|
|
28
|
+
from hindsight_client_api.models.add_background_request import AddBackgroundRequest
|
|
29
|
+
from hindsight_client_api.models.background_response import BackgroundResponse
|
|
30
|
+
from hindsight_client_api.rest import ApiException
|
|
31
|
+
from pprint import pprint
|
|
32
|
+
|
|
33
|
+
# Defining the host is optional and defaults to http://localhost
|
|
34
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
35
|
+
configuration = hindsight_client_api.Configuration(
|
|
36
|
+
host = "http://localhost"
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# Enter a context with an instance of the API client
|
|
41
|
+
async with hindsight_client_api.ApiClient(configuration) as api_client:
|
|
42
|
+
# Create an instance of the API class
|
|
43
|
+
api_instance = hindsight_client_api.BanksApi(api_client)
|
|
44
|
+
bank_id = 'bank_id_example' # str |
|
|
45
|
+
add_background_request = hindsight_client_api.AddBackgroundRequest() # AddBackgroundRequest |
|
|
46
|
+
authorization = 'authorization_example' # str | (optional)
|
|
47
|
+
|
|
48
|
+
try:
|
|
49
|
+
# Add/merge memory bank background
|
|
50
|
+
api_response = await api_instance.add_bank_background(bank_id, add_background_request, authorization=authorization)
|
|
51
|
+
print("The response of BanksApi->add_bank_background:\n")
|
|
52
|
+
pprint(api_response)
|
|
53
|
+
except Exception as e:
|
|
54
|
+
print("Exception when calling BanksApi->add_bank_background: %s\n" % e)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Parameters
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
Name | Type | Description | Notes
|
|
63
|
+
------------- | ------------- | ------------- | -------------
|
|
64
|
+
**bank_id** | **str**| |
|
|
65
|
+
**add_background_request** | [**AddBackgroundRequest**](AddBackgroundRequest.md)| |
|
|
66
|
+
**authorization** | **str**| | [optional]
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
[**BackgroundResponse**](BackgroundResponse.md)
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
No authorization required
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: application/json
|
|
79
|
+
- **Accept**: application/json
|
|
80
|
+
|
|
81
|
+
### HTTP response details
|
|
82
|
+
|
|
83
|
+
| Status code | Description | Response headers |
|
|
84
|
+
|-------------|-------------|------------------|
|
|
85
|
+
**200** | Successful Response | - |
|
|
86
|
+
**422** | Validation Error | - |
|
|
87
|
+
|
|
88
|
+
[[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)
|
|
89
|
+
|
|
90
|
+
# **create_or_update_bank**
|
|
91
|
+
> BankProfileResponse create_or_update_bank(bank_id, create_bank_request, authorization=authorization)
|
|
92
|
+
|
|
93
|
+
Create or update memory bank
|
|
94
|
+
|
|
95
|
+
Create a new agent or update existing agent with disposition and background. Auto-fills missing fields with defaults.
|
|
96
|
+
|
|
97
|
+
### Example
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
```python
|
|
101
|
+
import hindsight_client_api
|
|
102
|
+
from hindsight_client_api.models.bank_profile_response import BankProfileResponse
|
|
103
|
+
from hindsight_client_api.models.create_bank_request import CreateBankRequest
|
|
104
|
+
from hindsight_client_api.rest import ApiException
|
|
105
|
+
from pprint import pprint
|
|
106
|
+
|
|
107
|
+
# Defining the host is optional and defaults to http://localhost
|
|
108
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
109
|
+
configuration = hindsight_client_api.Configuration(
|
|
110
|
+
host = "http://localhost"
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# Enter a context with an instance of the API client
|
|
115
|
+
async with hindsight_client_api.ApiClient(configuration) as api_client:
|
|
116
|
+
# Create an instance of the API class
|
|
117
|
+
api_instance = hindsight_client_api.BanksApi(api_client)
|
|
118
|
+
bank_id = 'bank_id_example' # str |
|
|
119
|
+
create_bank_request = hindsight_client_api.CreateBankRequest() # CreateBankRequest |
|
|
120
|
+
authorization = 'authorization_example' # str | (optional)
|
|
121
|
+
|
|
122
|
+
try:
|
|
123
|
+
# Create or update memory bank
|
|
124
|
+
api_response = await api_instance.create_or_update_bank(bank_id, create_bank_request, authorization=authorization)
|
|
125
|
+
print("The response of BanksApi->create_or_update_bank:\n")
|
|
126
|
+
pprint(api_response)
|
|
127
|
+
except Exception as e:
|
|
128
|
+
print("Exception when calling BanksApi->create_or_update_bank: %s\n" % e)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Parameters
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
Name | Type | Description | Notes
|
|
137
|
+
------------- | ------------- | ------------- | -------------
|
|
138
|
+
**bank_id** | **str**| |
|
|
139
|
+
**create_bank_request** | [**CreateBankRequest**](CreateBankRequest.md)| |
|
|
140
|
+
**authorization** | **str**| | [optional]
|
|
141
|
+
|
|
142
|
+
### Return type
|
|
143
|
+
|
|
144
|
+
[**BankProfileResponse**](BankProfileResponse.md)
|
|
145
|
+
|
|
146
|
+
### Authorization
|
|
147
|
+
|
|
148
|
+
No authorization required
|
|
149
|
+
|
|
150
|
+
### HTTP request headers
|
|
151
|
+
|
|
152
|
+
- **Content-Type**: application/json
|
|
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
|
+
# **delete_bank**
|
|
165
|
+
> DeleteResponse delete_bank(bank_id, authorization=authorization)
|
|
166
|
+
|
|
167
|
+
Delete memory bank
|
|
168
|
+
|
|
169
|
+
Delete an entire memory bank including all memories, entities, documents, and the bank profile itself. This is a destructive operation that cannot be undone.
|
|
170
|
+
|
|
171
|
+
### Example
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
```python
|
|
175
|
+
import hindsight_client_api
|
|
176
|
+
from hindsight_client_api.models.delete_response import DeleteResponse
|
|
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.BanksApi(api_client)
|
|
191
|
+
bank_id = 'bank_id_example' # str |
|
|
192
|
+
authorization = 'authorization_example' # str | (optional)
|
|
193
|
+
|
|
194
|
+
try:
|
|
195
|
+
# Delete memory bank
|
|
196
|
+
api_response = await api_instance.delete_bank(bank_id, authorization=authorization)
|
|
197
|
+
print("The response of BanksApi->delete_bank:\n")
|
|
198
|
+
pprint(api_response)
|
|
199
|
+
except Exception as e:
|
|
200
|
+
print("Exception when calling BanksApi->delete_bank: %s\n" % e)
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Parameters
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
Name | Type | Description | Notes
|
|
209
|
+
------------- | ------------- | ------------- | -------------
|
|
210
|
+
**bank_id** | **str**| |
|
|
211
|
+
**authorization** | **str**| | [optional]
|
|
212
|
+
|
|
213
|
+
### Return type
|
|
214
|
+
|
|
215
|
+
[**DeleteResponse**](DeleteResponse.md)
|
|
216
|
+
|
|
217
|
+
### Authorization
|
|
218
|
+
|
|
219
|
+
No authorization required
|
|
220
|
+
|
|
221
|
+
### HTTP request headers
|
|
222
|
+
|
|
223
|
+
- **Content-Type**: Not defined
|
|
224
|
+
- **Accept**: application/json
|
|
225
|
+
|
|
226
|
+
### HTTP response details
|
|
227
|
+
|
|
228
|
+
| Status code | Description | Response headers |
|
|
229
|
+
|-------------|-------------|------------------|
|
|
230
|
+
**200** | Successful Response | - |
|
|
231
|
+
**422** | Validation Error | - |
|
|
232
|
+
|
|
233
|
+
[[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)
|
|
234
|
+
|
|
235
|
+
# **get_agent_stats**
|
|
236
|
+
> BankStatsResponse get_agent_stats(bank_id)
|
|
237
|
+
|
|
238
|
+
Get statistics for memory bank
|
|
239
|
+
|
|
240
|
+
Get statistics about nodes and links for a specific agent
|
|
241
|
+
|
|
242
|
+
### Example
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
```python
|
|
246
|
+
import hindsight_client_api
|
|
247
|
+
from hindsight_client_api.models.bank_stats_response import BankStatsResponse
|
|
248
|
+
from hindsight_client_api.rest import ApiException
|
|
249
|
+
from pprint import pprint
|
|
250
|
+
|
|
251
|
+
# Defining the host is optional and defaults to http://localhost
|
|
252
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
253
|
+
configuration = hindsight_client_api.Configuration(
|
|
254
|
+
host = "http://localhost"
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
# Enter a context with an instance of the API client
|
|
259
|
+
async with hindsight_client_api.ApiClient(configuration) as api_client:
|
|
260
|
+
# Create an instance of the API class
|
|
261
|
+
api_instance = hindsight_client_api.BanksApi(api_client)
|
|
262
|
+
bank_id = 'bank_id_example' # str |
|
|
263
|
+
|
|
264
|
+
try:
|
|
265
|
+
# Get statistics for memory bank
|
|
266
|
+
api_response = await api_instance.get_agent_stats(bank_id)
|
|
267
|
+
print("The response of BanksApi->get_agent_stats:\n")
|
|
268
|
+
pprint(api_response)
|
|
269
|
+
except Exception as e:
|
|
270
|
+
print("Exception when calling BanksApi->get_agent_stats: %s\n" % e)
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### Parameters
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
Name | Type | Description | Notes
|
|
279
|
+
------------- | ------------- | ------------- | -------------
|
|
280
|
+
**bank_id** | **str**| |
|
|
281
|
+
|
|
282
|
+
### Return type
|
|
283
|
+
|
|
284
|
+
[**BankStatsResponse**](BankStatsResponse.md)
|
|
285
|
+
|
|
286
|
+
### Authorization
|
|
287
|
+
|
|
288
|
+
No authorization required
|
|
289
|
+
|
|
290
|
+
### HTTP request headers
|
|
291
|
+
|
|
292
|
+
- **Content-Type**: Not defined
|
|
293
|
+
- **Accept**: application/json
|
|
294
|
+
|
|
295
|
+
### HTTP response details
|
|
296
|
+
|
|
297
|
+
| Status code | Description | Response headers |
|
|
298
|
+
|-------------|-------------|------------------|
|
|
299
|
+
**200** | Successful Response | - |
|
|
300
|
+
**422** | Validation Error | - |
|
|
301
|
+
|
|
302
|
+
[[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)
|
|
303
|
+
|
|
304
|
+
# **get_bank_profile**
|
|
305
|
+
> BankProfileResponse get_bank_profile(bank_id, authorization=authorization)
|
|
306
|
+
|
|
307
|
+
Get memory bank profile
|
|
308
|
+
|
|
309
|
+
Get disposition traits and background for a memory bank. Auto-creates agent with defaults if not exists.
|
|
310
|
+
|
|
311
|
+
### Example
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
```python
|
|
315
|
+
import hindsight_client_api
|
|
316
|
+
from hindsight_client_api.models.bank_profile_response import BankProfileResponse
|
|
317
|
+
from hindsight_client_api.rest import ApiException
|
|
318
|
+
from pprint import pprint
|
|
319
|
+
|
|
320
|
+
# Defining the host is optional and defaults to http://localhost
|
|
321
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
322
|
+
configuration = hindsight_client_api.Configuration(
|
|
323
|
+
host = "http://localhost"
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
# Enter a context with an instance of the API client
|
|
328
|
+
async with hindsight_client_api.ApiClient(configuration) as api_client:
|
|
329
|
+
# Create an instance of the API class
|
|
330
|
+
api_instance = hindsight_client_api.BanksApi(api_client)
|
|
331
|
+
bank_id = 'bank_id_example' # str |
|
|
332
|
+
authorization = 'authorization_example' # str | (optional)
|
|
333
|
+
|
|
334
|
+
try:
|
|
335
|
+
# Get memory bank profile
|
|
336
|
+
api_response = await api_instance.get_bank_profile(bank_id, authorization=authorization)
|
|
337
|
+
print("The response of BanksApi->get_bank_profile:\n")
|
|
338
|
+
pprint(api_response)
|
|
339
|
+
except Exception as e:
|
|
340
|
+
print("Exception when calling BanksApi->get_bank_profile: %s\n" % e)
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
### Parameters
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
Name | Type | Description | Notes
|
|
349
|
+
------------- | ------------- | ------------- | -------------
|
|
350
|
+
**bank_id** | **str**| |
|
|
351
|
+
**authorization** | **str**| | [optional]
|
|
352
|
+
|
|
353
|
+
### Return type
|
|
354
|
+
|
|
355
|
+
[**BankProfileResponse**](BankProfileResponse.md)
|
|
356
|
+
|
|
357
|
+
### Authorization
|
|
358
|
+
|
|
359
|
+
No authorization required
|
|
360
|
+
|
|
361
|
+
### HTTP request headers
|
|
362
|
+
|
|
363
|
+
- **Content-Type**: Not defined
|
|
364
|
+
- **Accept**: application/json
|
|
365
|
+
|
|
366
|
+
### HTTP response details
|
|
367
|
+
|
|
368
|
+
| Status code | Description | Response headers |
|
|
369
|
+
|-------------|-------------|------------------|
|
|
370
|
+
**200** | Successful Response | - |
|
|
371
|
+
**422** | Validation Error | - |
|
|
372
|
+
|
|
373
|
+
[[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)
|
|
374
|
+
|
|
375
|
+
# **list_banks**
|
|
376
|
+
> BankListResponse list_banks(authorization=authorization)
|
|
377
|
+
|
|
378
|
+
List all memory banks
|
|
379
|
+
|
|
380
|
+
Get a list of all agents with their profiles
|
|
381
|
+
|
|
382
|
+
### Example
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
```python
|
|
386
|
+
import hindsight_client_api
|
|
387
|
+
from hindsight_client_api.models.bank_list_response import BankListResponse
|
|
388
|
+
from hindsight_client_api.rest import ApiException
|
|
389
|
+
from pprint import pprint
|
|
390
|
+
|
|
391
|
+
# Defining the host is optional and defaults to http://localhost
|
|
392
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
393
|
+
configuration = hindsight_client_api.Configuration(
|
|
394
|
+
host = "http://localhost"
|
|
395
|
+
)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
# Enter a context with an instance of the API client
|
|
399
|
+
async with hindsight_client_api.ApiClient(configuration) as api_client:
|
|
400
|
+
# Create an instance of the API class
|
|
401
|
+
api_instance = hindsight_client_api.BanksApi(api_client)
|
|
402
|
+
authorization = 'authorization_example' # str | (optional)
|
|
403
|
+
|
|
404
|
+
try:
|
|
405
|
+
# List all memory banks
|
|
406
|
+
api_response = await api_instance.list_banks(authorization=authorization)
|
|
407
|
+
print("The response of BanksApi->list_banks:\n")
|
|
408
|
+
pprint(api_response)
|
|
409
|
+
except Exception as e:
|
|
410
|
+
print("Exception when calling BanksApi->list_banks: %s\n" % e)
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
### Parameters
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
Name | Type | Description | Notes
|
|
419
|
+
------------- | ------------- | ------------- | -------------
|
|
420
|
+
**authorization** | **str**| | [optional]
|
|
421
|
+
|
|
422
|
+
### Return type
|
|
423
|
+
|
|
424
|
+
[**BankListResponse**](BankListResponse.md)
|
|
425
|
+
|
|
426
|
+
### Authorization
|
|
427
|
+
|
|
428
|
+
No authorization required
|
|
429
|
+
|
|
430
|
+
### HTTP request headers
|
|
431
|
+
|
|
432
|
+
- **Content-Type**: Not defined
|
|
433
|
+
- **Accept**: application/json
|
|
434
|
+
|
|
435
|
+
### HTTP response details
|
|
436
|
+
|
|
437
|
+
| Status code | Description | Response headers |
|
|
438
|
+
|-------------|-------------|------------------|
|
|
439
|
+
**200** | Successful Response | - |
|
|
440
|
+
**422** | Validation Error | - |
|
|
441
|
+
|
|
442
|
+
[[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)
|
|
443
|
+
|
|
444
|
+
# **update_bank_disposition**
|
|
445
|
+
> BankProfileResponse update_bank_disposition(bank_id, update_disposition_request, authorization=authorization)
|
|
446
|
+
|
|
447
|
+
Update memory bank disposition
|
|
448
|
+
|
|
449
|
+
Update bank's disposition traits (skepticism, literalism, empathy)
|
|
450
|
+
|
|
451
|
+
### Example
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
```python
|
|
455
|
+
import hindsight_client_api
|
|
456
|
+
from hindsight_client_api.models.bank_profile_response import BankProfileResponse
|
|
457
|
+
from hindsight_client_api.models.update_disposition_request import UpdateDispositionRequest
|
|
458
|
+
from hindsight_client_api.rest import ApiException
|
|
459
|
+
from pprint import pprint
|
|
460
|
+
|
|
461
|
+
# Defining the host is optional and defaults to http://localhost
|
|
462
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
463
|
+
configuration = hindsight_client_api.Configuration(
|
|
464
|
+
host = "http://localhost"
|
|
465
|
+
)
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
# Enter a context with an instance of the API client
|
|
469
|
+
async with hindsight_client_api.ApiClient(configuration) as api_client:
|
|
470
|
+
# Create an instance of the API class
|
|
471
|
+
api_instance = hindsight_client_api.BanksApi(api_client)
|
|
472
|
+
bank_id = 'bank_id_example' # str |
|
|
473
|
+
update_disposition_request = hindsight_client_api.UpdateDispositionRequest() # UpdateDispositionRequest |
|
|
474
|
+
authorization = 'authorization_example' # str | (optional)
|
|
475
|
+
|
|
476
|
+
try:
|
|
477
|
+
# Update memory bank disposition
|
|
478
|
+
api_response = await api_instance.update_bank_disposition(bank_id, update_disposition_request, authorization=authorization)
|
|
479
|
+
print("The response of BanksApi->update_bank_disposition:\n")
|
|
480
|
+
pprint(api_response)
|
|
481
|
+
except Exception as e:
|
|
482
|
+
print("Exception when calling BanksApi->update_bank_disposition: %s\n" % e)
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
### Parameters
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
Name | Type | Description | Notes
|
|
491
|
+
------------- | ------------- | ------------- | -------------
|
|
492
|
+
**bank_id** | **str**| |
|
|
493
|
+
**update_disposition_request** | [**UpdateDispositionRequest**](UpdateDispositionRequest.md)| |
|
|
494
|
+
**authorization** | **str**| | [optional]
|
|
495
|
+
|
|
496
|
+
### Return type
|
|
497
|
+
|
|
498
|
+
[**BankProfileResponse**](BankProfileResponse.md)
|
|
499
|
+
|
|
500
|
+
### Authorization
|
|
501
|
+
|
|
502
|
+
No authorization required
|
|
503
|
+
|
|
504
|
+
### HTTP request headers
|
|
505
|
+
|
|
506
|
+
- **Content-Type**: application/json
|
|
507
|
+
- **Accept**: application/json
|
|
508
|
+
|
|
509
|
+
### HTTP response details
|
|
510
|
+
|
|
511
|
+
| Status code | Description | Response headers |
|
|
512
|
+
|-------------|-------------|------------------|
|
|
513
|
+
**200** | Successful Response | - |
|
|
514
|
+
**422** | Validation Error | - |
|
|
515
|
+
|
|
516
|
+
[[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)
|
|
517
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# CancelOperationResponse
|
|
2
|
+
|
|
3
|
+
Response model for cancel operation endpoint.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**success** | **bool** | |
|
|
10
|
+
**message** | **str** | |
|
|
11
|
+
**operation_id** | **str** | |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from hindsight_client_api.models.cancel_operation_response import CancelOperationResponse
|
|
17
|
+
|
|
18
|
+
# TODO update the JSON string below
|
|
19
|
+
json = "{}"
|
|
20
|
+
# create an instance of CancelOperationResponse from a JSON string
|
|
21
|
+
cancel_operation_response_instance = CancelOperationResponse.from_json(json)
|
|
22
|
+
# print the JSON string representation of the object
|
|
23
|
+
print(CancelOperationResponse.to_json())
|
|
24
|
+
|
|
25
|
+
# convert the object into a dict
|
|
26
|
+
cancel_operation_response_dict = cancel_operation_response_instance.to_dict()
|
|
27
|
+
# create an instance of CancelOperationResponse from a dict
|
|
28
|
+
cancel_operation_response_from_dict = CancelOperationResponse.from_dict(cancel_operation_response_dict)
|
|
29
|
+
```
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# DeleteDocumentResponse
|
|
2
|
+
|
|
3
|
+
Response model for delete document endpoint.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**success** | **bool** | |
|
|
10
|
+
**message** | **str** | |
|
|
11
|
+
**document_id** | **str** | |
|
|
12
|
+
**memory_units_deleted** | **int** | |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
from hindsight_client_api.models.delete_document_response import DeleteDocumentResponse
|
|
18
|
+
|
|
19
|
+
# TODO update the JSON string below
|
|
20
|
+
json = "{}"
|
|
21
|
+
# create an instance of DeleteDocumentResponse from a JSON string
|
|
22
|
+
delete_document_response_instance = DeleteDocumentResponse.from_json(json)
|
|
23
|
+
# print the JSON string representation of the object
|
|
24
|
+
print(DeleteDocumentResponse.to_json())
|
|
25
|
+
|
|
26
|
+
# convert the object into a dict
|
|
27
|
+
delete_document_response_dict = delete_document_response_instance.to_dict()
|
|
28
|
+
# create an instance of DeleteDocumentResponse from a dict
|
|
29
|
+
delete_document_response_from_dict = DeleteDocumentResponse.from_dict(delete_document_response_dict)
|
|
30
|
+
```
|
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
32
|
+
|
|
33
|
+
|
|
@@ -7,6 +7,8 @@ Response model for delete operations.
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**success** | **bool** | |
|
|
10
|
+
**message** | **str** | | [optional]
|
|
11
|
+
**deleted_count** | **int** | | [optional]
|
|
10
12
|
|
|
11
13
|
## Example
|
|
12
14
|
|