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,53 @@
|
|
|
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.entity_observation_response import EntityObservationResponse
|
|
18
|
+
|
|
19
|
+
class TestEntityObservationResponse(unittest.TestCase):
|
|
20
|
+
"""EntityObservationResponse 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) -> EntityObservationResponse:
|
|
29
|
+
"""Test EntityObservationResponse
|
|
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 `EntityObservationResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = EntityObservationResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return EntityObservationResponse(
|
|
38
|
+
text = '',
|
|
39
|
+
mentioned_at = ''
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return EntityObservationResponse(
|
|
43
|
+
text = '',
|
|
44
|
+
)
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def testEntityObservationResponse(self):
|
|
48
|
+
"""Test EntityObservationResponse"""
|
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
unittest.main()
|
|
@@ -0,0 +1,64 @@
|
|
|
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.entity_state_response import EntityStateResponse
|
|
18
|
+
|
|
19
|
+
class TestEntityStateResponse(unittest.TestCase):
|
|
20
|
+
"""EntityStateResponse 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) -> EntityStateResponse:
|
|
29
|
+
"""Test EntityStateResponse
|
|
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 `EntityStateResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = EntityStateResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return EntityStateResponse(
|
|
38
|
+
entity_id = '',
|
|
39
|
+
canonical_name = '',
|
|
40
|
+
observations = [
|
|
41
|
+
hindsight_client_api.models.entity_observation_response.EntityObservationResponse(
|
|
42
|
+
text = '',
|
|
43
|
+
mentioned_at = '', )
|
|
44
|
+
]
|
|
45
|
+
)
|
|
46
|
+
else:
|
|
47
|
+
return EntityStateResponse(
|
|
48
|
+
entity_id = '',
|
|
49
|
+
canonical_name = '',
|
|
50
|
+
observations = [
|
|
51
|
+
hindsight_client_api.models.entity_observation_response.EntityObservationResponse(
|
|
52
|
+
text = '',
|
|
53
|
+
mentioned_at = '', )
|
|
54
|
+
],
|
|
55
|
+
)
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
def testEntityStateResponse(self):
|
|
59
|
+
"""Test EntityStateResponse"""
|
|
60
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
61
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
62
|
+
|
|
63
|
+
if __name__ == '__main__':
|
|
64
|
+
unittest.main()
|
|
@@ -0,0 +1,82 @@
|
|
|
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.graph_data_response import GraphDataResponse
|
|
18
|
+
|
|
19
|
+
class TestGraphDataResponse(unittest.TestCase):
|
|
20
|
+
"""GraphDataResponse 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) -> GraphDataResponse:
|
|
29
|
+
"""Test GraphDataResponse
|
|
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 `GraphDataResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = GraphDataResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return GraphDataResponse(
|
|
38
|
+
nodes = [
|
|
39
|
+
{
|
|
40
|
+
'key' : null
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
edges = [
|
|
44
|
+
{
|
|
45
|
+
'key' : null
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
table_rows = [
|
|
49
|
+
{
|
|
50
|
+
'key' : null
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
total_units = 56
|
|
54
|
+
)
|
|
55
|
+
else:
|
|
56
|
+
return GraphDataResponse(
|
|
57
|
+
nodes = [
|
|
58
|
+
{
|
|
59
|
+
'key' : null
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
edges = [
|
|
63
|
+
{
|
|
64
|
+
'key' : null
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
table_rows = [
|
|
68
|
+
{
|
|
69
|
+
'key' : null
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
total_units = 56,
|
|
73
|
+
)
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
def testGraphDataResponse(self):
|
|
77
|
+
"""Test GraphDataResponse"""
|
|
78
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
79
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
80
|
+
|
|
81
|
+
if __name__ == '__main__':
|
|
82
|
+
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.http_validation_error import HTTPValidationError
|
|
18
|
+
|
|
19
|
+
class TestHTTPValidationError(unittest.TestCase):
|
|
20
|
+
"""HTTPValidationError 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) -> HTTPValidationError:
|
|
29
|
+
"""Test HTTPValidationError
|
|
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 `HTTPValidationError`
|
|
34
|
+
"""
|
|
35
|
+
model = HTTPValidationError()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return HTTPValidationError(
|
|
38
|
+
detail = [
|
|
39
|
+
hindsight_client_api.models.validation_error.ValidationError(
|
|
40
|
+
loc = [
|
|
41
|
+
null
|
|
42
|
+
],
|
|
43
|
+
msg = '',
|
|
44
|
+
type = '', )
|
|
45
|
+
]
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
return HTTPValidationError(
|
|
49
|
+
)
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
def testHTTPValidationError(self):
|
|
53
|
+
"""Test HTTPValidationError"""
|
|
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,54 @@
|
|
|
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.include_options import IncludeOptions
|
|
18
|
+
|
|
19
|
+
class TestIncludeOptions(unittest.TestCase):
|
|
20
|
+
"""IncludeOptions 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) -> IncludeOptions:
|
|
29
|
+
"""Test IncludeOptions
|
|
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 `IncludeOptions`
|
|
34
|
+
"""
|
|
35
|
+
model = IncludeOptions()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return IncludeOptions(
|
|
38
|
+
entities = hindsight_client_api.models.entity_include_options.EntityIncludeOptions(
|
|
39
|
+
max_tokens = 56, ),
|
|
40
|
+
chunks = hindsight_client_api.models.chunk_include_options.ChunkIncludeOptions(
|
|
41
|
+
max_tokens = 56, )
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return IncludeOptions(
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testIncludeOptions(self):
|
|
49
|
+
"""Test IncludeOptions"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|
|
@@ -0,0 +1,66 @@
|
|
|
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.list_documents_response import ListDocumentsResponse
|
|
18
|
+
|
|
19
|
+
class TestListDocumentsResponse(unittest.TestCase):
|
|
20
|
+
"""ListDocumentsResponse 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) -> ListDocumentsResponse:
|
|
29
|
+
"""Test ListDocumentsResponse
|
|
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 `ListDocumentsResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = ListDocumentsResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ListDocumentsResponse(
|
|
38
|
+
items = [
|
|
39
|
+
{
|
|
40
|
+
'key' : null
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
total = 56,
|
|
44
|
+
limit = 56,
|
|
45
|
+
offset = 56
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
return ListDocumentsResponse(
|
|
49
|
+
items = [
|
|
50
|
+
{
|
|
51
|
+
'key' : null
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
total = 56,
|
|
55
|
+
limit = 56,
|
|
56
|
+
offset = 56,
|
|
57
|
+
)
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
def testListDocumentsResponse(self):
|
|
61
|
+
"""Test ListDocumentsResponse"""
|
|
62
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
63
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
64
|
+
|
|
65
|
+
if __name__ == '__main__':
|
|
66
|
+
unittest.main()
|
|
@@ -0,0 +1,66 @@
|
|
|
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.list_memory_units_response import ListMemoryUnitsResponse
|
|
18
|
+
|
|
19
|
+
class TestListMemoryUnitsResponse(unittest.TestCase):
|
|
20
|
+
"""ListMemoryUnitsResponse 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) -> ListMemoryUnitsResponse:
|
|
29
|
+
"""Test ListMemoryUnitsResponse
|
|
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 `ListMemoryUnitsResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = ListMemoryUnitsResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ListMemoryUnitsResponse(
|
|
38
|
+
items = [
|
|
39
|
+
{
|
|
40
|
+
'key' : null
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
total = 56,
|
|
44
|
+
limit = 56,
|
|
45
|
+
offset = 56
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
return ListMemoryUnitsResponse(
|
|
49
|
+
items = [
|
|
50
|
+
{
|
|
51
|
+
'key' : null
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
total = 56,
|
|
55
|
+
limit = 56,
|
|
56
|
+
offset = 56,
|
|
57
|
+
)
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
def testListMemoryUnitsResponse(self):
|
|
61
|
+
"""Test ListMemoryUnitsResponse"""
|
|
62
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
63
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
64
|
+
|
|
65
|
+
if __name__ == '__main__':
|
|
66
|
+
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.memory_item import MemoryItem
|
|
18
|
+
|
|
19
|
+
class TestMemoryItem(unittest.TestCase):
|
|
20
|
+
"""MemoryItem 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) -> MemoryItem:
|
|
29
|
+
"""Test MemoryItem
|
|
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 `MemoryItem`
|
|
34
|
+
"""
|
|
35
|
+
model = MemoryItem()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return MemoryItem(
|
|
38
|
+
content = '',
|
|
39
|
+
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
40
|
+
context = '',
|
|
41
|
+
metadata = {
|
|
42
|
+
'key' : ''
|
|
43
|
+
},
|
|
44
|
+
document_id = ''
|
|
45
|
+
)
|
|
46
|
+
else:
|
|
47
|
+
return MemoryItem(
|
|
48
|
+
content = '',
|
|
49
|
+
)
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
def testMemoryItem(self):
|
|
53
|
+
"""Test MemoryItem"""
|
|
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,54 @@
|
|
|
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.metadata_filter import MetadataFilter
|
|
18
|
+
|
|
19
|
+
class TestMetadataFilter(unittest.TestCase):
|
|
20
|
+
"""MetadataFilter 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) -> MetadataFilter:
|
|
29
|
+
"""Test MetadataFilter
|
|
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 `MetadataFilter`
|
|
34
|
+
"""
|
|
35
|
+
model = MetadataFilter()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return MetadataFilter(
|
|
38
|
+
key = '',
|
|
39
|
+
value = '',
|
|
40
|
+
match_unset = True
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return MetadataFilter(
|
|
44
|
+
key = '',
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testMetadataFilter(self):
|
|
49
|
+
"""Test MetadataFilter"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|
|
@@ -0,0 +1,38 @@
|
|
|
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.api.monitoring_api import MonitoringApi
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class TestMonitoringApi(unittest.IsolatedAsyncioTestCase):
|
|
21
|
+
"""MonitoringApi unit test stubs"""
|
|
22
|
+
|
|
23
|
+
async def asyncSetUp(self) -> None:
|
|
24
|
+
self.api = MonitoringApi()
|
|
25
|
+
|
|
26
|
+
async def asyncTearDown(self) -> None:
|
|
27
|
+
await self.api.api_client.close()
|
|
28
|
+
|
|
29
|
+
async def test_metrics_endpoint_metrics_get(self) -> None:
|
|
30
|
+
"""Test case for metrics_endpoint_metrics_get
|
|
31
|
+
|
|
32
|
+
Prometheus metrics endpoint
|
|
33
|
+
"""
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == '__main__':
|
|
38
|
+
unittest.main()
|
|
@@ -0,0 +1,62 @@
|
|
|
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.personality_traits import PersonalityTraits
|
|
18
|
+
|
|
19
|
+
class TestPersonalityTraits(unittest.TestCase):
|
|
20
|
+
"""PersonalityTraits 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) -> PersonalityTraits:
|
|
29
|
+
"""Test PersonalityTraits
|
|
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 `PersonalityTraits`
|
|
34
|
+
"""
|
|
35
|
+
model = PersonalityTraits()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return PersonalityTraits(
|
|
38
|
+
openness = 0.0,
|
|
39
|
+
conscientiousness = 0.0,
|
|
40
|
+
extraversion = 0.0,
|
|
41
|
+
agreeableness = 0.0,
|
|
42
|
+
neuroticism = 0.0,
|
|
43
|
+
bias_strength = 0.0
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
return PersonalityTraits(
|
|
47
|
+
openness = 0.0,
|
|
48
|
+
conscientiousness = 0.0,
|
|
49
|
+
extraversion = 0.0,
|
|
50
|
+
agreeableness = 0.0,
|
|
51
|
+
neuroticism = 0.0,
|
|
52
|
+
bias_strength = 0.0,
|
|
53
|
+
)
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
def testPersonalityTraits(self):
|
|
57
|
+
"""Test PersonalityTraits"""
|
|
58
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
59
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
60
|
+
|
|
61
|
+
if __name__ == '__main__':
|
|
62
|
+
unittest.main()
|