@xynehq/jaf
Version:
Juspay Agent Framework - A purely functional agent framework with immutable state and composable tools
25 lines • 1.05 kB
TypeScript
import { z } from 'zod';
import { Tool } from '../core/types';
declare const MathArgsSchema: z.ZodObject<{
operation: z.ZodEnum<["evaluate", "add", "subtract", "multiply", "divide", "power", "sqrt", "abs", "round"]>;
a: z.ZodOptional<z.ZodNumber>;
b: z.ZodOptional<z.ZodNumber>;
expression: z.ZodOptional<z.ZodString>;
decimals: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
operation: "evaluate" | "add" | "subtract" | "multiply" | "divide" | "power" | "sqrt" | "abs" | "round";
a?: number | undefined;
b?: number | undefined;
expression?: string | undefined;
decimals?: number | undefined;
}, {
operation: "evaluate" | "add" | "subtract" | "multiply" | "divide" | "power" | "sqrt" | "abs" | "round";
a?: number | undefined;
b?: number | undefined;
expression?: string | undefined;
decimals?: number | undefined;
}>;
export type MathArgs = z.infer<typeof MathArgsSchema>;
export declare const mathTool: Tool<MathArgs, any>;
export default mathTool;
//# sourceMappingURL=math.d.ts.map