Merge commit '67b361f0e99135c578d5764c915b413f457dd67a' as 'third_party/pi'

This commit is contained in:
2026-09-14 10:40:08 -04:00
1669 changed files with 397627 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { Agent } from "@earendil-works/pi-agent-core";
import { createModels } from "@earendil-works/pi-ai";
import { anthropicProvider } from "@earendil-works/pi-ai/providers/anthropic";
const models = createModels();
models.setProvider(anthropicProvider());
const model = models.getModel("anthropic", "claude-sonnet-4-5");
if (!model) throw new Error("Anthropic smoke-test model not found");
export const agent = new Agent({
initialState: { model },
streamFn: models.streamSimple.bind(models),
});