Skip to main content

Read every provider round for one model invocation

GET 

/session/model-runs/:modelRunId/calls

Lists the provider rounds of one model run, with the run itself. A round is one request to the provider: Peen stores the exact messages and the tool definitions the provider saw before the request is sent, then the response message, usage, retries and costs when the round ends.

Request messages repeat the whole conversation each round, and images in them are returned base64 encoded, so a page can be large. Treat the content as sensitive: it holds everything the agent read and sent.

  • Ordering: by round ascending, then id ascending.
  • Paging: limit (1 to 200, default 50) and offset (default 0). hasMore is true when at least one more round exists after this page.
  • Errors: 400 VALIDATION_FAILED for a limit or offset outside the allowed values. 404 SESSION_NOT_FOUND when the session does not exist, and 404 NOT_FOUND (model run not found) when it has no model run with this ID. A model run of another session answers the same as an unknown one.

Request​

Responses​

The model run and one page of its provider rounds, in round order.

Response Headers
    X-Session-ID

    The session this response belongs to. For session-scoped requests it echoes the X-Session-ID request header; for POST /sessions/open and POST /sessions/system it is the session that was opened or created.

    X-Request-ID

    The request's correlation ID. When the request carried an X-Request-ID header holding a UUID, Peen echoes it; otherwise Peen generates a new UUID. The controller log records the same value for this request.