Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ nav:
- Use Cases: use-cases.md
- Experimental Contrib: contrib.md
- Releasing: releasing.md
- 0.7 Migration Guide: migration-guide-0.7.md
plugins:
- search
- mkdocstrings:
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