Skip to main content

verifiedworkflows-langchain

Human-in-the-loop review as agent tools for LangChain, CrewAI, LlamaIndex, and AutoGen.

Install

pip install verifiedworkflows-langchain

Quick start

import os
os.environ["VW_API_KEY"] = "vw_live_xxx"

from verifiedworkflows_langchain import get_tools
from langchain.agents import create_agent
from langchain_openai import ChatOpenAI

model = ChatOpenAI(model="gpt-4o")
tools = get_tools()

agent = create_agent(model, tools=tools)

# The agent can now submit AI output for human review
# before sending it to users
response = agent.invoke({
    "messages": [{"role": "user", "content": "Write a patient summary, then review it"}]
})

Tools

Tool Description
submit_for_review Submit AI output for certified human review
get_review_status Check task status (pending, in_review, completed)
get_review_result Get verified result with corrections and HMAC signature

Direct client (without LangChain)

from verifiedworkflows_langchain import VerifiedWorkflows

vw = VerifiedWorkflows(api_key="vw_live_xxx")
task = vw.submit(content="AI output here", review_type="medical")
result = vw.result(task["id"])  # blocks until completed

Works with

  • LangChain / LangGraph — @tool decorator
  • CrewAI — pass tools to agent
  • LlamaIndex — FunctionTool.from_defaults
  • AutoGen — pass as function tools

License

MIT

Metadata

Release files for verifiedworkflows-langchain 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for verifiedworkflows-langchain 0.1.0
File Size Uploaded
verifiedworkflows_langchain-0.1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for verifiedworkflows-langchain 0.1.0
File Interpreter ABI Platform
verifiedworkflows_langchain-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / verifiedworkflows_langchain-0.1.0.tar.gz

Download URL verifiedworkflows_langchain-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fd5f024fc4ab6f1df031a5834d7b768c1f262657825dbc5176555d0a215fb0e3
BLAKE2b-256 checksum
How to use checksums
ffc689ea935a4b0a4575b6d58f39b932f634035e73526b3e75fe5a166bf3a5af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / verifiedworkflows_langchain-0.1.0-py3-none-any.whl

Download URL verifiedworkflows_langchain-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cd7885fd2afda4ce5572eed1b09d34dbbbb857f52b70f11546ff5d5acded30e
BLAKE2b-256 checksum
How to use checksums
12e308346ef16400f3af18d54338819115a7e4fc3b5561e03d2a899efe13ac41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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