Agent

Five paths the server opens on an agent container: the agent registered, a loop run, the agent’s schema obtained, a message enqueued, and the queue emptied.

Five paths carry the exchanges of the server with the loop of an agent container. The server opens each path; the proxy answers.

PathThe server sendsThe proxy sends
/agent/registerthe agent, onceexactly one answer: registered, or an error
/agent/runa promptthe chunks of the loop, or an error
/agent/schemanothingexactly one answer: the JSON Schema of the agent, or an error
/agent/enqueuea message for the queueexactly one answer: its fate, sent when the fate is known
/agent/dequeuenothingexactly one answer: whether the queue held anything
  • The first binary message is the ask, on every path that has one, as JSON read as Notation provides. A close before it causes the proxy to close the connection with no message before the close.
  • On an agent container only. The server opens these paths only on a container whose entrypoint is an agent.
  • No repetition. An exchange whose path ended abruptly has failed: a loop cut short, a fate not heard, a registration not answered. No party retries it.