/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: cbf80b935f5b */ 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 { Agent, Agent$inboundSchema } from "./agent.js"; export type SearchAgentsResponse = { agents?: Array | undefined; }; /** @internal */ export const SearchAgentsResponse$inboundSchema: z.ZodType< SearchAgentsResponse, z.ZodTypeDef, unknown > = z.object({ agents: z.array(Agent$inboundSchema).optional(), }); export function searchAgentsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SearchAgentsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchAgentsResponse' from JSON`, ); }