From 9eb69347b6dd9b7d7d3def40870f6c7f42212162 Mon Sep 17 00:00:00 2001 From: Bobby Christopher Date: Mon, 27 Oct 2025 10:06:59 -0400 Subject: [PATCH 1/2] added prompt schema --- prompts.schema.json | 76 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 prompts.schema.json diff --git a/prompts.schema.json b/prompts.schema.json new file mode 100644 index 00000000..d0948bce --- /dev/null +++ b/prompts.schema.json @@ -0,0 +1,76 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://agentuity.com/prompts.schema.json", + "title": "Agentuity Prompts Schema", + "description": "The schema for Agentuity prompts configuration", + "type": "object", + "required": [ + "prompts" + ], + "properties": { + "prompts": { + "type": "array", + "items": { + "type": "object", + "required": [ + "slug", + "name", + "description" + ], + "anyOf": [ + { + "required": [ + "system" + ], + "not": { + "required": [ + "prompt" + ] + } + }, + { + "required": [ + "prompt" + ], + "not": { + "required": [ + "system" + ] + } + } + ], + "properties": { + "slug": { + "type": "string", + "pattern": "^[a-z0-9-]+$", + "description": "A unique identifier for the prompt using lowercase letters, numbers, and hyphens" + }, + "name": { + "type": "string", + "description": "The human-readable name of the prompt" + }, + "description": { + "type": "string", + "description": "A description of what this prompt does" + }, + "system": { + "type": "string", + "description": "The system message template with optional variables in {variable:default} format" + }, + "prompt": { + "type": "string", + "description": "The user prompt template with optional variables in {variable:default} format" + }, + "evals": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional evaluation criteria for this prompt" + } + } + }, + "description": "Array of prompt definitions" + } + } +} \ No newline at end of file From dee81749b484ad65a1a2377a881784abccc7d485 Mon Sep 17 00:00:00 2001 From: Bobby Christopher Date: Mon, 27 Oct 2025 10:11:56 -0400 Subject: [PATCH 2/2] added schema file update --- prompts.schema.json | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/prompts.schema.json b/prompts.schema.json index d0948bce..727494c4 100644 --- a/prompts.schema.json +++ b/prompts.schema.json @@ -21,22 +21,12 @@ { "required": [ "system" - ], - "not": { - "required": [ - "prompt" - ] - } + ] }, { "required": [ "prompt" - ], - "not": { - "required": [ - "system" - ] - } + ] } ], "properties": {