tinyagent-ts
Version:
Modern TypeScript framework for building AI agents with pluggable tools and ReAct reasoning
42 lines (41 loc) • 967 B
TypeScript
import { z } from 'zod';
export declare const ToolCallSchema: z.ZodObject<{
tool: z.ZodString;
args: z.ZodRecord<z.ZodString, z.ZodAny>;
}, "strict", z.ZodTypeAny, {
tool: string;
args: Record<string, any>;
}, {
tool: string;
args: Record<string, any>;
}>;
export declare const FinalAnswerCallSchema: z.ZodObject<{
tool: z.ZodLiteral<"final_answer">;
args: z.ZodObject<{
answer: z.ZodString;
}, "strip", z.ZodTypeAny, {
answer: string;
}, {
answer: string;
}>;
}, "strict", z.ZodTypeAny, {
tool: "final_answer";
args: {
answer: string;
};
}, {
tool: "final_answer";
args: {
answer: string;
};
}>;
export declare const AssistantReplySchema: z.ZodObject<{
tool: z.ZodString;
args: z.ZodRecord<z.ZodString, z.ZodAny>;
}, "strict", z.ZodTypeAny, {
tool: string;
args: Record<string, any>;
}, {
tool: string;
args: Record<string, any>;
}>;