interface HttpAgentServerAdapterOptionsRetries and concurrency for SSE/command HTTP. When omitted, requests
use raw fetch with no automatic retries (same as constructing
ProtocolSseTransportAdapter without this option).
Auth / tenant / diagnostic headers applied to every request.
Optional fetch override, forwarded to the SSE transport. Useful
for auth proxies, Next.js route handlers, or tests with injected
mocks. Ignored when webSocketFactory is also supplied.
Per-request hook for last-mile header mutation.
Override the default /threads/:threadId/... protocol paths.
Thread this adapter targets. Optional: omit to construct an unbound
adapter and let the framework bind it via HttpAgentServerAdapter.setThreadId
(client.threads.stream does this) ā e.g. lazy thread creation, where
the id is only known after the first submit().
Optional WebSocket factory. Supplying it flips the adapter into WebSocket mode ā SSE is bypassed entirely.