diff --git a/assistant/prompt/latest b/ai/assistant/latest similarity index 100% rename from assistant/prompt/latest rename to ai/assistant/latest diff --git a/ai/assistant/v0.1.0/schema.json b/ai/assistant/v0.1.0/schema.json new file mode 100644 index 0000000..3f9d6a7 --- /dev/null +++ b/ai/assistant/v0.1.0/schema.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://common.schemas.verida.io/ai/assistant/v0.1.0/schema.json", + "name": "https://common.schemas.verida.io/ai/assistant/v0.1.0/schema.json", + "title": "AI Assistant", + "titlePlural": "AI Assistants", + "description": "AI assistants and their configuration", + "type": "object", + "database": { + "name": "ai_assistant" + }, + "allOf": [ + { "$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json" }, + { + "properties": { + "name": { + "type": "string", + "title": "Name", + "description": "The user-friendly label" + }, + "order": { + "type": "integer", + "title": "Order" + } + }, + "required": ["name"] + } + ] +} diff --git a/ai/prompt/latest b/ai/prompt/latest new file mode 120000 index 0000000..9ff151c --- /dev/null +++ b/ai/prompt/latest @@ -0,0 +1 @@ +v0.1.0 \ No newline at end of file diff --git a/assistant/prompt/v0.1.0/schema.json b/ai/prompt/v0.1.0/schema.json similarity index 65% rename from assistant/prompt/v0.1.0/schema.json rename to ai/prompt/v0.1.0/schema.json index bfe3676..d23247f 100644 --- a/assistant/prompt/v0.1.0/schema.json +++ b/ai/prompt/v0.1.0/schema.json @@ -1,18 +1,23 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://common.schemas.verida.io/assistant/prompt/v0.1.0/schema.json", - "name": "https://common.schemas.verida.io/assistant/prompt/v0.1.0/schema.json", + "$id": "https://common.schemas.verida.io/ai/prompt/v0.1.0/schema.json", + "name": "https://common.schemas.verida.io/ai/prompt/v0.1.0/schema.json", "title": "User Prompt", "titlePlural": "User Prompts", "description": "Saved prompts for the assistant", "type": "object", "database": { - "name": "prompts" + "name": "ai_prompt" }, "allOf": [ { "$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json" }, { "properties": { + "assistantId": { + "type": "string", + "title": "Assistant ID", + "description": "The ID of the assistant" + }, "name": { "type": "string", "title": "Name", @@ -28,7 +33,7 @@ "title": "Order" } }, - "required": ["name", "prompt"] + "required": ["assistantId", "name", "prompt"] } ] }