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.1.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.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: humandelta-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d01e6229e2b8aa52b1a469491282b1f126ebf9f5274b48fa30a7791d2b6cd45f
MD5 7901c6fb8f42ba99391b34bc260a6634
BLAKE2b-256 97c8c5295de2e1f98717eaf83a2670ad019e29db032a8fca1858ad708b058d82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: humandelta-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c702c1eb2314faf89a135dcb610db16b66e3dd33301754888ef525a8a70d326
MD5 50de23d3b17e4e673aa22849e526622e
BLAKE2b-256 f456352947d24b659ff5383b442e1a968930757fa8dbadcd214c476013f27a01

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