refactor(architect): Use IPromptBuilder Interface for LLMValidator

This commit is contained in:
2026-07-19 20:31:58 +05:30
parent ee25bf4a4c
commit 7baf583b13
8 changed files with 164 additions and 60 deletions

View File

@@ -1,14 +1,14 @@
import { WorldState, resolveAlias } from "@omnia/core";
import { PromptBreakdown, PromptComponent } from "@omnia/llm";
import { PromptBreakdown, PromptComponent, IPromptBuilder } from "@omnia/llm";
import { Intent } from "./intent.js";
// TODO: Builder a generic interface for prompt builders in @omnia/llm: IPromptBuilder or something
/**
* Prompt builder for the Intent Decoder.
* Separates prompt generation, structure, and component breakdowns.
*/
export class IntentDecoderPromptBuilder {
export class IntentDecoderPromptBuilder implements IPromptBuilder<
[WorldState, string, string, Intent[]]
> {
build(
worldState: WorldState,
actorId: string,