跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Hindsight API

MCP 活跃

Hindsight: Agent Memory That Learns

目的

To provide AI agents with a sophisticated, human-like memory system that enhances their ability to store, recall, and reason about information over time.

功能

  • Temporal and semantic memory retrieval
  • Entity graph for relationship tracking
  • Configurable disposition traits for opinion formation
  • Support for multiple LLM providers
  • REST API, CLI, and MCP server interfaces

使用场景

  • Building persistent memory for long-running AI agents
  • Enabling agents to reason about past events and user preferences
  • Integrating memory capabilities into existing AI workflows via MCP
  • Developing AI assistants that learn and adapt over time

非目标

  • Acting as a general-purpose database
  • Providing direct LLM inference capabilities
  • Replacing the core agent execution logic

工作流

  1. Initialize memory engine
  2. Create or select a memory bank
  3. Store (retain) facts, events, or opinions
  4. Recall memories based on queries
  5. Reflect on memories to form new opinions or reason

实践

  • Data management
  • AI memory architecture
  • API design
  • Security best practices

先决条件

  • PostgreSQL (or embedded pg0)
  • LLM API key and provider configuration
  • Python 3.11+

Maintenance

  • warning:Dependency ManagementThe pyproject.toml lists numerous pinned dependencies and transitive dependency fixes, but lacks explicit measures like Dependabot configuration for automated updates and vulnerability checks.

Code Execution

  • info:LoggingThe application uses standard Python logging, with configurable levels, but doesn't appear to implement a dedicated local audit file for destructive actions.

Execution

  • info:Pinned dependenciesDependencies are pinned in `pyproject.toml`, but lockfiles for transitive dependencies are not explicitly managed or checked for vulnerabilities.

质量评分

99 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标13.2k
许可证MIT
状态
查看源代码