hindsight-client 0.2.1__py3-none-any.whl → 0.3.0__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.
@@ -74,6 +74,8 @@ class Hindsight:
74
74
  """
75
75
  config = hindsight_client_api.Configuration(host=base_url, access_token=api_key)
76
76
  self._api_client = hindsight_client_api.ApiClient(config)
77
+ if api_key:
78
+ self._api_client.set_default_header("Authorization", f"Bearer {api_key}")
77
79
  self._memory_api = memory_api.MemoryApi(self._api_client)
78
80
  self._banks_api = banks_api.BanksApi(self._api_client)
79
81
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hindsight-client
3
- Version: 0.2.1
3
+ Version: 0.3.0
4
4
  Summary: Python client for Hindsight - Semantic memory system with personality-driven thinking
5
5
  Author: Hindsight Team
6
6
  Requires-Python: >=3.10
@@ -1,19 +1,19 @@
1
1
  hindsight_client/__init__.py,sha256=PyDJ4UVKmtRN5OeBs0-rl-tUtqS8OoX53qvejKGC3JU,3114
2
- hindsight_client/hindsight_client.py,sha256=FzlKL3HsoOvyYRipe4sKnZUJ-FWHrNe86fkAavPPSZA,16172
3
- hindsight_client_api/__init__.py,sha256=MR6Cu4R590spgLgUehHBamgZ0r8Osxx9o7cN6rDbtMs,4572
2
+ hindsight_client/hindsight_client.py,sha256=2cgq76d3LTbC51oEos81l80F72-bYOEhR2nJGOL-HCs,16278
3
+ hindsight_client_api/__init__.py,sha256=osB0kfekJX0NrhOPXOmmZH6mw_Q6bASw1PzJlVfIiLI,4768
4
4
  hindsight_client_api/api_client.py,sha256=yFIRrXfpV3BoHTh1Xo-ixJVgzz39asRCp9_KDN1-UCs,27537
5
5
  hindsight_client_api/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
6
6
  hindsight_client_api/configuration.py,sha256=ByAYUPBL5JZ753cBbAcS0alWiOH_ZemiAskUXGnaBik,17229
7
7
  hindsight_client_api/exceptions.py,sha256=cZAGBnRIB3RWaxddPD7rP_-oHUFfV8QqDKslBBZZows,5899
8
8
  hindsight_client_api/rest.py,sha256=bP7YkGFnvF6_fX3e9Vf3XfltJ-qdNPQ9GVne07WUi-Y,7900
9
9
  hindsight_client_api/api/__init__.py,sha256=Kn3AGORXpRNUKhh0v-I9-8BoZYGgVxhzIQ1_suO261w,420
10
- hindsight_client_api/api/banks_api.py,sha256=Vk607GRBbRz_Wwr59z7iOSsz-VwY5JRtjawY7fruOBU,79646
10
+ hindsight_client_api/api/banks_api.py,sha256=vT5PayiXZ2gsfeo3xL3KRbBt5xc9YHI4bosWSvjgvts,80232
11
11
  hindsight_client_api/api/documents_api.py,sha256=F890v_gYJgbbaqE760jSpTEzT1fVBJ8Lk0Zo-H0ueiQ,46778
12
- hindsight_client_api/api/entities_api.py,sha256=QGw4UBbQueXMWG5zx9AD30SuRxDqUaQWpLbFAXClU3k,35098
13
- hindsight_client_api/api/memory_api.py,sha256=aJmZe253m8sL1dJB8HKYPyGDbE5j6JJi3T-rPDPWYbQ,77697
12
+ hindsight_client_api/api/entities_api.py,sha256=z9F1s2gA6d8z0cX0w-0QrWJ_pleVEuyIMZUa0h72R0A,35878
13
+ hindsight_client_api/api/memory_api.py,sha256=JJzN3rMhb-Pcu2XhYzWhAXnZ6SRagQMQq9vZ4I0njtU,102710
14
14
  hindsight_client_api/api/monitoring_api.py,sha256=pt_jMV8GN6xpxX-iqk-FjrlihXLuygCKCXxg9ksEMcE,19807
15
15
  hindsight_client_api/api/operations_api.py,sha256=C-ABeir4C-fz7mbN9_uDGqhVReA9OzsuvC0YYJdWlNo,23249
16
- hindsight_client_api/models/__init__.py,sha256=IXptlAcDu0NKhMMqgBJsXZEYOzyRG65xl4eLywVn5ns,3602
16
+ hindsight_client_api/models/__init__.py,sha256=ZxwqNlqnlRNv1jdyIWfu-YTK3UR_XWP_6qh2fBtDJ6Q,3798
17
17
  hindsight_client_api/models/add_background_request.py,sha256=3rld3CjxNSPbxX9CoDSr5WEuhEoo-gRrCZ709Vvy9rI,2867
18
18
  hindsight_client_api/models/background_response.py,sha256=SUFt-k6ipl2SXAvHb3IU3IJ5LuXIGEoK8_pVbZO3Dgw,3144
19
19
  hindsight_client_api/models/bank_list_item.py,sha256=grJYCFBinjxEy1M8ZxPiy8asUVKj58b2KnScE2tmU-Q,4137
@@ -29,34 +29,37 @@ hindsight_client_api/models/create_bank_request.py,sha256=5IEuAmetFFtI1NFH0gTzTC
29
29
  hindsight_client_api/models/delete_document_response.py,sha256=k_gHKh2qiUOyAS-iLzPPGVNFwTltvH2gbFceLU-JBrI,2788
30
30
  hindsight_client_api/models/delete_response.py,sha256=8TjUUMXrEfbxxMHj5PsCaqEib2qpaA3JT45cbxToFj0,3126
31
31
  hindsight_client_api/models/disposition_traits.py,sha256=I61B7L3BkGQlAxBONDILwE-hH_S3oY2IFrbeTzpj9Mg,3055
32
- hindsight_client_api/models/document_response.py,sha256=hvtlBhm0EEGldM5Gh82cwnFYCL2ckwI2upDySdhbFZ0,3256
32
+ hindsight_client_api/models/document_response.py,sha256=iK_H6V9t02OPBOaEo-U6fczmLNfSNCpeTQDgcziohiM,3416
33
33
  hindsight_client_api/models/entity_detail_response.py,sha256=51Pv6lQEVGjUZ2KimRP0xFCowwOgt0ShcNITeHLF0Ro,4312
34
34
  hindsight_client_api/models/entity_include_options.py,sha256=j6o0SPWslW7y461xahbw4l1VXMIU1B5vxR3MX8cJ2FY,2635
35
35
  hindsight_client_api/models/entity_input.py,sha256=e8d-WuZxv0G_b8BlwASi_Eymwd87-O4Ap2RkaMa3VSU,2760
36
36
  hindsight_client_api/models/entity_list_item.py,sha256=ZtdnkJ-xz7djdls1RaYXl7BEF_q1YIcan61MrHH0x6g,3602
37
- hindsight_client_api/models/entity_list_response.py,sha256=J3EYrjHKJk8AjcUQH2uEI3s1Hw11mIyQDgKrvPRhd4w,2913
37
+ hindsight_client_api/models/entity_list_response.py,sha256=HVjiza5MDMU4RRjVacxnTGOt8Wcue8f41LZmA2-n2q0,3135
38
38
  hindsight_client_api/models/entity_observation_response.py,sha256=Sbz_m0MssD-gYyV4sAeD56HGrnmlWcdO0bBs73K65YU,2804
39
39
  hindsight_client_api/models/entity_state_response.py,sha256=VNxiaOcNy2vCXuNGJMD1WbTTqwUguizvCxJHkt7Lyuw,3239
40
- hindsight_client_api/models/graph_data_response.py,sha256=24l32YX7rzsNZBIeLAL2TX25O3-7Ji-I-9WkYPHWSNQ,2721
40
+ hindsight_client_api/models/graph_data_response.py,sha256=sYmmyxd4lu0FMbN0Ocnj5ShfFWk1GQp2p8i9wZFLLG4,2790
41
41
  hindsight_client_api/models/http_validation_error.py,sha256=KKvY67lajAI7hAys0IZHeeTsG2ArvpVIATqSMjbWGOY,2937
42
42
  hindsight_client_api/models/include_options.py,sha256=FlB8QT_bqA141_tSv51QvZRbqKZdcaR2estkHg6eBGc,3645
43
43
  hindsight_client_api/models/list_documents_response.py,sha256=8lXIfprjJHpWCgiKkw4-M8d2y4NOTcK76HoF1otMekI,2675
44
44
  hindsight_client_api/models/list_memory_units_response.py,sha256=gEC-opRav_3cWdKvoO7Hure3dnVyFiFC0gtDP0TE7H8,2684
45
- hindsight_client_api/models/memory_item.py,sha256=FBUa4h31a03CSkTmjg7Qxxg_VpbqbIRiQ8kXKQtaEX0,4548
45
+ hindsight_client_api/models/list_tags_response.py,sha256=VG4PFyNxge1vzeRxq-DwnpgXQmJ9U-MVSpnjiclg-tM,3098
46
+ hindsight_client_api/models/memory_item.py,sha256=MFXBoBDbogNwaWpME5RzUw5PgZLZiA7o3jP0Kw0mJYE,4835
46
47
  hindsight_client_api/models/operation_response.py,sha256=ach9QI35J3FtPKLzZDqb54Xfov7ouiEhto4nztCKc8I,3467
47
48
  hindsight_client_api/models/operations_list_response.py,sha256=3XOfvTBBkv7VmYo-PZX0wVK_RtMCZkQdaPkXXhGIiRU,3088
48
- hindsight_client_api/models/recall_request.py,sha256=IPYeipQO7qxUepB01iCkz2ACNWQg5jXLIPzSAxsTQts,4053
49
+ hindsight_client_api/models/recall_request.py,sha256=cGG7rhr5gVnnwagNMAosV9hGJ_vHKlZWHhTCIwbbnNQ,5064
49
50
  hindsight_client_api/models/recall_response.py,sha256=t_qYAUMHXFBnXX7kCF8EeLfqeyF9V01wvQizCDvf4dY,5103
50
- hindsight_client_api/models/recall_result.py,sha256=fI-TCBDFGuSIytFsI7FADtJkmvsTOX-G3bFFRxLJbMY,5402
51
+ hindsight_client_api/models/recall_result.py,sha256=OULXvXYlxsJYuf8zSsTuV_qArXQFxw2Pw5494FvdGwQ,5689
51
52
  hindsight_client_api/models/reflect_fact.py,sha256=sYW00LmDpY7VptK0E4I0gUWHkCRaCTeypuHSdciknw8,3973
52
53
  hindsight_client_api/models/reflect_include_options.py,sha256=q3TqMu-zrJw8LIHOl5pb0baDEQlOlFkBI5gE9MEmKQQ,2584
53
- hindsight_client_api/models/reflect_request.py,sha256=OOfOiLh0pmrIVo5ZFBFL09H69v8UGzWWlyp5I-CPCpE,4007
54
- hindsight_client_api/models/reflect_response.py,sha256=jqh3gJvqlz2MKbk4H9sgHe3EfprmpIoMZgxHMuxQlVw,3414
55
- hindsight_client_api/models/retain_request.py,sha256=LABq0vwi3ZYnb1RB6UCLw6PoFT4Q4qap8LNWLquh7jE,3178
56
- hindsight_client_api/models/retain_response.py,sha256=b3t5H7_ixi7jZw_kvb2XYh0Q6IDTfHvWRR2KaKqf7ls,2796
54
+ hindsight_client_api/models/reflect_request.py,sha256=yxAZ0r6fd_rdlISXUXjRz79nwcCEhfVZ9guAe7TfHZc,5018
55
+ hindsight_client_api/models/reflect_response.py,sha256=h8BVIa5j35RNKGHFyB5t9ejZ_iqRJh2eMpaMLQK1PLU,3984
56
+ hindsight_client_api/models/retain_request.py,sha256=xlU_R2qMgbPL00EkRtyFLKIPelyulgleuaIrnJTJiIw,3548
57
+ hindsight_client_api/models/retain_response.py,sha256=RQd_6q1_it0Yfws2BpcuL41FKE1CMnk_65wHcBjtfKw,3721
58
+ hindsight_client_api/models/tag_item.py,sha256=uxTTRBUfSsb8ah3n7DARyStctQZvSfQXcmRdiaJcx_c,2568
59
+ hindsight_client_api/models/token_usage.py,sha256=r8tcfugayce78fZ65LBcTK8HzY8LjnlIbUTHKFKFGUg,3140
57
60
  hindsight_client_api/models/update_disposition_request.py,sha256=6D3qceEJByBWcZrfSbNXrdlrDtnj0_QXh2zosc49-5E,2817
58
61
  hindsight_client_api/models/validation_error.py,sha256=XnK71WeEUbZyXPbzv1uKaNAFEYxfsiS7G0cvjTgCxiM,3029
59
62
  hindsight_client_api/models/validation_error_loc_inner.py,sha256=q51Yi64xsxhsy3_AAD5DlcfI2-g_81hQoN6Olh3I8ag,4812
60
- hindsight_client-0.2.1.dist-info/METADATA,sha256=GNKDXo5mybB4RWailkuwWGNJ1Qxce180XK99ZEIZ1pY,647
61
- hindsight_client-0.2.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
62
- hindsight_client-0.2.1.dist-info/RECORD,,
63
+ hindsight_client-0.3.0.dist-info/METADATA,sha256=_SHV_Xoc3o2FMIy9kv6ptLoFrbyKvCyo4lc3tJAPHNg,647
64
+ hindsight_client-0.3.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
65
+ hindsight_client-0.3.0.dist-info/RECORD,,
@@ -64,6 +64,7 @@ from hindsight_client_api.models.http_validation_error import HTTPValidationErro
64
64
  from hindsight_client_api.models.include_options import IncludeOptions
65
65
  from hindsight_client_api.models.list_documents_response import ListDocumentsResponse
66
66
  from hindsight_client_api.models.list_memory_units_response import ListMemoryUnitsResponse
67
+ from hindsight_client_api.models.list_tags_response import ListTagsResponse
67
68
  from hindsight_client_api.models.memory_item import MemoryItem
68
69
  from hindsight_client_api.models.operation_response import OperationResponse
69
70
  from hindsight_client_api.models.operations_list_response import OperationsListResponse
@@ -76,6 +77,8 @@ from hindsight_client_api.models.reflect_request import ReflectRequest
76
77
  from hindsight_client_api.models.reflect_response import ReflectResponse
77
78
  from hindsight_client_api.models.retain_request import RetainRequest
78
79
  from hindsight_client_api.models.retain_response import RetainResponse
80
+ from hindsight_client_api.models.tag_item import TagItem
81
+ from hindsight_client_api.models.token_usage import TokenUsage
79
82
  from hindsight_client_api.models.update_disposition_request import UpdateDispositionRequest
80
83
  from hindsight_client_api.models.validation_error import ValidationError
81
84
  from hindsight_client_api.models.validation_error_loc_inner import ValidationErrorLocInner
@@ -939,6 +939,7 @@ class BanksApi:
939
939
  async def get_agent_stats(
940
940
  self,
941
941
  bank_id: StrictStr,
942
+ authorization: Optional[StrictStr] = None,
942
943
  _request_timeout: Union[
943
944
  None,
944
945
  Annotated[StrictFloat, Field(gt=0)],
@@ -958,6 +959,8 @@ class BanksApi:
958
959
 
959
960
  :param bank_id: (required)
960
961
  :type bank_id: str
962
+ :param authorization:
963
+ :type authorization: str
961
964
  :param _request_timeout: timeout setting for this request. If one
962
965
  number provided, it will be total request
963
966
  timeout. It can also be a pair (tuple) of
@@ -982,6 +985,7 @@ class BanksApi:
982
985
 
983
986
  _param = self._get_agent_stats_serialize(
984
987
  bank_id=bank_id,
988
+ authorization=authorization,
985
989
  _request_auth=_request_auth,
986
990
  _content_type=_content_type,
987
991
  _headers=_headers,
@@ -1007,6 +1011,7 @@ class BanksApi:
1007
1011
  async def get_agent_stats_with_http_info(
1008
1012
  self,
1009
1013
  bank_id: StrictStr,
1014
+ authorization: Optional[StrictStr] = None,
1010
1015
  _request_timeout: Union[
1011
1016
  None,
1012
1017
  Annotated[StrictFloat, Field(gt=0)],
@@ -1026,6 +1031,8 @@ class BanksApi:
1026
1031
 
1027
1032
  :param bank_id: (required)
1028
1033
  :type bank_id: str
1034
+ :param authorization:
1035
+ :type authorization: str
1029
1036
  :param _request_timeout: timeout setting for this request. If one
1030
1037
  number provided, it will be total request
1031
1038
  timeout. It can also be a pair (tuple) of
@@ -1050,6 +1057,7 @@ class BanksApi:
1050
1057
 
1051
1058
  _param = self._get_agent_stats_serialize(
1052
1059
  bank_id=bank_id,
1060
+ authorization=authorization,
1053
1061
  _request_auth=_request_auth,
1054
1062
  _content_type=_content_type,
1055
1063
  _headers=_headers,
@@ -1075,6 +1083,7 @@ class BanksApi:
1075
1083
  async def get_agent_stats_without_preload_content(
1076
1084
  self,
1077
1085
  bank_id: StrictStr,
1086
+ authorization: Optional[StrictStr] = None,
1078
1087
  _request_timeout: Union[
1079
1088
  None,
1080
1089
  Annotated[StrictFloat, Field(gt=0)],
@@ -1094,6 +1103,8 @@ class BanksApi:
1094
1103
 
1095
1104
  :param bank_id: (required)
1096
1105
  :type bank_id: str
1106
+ :param authorization:
1107
+ :type authorization: str
1097
1108
  :param _request_timeout: timeout setting for this request. If one
1098
1109
  number provided, it will be total request
1099
1110
  timeout. It can also be a pair (tuple) of
@@ -1118,6 +1129,7 @@ class BanksApi:
1118
1129
 
1119
1130
  _param = self._get_agent_stats_serialize(
1120
1131
  bank_id=bank_id,
1132
+ authorization=authorization,
1121
1133
  _request_auth=_request_auth,
1122
1134
  _content_type=_content_type,
1123
1135
  _headers=_headers,
@@ -1138,6 +1150,7 @@ class BanksApi:
1138
1150
  def _get_agent_stats_serialize(
1139
1151
  self,
1140
1152
  bank_id,
1153
+ authorization,
1141
1154
  _request_auth,
1142
1155
  _content_type,
1143
1156
  _headers,
@@ -1163,6 +1176,8 @@ class BanksApi:
1163
1176
  _path_params['bank_id'] = bank_id
1164
1177
  # process the query parameters
1165
1178
  # process the header parameters
1179
+ if authorization is not None:
1180
+ _header_params['authorization'] = authorization
1166
1181
  # process the form parameters
1167
1182
  # process the body parameter
1168
1183
 
@@ -338,6 +338,7 @@ class EntitiesApi:
338
338
  self,
339
339
  bank_id: StrictStr,
340
340
  limit: Annotated[Optional[StrictInt], Field(description="Maximum number of entities to return")] = None,
341
+ offset: Annotated[Optional[StrictInt], Field(description="Offset for pagination")] = None,
341
342
  authorization: Optional[StrictStr] = None,
342
343
  _request_timeout: Union[
343
344
  None,
@@ -354,12 +355,14 @@ class EntitiesApi:
354
355
  ) -> EntityListResponse:
355
356
  """List entities
356
357
 
357
- List all entities (people, organizations, etc.) known by the bank, ordered by mention count.
358
+ List all entities (people, organizations, etc.) known by the bank, ordered by mention count. Supports pagination.
358
359
 
359
360
  :param bank_id: (required)
360
361
  :type bank_id: str
361
362
  :param limit: Maximum number of entities to return
362
363
  :type limit: int
364
+ :param offset: Offset for pagination
365
+ :type offset: int
363
366
  :param authorization:
364
367
  :type authorization: str
365
368
  :param _request_timeout: timeout setting for this request. If one
@@ -387,6 +390,7 @@ class EntitiesApi:
387
390
  _param = self._list_entities_serialize(
388
391
  bank_id=bank_id,
389
392
  limit=limit,
393
+ offset=offset,
390
394
  authorization=authorization,
391
395
  _request_auth=_request_auth,
392
396
  _content_type=_content_type,
@@ -414,6 +418,7 @@ class EntitiesApi:
414
418
  self,
415
419
  bank_id: StrictStr,
416
420
  limit: Annotated[Optional[StrictInt], Field(description="Maximum number of entities to return")] = None,
421
+ offset: Annotated[Optional[StrictInt], Field(description="Offset for pagination")] = None,
417
422
  authorization: Optional[StrictStr] = None,
418
423
  _request_timeout: Union[
419
424
  None,
@@ -430,12 +435,14 @@ class EntitiesApi:
430
435
  ) -> ApiResponse[EntityListResponse]:
431
436
  """List entities
432
437
 
433
- List all entities (people, organizations, etc.) known by the bank, ordered by mention count.
438
+ List all entities (people, organizations, etc.) known by the bank, ordered by mention count. Supports pagination.
434
439
 
435
440
  :param bank_id: (required)
436
441
  :type bank_id: str
437
442
  :param limit: Maximum number of entities to return
438
443
  :type limit: int
444
+ :param offset: Offset for pagination
445
+ :type offset: int
439
446
  :param authorization:
440
447
  :type authorization: str
441
448
  :param _request_timeout: timeout setting for this request. If one
@@ -463,6 +470,7 @@ class EntitiesApi:
463
470
  _param = self._list_entities_serialize(
464
471
  bank_id=bank_id,
465
472
  limit=limit,
473
+ offset=offset,
466
474
  authorization=authorization,
467
475
  _request_auth=_request_auth,
468
476
  _content_type=_content_type,
@@ -490,6 +498,7 @@ class EntitiesApi:
490
498
  self,
491
499
  bank_id: StrictStr,
492
500
  limit: Annotated[Optional[StrictInt], Field(description="Maximum number of entities to return")] = None,
501
+ offset: Annotated[Optional[StrictInt], Field(description="Offset for pagination")] = None,
493
502
  authorization: Optional[StrictStr] = None,
494
503
  _request_timeout: Union[
495
504
  None,
@@ -506,12 +515,14 @@ class EntitiesApi:
506
515
  ) -> RESTResponseType:
507
516
  """List entities
508
517
 
509
- List all entities (people, organizations, etc.) known by the bank, ordered by mention count.
518
+ List all entities (people, organizations, etc.) known by the bank, ordered by mention count. Supports pagination.
510
519
 
511
520
  :param bank_id: (required)
512
521
  :type bank_id: str
513
522
  :param limit: Maximum number of entities to return
514
523
  :type limit: int
524
+ :param offset: Offset for pagination
525
+ :type offset: int
515
526
  :param authorization:
516
527
  :type authorization: str
517
528
  :param _request_timeout: timeout setting for this request. If one
@@ -539,6 +550,7 @@ class EntitiesApi:
539
550
  _param = self._list_entities_serialize(
540
551
  bank_id=bank_id,
541
552
  limit=limit,
553
+ offset=offset,
542
554
  authorization=authorization,
543
555
  _request_auth=_request_auth,
544
556
  _content_type=_content_type,
@@ -561,6 +573,7 @@ class EntitiesApi:
561
573
  self,
562
574
  bank_id,
563
575
  limit,
576
+ offset,
564
577
  authorization,
565
578
  _request_auth,
566
579
  _content_type,
@@ -590,6 +603,10 @@ class EntitiesApi:
590
603
 
591
604
  _query_params.append(('limit', limit))
592
605
 
606
+ if offset is not None:
607
+
608
+ _query_params.append(('offset', offset))
609
+
593
610
  # process the header parameters
594
611
  if authorization is not None:
595
612
  _header_params['authorization'] = authorization