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. Turning it on needs a Fruxon.Model.AgentReviews.UpdateAgentReviewSettingsRequest.Provider.

provider?

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.

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,
  "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
}
{
  "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
}