""" claude-py: Python SDK for Claude API with streaming support. Reverse engineered from Claude Code CLI v2.1.7 with exact API replication. Basic usage: import asyncio from claude import ClaudeAgentClient async def main(): async with ClaudeAgentClient() as client: # Streaming (recommended) async for chunk in client.send_message_stream("Hello!"): if chunk.text_delta: print(chunk.text_delta, end='', flush=True) # Or non-streaming response = await client.send_message("What is 2+2?") print(response.content) asyncio.run(main()) """ from .chat import ChatClient from .client import ClaudeAgentClient, query from .types import ( AgentOptions, AssistantMessage, StreamChunk, TextContent, ToolHandler, ToolResult, ToolUse, Usage, ) __version__ = "0.3.0" __all__ = [ "AgentOptions", "AssistantMessage", "ChatClient", "ClaudeAgentClient", "StreamChunk", "TextContent", "ToolHandler", "ToolResult", "ToolUse", "Usage", "query", ]