/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 21b6159b9fa6
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const ConnectorToolResultMetadata$inboundSchema = z.object({
    isError: z.boolean().default(false),
    structuredContent: z.nullable(z.record(z.string(), z.any())).optional(),
    _meta: z.nullable(z.record(z.string(), z.any())).optional(),
}).catchall(z.any()).transform((v) => {
    return remap$(v, {
        "_meta": "meta",
    });
});
export function connectorToolResultMetadataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ConnectorToolResultMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectorToolResultMetadata' from JSON`);
}
//# sourceMappingURL=connectortoolresultmetadata.js.map