Python SDK
agenticdome-python-sdk
One SDK for the 15 Python framework and runtime paths, with framework-specific installation extras. Includes the local demo and onboarding CLI.
Call the Action Firewall before your own dispatcher executes.
agenticdome-python-sdk
One SDK for the 15 Python framework and runtime paths, with framework-specific installation extras. Includes the local demo and onboarding CLI.
Your application submits the final tool arguments, rejects non-allow decisions and applies sanitised arguments when returned. Test errors and timeouts explicitly.
A custom CRM agent attempts a record update beyond the requested task. Evaluate the final update and stop the dispatcher when policy denies it.
Illustrative workflow, not a customer deployment or a measured result.
Adapt this existing SDK pattern to your application. Names such as the agent, handler and session refer to your own objects. Follow the package documentation for compatible versions and complete setup.
Python 3.11+ is required for the Python SDK and local demo commands.
# The core package has no framework dependency.
pip install agenticdome-python-sdk
from agenticdome_sdk import AgenticDomeClient
client = AgenticDomeClient()
decision = client.guardrail_validate(
text="Update customer", agent_id="custom-agent", platform="custom_python", tool_name="crm.customer.update", tool_args=final_args
)
if str(decision.get("verdict") or decision.get("decision") or "UNKNOWN").upper() != "ALLOWED": raise RuntimeError("AgenticDome blocked the action")
update_customer(decision.get("sanitized_tool_args") or final_args)
agenticdome-demo --framework custom-python --scenario refund_hijackPython demo commands evaluate fixed inputs against a bundled local policy; they do not instantiate the selected framework or prove a live integration. The TypeScript client and OpenClaw runtime plugin need their documented tenant configuration.
For compatible MCP, API, GraphQL and A2A requests, configure the assigned sidecar gateway without adding AgenticDome SDK hooks. Use the SDK path above for internal tools and richer framework context.
Explore a local action-security example, plan your approach with Abi or bring your environment to a deployment review.