UNPKG

tinyagent-ts

Version:

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

5 lines (4 loc) 252 B
export declare function findFirstJson(text: string): string | null; /** Parse JSON safely, returning null on failure. */ export declare function safeJsonParse<T>(str: string): T | null; export declare function extractJson(text: string): string | null;