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
  • 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

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isa_agent_sdk-0.5.67.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isa_agent_sdk-0.5.67-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file isa_agent_sdk-0.5.67.tar.gz.

File metadata

  • Download URL: isa_agent_sdk-0.5.67.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for isa_agent_sdk-0.5.67.tar.gz
Algorithm Hash digest
SHA256 6fdde5b450dffb9709f771517f48187e8112dab891e382ebb2a3c86934b0b062
MD5 020e342e2fe8334ed3b5592359b5004e
BLAKE2b-256 20bf26a2e05ecd380e2e6bf0d8e14499bd1aea5aa0c77c2de7633955f7a9cfea

See more details on using hashes here.

File details

Details for the file isa_agent_sdk-0.5.67-py3-none-any.whl.

File metadata

  • Download URL: isa_agent_sdk-0.5.67-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for isa_agent_sdk-0.5.67-py3-none-any.whl
Algorithm Hash digest
SHA256 0731b317880254bcc03f8f3fd1a37dfd4275605f49e7779ca50ef08c0e5498bd
MD5 7d07c0e981d69f419a72b97536d9f6c2
BLAKE2b-256 82021c71037f40e07e4c989d3c8d05d74cb93dcc0dc05e99ba11fce340c27937

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.80

2 files

0.5.78

2 files

0.5.76

2 files

0.5.72

2 files

0.5.69

2 files

0.5.68

2 files

This release

0.5.67 This release

2 files

0.5.65

2 files

0.5.64

2 files

0.5.63

2 files

0.5.62

2 files

0.5.61

2 files

0.5.60

2 files

0.5.59

2 files

0.5.58

2 files

0.5.57

2 files

0.5.56

2 files

0.5.55

2 files

0.5.54

2 files

0.5.53

2 files

0.5.52

2 files

0.5.51

2 files

0.5.50

2 files

0.5.49

2 files

0.5.48

2 files

0.5.46

2 files

0.5.43

2 files

0.5.42

2 files

0.5.41

2 files

0.5.40

2 files

0.5.39

2 files

0.5.38

2 files

0.5.37

2 files

0.5.36

2 files

0.5.34

2 files

0.5.33

2 files

0.5.32

2 files

0.5.31

2 files

0.5.30

2 files

0.5.29

2 files

0.5.28

2 files

0.5.27

2 files

0.5.26

2 files

0.5.25

2 files

0.5.23

2 files

0.5.21

2 files

0.5.20

2 files

0.5.19

2 files

0.5.18

2 files

0.5.17

2 files

0.5.16

2 files

0.5.11

2 files

0.5.10

2 files

0.5.9

2 files

0.5.8

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.0

2 files

0.4.16

2 files

0.4.13

2 files

0.4.12

2 files

0.4.11

2 files

0.4.10

2 files

0.4.9

2 files

0.4.7

2 files

0.3.75

2 files

0.3.74

2 files

0.3.73

2 files

0.3.72

2 files

0.3.71

2 files

0.3.70

2 files

0.3.69

2 files

0.3.68

2 files

0.3.67

2 files

0.3.66

2 files

0.3.65

2 files

0.3.64

2 files

0.3.63

2 files

0.3.62

2 files

0.3.61

2 files

0.3.60

2 files

0.3.59

2 files

0.3.58

2 files

0.3.57

2 files

0.3.56

2 files

0.3.55

2 files

0.3.54

2 files

0.3.53

2 files

0.3.52

2 files

0.3.50

2 files

0.3.49

2 files

0.3.48

2 files

0.3.47

2 files

0.3.46

2 files

0.3.45

2 files

0.3.44

2 files

0.3.43

2 files

0.3.42

2 files

0.3.41

2 files

0.3.40

2 files

0.3.39

2 files

0.3.38

2 files

0.3.37

2 files

0.3.36

2 files

0.3.35

2 files

0.3.34

2 files

0.3.33

2 files

0.3.32

2 files

0.3.31

2 files

0.3.30

2 files

0.3.29

2 files

0.3.28

2 files

0.3.27

2 files

0.3.26

2 files

0.3.25

2 files

0.3.24

2 files

0.3.23

2 files

0.3.22

2 files

0.3.21

2 files

0.3.20

2 files

0.3.19

2 files

0.3.18

2 files

0.3.17

2 files

0.3.16

2 files

0.3.15

2 files

0.3.14

2 files

0.3.13

2 files

0.3.12

2 files

0.3.11

2 files

0.3.10

2 files

0.3.9

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

1 file

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