Skip to main content

isA Agent SDK

Tests Dependency Audit

A complete AI Agent SDK for building intelligent agents with advanced features. Compatible with Claude Agent SDK patterns, with additional capabilities.

Features

  • Claude Agent SDK Compatible - Familiar API patterns
  • Streaming Messages - Real-time response streaming
  • Built-in Tools - Read, Write, Edit, Bash, WebSearch, etc.
  • MCP Integration - Model Context Protocol with offline fallback
  • Human-in-the-Loop - Durable execution with checkpoints
  • Skills System - Local-first skill loading with MCP fallback
  • Project Config - .isa directory for project-specific settings
  • Event Triggers - Proactive agent activation
  • Hardware Service Clients - Device registry, telemetry and OTA integration through isA_user
  • Multiple Execution Modes - Reactive, Collaborative, Proactive
  • A2A Ready - Agent Card + JSON-RPC client/server adapters
  • Multi-Agent Swarm - Dynamic agent handoffs with [HANDOFF:] directives
  • DAG Task Execution - Dependency-ordered workflows with parallel wavefronts
  • Production Resilience - Circuit breakers, bulkhead isolation, error classification, recovery playbooks
  • Observability - OpenTelemetry tracing, structured error logging, Prometheus metrics
  • Intent-Driven Routing - SenseNode classifies intent for automatic model tier selection
  • Graceful Degradation - Nodes skip optional operations when services are degraded
  • 3,500+ Tests - Comprehensive coverage including chaos tests

Required Session durability

Session-backed applications can set ISAAgentOptions(session_persistence_required=True). This requires a configured Session service, the Session checkpointer, and a live caller request scope. Ownership and an accepted user transcript receipt are verified before model work; each model dispatch rechecks Session authorization. Checkpoint or transcript rejection prevents successful completion, including when memory_mode="off". Streamed text remains provisional until completion. The option defaults to False, preserving optional persistence for ordinary SDK callers. It cannot be combined with disabled platform services or typed Runtime authority. Resume requires a fresh caller scope and does not invent a new user message.

Multi-Agent Patterns

Installation

pip install isa-agent-sdk

# With FastAPI server support
pip install isa-agent-sdk[server]

# With OpenTelemetry tracing
pip install isa-agent-sdk[observability]

Project Setup

Initialize a .isa directory for project-specific configuration:

mkdir -p .isa/skills
my-project/
├── .isa/
│   ├── config.json          # Project configuration
│   ├── settings.local.json  # MCP servers, permissions
│   └── skills/              # Local skills (loaded first)
│       └── my-skill/
│           └── SKILL.md
└── ...

Skills in .isa/skills/ are loaded before MCP, allowing project-specific overrides.

Quick Start

Basic Query

from isa_agent_sdk import query, ISAAgentOptions

# Simple usage
async for msg in query("Hello, world!"):
    print(msg.content)

# With options
async for msg in query(
    "Fix the bug in auth.py",
    options=ISAAgentOptions(
        allowed_tools=["Read", "Edit", "Bash"],
        execution_mode="collaborative"
    )
):
    if msg.is_text:
        print(msg.content, end="")
    elif msg.is_tool_use:
        print(f"[Tool: {msg.tool_name}]")

Human-in-the-Loop

from isa_agent_sdk import request_tool_permission, checkpoint

# Request permission before dangerous operations
authorized = await request_tool_permission(
    "delete_file",
    {"path": "important_data.txt"}
)
if authorized:
    # proceed with deletion
    pass

# Create checkpoints for durable execution
await checkpoint("about_to_deploy", {
    "version": "1.0.0",
    "environment": "production"
})

HTTP Client (for deployed apps)

from isa_agent_sdk import ISAAgent

client = ISAAgent(base_url="http://localhost:8000")

# Non-streaming
response = client.chat.create(
    message="Explain quantum computing",
    user_id="user123"
)
print(response.content)

# Streaming
for event in client.chat.stream(
    message="Write a Python function",
    user_id="user123"
):
    if event.is_content:
        print(event.content, end="")

Building a FastAPI Agent Service

from fastapi import FastAPI
from isa_agent_sdk import query, ISAAgentOptions

app = FastAPI()

@app.post("/query")
async def agent_query(prompt: str):
    responses = []
    async for msg in query(prompt):
        if msg.is_text:
            responses.append(msg.content)
    return {"response": "".join(responses)}

A2A (Agent-to-Agent) Integration

from fastapi import FastAPI
from isa_agent_sdk import (
    A2AAgentCard,
    A2AClient,
    A2AServerAdapter,
    register_a2a_fastapi_routes,
    build_auth_service_token_validator,
)

# Build agent card
card = A2AAgentCard(
    name="isA Agent",
    url="https://agent.example.com/a2a",
    token_url="https://auth.example.com/oauth/token",
).to_dict()

# Client call to remote A2A agent
client = A2AClient("https://remote-agent.example.com")
response = await client.send_message("https://remote-agent.example.com/a2a", "Hello from isA")

# Server adapter maps A2A JSON-RPC -> isa_agent_sdk ask/query
adapter = A2AServerAdapter()
rpc_result = await adapter.handle_rpc({
    "jsonrpc": "2.0",
    "id": "1",
    "method": "message/send",
    "params": {"message": {"parts": [{"text": "Summarize this repo"}]}}
})

# Mount A2A endpoints in FastAPI
app = FastAPI()
register_a2a_fastapi_routes(
    app,
    adapter=adapter,
    agent_card=card,
    rpc_path="/a2a",
    auth_validator=build_auth_service_token_validator(
        "http://localhost:8201",
        required_scopes=["a2a.invoke"],
    ),
)

Execution Modes

  • Reactive - Responds to explicit requests
  • Collaborative - Checkpoints for human approval
  • Proactive - Anticipates needs, suggests actions

Documentation

License

MIT

Metadata

Release files for isa-agent-sdk 0.6.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for isa-agent-sdk 0.6.9
File Size Uploaded Provenance Actions
isa_agent_sdk-0.6.9.tar.gz 2.0 MB Without provenance Details for isa_agent_sdk-0.6.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for isa-agent-sdk 0.6.9
File Interpreter ABI Platform Actions
isa_agent_sdk-0.6.9-py3-none-any.whl Python 3 none any Details for isa_agent_sdk-0.6.9-py3-none-any.whl

Total release size: 4.6 MB

Release files / isa_agent_sdk-0.6.9.tar.gz

Download URL isa_agent_sdk-0.6.9.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
734024a2c1aa09614541df9c880bbb24c3c0a3b539bcdf87ef8c1050daa681d9
BLAKE2b-256 checksum
How to use checksums
3f719b4423e12d155ef7f89dbb6f23a0edd6b224e91ac484a4de2839787a9649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / isa_agent_sdk-0.6.9-py3-none-any.whl

Download URL isa_agent_sdk-0.6.9-py3-none-any.whl
Size 2.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
032ce809d6c915856ca540351a29b3ccacf87dacb0bb47a705cd05e5a0cb30b7
BLAKE2b-256 checksum
How to use checksums
56d0dc14c3ba53c5cb647be4c2a5bc0e2cbf16ab9bf3c779faf5cf0cee287cff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Security for isa-agent-sdk 0.6.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page