Expand description
Duplex-backed test harness for ACP connections.
test_connection returns a full (ConnectionTo<Client>, TestPeer) pair
over an in-memory duplex transport. Use it for integration-style tests that
need to exercise the full serialize/dispatch path (so wire-format
regressions like extension method-name typos surface in tests).
Structs§
Functions§
- connect_
pair - duplex_
pair - In-memory ACP transport pair:
(agent_transport, client_transport). Hand each half to aconnect_to/connect_withcall on the corresponding side. Must be used inside aLocalSetsince the runners arespawn_local’d. - idle_
notification - Foreground work is idle, optionally with a reported stop reason.
- initialize_
request - Initialization request from an in-memory v2 client.
- initialize_
response - Initialization response from an in-memory v2 agent.
- plan_
notification - Replace the entries of an agent-owned plan.
- running_
notification - A live foreground turn has started.
- test_
connection - Build a live
ConnectionTo<Client>over an in-memory duplex transport with a peer on the other end. Must be called inside aLocalSet.