hindsight-client 0.0.13__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/__init__.py +26 -0
- hindsight_client/hindsight_client.py +432 -0
- hindsight_client-0.0.13.dist-info/METADATA +56 -0
- hindsight_client-0.0.13.dist-info/RECORD +134 -0
- hindsight_client-0.0.13.dist-info/WHEEL +4 -0
- hindsight_client_api/__init__.py +126 -0
- hindsight_client_api/api/__init__.py +6 -0
- hindsight_client_api/api/default_api.py +5976 -0
- hindsight_client_api/api/monitoring_api.py +281 -0
- hindsight_client_api/api_client.py +807 -0
- hindsight_client_api/api_response.py +21 -0
- hindsight_client_api/configuration.py +572 -0
- hindsight_client_api/docs/AddBackgroundRequest.md +31 -0
- hindsight_client_api/docs/BackgroundResponse.md +31 -0
- hindsight_client_api/docs/BankListItem.md +35 -0
- hindsight_client_api/docs/BankListResponse.md +30 -0
- hindsight_client_api/docs/BankProfileResponse.md +33 -0
- hindsight_client_api/docs/Budget.md +15 -0
- hindsight_client_api/docs/ChunkData.md +33 -0
- hindsight_client_api/docs/ChunkIncludeOptions.md +30 -0
- hindsight_client_api/docs/ChunkResponse.md +35 -0
- hindsight_client_api/docs/CreateBankRequest.md +32 -0
- hindsight_client_api/docs/DefaultApi.md +1569 -0
- hindsight_client_api/docs/DeleteResponse.md +30 -0
- hindsight_client_api/docs/DocumentResponse.md +36 -0
- hindsight_client_api/docs/EntityDetailResponse.md +36 -0
- hindsight_client_api/docs/EntityIncludeOptions.md +30 -0
- hindsight_client_api/docs/EntityListItem.md +35 -0
- hindsight_client_api/docs/EntityListResponse.md +30 -0
- hindsight_client_api/docs/EntityObservationResponse.md +31 -0
- hindsight_client_api/docs/EntityStateResponse.md +32 -0
- hindsight_client_api/docs/GraphDataResponse.md +33 -0
- hindsight_client_api/docs/HTTPValidationError.md +29 -0
- hindsight_client_api/docs/IncludeOptions.md +31 -0
- hindsight_client_api/docs/ListDocumentsResponse.md +33 -0
- hindsight_client_api/docs/ListMemoryUnitsResponse.md +33 -0
- hindsight_client_api/docs/MemoryItem.md +34 -0
- hindsight_client_api/docs/MetadataFilter.md +32 -0
- hindsight_client_api/docs/MonitoringApi.md +72 -0
- hindsight_client_api/docs/PersonalityTraits.md +35 -0
- hindsight_client_api/docs/RecallRequest.md +37 -0
- hindsight_client_api/docs/RecallResponse.md +33 -0
- hindsight_client_api/docs/RecallResult.md +40 -0
- hindsight_client_api/docs/ReflectFact.md +35 -0
- hindsight_client_api/docs/ReflectIncludeOptions.md +30 -0
- hindsight_client_api/docs/ReflectRequest.md +34 -0
- hindsight_client_api/docs/ReflectResponse.md +31 -0
- hindsight_client_api/docs/RetainRequest.md +31 -0
- hindsight_client_api/docs/RetainResponse.md +33 -0
- hindsight_client_api/docs/UpdatePersonalityRequest.md +30 -0
- hindsight_client_api/docs/ValidationError.md +31 -0
- hindsight_client_api/docs/ValidationErrorLocInner.md +28 -0
- hindsight_client_api/exceptions.py +219 -0
- hindsight_client_api/models/__init__.py +54 -0
- hindsight_client_api/models/add_background_request.py +89 -0
- hindsight_client_api/models/background_response.py +98 -0
- hindsight_client_api/models/bank_list_item.py +111 -0
- hindsight_client_api/models/bank_list_response.py +95 -0
- hindsight_client_api/models/bank_profile_response.py +97 -0
- hindsight_client_api/models/budget.py +38 -0
- hindsight_client_api/models/chunk_data.py +93 -0
- hindsight_client_api/models/chunk_include_options.py +87 -0
- hindsight_client_api/models/chunk_response.py +97 -0
- hindsight_client_api/models/create_bank_request.py +110 -0
- hindsight_client_api/models/delete_response.py +87 -0
- hindsight_client_api/models/document_response.py +104 -0
- hindsight_client_api/models/entity_detail_response.py +122 -0
- hindsight_client_api/models/entity_include_options.py +87 -0
- hindsight_client_api/models/entity_list_item.py +112 -0
- hindsight_client_api/models/entity_list_response.py +95 -0
- hindsight_client_api/models/entity_observation_response.py +94 -0
- hindsight_client_api/models/entity_state_response.py +99 -0
- hindsight_client_api/models/graph_data_response.py +93 -0
- hindsight_client_api/models/http_validation_error.py +95 -0
- hindsight_client_api/models/include_options.py +107 -0
- hindsight_client_api/models/list_documents_response.py +93 -0
- hindsight_client_api/models/list_memory_units_response.py +93 -0
- hindsight_client_api/models/memory_item.py +116 -0
- hindsight_client_api/models/metadata_filter.py +96 -0
- hindsight_client_api/models/personality_traits.py +98 -0
- hindsight_client_api/models/recall_request.py +129 -0
- hindsight_client_api/models/recall_response.py +142 -0
- hindsight_client_api/models/recall_result.py +152 -0
- hindsight_client_api/models/reflect_fact.py +122 -0
- hindsight_client_api/models/reflect_include_options.py +87 -0
- hindsight_client_api/models/reflect_request.py +118 -0
- hindsight_client_api/models/reflect_response.py +97 -0
- hindsight_client_api/models/retain_request.py +97 -0
- hindsight_client_api/models/retain_response.py +93 -0
- hindsight_client_api/models/update_personality_request.py +91 -0
- hindsight_client_api/models/validation_error.py +99 -0
- hindsight_client_api/models/validation_error_loc_inner.py +138 -0
- hindsight_client_api/rest.py +213 -0
- hindsight_client_api/test/__init__.py +0 -0
- hindsight_client_api/test/test_add_background_request.py +53 -0
- hindsight_client_api/test/test_background_response.py +53 -0
- hindsight_client_api/test/test_bank_list_item.py +60 -0
- hindsight_client_api/test/test_bank_list_response.py +68 -0
- hindsight_client_api/test/test_bank_profile_response.py +58 -0
- hindsight_client_api/test/test_budget.py +33 -0
- hindsight_client_api/test/test_chunk_data.py +57 -0
- hindsight_client_api/test/test_chunk_include_options.py +51 -0
- hindsight_client_api/test/test_chunk_response.py +62 -0
- hindsight_client_api/test/test_create_bank_request.py +53 -0
- hindsight_client_api/test/test_default_api.py +178 -0
- hindsight_client_api/test/test_delete_response.py +52 -0
- hindsight_client_api/test/test_document_response.py +64 -0
- hindsight_client_api/test/test_entity_detail_response.py +71 -0
- hindsight_client_api/test/test_entity_include_options.py +51 -0
- hindsight_client_api/test/test_entity_list_item.py +61 -0
- hindsight_client_api/test/test_entity_list_response.py +56 -0
- hindsight_client_api/test/test_entity_observation_response.py +53 -0
- hindsight_client_api/test/test_entity_state_response.py +64 -0
- hindsight_client_api/test/test_graph_data_response.py +82 -0
- hindsight_client_api/test/test_http_validation_error.py +58 -0
- hindsight_client_api/test/test_include_options.py +54 -0
- hindsight_client_api/test/test_list_documents_response.py +66 -0
- hindsight_client_api/test/test_list_memory_units_response.py +66 -0
- hindsight_client_api/test/test_memory_item.py +58 -0
- hindsight_client_api/test/test_metadata_filter.py +54 -0
- hindsight_client_api/test/test_monitoring_api.py +38 -0
- hindsight_client_api/test/test_personality_traits.py +62 -0
- hindsight_client_api/test/test_recall_request.py +67 -0
- hindsight_client_api/test/test_recall_response.py +76 -0
- hindsight_client_api/test/test_recall_result.py +67 -0
- hindsight_client_api/test/test_reflect_fact.py +57 -0
- hindsight_client_api/test/test_reflect_include_options.py +51 -0
- hindsight_client_api/test/test_reflect_request.py +59 -0
- hindsight_client_api/test/test_reflect_response.py +55 -0
- hindsight_client_api/test/test_retain_request.py +57 -0
- hindsight_client_api/test/test_retain_response.py +58 -0
- hindsight_client_api/test/test_update_personality_request.py +52 -0
- hindsight_client_api/test/test_validation_error.py +60 -0
- hindsight_client_api/test/test_validation_error_loc_inner.py +50 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# BankListResponse
|
|
2
|
+
|
|
3
|
+
Response model for listing all banks.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**banks** | [**List[BankListItem]**](BankListItem.md) | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from hindsight_client_api.models.bank_list_response import BankListResponse
|
|
15
|
+
|
|
16
|
+
# TODO update the JSON string below
|
|
17
|
+
json = "{}"
|
|
18
|
+
# create an instance of BankListResponse from a JSON string
|
|
19
|
+
bank_list_response_instance = BankListResponse.from_json(json)
|
|
20
|
+
# print the JSON string representation of the object
|
|
21
|
+
print(BankListResponse.to_json())
|
|
22
|
+
|
|
23
|
+
# convert the object into a dict
|
|
24
|
+
bank_list_response_dict = bank_list_response_instance.to_dict()
|
|
25
|
+
# create an instance of BankListResponse from a dict
|
|
26
|
+
bank_list_response_from_dict = BankListResponse.from_dict(bank_list_response_dict)
|
|
27
|
+
```
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
29
|
+
|
|
30
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# BankProfileResponse
|
|
2
|
+
|
|
3
|
+
Response model for bank profile.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**bank_id** | **str** | |
|
|
10
|
+
**name** | **str** | |
|
|
11
|
+
**personality** | [**PersonalityTraits**](PersonalityTraits.md) | |
|
|
12
|
+
**background** | **str** | |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
from hindsight_client_api.models.bank_profile_response import BankProfileResponse
|
|
18
|
+
|
|
19
|
+
# TODO update the JSON string below
|
|
20
|
+
json = "{}"
|
|
21
|
+
# create an instance of BankProfileResponse from a JSON string
|
|
22
|
+
bank_profile_response_instance = BankProfileResponse.from_json(json)
|
|
23
|
+
# print the JSON string representation of the object
|
|
24
|
+
print(BankProfileResponse.to_json())
|
|
25
|
+
|
|
26
|
+
# convert the object into a dict
|
|
27
|
+
bank_profile_response_dict = bank_profile_response_instance.to_dict()
|
|
28
|
+
# create an instance of BankProfileResponse from a dict
|
|
29
|
+
bank_profile_response_from_dict = BankProfileResponse.from_dict(bank_profile_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
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Budget
|
|
2
|
+
|
|
3
|
+
Budget levels for recall/reflect operations.
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `LOW` (value: `'low'`)
|
|
8
|
+
|
|
9
|
+
* `MID` (value: `'mid'`)
|
|
10
|
+
|
|
11
|
+
* `HIGH` (value: `'high'`)
|
|
12
|
+
|
|
13
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# ChunkData
|
|
2
|
+
|
|
3
|
+
Chunk data for a single chunk.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **str** | |
|
|
10
|
+
**text** | **str** | |
|
|
11
|
+
**chunk_index** | **int** | |
|
|
12
|
+
**truncated** | **bool** | Whether the chunk text was truncated due to token limits | [optional] [default to False]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
from hindsight_client_api.models.chunk_data import ChunkData
|
|
18
|
+
|
|
19
|
+
# TODO update the JSON string below
|
|
20
|
+
json = "{}"
|
|
21
|
+
# create an instance of ChunkData from a JSON string
|
|
22
|
+
chunk_data_instance = ChunkData.from_json(json)
|
|
23
|
+
# print the JSON string representation of the object
|
|
24
|
+
print(ChunkData.to_json())
|
|
25
|
+
|
|
26
|
+
# convert the object into a dict
|
|
27
|
+
chunk_data_dict = chunk_data_instance.to_dict()
|
|
28
|
+
# create an instance of ChunkData from a dict
|
|
29
|
+
chunk_data_from_dict = ChunkData.from_dict(chunk_data_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
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ChunkIncludeOptions
|
|
2
|
+
|
|
3
|
+
Options for including chunks in recall results.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**max_tokens** | **int** | Maximum tokens for chunks (chunks may be truncated) | [optional] [default to 8192]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from hindsight_client_api.models.chunk_include_options import ChunkIncludeOptions
|
|
15
|
+
|
|
16
|
+
# TODO update the JSON string below
|
|
17
|
+
json = "{}"
|
|
18
|
+
# create an instance of ChunkIncludeOptions from a JSON string
|
|
19
|
+
chunk_include_options_instance = ChunkIncludeOptions.from_json(json)
|
|
20
|
+
# print the JSON string representation of the object
|
|
21
|
+
print(ChunkIncludeOptions.to_json())
|
|
22
|
+
|
|
23
|
+
# convert the object into a dict
|
|
24
|
+
chunk_include_options_dict = chunk_include_options_instance.to_dict()
|
|
25
|
+
# create an instance of ChunkIncludeOptions from a dict
|
|
26
|
+
chunk_include_options_from_dict = ChunkIncludeOptions.from_dict(chunk_include_options_dict)
|
|
27
|
+
```
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
29
|
+
|
|
30
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ChunkResponse
|
|
2
|
+
|
|
3
|
+
Response model for get chunk endpoint.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**chunk_id** | **str** | |
|
|
10
|
+
**document_id** | **str** | |
|
|
11
|
+
**bank_id** | **str** | |
|
|
12
|
+
**chunk_index** | **int** | |
|
|
13
|
+
**chunk_text** | **str** | |
|
|
14
|
+
**created_at** | **str** | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
from hindsight_client_api.models.chunk_response import ChunkResponse
|
|
20
|
+
|
|
21
|
+
# TODO update the JSON string below
|
|
22
|
+
json = "{}"
|
|
23
|
+
# create an instance of ChunkResponse from a JSON string
|
|
24
|
+
chunk_response_instance = ChunkResponse.from_json(json)
|
|
25
|
+
# print the JSON string representation of the object
|
|
26
|
+
print(ChunkResponse.to_json())
|
|
27
|
+
|
|
28
|
+
# convert the object into a dict
|
|
29
|
+
chunk_response_dict = chunk_response_instance.to_dict()
|
|
30
|
+
# create an instance of ChunkResponse from a dict
|
|
31
|
+
chunk_response_from_dict = ChunkResponse.from_dict(chunk_response_dict)
|
|
32
|
+
```
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# CreateBankRequest
|
|
2
|
+
|
|
3
|
+
Request model for creating/updating a bank.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **str** | | [optional]
|
|
10
|
+
**personality** | [**PersonalityTraits**](PersonalityTraits.md) | | [optional]
|
|
11
|
+
**background** | **str** | | [optional]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from hindsight_client_api.models.create_bank_request import CreateBankRequest
|
|
17
|
+
|
|
18
|
+
# TODO update the JSON string below
|
|
19
|
+
json = "{}"
|
|
20
|
+
# create an instance of CreateBankRequest from a JSON string
|
|
21
|
+
create_bank_request_instance = CreateBankRequest.from_json(json)
|
|
22
|
+
# print the JSON string representation of the object
|
|
23
|
+
print(CreateBankRequest.to_json())
|
|
24
|
+
|
|
25
|
+
# convert the object into a dict
|
|
26
|
+
create_bank_request_dict = create_bank_request_instance.to_dict()
|
|
27
|
+
# create an instance of CreateBankRequest from a dict
|
|
28
|
+
create_bank_request_from_dict = CreateBankRequest.from_dict(create_bank_request_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
|
+
|