Complete reference for LockStock Python and Rust SDKs
The core class for creating and managing cryptographic agent identities.
| Parameter | Type | Description |
|---|---|---|
| agent_id | str | Unique identifier for the agent |
| secret_key | str | HMAC secret key for signing operations |
agent = Agent.create("analytics-bot-001", "your-secret-key")
| Parameter | Type | Description |
|---|---|---|
| task_type | str | Task identifier (e.g., "PROCESS_DATA", "ANALYZE", "SYNC") |
| payload | dict | Task-specific data and parameters |
result = await agent.execute_task("PROCESS_DATA", {
"input": "customer_data.csv",
"operation": "analyze"
})
audit_log = agent.get_audit_trail()
for entry in audit_log:
print(f"Seq: {entry.sequence} | Task: {entry.task}")
passport_data = agent.export_passport() # Transfer to new server new_agent = Agent.import_passport(passport_data)
Enterprise security monitoring and causal auditing.
| Parameter | Type | Description |
|---|---|---|
| agent_id | str | Agent to monitor |
| threshold | float | Max allowed state transitions per second |
status = Guard.monitor_velocity("agent-001", threshold=50.0)
if status.is_anomaly:
print("Rogue agent detected!")
Need help? Email hello@d3cipher.ai or view the Quickstart Guide