@ai-foundry/llm-sdk
Version:
This is just another SDK for the common LLM API providers.
9 lines (8 loc) • 345 B
TypeScript
import type { infer as zodInfer, ZodType } from 'zod';
import type { FunctionTool } from '../models/llm-tool.models';
export declare function zodFunctionTool<Schema extends ZodType>(options: {
name: string;
parameters: Schema;
description: string;
execute: (args: zodInfer<Schema>) => string | Promise<string>;
}): FunctionTool;