{
 "additionalProperties": false,
 "properties": {
 "browser": {
 "additionalProperties": false,
 "properties": {
 "connectorRef": {
 "minLength": 1,
 "type": "string"
 }
 },
 "required": [
 "connectorRef"
 ],
 "type": "object"
 },
 "fields": {
 "items": {
 "additionalProperties": false,
 "properties": {
 "hint": {
 "type": "string"
 },
 "name": {
 "minLength": 1,
 "type": "string"
 },
 "type": {
 "enum": [
 "string",
 "number",
 "date",
 "money"
 ],
 "type": "string",
 "x-lumen-widget": "segmented"
 }
 },
 "required": [
 "name"
 ],
 "type": "object"
 },
 "maxItems": 50,
 "type": "array"
 },
 "files": {
 "additionalProperties": false,
 "properties": {
 "maxBytes": {
 "default": 20971520,
 "maximum": 104857600,
 "minimum": 1,
 "type": "integer"
 },
 "maxFiles": {
 "default": 10,
 "maximum": 100,
 "minimum": 1,
 "type": "integer"
 },
 "maxPages": {
 "default": 100,
 "maximum": 1000,
 "minimum": 1,
 "type": "integer"
 },
 "mode": {
 "default": "attach",
 "enum": [
 "attach",
 "text",
 "none",
 "ifNoText"
 ],
 "type": "string",
 "x-lumen-widget": "segmented"
 }
 },
 "type": "object"
 },
 "guardrails": {
 "additionalProperties": false,
 "properties": {
 "output": {
 "additionalProperties": false,
 "properties": {
 "redact": {
 "items": {
 "type": "string"
 },
 "maxItems": 4,
 "type": "array"
 }
 },
 "type": "object"
 },
 "rules": {
 "items": {
 "type": "string"
 },
 "maxItems": 20,
 "type": "array"
 },
 "tables": {
 "additionalProperties": false,
 "properties": {
 "read": {
 "items": {
 "type": "string"
 },
 "maxItems": 50,
 "type": "array"
 },
 "write": {
 "items": {
 "type": "string"
 },
 "maxItems": 50,
 "type": "array"
 }
 },
 "type": "object"
 },
 "tools": {
 "additionalProperties": {
 "additionalProperties": false,
 "properties": {
 "allowTo": {
 "items": {
 "type": "string"
 },
 "maxItems": 50,
 "type": "array"
 },
 "approval": {
 "enum": [
 "required"
 ],
 "type": "string"
 },
 "approvalHours": {
 "maximum": 168,
 "minimum": 1,
 "type": "integer"
 },
 "approvers": {
 "items": {
 "additionalProperties": false,
 "description": "\"console\", or {whatsapp: {connection, to}} or {email: {to, connection}}",
 "maxLength": 63,
 "maxProperties": 1,
 "properties": {
 "email": {
 "additionalProperties": false,
 "properties": {
 "connection": {
 "maxLength": 63,
 "type": "string"
 },
 "to": {
 "items": {
 "maxLength": 320,
 "type": "string"
 },
 "maxItems": 10,
 "minItems": 1,
 "type": "array"
 }
 },
 "required": [
 "to"
 ],
 "type": "object"
 },
 "whatsapp": {
 "additionalProperties": false,
 "properties": {
 "connection": {
 "maxLength": 63,
 "type": "string"
 },
 "reasonOnReject": {
 "type": "boolean"
 },
 "reasonPrompt": {
 "maxLength": 200,
 "type": "string"
 },
 "to": {
 "items": {
 "maxLength": 320,
 "type": "string"
 },
 "maxItems": 10,
 "minItems": 1,
 "type": "array"
 }
 },
 "required": [
 "connection",
 "to"
 ],
 "type": "object"
 }
 },
 "type": [
 "string",
 "object"
 ]
 },
 "maxItems": 10,
 "type": "array"
 },
 "connections": {
 "items": {
 "type": "string"
 },
 "maxItems": 10,
 "type": "array"
 },
 "hosts": {
 "items": {
 "type": "string"
 },
 "maxItems": 50,
 "type": "array"
 },
 "methods": {
 "items": {
 "type": "string"
 },
 "maxItems": 5,
 "type": "array"
 },
 "onExpire": {
 "enum": [
 "reject",
 "fail"
 ],
 "type": "string"
 }
 },
 "type": "object"
 },
 "type": "object"
 }
 },
 "type": "object"
 },
 "instructions": {
 "maxLength": 8000,
 "minLength": 1,
 "type": "string",
 "x-lumen-widget": "field-picker"
 },
 "knowledge": {
 "additionalProperties": false,
 "properties": {
 "collections": {
 "items": {
 "type": "string"
 },
 "maxItems": 8,
 "type": "array"
 },
 "mode": {
 "enum": [
 "auto",
 "inject"
 ],
 "type": "string"
 },
 "rules": {
 "type": "boolean"
 }
 },
 "type": "object"
 },
 "limits": {
 "additionalProperties": false,
 "properties": {
 "maxMinutes": {
 "maximum": 1440,
 "minimum": 1,
 "type": "integer"
 },
 "maxTokens": {
 "maximum": 100000000,
 "minimum": 1,
 "type": "integer"
 },
 "maxTurns": {
 "maximum": 100,
 "minimum": 1,
 "type": "integer"
 }
 },
 "type": "object"
 },
 "longTermMemory": {
 "additionalProperties": false,
 "properties": {
 "autoRecall": {
 "maximum": 10,
 "minimum": 0,
 "type": "integer"
 },
 "retentionDays": {
 "maximum": 3650,
 "minimum": 1,
 "type": "integer"
 }
 },
 "type": "object"
 },
 "mcp": {
 "items": {
 "additionalProperties": false,
 "properties": {
 "connector": {
 "maxLength": 253,
 "minLength": 1,
 "type": "string"
 },
 "tools": {
 "items": {
 "type": "string"
 },
 "maxItems": 16,
 "minItems": 1,
 "type": "array"
 }
 },
 "required": [
 "connector",
 "tools"
 ],
 "type": "object"
 },
 "maxItems": 8,
 "type": "array"
 },
 "memory": {
 "additionalProperties": false,
 "properties": {
 "window": {
 "maximum": 50,
 "minimum": 1,
 "type": "integer"
 }
 },
 "required": [
 "window"
 ],
 "type": "object"
 },
 "modelRef": {
 "additionalProperties": false,
 "properties": {
 "kind": {
 "enum": [
 "ClusterModelClass",
 "ModelClass"
 ],
 "type": "string"
 },
 "name": {
 "minLength": 1,
 "type": "string"
 }
 },
 "required": [
 "name"
 ],
 "type": "object"
 },
 "tools": {
 "items": {
 "type": "string"
 },
 "maxItems": 16,
 "type": "array"
 }
 },
 "type": "object"
}
