/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { ClosedEnum } from "../types/enums.js"; import { AgentMemoryLayer, AgentMemoryLayer$outboundSchema, } from "./agent-memory-layer.js"; import { MemoryEvalTestCase, MemoryEvalTestCase$Outbound, MemoryEvalTestCase$outboundSchema, } from "./memory-eval-test-case.js"; export const MemoryEvalRunRequestScope = { Global: "global", Local: "local", } as const; export type MemoryEvalRunRequestScope = ClosedEnum< typeof MemoryEvalRunRequestScope >; export type MemoryEvalRunRequest = { agentWallet: string; userAddress?: string | undefined; threadId?: string | undefined; scope?: MemoryEvalRunRequestScope | undefined; haiId?: string | undefined; filters?: { [k: string]: any } | undefined; metadata?: { [k: string]: any } | undefined; layers?: Array | undefined; testCases: Array; }; /** @internal */ export const MemoryEvalRunRequestScope$outboundSchema: z.ZodMiniEnum< typeof MemoryEvalRunRequestScope > = z.enum(MemoryEvalRunRequestScope); /** @internal */ export type MemoryEvalRunRequest$Outbound = { agentWallet: string; userAddress?: string | undefined; threadId?: string | undefined; scope?: string | undefined; haiId?: string | undefined; filters?: { [k: string]: any } | undefined; metadata?: { [k: string]: any } | undefined; layers?: Array | undefined; testCases: Array; }; /** @internal */ export const MemoryEvalRunRequest$outboundSchema: z.ZodMiniType< MemoryEvalRunRequest$Outbound, MemoryEvalRunRequest > = z.object({ agentWallet: z.string(), userAddress: z.optional(z.string()), threadId: z.optional(z.string()), scope: z.optional(MemoryEvalRunRequestScope$outboundSchema), haiId: z.optional(z.string()), filters: z.optional(z.record(z.string(), z.any())), metadata: z.optional(z.record(z.string(), z.any())), layers: z.optional(z.array(AgentMemoryLayer$outboundSchema)), testCases: z.array(MemoryEvalTestCase$outboundSchema), }); export function memoryEvalRunRequestToJSON( memoryEvalRunRequest: MemoryEvalRunRequest, ): string { return JSON.stringify( MemoryEvalRunRequest$outboundSchema.parse(memoryEvalRunRequest), ); }