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,67 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.recall_request import RecallRequest
|
|
18
|
+
|
|
19
|
+
class TestRecallRequest(unittest.TestCase):
|
|
20
|
+
"""RecallRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> RecallRequest:
|
|
29
|
+
"""Test RecallRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `RecallRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = RecallRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return RecallRequest(
|
|
38
|
+
query = '',
|
|
39
|
+
types = [
|
|
40
|
+
''
|
|
41
|
+
],
|
|
42
|
+
budget = 'low',
|
|
43
|
+
max_tokens = 56,
|
|
44
|
+
trace = True,
|
|
45
|
+
query_timestamp = '',
|
|
46
|
+
filters = [
|
|
47
|
+
{key=source, match_unset=true, value=slack}
|
|
48
|
+
],
|
|
49
|
+
include = hindsight_client_api.models.include_options.IncludeOptions(
|
|
50
|
+
entities = hindsight_client_api.models.entity_include_options.EntityIncludeOptions(
|
|
51
|
+
max_tokens = 56, ),
|
|
52
|
+
chunks = hindsight_client_api.models.chunk_include_options.ChunkIncludeOptions(
|
|
53
|
+
max_tokens = 56, ), )
|
|
54
|
+
)
|
|
55
|
+
else:
|
|
56
|
+
return RecallRequest(
|
|
57
|
+
query = '',
|
|
58
|
+
)
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
def testRecallRequest(self):
|
|
62
|
+
"""Test RecallRequest"""
|
|
63
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
64
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
65
|
+
|
|
66
|
+
if __name__ == '__main__':
|
|
67
|
+
unittest.main()
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.recall_response import RecallResponse
|
|
18
|
+
|
|
19
|
+
class TestRecallResponse(unittest.TestCase):
|
|
20
|
+
"""RecallResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> RecallResponse:
|
|
29
|
+
"""Test RecallResponse
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `RecallResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = RecallResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return RecallResponse(
|
|
38
|
+
results = [
|
|
39
|
+
{chunk_id=456e7890-e12b-34d5-a678-901234567890, context=work info, document_id=session_abc123, entities=[Alice, Google], id=123e4567-e89b-12d3-a456-426614174000, mentioned_at=2024-01-15T10:30:00Z, metadata={source=slack}, occurred_end=2024-01-15T10:30:00Z, occurred_start=2024-01-15T10:30:00Z, text=Alice works at Google on the AI team, type=world}
|
|
40
|
+
],
|
|
41
|
+
trace = {
|
|
42
|
+
'key' : null
|
|
43
|
+
},
|
|
44
|
+
entities = {
|
|
45
|
+
'key' : hindsight_client_api.models.entity_state_response.EntityStateResponse(
|
|
46
|
+
entity_id = '',
|
|
47
|
+
canonical_name = '',
|
|
48
|
+
observations = [
|
|
49
|
+
hindsight_client_api.models.entity_observation_response.EntityObservationResponse(
|
|
50
|
+
text = '',
|
|
51
|
+
mentioned_at = '', )
|
|
52
|
+
], )
|
|
53
|
+
},
|
|
54
|
+
chunks = {
|
|
55
|
+
'key' : hindsight_client_api.models.chunk_data.ChunkData(
|
|
56
|
+
id = '',
|
|
57
|
+
text = '',
|
|
58
|
+
chunk_index = 56,
|
|
59
|
+
truncated = True, )
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
else:
|
|
63
|
+
return RecallResponse(
|
|
64
|
+
results = [
|
|
65
|
+
{chunk_id=456e7890-e12b-34d5-a678-901234567890, context=work info, document_id=session_abc123, entities=[Alice, Google], id=123e4567-e89b-12d3-a456-426614174000, mentioned_at=2024-01-15T10:30:00Z, metadata={source=slack}, occurred_end=2024-01-15T10:30:00Z, occurred_start=2024-01-15T10:30:00Z, text=Alice works at Google on the AI team, type=world}
|
|
66
|
+
],
|
|
67
|
+
)
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
def testRecallResponse(self):
|
|
71
|
+
"""Test RecallResponse"""
|
|
72
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
73
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
74
|
+
|
|
75
|
+
if __name__ == '__main__':
|
|
76
|
+
unittest.main()
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.recall_result import RecallResult
|
|
18
|
+
|
|
19
|
+
class TestRecallResult(unittest.TestCase):
|
|
20
|
+
"""RecallResult unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> RecallResult:
|
|
29
|
+
"""Test RecallResult
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `RecallResult`
|
|
34
|
+
"""
|
|
35
|
+
model = RecallResult()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return RecallResult(
|
|
38
|
+
id = '',
|
|
39
|
+
text = '',
|
|
40
|
+
type = '',
|
|
41
|
+
entities = [
|
|
42
|
+
''
|
|
43
|
+
],
|
|
44
|
+
context = '',
|
|
45
|
+
occurred_start = '',
|
|
46
|
+
occurred_end = '',
|
|
47
|
+
mentioned_at = '',
|
|
48
|
+
document_id = '',
|
|
49
|
+
metadata = {
|
|
50
|
+
'key' : ''
|
|
51
|
+
},
|
|
52
|
+
chunk_id = ''
|
|
53
|
+
)
|
|
54
|
+
else:
|
|
55
|
+
return RecallResult(
|
|
56
|
+
id = '',
|
|
57
|
+
text = '',
|
|
58
|
+
)
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
def testRecallResult(self):
|
|
62
|
+
"""Test RecallResult"""
|
|
63
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
64
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
65
|
+
|
|
66
|
+
if __name__ == '__main__':
|
|
67
|
+
unittest.main()
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.reflect_fact import ReflectFact
|
|
18
|
+
|
|
19
|
+
class TestReflectFact(unittest.TestCase):
|
|
20
|
+
"""ReflectFact unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ReflectFact:
|
|
29
|
+
"""Test ReflectFact
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ReflectFact`
|
|
34
|
+
"""
|
|
35
|
+
model = ReflectFact()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ReflectFact(
|
|
38
|
+
id = '',
|
|
39
|
+
text = '',
|
|
40
|
+
type = '',
|
|
41
|
+
context = '',
|
|
42
|
+
occurred_start = '',
|
|
43
|
+
occurred_end = ''
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
return ReflectFact(
|
|
47
|
+
text = '',
|
|
48
|
+
)
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
def testReflectFact(self):
|
|
52
|
+
"""Test ReflectFact"""
|
|
53
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
54
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
55
|
+
|
|
56
|
+
if __name__ == '__main__':
|
|
57
|
+
unittest.main()
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.reflect_include_options import ReflectIncludeOptions
|
|
18
|
+
|
|
19
|
+
class TestReflectIncludeOptions(unittest.TestCase):
|
|
20
|
+
"""ReflectIncludeOptions unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ReflectIncludeOptions:
|
|
29
|
+
"""Test ReflectIncludeOptions
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ReflectIncludeOptions`
|
|
34
|
+
"""
|
|
35
|
+
model = ReflectIncludeOptions()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ReflectIncludeOptions(
|
|
38
|
+
facts = hindsight_client_api.models.facts_include_options.FactsIncludeOptions()
|
|
39
|
+
)
|
|
40
|
+
else:
|
|
41
|
+
return ReflectIncludeOptions(
|
|
42
|
+
)
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def testReflectIncludeOptions(self):
|
|
46
|
+
"""Test ReflectIncludeOptions"""
|
|
47
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
48
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
49
|
+
|
|
50
|
+
if __name__ == '__main__':
|
|
51
|
+
unittest.main()
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.reflect_request import ReflectRequest
|
|
18
|
+
|
|
19
|
+
class TestReflectRequest(unittest.TestCase):
|
|
20
|
+
"""ReflectRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ReflectRequest:
|
|
29
|
+
"""Test ReflectRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ReflectRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = ReflectRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ReflectRequest(
|
|
38
|
+
query = '',
|
|
39
|
+
budget = 'low',
|
|
40
|
+
context = '',
|
|
41
|
+
filters = [
|
|
42
|
+
{key=source, match_unset=true, value=slack}
|
|
43
|
+
],
|
|
44
|
+
include = hindsight_client_api.models.reflect_include_options.ReflectIncludeOptions(
|
|
45
|
+
facts = hindsight_client_api.models.facts_include_options.FactsIncludeOptions(), )
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
return ReflectRequest(
|
|
49
|
+
query = '',
|
|
50
|
+
)
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def testReflectRequest(self):
|
|
54
|
+
"""Test ReflectRequest"""
|
|
55
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
56
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
57
|
+
|
|
58
|
+
if __name__ == '__main__':
|
|
59
|
+
unittest.main()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.reflect_response import ReflectResponse
|
|
18
|
+
|
|
19
|
+
class TestReflectResponse(unittest.TestCase):
|
|
20
|
+
"""ReflectResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ReflectResponse:
|
|
29
|
+
"""Test ReflectResponse
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ReflectResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = ReflectResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ReflectResponse(
|
|
38
|
+
text = '',
|
|
39
|
+
based_on = [
|
|
40
|
+
{context=healthcare discussion, id=123e4567-e89b-12d3-a456-426614174000, occurred_end=2024-01-15T10:30:00Z, occurred_start=2024-01-15T10:30:00Z, text=AI is used in healthcare, type=world}
|
|
41
|
+
]
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return ReflectResponse(
|
|
45
|
+
text = '',
|
|
46
|
+
)
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def testReflectResponse(self):
|
|
50
|
+
"""Test ReflectResponse"""
|
|
51
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
52
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
53
|
+
|
|
54
|
+
if __name__ == '__main__':
|
|
55
|
+
unittest.main()
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.retain_request import RetainRequest
|
|
18
|
+
|
|
19
|
+
class TestRetainRequest(unittest.TestCase):
|
|
20
|
+
"""RetainRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> RetainRequest:
|
|
29
|
+
"""Test RetainRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `RetainRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = RetainRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return RetainRequest(
|
|
38
|
+
items = [
|
|
39
|
+
{content=Alice mentioned she's working on a new ML model, context=team meeting, document_id=meeting_notes_2024_01_15, metadata={channel=engineering, source=slack}, timestamp=2024-01-15T10:30:00Z}
|
|
40
|
+
],
|
|
41
|
+
var_async = True
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return RetainRequest(
|
|
45
|
+
items = [
|
|
46
|
+
{content=Alice mentioned she's working on a new ML model, context=team meeting, document_id=meeting_notes_2024_01_15, metadata={channel=engineering, source=slack}, timestamp=2024-01-15T10:30:00Z}
|
|
47
|
+
],
|
|
48
|
+
)
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
def testRetainRequest(self):
|
|
52
|
+
"""Test RetainRequest"""
|
|
53
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
54
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
55
|
+
|
|
56
|
+
if __name__ == '__main__':
|
|
57
|
+
unittest.main()
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.retain_response import RetainResponse
|
|
18
|
+
|
|
19
|
+
class TestRetainResponse(unittest.TestCase):
|
|
20
|
+
"""RetainResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> RetainResponse:
|
|
29
|
+
"""Test RetainResponse
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `RetainResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = RetainResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return RetainResponse(
|
|
38
|
+
success = True,
|
|
39
|
+
bank_id = '',
|
|
40
|
+
items_count = 56,
|
|
41
|
+
var_async = True
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return RetainResponse(
|
|
45
|
+
success = True,
|
|
46
|
+
bank_id = '',
|
|
47
|
+
items_count = 56,
|
|
48
|
+
var_async = True,
|
|
49
|
+
)
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
def testRetainResponse(self):
|
|
53
|
+
"""Test RetainResponse"""
|
|
54
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
55
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
56
|
+
|
|
57
|
+
if __name__ == '__main__':
|
|
58
|
+
unittest.main()
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.update_personality_request import UpdatePersonalityRequest
|
|
18
|
+
|
|
19
|
+
class TestUpdatePersonalityRequest(unittest.TestCase):
|
|
20
|
+
"""UpdatePersonalityRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> UpdatePersonalityRequest:
|
|
29
|
+
"""Test UpdatePersonalityRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `UpdatePersonalityRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = UpdatePersonalityRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UpdatePersonalityRequest(
|
|
38
|
+
personality = {agreeableness=0.7, bias_strength=0.7, conscientiousness=0.6, extraversion=0.5, neuroticism=0.3, openness=0.8}
|
|
39
|
+
)
|
|
40
|
+
else:
|
|
41
|
+
return UpdatePersonalityRequest(
|
|
42
|
+
personality = {agreeableness=0.7, bias_strength=0.7, conscientiousness=0.6, extraversion=0.5, neuroticism=0.3, openness=0.8},
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testUpdatePersonalityRequest(self):
|
|
47
|
+
"""Test UpdatePersonalityRequest"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Hindsight HTTP API
|
|
5
|
+
|
|
6
|
+
HTTP API for Hindsight
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from hindsight_client_api.models.validation_error import ValidationError
|
|
18
|
+
|
|
19
|
+
class TestValidationError(unittest.TestCase):
|
|
20
|
+
"""ValidationError unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ValidationError:
|
|
29
|
+
"""Test ValidationError
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ValidationError`
|
|
34
|
+
"""
|
|
35
|
+
model = ValidationError()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ValidationError(
|
|
38
|
+
loc = [
|
|
39
|
+
null
|
|
40
|
+
],
|
|
41
|
+
msg = '',
|
|
42
|
+
type = ''
|
|
43
|
+
)
|
|
44
|
+
else:
|
|
45
|
+
return ValidationError(
|
|
46
|
+
loc = [
|
|
47
|
+
null
|
|
48
|
+
],
|
|
49
|
+
msg = '',
|
|
50
|
+
type = '',
|
|
51
|
+
)
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
def testValidationError(self):
|
|
55
|
+
"""Test ValidationError"""
|
|
56
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
57
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
58
|
+
|
|
59
|
+
if __name__ == '__main__':
|
|
60
|
+
unittest.main()
|