Current collected state Current
Observed since 20 Oct, 16:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python SDK for the Agent Action Ledger API
Python SDK for Agent Ink — the audit trail and logging API for AI agents. Full parity with the TypeScript SDK.
pip install aal-sdk
With optional integrations:
pip install aal-sdk[anthropic] # Anthropic client wrapper
pip install aal-sdk[mcp] # MCP server wrapper
import asyncio
from aal_sdk import AALClient
async def main():
client = AALClient({
"api_url": "https://api.agentink.dev",
"api_key": "your-api-key",
})
session = client.start_session({"agent_id": "my-agent"})
session.log_action({
"action_type": "TOOL_CALL",
"tool_name": "get_weather",
"parameters": {"city": "London"},
"response": {"temp": 15},
"status": "SUCCESS",
"latency_ms": 42,
})
await client.shutdown()
asyncio.run(main())
from aal_sdk import AALClient
from aal_sdk.anthropic import wrap_anthropic_client
from anthropic import AsyncAnthropic
client = AALClient({"api_url": "...", "api_key": "..."})
session = client.start_session({"agent_id": "claude-agent"})
anthropic = wrap_anthropic_client(AsyncAnthropic(), session)
# All tool_use blocks are now automatically logged
from aal_sdk import AALClient
from aal_sdk.mcp import wrap_mcp_server
from mcp import Server
client = AALClient({"api_url": "...", "api_key": "..."})
session = client.start_session({"agent_id": "mcp-agent"})
server = Server("my-server")
wrap_mcp_server(server, session)
# All tool calls are now automatically logged
AALClient(config) -- Create a client with api_url, api_key, optional flush_interval and batch_sizestart_session(config) -- Create a new session (returns AALSession)session(session_id, agent_id) -- Get a handle to an existing sessionget_events(params) -- Query events with optional filtersget_session(session_id) -- Get session detailsshutdown() -- Drain buffer and close connectionslog_action(input) -- Log an action event (buffered, auto-flushed)wrap_anthropic_client(client, session) -- Auto-log Anthropic tool_use blockswrap_mcp_server(server, session) -- Auto-log MCP tool callsFull documentation at agentink.dev/docs.
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.3 | 3 Mar 2026 | 7 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 16:58 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7add37d32204bd9fb136f1688ac1d0add079db879b478c4066835943d57a9892