* feat: add Pydantic AI integration for persistent agent memory Adds hindsight-pydantic-ai package providing Hindsight-backed memory tools for Pydantic AI agents. Since Pydantic AI is async-native, tools use the hindsight-client async API directly (no thread-pool compat layer). - create_hindsight_tools(): factory returning retain/recall/reflect Tool instances - memory_instructions(): auto-injects relevant memories via Agent instructions - Global configure()/get_config()/reset_config() following existing integration pattern Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * doc: add README for Pydantic AI integration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
7 lines
154 B
Python
7 lines
154 B
Python
"""Hindsight-Pydantic AI error types."""
|
|
|
|
|
|
class HindsightError(Exception):
|
|
"""Exception raised when a Hindsight memory operation fails."""
|
|
|
|
pass
|