Python SDKv1.0.0 Reference

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:

sdk_imports.py
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:

integrations.py
# Optional Agentic Framework Adapters
from sictack.integrations.langchain import SecureTool, secure_langchain_tool
from sictack.integrations.langgraph import SecureGraphNode
from sictack.integrations.mcp import MCPSecurityProxy

In-Process (SecureAgent) vs Remote Gateway (SictackClient)

Choose the pattern that matches your deployment topology:

FeatureSecureAgent (In-Process)SictackClient (Remote)
Execution LocationDirectly in Python memoryFastAPI backend over HTTPS
Network LatencySub-millisecond (< 0.5ms)10ms – 50ms depending on region
Tool InvocationExecutes the registered Python functionReturns decision; caller runs tool
Policy StorageLocal in-memory Policy instancePostgreSQL database with versioning
SOC Dashboard TelemetryLocal memory audit logsReal-time centralized SOC dashboard
AuthenticationLocal agent_id & permissions listAPI Key header (X-API-Key)

SDK Documentation Guides