Skip to main content

Hexify SDK

Config-driven Python SDK for building AI agents and RAG pipelines.

Import name: hexify · Pip name: hexify-ai · Python: 3.10+

v1 is a library, not a hosted API: config in, working agent out, in one Python call.

from hexify import Agent

agent = Agent(
    name="assistant",
    llm="claude-sonnet-5",
    system_prompt="You are a helpful assistant.",
)
print(agent.run("Hello!"))

Install

pip install hexify-ai

From this repo: pip install -e ".[dev]".

Quickstart (under 5 minutes)

  1. Python 3.10+ and an Anthropic API key.
  2. Set ANTHROPIC_API_KEY (export ANTHROPIC_API_KEY=sk-ant-... or, in PowerShell, $env:ANTHROPIC_API_KEY="sk-ant-...").
  3. pip install hexify-ai
  4. Run the snippet above, or:
python examples/basic_agent.py

Subsequent agent.run(...) calls on the same instance keep in-process conversation memory.

RAG + tools

from hexify import Agent, RAG

rag = RAG(
    source="./docs",
    embedder="openai",
    vectorstore="pgvector",
    pg_connection_string="postgresql://user:pass@localhost/hexify",
)
agent = Agent(
    name="support-bot",
    llm="claude-sonnet-5",
    rag=rag,
    tools=["web_search"],
    system_prompt="You are a support agent for Acme App.",
)
print(agent.run("How do I reset my password?"))

v1 models: claude-sonnet-5 (default), claude-haiku-4-5.
v1 vectorstore: pgvector only.
v1 built-in tools: web_search and send_email (deterministic stubs — no live web or SMTP).

RAG also needs OPENAI_API_KEY (embeddings) and a Postgres database with the vector extension.

CLI

hexify init
hexify run hexify.json --message "Hello"
hexify run hexify.json          # interactive prompt (quit / Ctrl-D to exit)

hexify.json is an AgentConfig file. Folder rag_source values are resolved relative to that file. Set HEXIFY_PG_CONNECTION_STRING when RAG is enabled.

Environment

Variable Used by
ANTHROPIC_API_KEY Claude (Agent.run)
OPENAI_API_KEY OpenAI embeddings (RAG)
HEXIFY_PG_CONNECTION_STRING pgvector (RAG, hexify run)

Custom tools

from hexify.tools import tool

@tool(
    name="order_status",
    description="Look up an order by id.",
    input_schema={
        "type": "object",
        "properties": {"order_id": {"type": "string"}},
        "required": ["order_id"],
    },
)
def order_status(args: dict) -> str:
    return f"Order {args['order_id']} shipped."

Then pass tools=["order_status"] (and any built-ins) into Agent.

Logging

Each Agent.run emits one JSON line on the hexify.run logger: tokens, latency (ms), tool names, RAG hit count, and ok. hexify run prints these on stderr.

Examples

Docs

Develop

For the full contributor guide (branching, testing, releasing), see DEVELOPING.md. The short version:

git clone https://github.com/asad926/hexify-sdk
cd hexify-sdk
python -m venv .venv
. .venv/Scripts/Activate.ps1   # Windows PowerShell
pip install -e ".[dev]"
pre-commit install             # optional but recommended
ruff check .
pytest --cov=hexify

cp .env.example .env to start a local secrets file (git-ignored).

License

MIT — see LICENSE.

Download files

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

Source Distribution

hexify_ai-0.1.1.tar.gz (64.1 kB view details)

Uploaded Source

Built Distribution

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

hexify_ai-0.1.1-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hexify_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 64.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hexify_ai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0fb82292785cc20159ef6bb466fcd1ac1c8c5cf1010ffa9a77a6b31c72a29d4c
MD5 1c824a907077dc40fc42595f1cd26740
BLAKE2b-256 b9a7e25308a2c02b2db0fe48328dc3441dab16dfae67253f0743b39ab6b3b8f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for hexify_ai-0.1.1.tar.gz:

Publisher: publish.yml on asad926/hexify-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: hexify_ai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 35.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hexify_ai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1798fcc2c4c9d14121e768452191528ae657771e74ae265bac6153ac7766514
MD5 8e387e2476aac9416ac5b6f0e3540d3e
BLAKE2b-256 c3aaabe99293c291de23c1f5bc8dbdbdade8e3ef06a34a67e0c0e3be48ec7cb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hexify_ai-0.1.1-py3-none-any.whl:

Publisher: publish.yml on asad926/hexify-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page