PAIPAI

@pai/test-utils

runTool, createTestRuntime, runAgentEval.

Package: @pai/test-utils

pnpm add -D @pai/test-utils

For provider-specific model fixtures, use rawStreamResponse(parts) or createTestUtils().rawStream(parts). Both emit only the supplied stream events; include a finish event when testing normal completion.

Also: stubTools, waitForTool, waitForPending. React UI: @pai/react-test-utils.