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 —
@tooldecorator - 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)
| File | Size | Uploaded | |
|---|---|---|---|
| verifiedworkflows_langchain-0.1.0.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|