Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hindsight-integrations/ag2/hindsight_ag2/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def create_hindsight_tools(
recall_tags_match: Tag matching mode (any/all/any_strict/all_strict).
retain_metadata: Default metadata dict for retain operations.
retain_document_id: Default document_id for retain (groups/upserts memories).
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_include_entities: Include entity information in recall results.
reflect_context: Additional context for reflect operations.
reflect_max_tokens: Max tokens for reflect results (defaults to max_tokens).
Expand Down
2 changes: 1 addition & 1 deletion hindsight-integrations/autogen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ tools = create_hindsight_tools(
| `recall_tags_match` | `"any"` | Tag matching mode (any/all/any\_strict/all\_strict) |
| `retain_metadata` | `None` | Default metadata dict for retain operations |
| `retain_document_id` | `None` | Default document\_id for retain (groups/upserts memories) |
| `recall_types` | `None` | Fact types to filter (world, experience, opinion, observation) |
| `recall_types` | `None` | Fact types to filter (world, experience, observation) |
| `recall_include_entities` | `False` | Include entity information in recall results |
| `reflect_context` | `None` | Additional context for reflect operations |
| `reflect_max_tokens` | `None` | Max tokens for reflect results (defaults to `max_tokens`) |
Expand Down
2 changes: 1 addition & 1 deletion hindsight-integrations/autogen/hindsight_autogen/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def create_hindsight_tools(
recall_tags_match: Tag matching mode (any/all/any_strict/all_strict).
retain_metadata: Default metadata dict for retain operations.
retain_document_id: Default document_id for retain (groups/upserts memories).
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_include_entities: Include entity information in recall results.
reflect_context: Additional context for reflect operations.
reflect_max_tokens: Max tokens for reflect results (defaults to max_tokens).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def create_hindsight_tools(
recall_tags_match: Tag matching mode (any/all/any_strict/all_strict).
retain_metadata: Default metadata dict for retain operations.
retain_document_id: Default document_id for retain (groups/upserts memories).
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_include_entities: Include entity information in recall results.
reflect_context: Additional context for reflect operations.
reflect_max_tokens: Max tokens for reflect results (defaults to max_tokens).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class HindsightContinueConfig:
it via ``options.bankId``).
budget: Recall budget level (low/mid/high).
max_tokens: Maximum tokens for recall results.
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_tags: Tags to filter recalled memories.
recall_tags_match: Tag matching mode (any/all/any_strict/all_strict).
item_name: Title shown for the injected context item in Continue.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def create_hindsight_tools(
recall_tags_match: Tag matching mode (``any``/``all``/``any_strict``/``all_strict``).
retain_metadata: Default metadata dict for retain operations.
retain_document_id: Default document_id for retain (groups/upserts memories).
recall_types: Fact types to filter (``world``, ``experience``, ``opinion``, ``observation``).
recall_types: Fact types to filter (``world``, ``experience``, ``observation``).
recall_include_entities: Include entity information in recall results.
reflect_context: Additional context for reflect operations.
reflect_max_tokens: Max tokens for reflect results (defaults to ``max_tokens``).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def create_hindsight_tools(
retain_document_id: Default document_id for retain. If None,
auto-generates per call.
retain_context: Source label for retain operations.
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_include_entities: Include entity information in recall results.
reflect_context: Additional context for reflect operations.
reflect_max_tokens: Max tokens for reflect results (defaults to max_tokens).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class AgentState(MessagesState):
max_results: Maximum number of memories to inject.
tags: Tags to filter recall results.
tags_match: Tag matching mode.
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_include_entities: Include entity information in recall results.
bank_id_from_config: Config key to read bank_id from at runtime.
Looked up in ``config["configurable"][bank_id_from_config]``.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def create_hindsight_tools(
recall_tags_match: Tag matching mode (any/all/any_strict/all_strict).
retain_metadata: Default metadata dict for retain operations.
retain_document_id: Default document_id for retain (groups/upserts memories).
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_include_entities: Include entity information in recall results.
reflect_context: Additional context for reflect operations.
reflect_max_tokens: Max tokens for reflect results (defaults to max_tokens).
Expand Down
8 changes: 4 additions & 4 deletions hindsight-integrations/litellm/hindsight_litellm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class HindsightCallSettings:
injection_mode: How to inject memories (system_message or prepend_user)

budget: Budget level for memory recall (low, mid, high)
fact_types: Filter by fact types (world, experience, opinion, observation)
fact_types: Filter by fact types (world, experience, observation)
max_memories: Maximum memories to inject (None = no limit)
max_memory_tokens: Maximum tokens for memory context
include_entities: Include entity observations in recall results
Expand Down Expand Up @@ -109,7 +109,7 @@ class HindsightCallSettings:

# Recall settings
budget: str = "mid" # low, mid, high
fact_types: Optional[List[str]] = None # world, experience, opinion, observation
fact_types: Optional[List[str]] = None # world, experience, observation
max_memories: Optional[int] = None # None = no limit
max_memory_tokens: int = 4096
include_entities: bool = True
Expand Down Expand Up @@ -282,7 +282,7 @@ def configure(
inject_memories: Whether to inject memories (default: True)
injection_mode: How to inject memories (system_message or prepend_user)
budget: Recall budget level - low/mid/high (default: "mid")
fact_types: Filter by fact types (world/experience/opinion/observation)
fact_types: Filter by fact types (world/experience/observation)
max_memories: Max memories to inject (None = no limit)
max_memory_tokens: Max tokens for memory context (default: 4096)
include_entities: Include entity observations in recall (default: True)
Expand Down Expand Up @@ -423,7 +423,7 @@ def set_defaults(
inject_memories: Whether to inject memories
injection_mode: How to inject memories (system_message or prepend_user)
budget: Budget level for memory recall (low, mid, high)
fact_types: Fact types to filter (world, experience, opinion, observation)
fact_types: Fact types to filter (world, experience, observation)
max_memories: Max number of memories to inject
max_memory_tokens: Max tokens for memory context
include_entities: Include entity observations in recall
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class HindsightToolSpec(BaseToolSpec):
retain_document_id: Default document_id for retain. If None,
auto-generates ``{session_id}-{timestamp_ms}`` per call.
retain_context: Source label for retain operations (default: "llamaindex").
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_include_entities: Include entity information in recall results.
reflect_context: Additional context for reflect operations.
reflect_max_tokens: Max tokens for reflect results (defaults to max_tokens).
Expand Down Expand Up @@ -386,7 +386,7 @@ def create_hindsight_tools(
retain_document_id: Default document_id for retain. If None,
auto-generates per call.
retain_context: Source label for retain operations.
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_include_entities: Include entity information in recall results.
reflect_context: Additional context for reflect operations.
reflect_max_tokens: Max tokens for reflect results (defaults to max_tokens).
Expand Down
2 changes: 1 addition & 1 deletion hindsight-integrations/openai-agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ tools = create_hindsight_tools(
| `recall_tags_match` | `"any"` | Tag matching mode (any/all/any\_strict/all\_strict) |
| `retain_metadata` | `None` | Default metadata dict for retain operations |
| `retain_document_id` | `None` | Default document\_id for retain (groups/upserts memories) |
| `recall_types` | `None` | Fact types to filter (world, experience, opinion, observation) |
| `recall_types` | `None` | Fact types to filter (world, experience, observation) |
| `recall_include_entities` | `False` | Include entity information in recall results |
| `reflect_context` | `None` | Additional context for reflect operations |
| `reflect_max_tokens` | `None` | Max tokens for reflect results (defaults to `max_tokens`) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def create_hindsight_tools(
recall_tags_match: Tag matching mode (any/all/any_strict/all_strict).
retain_metadata: Default metadata dict for retain operations.
retain_document_id: Default document_id for retain (groups/upserts memories).
recall_types: Fact types to filter (world, experience, opinion, observation).
recall_types: Fact types to filter (world, experience, observation).
recall_include_entities: Include entity information in recall results.
reflect_context: Additional context for reflect operations.
reflect_max_tokens: Max tokens for reflect results (defaults to max_tokens).
Expand Down