Add eval runner and tool orchestration

This commit is contained in:
dahyeon committed 2026-04-17 00:47:02 -07:00
1 parent 4294f3c92e
commit 5579db54da
66 files changed
+6162 -242

No files matched your search

+7 -1
View File
@@ -8,6 +8,7 @@ import {
policyLayer,
stateLayer,
} from "./layers.js";
import { buildToolPolicy } from "./tool-policy.js";
export class PromptBuilder {
private constructor(
@@ -35,7 +36,12 @@ export class PromptBuilder {
const systemPrompt = [
personaLayer(),
policyLayer(this.derived.intent),
policyLayer(this.derived.intent, {
toolPolicy:
this.derived.responseMode === "llm-with-tools"
? buildToolPolicy(this.derived.intent.kind, this.derived.phase.kind)
: undefined,
}),
stateLayer(this.session, this.derived),
examplesLayer(this.derived.intent),
contextLayer(promptContext),