This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@mistralai/mistralai/models/components/tool.d.ts
T

33 lines
1.4 KiB
TypeScript

import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { FunctionT, FunctionT$Outbound } from "./function.js";
import { ToolTypes } from "./tooltypes.js";
export type Tool = {
type?: ToolTypes | undefined;
function: FunctionT;
};
/** @internal */
export declare const Tool$inboundSchema: z.ZodType<Tool, z.ZodTypeDef, unknown>;
/** @internal */
export type Tool$Outbound = {
type?: string | undefined;
function: FunctionT$Outbound;
};
/** @internal */
export declare const Tool$outboundSchema: z.ZodType<Tool$Outbound, z.ZodTypeDef, Tool>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace Tool$ {
/** @deprecated use `Tool$inboundSchema` instead. */
const inboundSchema: z.ZodType<Tool, z.ZodTypeDef, unknown>;
/** @deprecated use `Tool$outboundSchema` instead. */
const outboundSchema: z.ZodType<Tool$Outbound, z.ZodTypeDef, Tool>;
/** @deprecated use `Tool$Outbound` instead. */
type Outbound = Tool$Outbound;
}
export declare function toolToJSON(tool: Tool): string;
export declare function toolFromJSON(jsonString: string): SafeParseResult<Tool, SDKValidationError>;
//# sourceMappingURL=tool.d.ts.map