mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 02:41:07 +00:00
test: align pi tool schema fixture type
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user