UNPKG

@lamemind/react-agent-ts

Version:

Streaming ReAct agent in typescript with multiple LLM providers

10 lines (9 loc) 321 B
import { z } from "zod"; export declare function validateAndParseInput<T>(args: unknown, schema: z.ZodObject<any, "strip", z.ZodTypeAny, any, any>): T; export type ToolOutput = { content: Array<{ type: string; text: string; }>; }; export declare function formatToolOuput(output: any): ToolOutput;