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)
- Python 3.10+ and an Anthropic API key.
- Set
ANTHROPIC_API_KEY(export ANTHROPIC_API_KEY=sk-ant-...or, in PowerShell,$env:ANTHROPIC_API_KEY="sk-ant-..."). pip install hexify-ai- 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
examples/basic_agent.py— smallest working agentexamples/rag_support_bot.py— RAG +web_searchexamples/hexify.json— CLI config
Docs
- User guide — config schema, CLI, tools, memory, limits
- v1 build spec — scope and public API contract
Develop
pip install -e ".[dev]"
ruff check .
pytest --cov=hexify
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hexify_ai-0.1.0.tar.gz.
File metadata
- Download URL: hexify_ai-0.1.0.tar.gz
- Upload date:
- Size: 57.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43493d8c4f9c2087c5d4595dafe7c1c1029dfe1ad721ee17df5d63c5ce7c36a7
|
|
| MD5 |
81373d0c6a3a1457488ed002aaa62249
|
|
| BLAKE2b-256 |
e2c17381ed6fbc6df424a0a41b75af1a732cbe224a6b1ee71545389ddd833950
|
Provenance
The following attestation bundles were made for hexify_ai-0.1.0.tar.gz:
Publisher:
publish.yml on asad926/hexify-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hexify_ai-0.1.0.tar.gz -
Subject digest:
43493d8c4f9c2087c5d4595dafe7c1c1029dfe1ad721ee17df5d63c5ce7c36a7 - Sigstore transparency entry: 2604616367
- Sigstore integration time:
-
Permalink:
asad926/hexify-sdk@f1660ff381f12347b47860f2f0f322fa7a9437eb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/asad926
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1660ff381f12347b47860f2f0f322fa7a9437eb -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file hexify_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hexify_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bd664082f287820c6490d856c6177d93746b1e8110989b1c1d50d84d9d7226c
|
|
| MD5 |
d3cc5ea6ec622da062ed76a1402eedf1
|
|
| BLAKE2b-256 |
a749d3ce8d8a9eca16fc5a2287b86d104a00900a2c2e9108c9266cf079d96ca7
|
Provenance
The following attestation bundles were made for hexify_ai-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on asad926/hexify-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hexify_ai-0.1.0-py3-none-any.whl -
Subject digest:
3bd664082f287820c6490d856c6177d93746b1e8110989b1c1d50d84d9d7226c - Sigstore transparency entry: 2604616412
- Sigstore integration time:
-
Permalink:
asad926/hexify-sdk@f1660ff381f12347b47860f2f0f322fa7a9437eb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/asad926
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f1660ff381f12347b47860f2f0f322fa7a9437eb -
Trigger Event:
workflow_dispatch
-
Statement type: