Skip to content
Developers

Govern any agent with two API calls.

Evaluate before acting. Execute with a single-use authorisation. Everything else — policies, approvals, evidence — is handled by the platform.

Python
from nexform_govern import NexformGovern, governed_tool

govern = NexformGovern("https://govern.example", api_key=KEY)

@governed_tool(govern, action_type="read_customer_record",
               tool="crm.customer_lookup", classification="confidential")
def read_customer(receipt, customer_id: str):
    return receipt["result"]

# Works as a plain function, a LangChain @tool or a LangGraph node.
TypeScript
const d = await govern.evaluate({
  action_type: "send_email", tool: "email.send",
  parameters: { to, subject, body },
  data_classification: "confidential",
});

if (d.decision === "ALLOW")
  await govern.execute(d.action_request_id, action,
    { executionToken: d.execution!.execution_token });
else if (d.decision === "REQUIRE_APPROVAL")
  queueForLater(d.approval!.approval_id);   // poll /approvals/:id

REST API v1

Available
Evaluate, execute, decisions, approvals, events, agents and evaluations. Reference

SDKs

Available
Zero-dependency TypeScript and Python clients with a framework-agnostic governed tool wrapper.

Sample agents

Available
Runnable TypeScript and Python agents demonstrating allow, approval, tamper and exfiltration flows.

Signed webhooks

Available
decision.denied, approval.required/approved/rejected, incident.created, agent.suspended and more.

Playgrounds

Available
Request playground and policy simulation inside the developer portal.

Framework integration

Available
The governed tool wrapper works with LangChain, LangGraph and other agent frameworks; integration is agreed during onboarding.

Base URL: https://govern.nexformstudio.co.uk, issued with credentials during onboarding. Authentication: bearer agent credentials (ngk_…) or organisation API keys (ngo_…).