UNPKG

agents

Version:

A home for your AI agents

20 lines (19 loc) • 930 B
import { d as MAX_WEB_FETCH_URL_LENGTH } from "./tool-CxKsvxjm.js"; import { z } from "zod"; //#region src/web/fetch/tools/input-schema.ts /** * The zod input schema shared by the AI SDK and TanStack AI adapters. Kept * out of the core so the pi adapter, which uses pi-schema, does not need zod. * Internal — not an entry point. */ /** The model's input schema. */ function webFetchInputSchema() { return z.object({ url: z.string().min(1).max(MAX_WEB_FETCH_URL_LENGTH).describe("The http(s) URL to read."), offset: z.number().int().min(0).optional().describe("Character offset into the content, to continue a long page from the previous result's offset. Default 0."), format: z.enum(["auto", "raw"]).optional().describe("\"auto\" (default) converts to the most readable form; \"raw\" returns the body as served.") }); } //#endregion export { webFetchInputSchema as t }; //# sourceMappingURL=input-schema-0uUu392-.js.map