You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
# Claude Code SDK for Python
1
+
# Claude Agent SDK for Python
2
2
3
-
Python SDK for Claude Code. See the [Claude Code SDK documentation](https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-python) for more information.
3
+
Python SDK for Claude Agent. See the [Claude Agent SDK documentation](https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-python) for more information.
4
4
5
5
## Installation
6
6
7
7
```bash
8
-
pip install claude-code-sdk
8
+
pip install claude-agent-sdk
9
9
```
10
10
11
11
**Prerequisites:**
@@ -17,7 +17,7 @@ pip install claude-code-sdk
17
17
18
18
```python
19
19
import anyio
20
-
fromclaude_code_sdkimport query
20
+
fromclaude_agent_sdkimport query
21
21
22
22
asyncdefmain():
23
23
asyncfor message in query(prompt="What is 2 + 2?"):
@@ -28,10 +28,10 @@ anyio.run(main)
28
28
29
29
## Basic Usage: query()
30
30
31
-
`query()` is an async function for querying Claude Code. It returns an `AsyncIterator` of response messages. See [src/claude_code_sdk/query.py](src/claude_code_sdk/query.py).
31
+
`query()` is an async function for querying Claude Code. It returns an `AsyncIterator` of response messages. See [src/claude_agent_sdk/query.py](src/claude_agent_sdk/query.py).
0 commit comments