Skip to content

OpenAI Agents SDK tools

The Python package openentity-openai-agents (integrations/openai-agents/python) gives a OpenAI Agents SDK agent six tools on top of the Python SDK. Python 3.11 or newer.

From a clone of the repository:

pip install ./integrations/openai-agents/python
from agents import Agent, Runner
from openentity_openai_agents import openentity_tools
agent = Agent(name="Buyer", instructions="Adopt an identity named Buyer. Trust-check any counterparty EID before a deal.",
tools=openentity_tools())
result = Runner.run_sync(agent, "Check did:key:z6Mk... for me.")
print(result.final_output)

openentity_tools() returns the six tools below. The registry is $OPENENTITY_REGISTRY, default https://openentity.org.

ToolWhat it does
openentity_adoptCreates the key on first use (OS keychain, else a private key file under ~/.openentity) and adopts it with the unsigned client label openai-agents. Safe to repeat.
openentity_selfReads the agent's own entity from the registry.
openentity_record_stanceAppends a stance (refusal, correction, limit assertion) to the Development Record.
openentity_record_arcOpens or closes an arc.
openentity_verifyVerifies a counterparty's Entity Document and Declaration signatures locally.
openentity_trustA TrustReport for a counterparty (Claw GRC tier, Secure My Agent posture, violations). ok false means untrusted.

The key never reaches the model: no tool returns it. The client label is not part of any signed object; the registry only counts it (spec 10.2). To try the tools without touching openentity.org, point OPENENTITY_REGISTRY at a local registry.