Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

add xspace-agent/packages/server/src/schemas/personalities.ts

oversteppingadc86ca14d48
diff --git a/xspace-agent/packages/server/src/schemas/personalities.ts b/xspace-agent/packages/server/src/schemas/personalities.ts
new file mode 100644
index 000000000..2307d41c1
--- /dev/null
+++ b/xspace-agent/packages/server/src/schemas/personalities.ts
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§78]
+
+// =============================================================================
+// Personality Zod schemas
+// =============================================================================
+
+import { z } from 'zod'
+
+export const CreatePersonalityBodySchema = z.object({
+ id: z.string().min(1, 'id is required'),
+ name: z.string().min(1, 'name is required'),
+ systemPrompt: z.string().min(1, 'systemPrompt is required'),
+ description: z.string().optional(),
+ context: z.array(z.string()).optional(),
+ behavior: z.object({
+ temperature: z.number().min(0).max(2).optional(),
+ maxResponseTokens: z.number().int().positive().optional(),
+ }).optional(),
+ voice: z.object({
+ provider: z.string(),
+ voiceId: z.string().optional(),
+ speed: z.number().optional(),
+ stability: z.number().optional(),
+ }).optional(),
+})
+
+export const UpdatePersonalityBodySchema = CreatePersonalityBodySchema.partial()
+
+