You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0fb5e9e
Browse filesBrowse the repository at this point in the historyBrowse files
Mark Pollack
committed
Micronaut: transport type in any case, client beans only for a named transport, stdio close bound
- Bind acp.agent.transport.type and acp.client.transport.type through
AcpTransportType.parse, so WebSocket binds; an unknown value fails.
- Create the client beans only when transport.type, stdio.command,
websocket.uri or http.uri is set, as Spring Boot and
AcpClientSettings.hasTransport() do.
- Bound a stdio agent's close by the new acp.agent.shutdown-timeout
(default 10s) instead of the HTTP listener's shutdown-timeout.
|`acp.agent.transport.http.keep-alive-interval`, `mailbox-capacity`, `max-pending-sse-events`, `max-web-socket-pending-frames`, `max-provisional-sessions`, `max-concurrent-streams-per-connection`, `shutdown-timeout`| SDK |`StreamableHttpAcpAgentTransportOptions`; closing waits for the listener at most `shutdown-timeout` plus 5 seconds|
95
96
96
97
An application bean of type `AcpAgentTransport` replaces stdio, for example the in-memory
97
98
transport of `acp-test` in a test.
@@ -102,7 +103,8 @@ one, not inside it. It serves HTTP/1.1, cleartext HTTP/2 and WebSocket upgrades
102
103
103
104
## A client
104
105
105
-
A client is configured when `acp.client.transport.*` is set. It has three beans: the transport,
106
+
A client is configured when a transport is named: `acp.client.transport.type`, `.stdio.command`,
107
+
`.websocket.uri` or `.http.uri` is set, as in Spring Boot and Quarkus. It has three beans: the transport,
106
108
an `AcpAsyncClient`, and an `AcpSyncClient` facade over that same client, which is one session on
107
109
one connection. Creating the client bean connects its transport (for stdio, it starts the agent
108
110
process); `initialize()` then performs the ACP handshake. It closes gracefully, once, with the
@@ -123,7 +125,7 @@ class Updates implements AcpClientCustomizer {
123
125
|---|---|---|
124
126
|`acp.client.request-timeout`|`60s`||
125
127
|`acp.client.prompt-timeout`| none | a longer prompt turn fails and is cancelled |
126
-
|`acp.client.transport.type`| inferred |`stdio`, `websocket` or `http`. When it is unset, the transport is the only one whose command or URI is set; with several set, it is required |
128
+
|`acp.client.transport.type`| inferred |`stdio`, `websocket` or `http`, in any case. When it is unset, the transport is the only one whose command or URI is set; with several set, it is required |
127
129
|`acp.client.transport.stdio.command`, `.args`, `.env.*`|| the agent process; `env` keys keep their case |
0 commit comments