Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion examples/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

from acp import (
Client,
ClientSideConnection,
connect_to_agent,
RequestError,
text_block,
PROTOCOL_VERSION,
)
from acp.core import ClientSideConnection
from acp.schema import (
AgentMessageChunk,
AgentPlanUpdate,
Expand Down
2 changes: 1 addition & 1 deletion src/acp/agent/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(
to_agent: Callable[[Client], Agent] | Agent,
input_stream: Any,
output_stream: Any,
listening: bool = False,
listening: bool = True,
**connection_kwargs: Any,
) -> None:
agent = to_agent(cast(Client, self)) if callable(to_agent) else to_agent
Expand Down
2 changes: 1 addition & 1 deletion src/acp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def run_agent(

if input_stream is None and output_stream is None:
output_stream, input_stream = await stdio_streams()
conn = AgentSideConnection(agent, input_stream, output_stream, **connection_kwargs)
conn = AgentSideConnection(agent, input_stream, output_stream, listening=False, **connection_kwargs)
await conn.listen()


Expand Down