mirror of
https://github.com/sortedcord/omnia.git
synced 2026-07-22 12:02:49 +05:30
FEAT!(voice): Implement intent hydration, dehydration system fixes: #29
This commit is contained in:
@@ -145,8 +145,14 @@ export class ScenarioLoader {
|
||||
timestamp: mem.timestamp,
|
||||
locationId: mem.locationId,
|
||||
intent: {
|
||||
...mem.intent,
|
||||
selfDescription: mem.intent.selfDescription ?? "",
|
||||
type: mem.intent.type,
|
||||
content:
|
||||
mem.intent.content ||
|
||||
mem.intent.description ||
|
||||
mem.intent.originalText ||
|
||||
"",
|
||||
actorId: mem.intent.actorId,
|
||||
targetIds: mem.intent.targetIds,
|
||||
modifiers: mem.intent.modifiers ?? [],
|
||||
},
|
||||
outcome: mem.outcome,
|
||||
|
||||
@@ -31,8 +31,9 @@ export const ScenarioMemoryEntrySchema = z.object({
|
||||
locationId: z.string().nullable(),
|
||||
intent: z.object({
|
||||
type: z.enum(["dialogue", "action", "monologue", "thought"]),
|
||||
originalText: z.string(),
|
||||
description: z.string(),
|
||||
content: z.string().optional(),
|
||||
originalText: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
selfDescription: z.string().optional(),
|
||||
actorId: z.string(),
|
||||
targetIds: z.array(z.string()),
|
||||
|
||||
Reference in New Issue
Block a user