FruxonDocs
ApiKnowledge bases

Rebuilds the agents this knowledge base provisioned for itself from a new configuration.

Changes what `:enableConsolidation` was given — the domain clause, the corpus language, the categories and the model — without deleting anything: each agent gets a new deployed revision and keeps its history, and the base records the configuration so it can be read back. Refused (400) for agents the base did not provision itself, and for agents built with an older recipe version, which need turning off and on again. The consolidator is redeployed before the editor; if the editor fails, retrying is safe.

POST
/v1/tenants/{tenant}/knowledgeBases/{knowledgeBase}:reconfigureConsolidation
AuthorizationBearer <token>

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

In: header

Path Parameters

knowledgeBase*string

The knowledge base id.

Formatuuid
tenant*string

The tenant identifier

The new domain clause, corpus language, categories and model.

domain?string

What the articles are about, in one clause. See Fruxon.Model.KnowledgeBases.EnableKnowledgeConsolidationRequest.Domain.

locale?string|null

The corpus language as a name a model reads ("Hebrew"). Defaults to the base's own locale.

localeTag?string|null

The same language as a tag ("he"), recorded as the base's locale only when it has none.

categories?array<string>

The category slugs the corpus files articles under. Optional.

provider*

Which model runs both agents, and under whose credential.

[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/knowledgeBases/497f6eca-6276-4993-bfeb-53cbbbba6f08:reconfigureConsolidation" \  -H "Content-Type: application/json" \  -d '{    "provider": {      "model": "string"    }  }'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "displayName": "string",
  "description": "string",
  "locale": "string",
  "suggestedLocale": {
    "locale": "string",
    "matching": 0,
    "considered": 0,
    "detected": false
  },
  "networkId": "00000000-0000-0000-0000-000000000000",
  "autoPublish": false,
  "automaticPublishWithheld": false,
  "consolidatorAgentId": "string",
  "correctionsAvailable": false,
  "consolidationPolicy": {
    "version": 0,
    "cadence": "MANUAL",
    "mode": "REPORT_ONLY",
    "similarityThreshold": 0,
    "maxClusterSize": 0,
    "recentWriteWindowMinutes": 0,
    "calibration": {
      "runId": "00000000-0000-0000-0000-000000000000",
      "similarityThreshold": 0,
      "embeddingModel": "string",
      "locale": "string",
      "calibratedBy": "string",
      "calibratedAt": 0
    }
  },
  "consolidationRecipe": {
    "domain": "string",
    "locale": "string",
    "categories": [
      "string"
    ],
    "provider": {
      "providerId": "string",
      "model": "string",
      "parameters": {},
      "fallbacks": [],
      "builtInTools": [],
      "tenantConfigId": "00000000-0000-0000-0000-000000000000"
    },
    "recipeVersion": 0
  },
  "lastConsolidatedAt": 0,
  "backingAssetId": "string",
  "embedding": {
    "provider": "string",
    "model": "string",
    "chunkSize": 0,
    "chunkOverlap": 0
  },
  "status": "ACTIVE",
  "lastPublishedAt": 0,
  "contentRevision": 0,
  "publishedContentRevision": 0,
  "changesPending": false,
  "publishPendingSince": 0,
  "publishState": "NONE",
  "lastPublishError": "string",
  "lastPublishErrorCategory": "CREDENTIALS",
  "createdAt": 0,
  "modifiedAt": 0
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}