FruxonDocs
ApiAgent reviews

Replaces the agent's review settings.

Turning reviewing on needs a `provider` — a model from the workspace's own LLM configs — and the model is resolved now, the way a review will resolve it, so a model the workspace cannot call is refused with the reason. Turning reviewing on stamps `enabledAt`: nothing that ended before it is reviewed in the background. External agents cannot be reviewed, and a managed agent's settings cannot be changed. Agent admins only.

PUT
/v1/tenants/{tenant}/agents/{agent}/reviewSettings
AuthorizationBearer <token>

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

In: header

Path Parameters

agent*string

The agent ID.

tenant*string

The tenant identifier

The settings, replaced whole.

enabled?boolean

Whether the agent's conversations are reviewed. On the workspace's own model, turning it on needs a UpdateAgentReviewSettingsRequest.Provider.

runOn?string

Which model reviews run on. Left out, an agent keeps the one it has; a new one runs on its own model when a UpdateAgentReviewSettingsRequest.Provider is given, and on Fruxon's when none is and this region offers it.

Value in"UNSPECIFIED" | "FRUXON" | "OWN_MODEL"
provider?

On the workspace's own model: the model the reviewer runs on, from the workspace's LLM configs: a provider and model, and a tenantConfigId to use one particular config rather than the provider's default.

dailyCreditLimit?integer|null

On Fruxon's model: the most credits the agent's reviews may spend per UTC day, 1 to 10,000. Left out, the stored limit is kept; a new agent starts at 240.

Formatint32
dailyBudgetUsd?number

The most the reviewer may spend on this agent per UTC day, in US dollars; above 0, at most 100.

Formatdouble
cleanSamplePercent?integer

The percentage (0–100) of conversations with no warning signs to review anyway.

Formatint32
[key: string]?never

Response Body

curl -X PUT "https://api.fruxon.com/v1/tenants/string/agents/string/reviewSettings" \  -H "Content-Type: application/json" \  -d '{}'
{
  "enabled": false,
  "runOn": "FRUXON",
  "provider": {
    "providerId": "string",
    "model": "string",
    "parameters": {},
    "fallbacks": [
      {
        "providerId": "string",
        "model": "string",
        "tenantConfigId": null
      }
    ],
    "builtInTools": [
      {
        "toolKey": null,
        "integrationConfigId": null,
        "integrationConfig": null,
        "humanApproval": null,
        "repeatGuard": null,
        "durableEffect": null,
        "pinnedParameters": null
      }
    ],
    "tenantConfigId": "00000000-0000-0000-0000-000000000000"
  },
  "dailyBudgetUsd": 0,
  "cleanSamplePercent": 0,
  "enabledAt": 0,
  "enabledBy": "string",
  "spentTodayUsd": 0,
  "dailyCreditLimit": 0,
  "spentTodayCredits": 0,
  "creditsPerReview": 0,
  "creditsPerRevise": 0,
  "laneUnavailableReason": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}