Python SDK Overview
The sictack package provides deterministic boundary control, policy enforcement, approval management, and immutable audit logs for Python-based AI agents.
Architecture
The SDK is designed to be lightweight, fail-closed, and non-intrusive. It wraps native Python tool functions, LangChain tools, LangGraph state graph nodes, and Model Context Protocol (MCP) clients with zero code changes required to the underlying tool implementations.
Public Module Exports
All primary classes and models are directly importable from the top-level sictack namespace:
from sictack import (
# Core In-Process Security Agent
SecureAgent,
# Centralized Remote Authorization Client
SictackClient,
# Data Models
ToolCall,
Decision,
# Configuration & Policy
Config,
Policy,
# Package Version
__version__,
)Framework adapters are located in their respective submodules under sictack.integrations:
# Optional Agentic Framework Adapters
from sictack.integrations.langchain import SecureTool, secure_langchain_tool
from sictack.integrations.langgraph import SecureGraphNode
from sictack.integrations.mcp import MCPSecurityProxyIn-Process (SecureAgent) vs Remote Gateway (SictackClient)
Choose the pattern that matches your deployment topology:
| Feature | SecureAgent (In-Process) | SictackClient (Remote) |
|---|---|---|
| Execution Location | Directly in Python memory | FastAPI backend over HTTPS |
| Network Latency | Sub-millisecond (< 0.5ms) | 10ms – 50ms depending on region |
| Tool Invocation | Executes the registered Python function | Returns decision; caller runs tool |
| Policy Storage | Local in-memory Policy instance | PostgreSQL database with versioning |
| SOC Dashboard Telemetry | Local memory audit logs | Real-time centralized SOC dashboard |
| Authentication | Local agent_id & permissions list | API Key header (X-API-Key) |
SDK Documentation Guides
Learn constructors, parameters, policies, and configuration options.
Register tools and wrap LangChain, LangGraph, and MCP tools.
Understand DecisionVerdict, RiskLevel, and human-in-the-loop workflows.
Comprehensive guide to the SictackError exception hierarchy.