/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 5f2224b310cb */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Tool, Tool$inboundSchema } from "./tool.js"; export type ToolsListResponse = { tools?: Array | undefined; }; /** @internal */ export const ToolsListResponse$inboundSchema: z.ZodType< ToolsListResponse, z.ZodTypeDef, unknown > = z.object({ tools: z.array(Tool$inboundSchema).optional(), }); export function toolsListResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ToolsListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolsListResponse' from JSON`, ); }