/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; export type AgentMemoryToolEvent = { name: string; toolName?: string | undefined; tool?: string | undefined; args?: { [k: string]: any } | undefined; input?: { [k: string]: any } | undefined; result?: string | undefined; output?: string | undefined; status?: string | undefined; timestamp?: number | undefined; }; /** @internal */ export type AgentMemoryToolEvent$Outbound = { name: string; toolName?: string | undefined; tool?: string | undefined; args?: { [k: string]: any } | undefined; input?: { [k: string]: any } | undefined; result?: string | undefined; output?: string | undefined; status?: string | undefined; timestamp?: number | undefined; }; /** @internal */ export const AgentMemoryToolEvent$outboundSchema: z.ZodMiniType< AgentMemoryToolEvent$Outbound, AgentMemoryToolEvent > = z.object({ name: z.string(), toolName: z.optional(z.string()), tool: z.optional(z.string()), args: z.optional(z.record(z.string(), z.any())), input: z.optional(z.record(z.string(), z.any())), result: z.optional(z.string()), output: z.optional(z.string()), status: z.optional(z.string()), timestamp: z.optional(z.int()), }); export function agentMemoryToolEventToJSON( agentMemoryToolEvent: AgentMemoryToolEvent, ): string { return JSON.stringify( AgentMemoryToolEvent$outboundSchema.parse(agentMemoryToolEvent), ); }