feat(architect): Add modifier field to intent decoder, refine prompt

This commit is contained in:
2026-07-11 12:43:45 +05:30
parent 27c8bb1cb8
commit c8091ed47c
13 changed files with 91 additions and 38 deletions

View File

@@ -39,9 +39,15 @@ function IntentTag({
? intent.selfDescription
: intent.description;
const modifiersStr = intent.modifiers && intent.modifiers.length > 0 ? (
<span className="intent-modifiers" style={{ fontStyle: "italic", opacity: 0.8, color: "#4b5563", marginLeft: "0.25rem" }}>
({intent.modifiers.join(", ")})
</span>
) : null;
return (
<span className="intent-tag">
[{label}] &ldquo;{textToDisplay}&rdquo;{outcome}
[{label}] &ldquo;{textToDisplay}&rdquo;{modifiersStr}{outcome}
{intent.minutesToAdvance ? ` [+${intent.minutesToAdvance}min]` : ""}
</span>
);

View File

@@ -2,6 +2,7 @@ export interface IntentInfo {
type: string;
description: string;
selfDescription?: string;
modifiers: string[];
targetIds: string[];
isValid?: boolean;
reason?: string;

View File

@@ -386,6 +386,7 @@ class SimulationManager {
type: intent.type,
description: intent.description,
selfDescription: intent.selfDescription,
modifiers: intent.modifiers || [],
targetIds: intent.targetIds,
isValid: outcome.isValid,
reason: outcome.reason,
@@ -530,6 +531,7 @@ class SimulationManager {
type: intent.type,
description: intent.description,
selfDescription: intent.selfDescription,
modifiers: intent.modifiers || [],
targetIds: intent.targetIds,
isValid: outcome.isValid,
reason: outcome.reason,