/** * The JSON Schema an action's tool takes: one generator for the three tool * outputs, `toAnthropicTools` / `toOpenAITools` (schema.ts) and * `busToMcpTools` (mcp.ts). Sharing one generator keeps the three consistent: * `'any'` is not a JSON Schema type, and a field the validator requires must be * listed `required` or a model is told it may omit it. See * tests/tools-any-field.test.ts. * * A typed field is required; an `'any'` field is `{}` (no constraint) and * optional. `target` and `payload` are required when the action declares them. */ import type { ActionSchema } from './schema'; /** A FieldMap as a JSON Schema object. */ export type ToolObjectSchema = { type: 'object'; properties: Record; required?: string[]; }; /** An action's tool input: `target` and `payload`, each when declared. */ export type ToolInputSchema = { type: 'object'; properties: { target?: ToolObjectSchema; payload?: ToolObjectSchema; }; required?: string[]; }; /** @internal */ export declare function toolInputSchema(def: ActionSchema): ToolInputSchema; //# sourceMappingURL=tool-schema.d.ts.map