UNPKG

tinyagent-ts

Version:

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

13 lines (12 loc) 376 B
import { ParsedReActResponse } from './types'; /** * Parse a ReAct response text into structured components */ export declare function parseReActResponse(text: string): ParsedReActResponse; /** * Extract tool name and arguments from action text */ export declare function parseToolCall(actionText: string): { tool: string; args: Record<string, unknown>; } | null;