From 765eb0c01b9152a01c4f0d69b933b1cbd51bfb96 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Mon, 13 Jul 2026 07:13:33 +0530 Subject: [PATCH] minor(architect): Add shortcircuit for TimeDeltaGenerator --- packages/architect/src/delta.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/architect/src/delta.ts b/packages/architect/src/delta.ts index 9c7630d..bb6666e 100644 --- a/packages/architect/src/delta.ts +++ b/packages/architect/src/delta.ts @@ -18,6 +18,21 @@ export class TimeDeltaGenerator implements IDeltaGenerator { constructor(private llmProvider: ILLMProvider) {} async generate(worldState: WorldState, intent: Intent): Promise { + // We can do this right now because we haven't yet started the implementation of the Event Scheduler or a Tick Engine + // Once we do, please review this code. + if (intent.type === "dialogue") { + return { + minutesToAdvance: 1, + explanation: "Dialogue action; 1 minute granted for quick exchange.", + }; + } + if (intent.type === "monologue") { + return { + minutesToAdvance: 0, + explanation: "Monologue action; no time advanced for internal thought.", + }; + } + const systemPrompt = ` You are the Time Delta Generator for the World Architect. Your task is to judge how much time (in minutes) a proposed action would logically take to execute in the physical world.