robotsix_llmio claude_sdk
Claude Agent SDK transport layer (subscription / claude login auth).
Requires the claude_sdk extra, a logged-in claude CLI, and Node.js
at runtime. The model and provider are loaded lazily so importing the
lightweight transient helpers stays free of the SDK.
Exports
ClaudeSDKProvider— pydantic-ai provider backed by the Claude Agent SDKClaudeSDKModel— pydantic-ai model implementationClaudeSDKTurnLimitError— raised when the agent-loop iteration cap (_MAX_TURNS) is exceededClaudeSDKQueryTimeout— raised when a subprocess times out (stalled query); treated as transient for retryis_claude_sdk_transient— detect transient errors from the Claude SDKis_claude_sdk_turn_limit— detect turn-limit errors