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.
Check generated-code workflows at their execution boundaries.
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.
Attach the firewall to the agent and use the secure runner. Generated code still needs a constrained executor and destination permissions.
A research task produces code that tries to send environment metadata to an external endpoint. Check the action before the executor permits the side effect.
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.
# Install Hugging Face smolagents support.
python -m pip install "agenticdome-python-sdk[smolagents]"
from agenticdome_sdk.smolagents import AgenticDomeSmolagentsFirewall
firewall = AgenticDomeSmolagentsFirewall()
firewall.attach_firewall(agent, session_id="sess_prod_01J4X", agent_id="smolagents_agent")
result = firewall.run_agent_securely(agent, task, session_id="sess_prod_01J4X")
# Run the local vulnerable-vs-protected generated-code demo.
agenticdome-demo --framework smolagents --scenario metadata_exfilPython 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.