UNPKG

tinyagent-ts

Version:

Modern TypeScript framework for building AI agents with pluggable tools and ReAct reasoning

29 lines (28 loc) 785 B
import { z } from 'zod'; import { BaseTool } from './types'; /** * Schema for human loop operations */ export declare const HumanLoopToolSchema: z.ZodObject<{ prompt: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { prompt: string; }, { prompt?: string | undefined; }>; export type HumanLoopToolArgs = z.infer<typeof HumanLoopToolSchema>; /** * Human loop tool for getting input from human operators */ export declare class HumanLoopTool extends BaseTool { name: string; description: string; schema: z.ZodObject<{ prompt: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { prompt: string; }, { prompt?: string | undefined; }>; execute(args: HumanLoopToolArgs, abortSignal?: AbortSignal): Promise<string>; }