Skip to content
function dialHttp(o): AgentLink;

Defined in: agent/src/transport/http.ts:163

One HTTP streaming link (FaaS mode): POST /agent/connect once, then

  • downstream: GET /agent/stream?link&cursor reopened with cursor.get() — at once after a rotate or a stream that delivered lines, with backoff otherwise. A seq <= cursor is skipped; the cursor advances when a frame is dispatched and is acknowledged on the next request.
  • upstream: one serialized queue packed into bodies ≤ MAX_HTTP_BODY_BYTES; each tool_call in its own parallel POST. Every message keeps its up_ id until the hub lists it as processed (the hub dedupes), retry ids are re-sent after backoff. 401 with the hub’s unauthorized error → revoked (any other 401 is retried), 400 link_replaced (or a replaced line) → replaced, 426 → upgrade, 400 link_closed → the link ends (the site connects again).
Parameter Type
o DialOptions

AgentLink