Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const createAgentSchema = {
type: 'object',
properties: {
name: { type: 'string', minLength: 1, maxLength: 100 },
description: { type: 'string', maxLength: 500 },
knowledgeBaseIds: { type: 'array', items: { type: 'string' }, default: [] },
llmModel: { type: 'string', default: 'deepseek/deepseek-v4-flash' },
systemPrompt: { type: 'string', maxLength: 2000 },
maxSessionMessages: { type: 'integer', minimum: 5, maximum: 100, default: 20 },
openrouterApiKey: { anyOf: [{ type: 'string' }, { type: 'null' }] },
organizationId: { type: 'string' },
apiKeyId: { anyOf: [{ type: 'string' }, { type: 'null' }] }
},
required: ['name'],
additionalProperties: false
};
const updateAgentSchema = {
type: 'object',
properties: {
name: { type: 'string', minLength: 1, maxLength: 100 },
description: { type: 'string', maxLength: 500 },
knowledgeBaseIds: { type: 'array', items: { type: 'string' } },
llmModel: { type: 'string' },
systemPrompt: { type: 'string', maxLength: 2000 },
maxSessionMessages: { type: 'integer', minimum: 5, maximum: 100 },
openrouterApiKey: { anyOf: [{ type: 'string' }, { type: 'null' }] },
organizationId: { type: 'string' },
apiKeyId: { anyOf: [{ type: 'string' }, { type: 'null' }] }
},
additionalProperties: false
};
module.exports = {
createAgentSchema,
updateAgentSchema
};
|