/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { ClosedEnum } from "../types/enums.js"; import { AgentMemoryBudget, AgentMemoryBudget$Outbound, AgentMemoryBudget$outboundSchema, } from "./agent-memory-budget.js"; import { AgentMemoryLayer, AgentMemoryLayer$outboundSchema, } from "./agent-memory-layer.js"; export const AgentMemoryContextRequestScope = { Global: "global", Local: "local", } as const; export type AgentMemoryContextRequestScope = ClosedEnum< typeof AgentMemoryContextRequestScope >; export type AgentMemoryContextRequest = { agentWallet: string; userAddress?: string | undefined; threadId?: string | undefined; scope?: AgentMemoryContextRequestScope | undefined; haiId?: string | undefined; filters?: { [k: string]: any } | undefined; metadata?: { [k: string]: any } | undefined; query: string; layers?: Array | undefined; limit?: number | undefined; maxItems?: number | undefined; maxItemChars?: number | undefined; budget?: AgentMemoryBudget | undefined; includeRaw?: boolean | undefined; }; /** @internal */ export const AgentMemoryContextRequestScope$outboundSchema: z.ZodMiniEnum< typeof AgentMemoryContextRequestScope > = z.enum(AgentMemoryContextRequestScope); /** @internal */ export type AgentMemoryContextRequest$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; query: string; layers?: Array | undefined; limit?: number | undefined; maxItems?: number | undefined; maxItemChars?: number | undefined; budget?: AgentMemoryBudget$Outbound | undefined; includeRaw?: boolean | undefined; }; /** @internal */ export const AgentMemoryContextRequest$outboundSchema: z.ZodMiniType< AgentMemoryContextRequest$Outbound, AgentMemoryContextRequest > = z.object({ agentWallet: z.string(), userAddress: z.optional(z.string()), threadId: z.optional(z.string()), scope: z.optional(AgentMemoryContextRequestScope$outboundSchema), haiId: z.optional(z.string()), filters: z.optional(z.record(z.string(), z.any())), metadata: z.optional(z.record(z.string(), z.any())), query: z.string(), layers: z.optional(z.array(AgentMemoryLayer$outboundSchema)), limit: z.optional(z.int()), maxItems: z.optional(z.int()), maxItemChars: z.optional(z.int()), budget: z.optional(AgentMemoryBudget$outboundSchema), includeRaw: z.optional(z.boolean()), }); export function agentMemoryContextRequestToJSON( agentMemoryContextRequest: AgentMemoryContextRequest, ): string { return JSON.stringify( AgentMemoryContextRequest$outboundSchema.parse(agentMemoryContextRequest), ); }