mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
Revert "Reorganize imports in client.py"
This reverts commit baee8bae42.
This commit is contained in:
parent
baee8bae42
commit
1adacaffe8
1 changed files with 2 additions and 3 deletions
|
|
@ -1,10 +1,7 @@
|
|||
"""Claude SDK Client for interacting with Claude Code."""
|
||||
|
||||
import asyncio
|
||||
import json
|
||||
import os
|
||||
from collections.abc import AsyncIterable, AsyncIterator
|
||||
from contextlib import suppress
|
||||
from typing import Any
|
||||
|
||||
from ._errors import CLIConnectionError
|
||||
|
|
@ -167,6 +164,8 @@ class ClaudeSDKClient:
|
|||
if not self._query or not self._transport:
|
||||
raise CLIConnectionError("Not connected. Call connect() first.")
|
||||
|
||||
import json
|
||||
|
||||
# Handle string prompts
|
||||
if isinstance(prompt, str):
|
||||
message = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue