UNPKG

browser-use-typescript

Version:

A TypeScript-based browser automation framework

17 lines (16 loc) 661 B
import { BaseMessage } from "@langchain/core/messages"; /** * Extract JSON from model output, handling both plain JSON and code-block-wrapped JSON. */ export declare function extractJsonFromModelOutput(content: string): any; /** * Convert input messages to a format that is compatible with the planner model */ export declare function convertInputMessages(inputMessages: BaseMessage[], modelName?: string): BaseMessage[]; /** * Save conversation history to file. */ export declare function saveConversation(inputMessages: BaseMessage[], response: any, target: string, encoding?: BufferEncoding): void; /** * Write model response to conversation file */