UNPKG

@langgraph-js/sdk

Version:

The UI SDK for LangGraph - seamlessly integrate your AI agents with frontend interfaces

15 lines (14 loc) 467 B
import { Client, Message } from "@langchain/langgraph-sdk"; export interface RevertChatToOptions { includeMessageId?: boolean; } export declare function revertChatTo(client: Client<{ messages: Message[]; }, { messages: Message[]; }, unknown>, threadId: string, messageId: string, options: RevertChatToOptions): Promise<{ state: { messages: Message[]; }; checkpoint: Pick<import("@langchain/langgraph-sdk").Config, "configurable">; }>;