Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/claude_code_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import json
import os
import warnings
from collections.abc import AsyncIterable, AsyncIterator
from dataclasses import replace
from typing import Any
Expand Down Expand Up @@ -53,6 +54,14 @@ class ClaudeSDKClient:

def __init__(self, options: ClaudeCodeOptions | None = None):
"""Initialize Claude SDK client."""
warnings.warn(
"The Claude Code SDK is now the Claude Agent SDK! "
"Please install and use claude-agent-sdk instead. "
"See https://docs.claude.com/en/docs/claude-code/sdk/migration-guide for migration instructions.",
DeprecationWarning,
stacklevel=2,
)

if options is None:
options = ClaudeCodeOptions()
self.options = options
Expand Down
9 changes: 9 additions & 0 deletions src/claude_code_sdk/query.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Query function for one-shot interactions with Claude Code."""

import os
import warnings
from collections.abc import AsyncIterable, AsyncIterator
from typing import Any

Expand Down Expand Up @@ -113,6 +114,14 @@ class MyCustomTransport(Transport):
```

"""
warnings.warn(
"The Claude Code SDK is now the Claude Agent SDK! "
"Please install and use claude-agent-sdk instead. "
"See https://docs.claude.com/en/docs/claude-code/sdk/migration-guide for migration instructions.",
DeprecationWarning,
stacklevel=2,
)

if options is None:
options = ClaudeCodeOptions()

Expand Down