agent-sdk-python
Installation
SKILL.md
Agent SDK Integration
Purpose
Build production-ready AI agents using the Agent SDK for Python. This skill provides hands-on workflows for implementing agent features including simple queries, interactive conversations, custom MCP tools, permission control, context loading, and error handling.
Quick Start
Simple one-shot query:
from claude_agent_sdk import query
async for message in query(prompt="What is the capital of France?"):
print(message)
Interactive conversation:
from claude_agent_sdk import ClaudeSDKClient