hindsight-client 0.2.1__py3-none-any.whl → 0.4.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.
- hindsight_client/__init__.py +9 -8
- hindsight_client/hindsight_client.py +396 -59
- {hindsight_client-0.2.1.dist-info → hindsight_client-0.4.0.dist-info}/METADATA +1 -1
- hindsight_client-0.4.0.dist-info/RECORD +89 -0
- hindsight_client_api/__init__.py +27 -0
- hindsight_client_api/api/__init__.py +2 -0
- hindsight_client_api/api/banks_api.py +1012 -131
- hindsight_client_api/api/directives_api.py +1619 -0
- hindsight_client_api/api/entities_api.py +29 -9
- hindsight_client_api/api/memory_api.py +713 -73
- hindsight_client_api/api/mental_models_api.py +1897 -0
- hindsight_client_api/api/monitoring_api.py +246 -0
- hindsight_client_api/api/operations_api.py +350 -4
- hindsight_client_api/models/__init__.py +25 -0
- hindsight_client_api/models/add_background_request.py +2 -2
- hindsight_client_api/models/async_operation_submit_response.py +89 -0
- hindsight_client_api/models/background_response.py +10 -3
- hindsight_client_api/models/bank_list_item.py +6 -6
- hindsight_client_api/models/bank_profile_response.py +11 -4
- hindsight_client_api/models/bank_stats_response.py +15 -4
- hindsight_client_api/models/consolidation_response.py +89 -0
- hindsight_client_api/models/create_bank_request.py +8 -1
- hindsight_client_api/models/create_directive_request.py +95 -0
- hindsight_client_api/models/create_mental_model_request.py +100 -0
- hindsight_client_api/models/create_mental_model_response.py +87 -0
- hindsight_client_api/models/directive_list_response.py +95 -0
- hindsight_client_api/models/directive_response.py +113 -0
- hindsight_client_api/models/document_response.py +5 -3
- hindsight_client_api/models/entity_list_response.py +9 -3
- hindsight_client_api/models/features_info.py +91 -0
- hindsight_client_api/models/graph_data_response.py +4 -2
- hindsight_client_api/models/list_tags_response.py +101 -0
- hindsight_client_api/models/memory_item.py +9 -2
- hindsight_client_api/models/mental_model_list_response.py +95 -0
- hindsight_client_api/models/mental_model_response.py +126 -0
- hindsight_client_api/models/mental_model_trigger.py +87 -0
- hindsight_client_api/models/operation_response.py +1 -1
- hindsight_client_api/models/operation_status_response.py +131 -0
- hindsight_client_api/models/operations_list_response.py +8 -2
- hindsight_client_api/models/recall_request.py +22 -3
- hindsight_client_api/models/recall_result.py +9 -2
- hindsight_client_api/models/reflect_based_on.py +115 -0
- hindsight_client_api/models/reflect_directive.py +91 -0
- hindsight_client_api/models/reflect_include_options.py +13 -2
- hindsight_client_api/models/reflect_llm_call.py +89 -0
- hindsight_client_api/models/reflect_mental_model.py +96 -0
- hindsight_client_api/models/reflect_request.py +22 -3
- hindsight_client_api/models/reflect_response.py +34 -11
- hindsight_client_api/models/reflect_tool_call.py +100 -0
- hindsight_client_api/models/reflect_trace.py +105 -0
- hindsight_client_api/models/retain_request.py +10 -3
- hindsight_client_api/models/retain_response.py +21 -3
- hindsight_client_api/models/tag_item.py +89 -0
- hindsight_client_api/models/token_usage.py +91 -0
- hindsight_client_api/models/tool_calls_include_options.py +87 -0
- hindsight_client_api/models/update_directive_request.py +120 -0
- hindsight_client_api/models/update_mental_model_request.py +125 -0
- hindsight_client_api/models/version_response.py +93 -0
- hindsight_client-0.2.1.dist-info/RECORD +0 -62
- {hindsight_client-0.2.1.dist-info → hindsight_client-0.4.0.dist-info}/WHEEL +0 -0
|
@@ -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
|
|
@@ -647,9 +664,9 @@ class EntitiesApi:
|
|
|
647
664
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
648
665
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
649
666
|
) -> EntityDetailResponse:
|
|
650
|
-
"""Regenerate entity observations
|
|
667
|
+
"""(Deprecated) Regenerate entity observations (deprecated)
|
|
651
668
|
|
|
652
|
-
|
|
669
|
+
This endpoint is deprecated. Entity observations have been replaced by mental models.
|
|
653
670
|
|
|
654
671
|
:param bank_id: (required)
|
|
655
672
|
:type bank_id: str
|
|
@@ -678,6 +695,7 @@ class EntitiesApi:
|
|
|
678
695
|
:type _host_index: int, optional
|
|
679
696
|
:return: Returns the result object.
|
|
680
697
|
""" # noqa: E501
|
|
698
|
+
warnings.warn("POST /v1/default/banks/{bank_id}/entities/{entity_id}/regenerate is deprecated.", DeprecationWarning)
|
|
681
699
|
|
|
682
700
|
_param = self._regenerate_entity_observations_serialize(
|
|
683
701
|
bank_id=bank_id,
|
|
@@ -723,9 +741,9 @@ class EntitiesApi:
|
|
|
723
741
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
724
742
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
725
743
|
) -> ApiResponse[EntityDetailResponse]:
|
|
726
|
-
"""Regenerate entity observations
|
|
744
|
+
"""(Deprecated) Regenerate entity observations (deprecated)
|
|
727
745
|
|
|
728
|
-
|
|
746
|
+
This endpoint is deprecated. Entity observations have been replaced by mental models.
|
|
729
747
|
|
|
730
748
|
:param bank_id: (required)
|
|
731
749
|
:type bank_id: str
|
|
@@ -754,6 +772,7 @@ class EntitiesApi:
|
|
|
754
772
|
:type _host_index: int, optional
|
|
755
773
|
:return: Returns the result object.
|
|
756
774
|
""" # noqa: E501
|
|
775
|
+
warnings.warn("POST /v1/default/banks/{bank_id}/entities/{entity_id}/regenerate is deprecated.", DeprecationWarning)
|
|
757
776
|
|
|
758
777
|
_param = self._regenerate_entity_observations_serialize(
|
|
759
778
|
bank_id=bank_id,
|
|
@@ -799,9 +818,9 @@ class EntitiesApi:
|
|
|
799
818
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
800
819
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
801
820
|
) -> RESTResponseType:
|
|
802
|
-
"""Regenerate entity observations
|
|
821
|
+
"""(Deprecated) Regenerate entity observations (deprecated)
|
|
803
822
|
|
|
804
|
-
|
|
823
|
+
This endpoint is deprecated. Entity observations have been replaced by mental models.
|
|
805
824
|
|
|
806
825
|
:param bank_id: (required)
|
|
807
826
|
:type bank_id: str
|
|
@@ -830,6 +849,7 @@ class EntitiesApi:
|
|
|
830
849
|
:type _host_index: int, optional
|
|
831
850
|
:return: Returns the result object.
|
|
832
851
|
""" # noqa: E501
|
|
852
|
+
warnings.warn("POST /v1/default/banks/{bank_id}/entities/{entity_id}/regenerate is deprecated.", DeprecationWarning)
|
|
833
853
|
|
|
834
854
|
_param = self._regenerate_entity_observations_serialize(
|
|
835
855
|
bank_id=bank_id,
|