Skip to main content

VerifiedX Python SDK

Project description

VerifiedX Python SDK

Minimal Python SDK for framework-native VerifiedX capture and boundary preflight.

Install

pip install verifiedx

Set VERIFIEDX_API_KEY in the app environment. VERIFIEDX_BASE_URL is optional and only needed for self-hosting or non-default environments.

Quickstart

from verifiedx import init_verifiedx

vx = init_verifiedx()


class AgentHarness:
    def call_model(self, messages):
        return {"messages": messages}

    def send_email(self, to, body):
        return {"to": to, "body": body, "status": "sent"}


harness = AgentHarness()
vx.install_runtime(
    harness,
    llm={"call_model": {"model_name": "gpt-5.4-mini"}},
    tools={"send_email": {}},
)

init_verifiedx() stays stable. The default integration path is now a single install_runtime(...) bind that auto-instruments supported Python runtime surfaces, captures conversation windows, and routes boundary decisions through the V4 raw-capture lane without builder-authored semantic callbacks.

LangGraph: from verifiedx.langgraph import compile

LangGraph native adapter, few LOC:

from verifiedx import init_verifiedx, install_langgraph
from langgraph.graph import StateGraph

vx = init_verifiedx()
install_langgraph(verifiedx=vx)

builder = StateGraph(MyState)
# add nodes / edges as usual
graph = builder.compile(checkpointer=my_checkpointer, store=my_store)

That path keeps LangGraph-native capture and trigger naming for Command(update=...), graph.update_state, store.get/search/put/delete, checkpointer.put/put_writes, LangGraph tool execution through BaseTool.invoke/ainvoke, AIMessage.tool_calls, and ToolMessage.tool_call_id.

LangChain: from verifiedx.langchain import create_agent

OpenAI direct: from verifiedx import install_openai_direct

OpenAI Agents: from verifiedx import install_openai_agents

Anthropic direct: from verifiedx import install_anthropic_direct

Claude Agent SDK: from verifiedx import install_claude_agent

Doctor: verifiedx doctor

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

verifiedx-0.1.1.tar.gz (130.8 kB view details)

Uploaded Source

Built Distribution

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

verifiedx-0.1.1-py3-none-any.whl (140.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: verifiedx-0.1.1.tar.gz
  • Upload date:
  • Size: 130.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for verifiedx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0ff368ad572978a133bb3d073a1640010048fcbe47f1245e2e22c6bd570e2338
MD5 8a0c7ae192ffc12d43fb9d20cb9601ae
BLAKE2b-256 e4402860cd5ee3cbd6e3c9ea151c5fb61865f4e588009f17a632128a42d137d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: verifiedx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 140.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for verifiedx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e63d42ce5f1f1a6a33c0ede1d3393c9346d9511e8ed36f2419d081e2407c8275
MD5 70ac92ce6589c28b52ef78775a7864d4
BLAKE2b-256 5419722f79f3772cdf9fe2eed8ae86f7a69c73740ae3ad7707241778d7ed407d

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