mirror of
https://github.com/morluto/rea.git
synced 2026-12-03 09:34:20 +00:00
12 lines
482 B
TypeScript
12 lines
482 B
TypeScript
import type { Ajv2020 } from "ajv/dist/2020.js";
|
|
import type { CallToolResult, Tool } from "@modelcontextprotocol/client";
|
|
export function canonicalOutputSchema(name: string): Record<string, unknown>;
|
|
export function assertCanonicalOutput(
|
|
ajv: Ajv2020,
|
|
tool: Pick<Tool, "name">,
|
|
response: Pick<CallToolResult, "structuredContent">,
|
|
): void;
|
|
export function withCanonicalOutputSchema<T extends Pick<Tool, "name">>(
|
|
tool: T,
|
|
): T & { outputSchema: Record<string, unknown> };
|