Skip to main content

Human Delta dev platform SDK — Knowledge Infrastructure for Agent Applications

Project description

humandelta

Python SDK for Human Delta — Knowledge Infrastructure for Agent Applications.

Install

pip install humandelta

Quickstart

from humandelta import HumanDelta

hd = HumanDelta(api_key="hd_live_...")

# Crawl a website and wait for it to finish
job = hd.indexes.create("https://support.yoursite.com", max_pages=50)
job.wait()

# Semantic search
results = hd.search("how do I cancel my subscription")
for r in results:
    print(r.score, r.source_url)
    print(r.text[:200])

# Read a file from Memory by path
print(hd.fs.read("/memory/SOURCES.md"))

# List a directory
for entry in hd.fs.list("/source/website"):
    print(entry.path, "DIR" if entry.is_dir else "")

# Upload a PDF or audio file
doc = hd.documents.upload("./manual.pdf", category="support")
print(doc.doc_id)

API reference

HumanDelta(api_key, base_url?)

Method Description
hd.search(query, top_k=10) Semantic search over all ingested sources
hd.fs.read(path) Read a file from Memory
hd.fs.list(path) List directory entries
hd.fs.shell(cmd) Run a shell command (bash, grep, tree, etc.)
hd.fs.write(path, content) Write to /agent/ or /me/ (requires fs:write scope)
hd.fs.delete(path) Delete from /agent/ or /me/ (requires fs:write scope)
hd.indexes.create(url, max_pages, name) Start a website crawl
hd.indexes.get(job_id) Fetch a single index job
hd.indexes.list() List recent index jobs
hd.documents.upload(file_path, category?, doc_name?) Upload PDF, audio, image, or CSV
hd.documents.list(category?) List uploaded documents
hd.documents.delete(doc_id) Delete a document

IndexJob

Method Description
.wait(interval=3, timeout=600) Block until crawl finishes
.refresh() Fetch latest status
.cancel() Cancel a running job

Memory layout

/memory/          ← agent hub (README, SOURCES)
/source/website/  ← crawled websites
/source/zendesk2/ ← Zendesk articles
/agent/           ← org-wide writable notes
/me/              ← user-private notes
/uploads/         ← uploaded files (extracted text)

Auth

All requests use Authorization: Bearer hd_live_.... Get your key from the Human Delta dashboard or from your hackathon organizer.

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

humandelta-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

humandelta-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: humandelta-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.14.3 HTTPX/0.28.1

File hashes

Hashes for humandelta-0.1.0.tar.gz
Algorithm Hash digest
SHA256 21ca553166f11fa619c00b16d1d70b99d3a8f0a4752b702ed8fbb186b7c9bb7f
MD5 d3e7e924a3bf1e4437c6da03d6cf0838
BLAKE2b-256 cb233722887be468c6485985ac18612bf7c3109bcadd1c2f26f970359af07277

See more details on using hashes here.

File details

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

File metadata

  • Download URL: humandelta-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.14.3 HTTPX/0.28.1

File hashes

Hashes for humandelta-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acab333c2017d074daaf85b8b7e2b37f6fa8941a3e636d451b2b6ad3e17fed55
MD5 62ea19005f2a607e172d668cbdd46e35
BLAKE2b-256 799f4ff7f1075789b0dbe7f35a1a803f7b0318281d91c58f376d95b798f9069d

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