Skip to main content

Official Python SDK for Peargent Echo

Project description

peargent-echo

Official Python SDK for Peargent Echo — persistent memory for AI agents.

Installation

pip install peargent-echo

Quick Start

from peargent_echo import PeargentEcho

client = PeargentEcho(api_key="YOUR_API_KEY")  # Get from https://echo.peargent.online/dashboard

# Store a memory
client.add_memory("User prefers Python over JavaScript.")

# Search memories
results = client.search("programming preferences")
print(results)

# Get user profile
profile = client.get_profile()
print(profile)

API Reference

add_memory(content, **options)

Store a new memory. Similar memories are automatically merged.

Option Type Default Description
filter bool True Filter irrelevant content
extract bool True Extract entities & facts
agent_id str - Agent identifier
run_id str - Conversation run ID
metadata dict - Custom JSON metadata

search(query, **options)

Semantically search through stored memories.

Option Type Default Description
limit int 10 Max results to return
include_graph bool False Include related memories

get_profile()

Get the auto-generated user profile from stored memories.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peargent_echo-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peargent_echo-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file peargent_echo-0.1.0.tar.gz.

File metadata

  • Download URL: peargent_echo-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for peargent_echo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 05644623b21355e6c6fc84c1f0340e8d68b69ec2ca364b38b9dda5374587936e
MD5 c9bfafe29004a3b7cc77eb3ac486aff2
BLAKE2b-256 c7f05079ce864599d76ab8e1f77d84f2da39fd6305fa8c22c13a4a4df0370beb

See more details on using hashes here.

File details

Details for the file peargent_echo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: peargent_echo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for peargent_echo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2293395bd4e18ded644fcbdb6dae8277cc29d0609d573c2e754187d4eb82d214
MD5 537f8527767cf54019e453ad9af279bf
BLAKE2b-256 b976ac702f859f57b2e653ad9db32ce9a66e1c360d18df6a1dec9ea0f59c66c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page