refactor(architect): Add self description for intent decoder and refine context (#22)

This commit is contained in:
2026-07-11 09:11:49 +05:30
parent 9bdc3ca04b
commit bfff93e793
12 changed files with 106 additions and 36 deletions

View File

@@ -15,6 +15,7 @@ describe("IntentDecoder Unit Tests (Tier 1)", () => {
type: "action",
originalText: "Alice opened the chest.",
description: "Open the wooden chest.",
selfDescription: "You open the wooden chest.",
actorId: "alice",
targetIds: [],
},
@@ -45,6 +46,7 @@ describe("IntentDecoder Unit Tests (Tier 1)", () => {
type: "dialogue",
originalText: '"Do you have the key?" Alice asked Bob.',
description: "Alice asks Bob if he has the key.",
selfDescription: "You ask Bob if he has the key.",
actorId: "alice",
targetIds: ["bob"],
},
@@ -78,6 +80,7 @@ describe("IntentDecoder Unit Tests (Tier 1)", () => {
type: "dialogue",
originalText: '"Cover me," Alice whispered to Bob.',
description: "Alice whispers to Bob requesting cover.",
selfDescription: "You whisper to Bob requesting cover.",
actorId: "alice",
targetIds: ["bob"],
},
@@ -85,6 +88,7 @@ describe("IntentDecoder Unit Tests (Tier 1)", () => {
type: "action",
originalText: "She crept towards the door and pulled the handle.",
description: "Creep towards the door and pull the handle.",
selfDescription: "You creep towards the door and pull the handle.",
actorId: "alice",
targetIds: [],
},