import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { FunctionParameters, FunctionParameters$Outbound } from "./functionparameters.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type FunctionObject = { /** * A description of what the function does, used by the model to choose when and how to call the function. */ description?: string | undefined; /** * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64. */ name: string; /** * The parameters the functions accepts, described as a JSON Schema object. * * @remarks * * To describe a function that accepts no parameters, provide the value `{"type": "object", "properties": {}}`. */ parameters: FunctionParameters; }; /** @internal */ export declare const FunctionObject$inboundSchema: z.ZodType; /** @internal */ export type FunctionObject$Outbound = { description?: string | undefined; name: string; parameters: FunctionParameters$Outbound; }; /** @internal */ export declare const FunctionObject$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace FunctionObject$ { /** @deprecated use `FunctionObject$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `FunctionObject$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `FunctionObject$Outbound` instead. */ type Outbound = FunctionObject$Outbound; } export declare function functionObjectToJSON(functionObject: FunctionObject): string; export declare function functionObjectFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=functionobject.d.ts.map