chore: Fix types in tests 26/N.

This commit is contained in:
cpojer
2026-02-17 14:31:40 +09:00
parent 6e5df1dc0f
commit 4235435309
14 changed files with 57 additions and 45 deletions

View File

@@ -1,13 +1,14 @@
import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core";
import { Type } from "@sinclair/typebox";
import { describe, expect, it } from "vitest";
import { splitSdkTools } from "./pi-embedded-runner.js";
function createStubTool(name: string): AgentTool<unknown, unknown> {
function createStubTool(name: string): AgentTool {
return {
name,
label: name,
description: "",
parameters: {},
parameters: Type.Object({}),
execute: async () => ({}) as AgentToolResult<unknown>,
};
}