feat: add Russian localization and independent STT languages
CI / Typecheck, tests, lint (push) Canceled after 0s
CI / Standalone (mac-arm64) (push) Canceled after 0s
CI / Standalone (linux-x64) (push) Canceled after 0s
CI / Standalone (windows-x64) (push) Canceled after 0s

This commit is contained in:
2026-10-25 17:18:44 +03:00
parent b277ee3e0f
commit a50ca4b867
93 changed files with 3261 additions and 904 deletions
+3 -1
View File
@@ -1,3 +1,4 @@
import { learningLanguageInstruction, type Language } from "../../core/i18n.ts";
import type { AgentTool } from "@earendil-works/pi-agent-core";
import type { Usage } from "@earendil-works/pi-ai";
import { createWebTools } from "../tools/web.ts";
@@ -68,6 +69,7 @@ Numbered findings with inline source citations:
What couldn't be answered. Suggested next steps.`;
export interface ResearcherRunOptions {
language?: Language;
engine?: PiEngine;
/** The search seam (search port wave, 2026-09-20): resolves the LIVE
* provider per call, null = honestly unavailable (the web_search tool
@@ -98,7 +100,7 @@ export async function runResearcherAgent(prompt: string, opts: ResearcherRunOpti
role: "researcher",
prompt,
engine: opts.engine,
systemPrompt: INSTRUCTIONS,
systemPrompt: `${INSTRUCTIONS}\n\n${learningLanguageInstruction(opts.language ?? "en")}`,
maxTurns: 12,
abortSignal: opts.abortSignal,
onUsage: opts.onUsage,