File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11"""Internal client implementation."""
22
3- from collections .abc import AsyncIterator
3+ from collections .abc import AsyncIterable , AsyncIterator
4+ from typing import Any
45
56from ..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 ():
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ class MyCustomTransport(Transport):
111111 ):
112112 print(message)
113113 ```
114+
114115 """
115116 if options is None :
116117 options = ClaudeCodeOptions ()
You can’t perform that action at this time.
0 commit comments