LangGraph agent with approval
A LangGraph agent whose risky tool runs only after the person approved on their phone.
This page is a draft. The code exists, and not all of it has been run for this page yet. The page says what was checked.
What you get
- A graph with a planning node, an
ask_humannode and a tool node. - A cancelled action that the model learns about.
Create it
pip install -r requirements.txt
cp .env.example .env
python wire_agent.py
Settings
| Variable | Value |
|---|---|
LUMOAUTH_URL | https://app.lumoauth.dev, or https://eu.app.lumoauth.dev for the EU region. |
LUMOAUTH_ORG_ID | Your organization, for example acme-corp. |
AGENT_CLIENT_ID, AGENT_CLIENT_SECRET | The credentials of the agent. |
APPROVER_EMAIL | The person to ask. They need the LumoAuth app. |
OPENAI_API_KEY | A key for the model. |