UNPKG

tinyagent-ts

Version:

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

26 lines (25 loc) 807 B
import { z } from 'zod'; import { Tool } from '../final-answer.tool'; export declare const HumanLoopSchema: z.ZodObject<{ prompt: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { prompt: string; }, { prompt?: string | undefined; }>; export type HumanLoopArgs = z.infer<typeof HumanLoopSchema>; /** * Tool that pauses execution and asks the human for input. */ export declare class HumanLoopTool implements Tool<HumanLoopArgs, string> { readonly name = "human_loop"; readonly description = "Pause and ask the human operator for guidance"; readonly schema: z.ZodObject<{ prompt: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { prompt: string; }, { prompt?: string | undefined; }>; forward(args: HumanLoopArgs): Promise<string>; }