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

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

hexify_ai-0.1.0.tar.gz (57.2 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.0-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

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

Hashes for hexify_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 43493d8c4f9c2087c5d4595dafe7c1c1029dfe1ad721ee17df5d63c5ce7c36a7
MD5 81373d0c6a3a1457488ed002aaa62249
BLAKE2b-256 e2c17381ed6fbc6df424a0a41b75af1a732cbe224a6b1ee71545389ddd833950

See more details on using hashes here.

Provenance

The following attestation bundles were made for hexify_ai-0.1.0.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.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

Hashes for hexify_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd664082f287820c6490d856c6177d93746b1e8110989b1c1d50d84d9d7226c
MD5 d3cc5ea6ec622da062ed76a1402eedf1
BLAKE2b-256 a749d3ce8d8a9eca16fc5a2287b86d104a00900a2c2e9108c9266cf079d96ca7

See more details on using hashes here.

Provenance

The following attestation bundles were made for hexify_ai-0.1.0-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

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

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