FruxonDocs
AgentsExecution Records

Lists the agent's revised, failed or unchecked runs, newest first.

The drill-down behind `judgeActivity.revised` (the default), `failed` or `errors`, chosen by outcome, over the same origin, window and environment. Each row carries the participant and the channel address (or, when the session recorded none, the topic) so the client can open the conversation at the accepted reply, whose messages carry this `executionId` as `executionRecordId`. Each row also carries `reasons`, the metrics the judge took points off with its shortened, redacted reason: for a reply that passed after a rewrite, why the draft was sent back. The rejected drafts themselves are in the run's trace.

GET
/v1/tenants/{tenant}/agents/{agent}/judgeRevisions
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

The unique identifier of the agent.

tenant*string

The tenant identifier

Query Parameters

PageSize?integer

The maximum number of items to return per page

Formatint32
PageToken.Skip?integer
Formatint32
PageToken.Cursor?string

Opaque pagination token returned by an external service. Pass it back unchanged rather than interpreting it as an offset.

origin?string

Execution origin to list. Defaults to PRODUCTION.

Default"PRODUCTION"
Value in"UNSPECIFIED" | "PRODUCTION" | "TEST"
from?integer

Optional window start as Unix milliseconds (inclusive).

Formatint64
to?integer

Optional window end as Unix milliseconds (exclusive). Defaults to now when a window is requested.

Formatint64
environment?string

Optional environment slug to scope the list to.

outcome?string

Which runs: PASSED_AFTER_REWRITE (default), FAILED (the judge blocked the reply) or ERROR (the judge failed to run).

Default"PASSED_AFTER_REWRITE"
Value in"UNSPECIFIED" | "PASSED_AFTER_REWRITE" | "FAILED" | "ERROR"

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/judgeRevisions"
{
  "items": [
    {
      "executionId": "00000000-0000-0000-0000-000000000000",
      "createdAt": 0,
      "outcome": "SCORED",
      "score": 0,
      "rejectedDrafts": 0,
      "participantId": "00000000-0000-0000-0000-000000000000",
      "participantDisplayName": "string",
      "topicId": "00000000-0000-0000-0000-000000000000",
      "channelAddress": "string",
      "subject": "string",
      "reasons": [],
      "judgeSummary": "string"
    }
  ],
  "nextPageToken": "string",
  "totalCount": 0
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}