Skip to content

Commit 3f02be5

Browse files
committed
Merge branch 'main' into feat/enable-custom-transports
2 parents c0d4e1d + 91315e3 commit 3f02be5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/claude_code_sdk/_internal/client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Internal client implementation."""
22

3-
from collections.abc import AsyncIterator
3+
from collections.abc import AsyncIterable, AsyncIterator
4+
from typing import Any
45

56
from ..types import (
67
ClaudeCodeOptions,
@@ -19,7 +20,7 @@ def __init__(self) -> None:
1920

2021
async def process_query(
2122
self,
22-
prompt: str,
23+
prompt: str | AsyncIterable[dict[str, Any]],
2324
options: ClaudeCodeOptions,
2425
transport: Transport | None = None,
2526
) -> AsyncIterator[Message]:
@@ -34,8 +35,6 @@ async def process_query(
3435
)
3536

3637
try:
37-
# Configure the transport with prompt and options
38-
chosen_transport.configure(prompt, options)
3938
await chosen_transport.connect()
4039

4140
async for data in chosen_transport.receive_messages():

src/claude_code_sdk/query.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class MyCustomTransport(Transport):
111111
):
112112
print(message)
113113
```
114+
114115
"""
115116
if options is None:
116117
options = ClaudeCodeOptions()

0 commit comments

Comments
 (0)