test: align pi tool schema fixture type

This commit is contained in:
Peter Steinberger
2026-03-28 05:58:02 +00:00
parent c222a44e6f
commit 69b54cbb1f

View File

@@ -1,11 +1,11 @@
import type { AgentTool } from "@mariozechner/pi-agent-core";
import { Type } from "@sinclair/typebox";
import { describe, expect, it, vi } from "vitest";
import { normalizeToolParameters } from "./pi-tools.schema.js";
import type { AnyAgentTool } from "./pi-tools.types.js";
describe("normalizeToolParameters", () => {
it("strips compat-declared unsupported schema keywords without provider-specific branching", () => {
const tool: AgentTool = {
const tool: AnyAgentTool = {
name: "demo",
label: "demo",
description: "demo",