refactor(llm, memory): Use generic types prompt builder and prompt component for actor,intent and handoff

This commit is contained in:
2026-07-19 18:20:28 +05:30
parent 1e34becec7
commit ee25bf4a4c
11 changed files with 267 additions and 158 deletions

View File

@@ -13,7 +13,8 @@ import {
LedgerEntry,
LedgerRepository,
} from "@omnia/memory";
import { hydrate, PromptComponent } from "@omnia/voice";
import { hydrate } from "@omnia/voice";
import { PromptComponent } from "@omnia/llm";
/**
* Zod schema for the structured response expected from the actor LLM.

View File

@@ -1,8 +1,7 @@
import { Entity, WorldState } from "@omnia/core";
import { ILLMProvider } from "@omnia/llm";
import { ILLMProvider, PromptComponent } from "@omnia/llm";
import { BufferEntry, BufferRepository, LedgerRepository } from "@omnia/memory";
import { Intent, IntentDecoder, IntentSequence } from "@omnia/intent";
import { PromptComponent } from "@omnia/voice";
import {
ActorPromptBuilder,
ActorResponseSchema,