UNPKG

@langgraph-js/sdk

Version:

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

24 lines (23 loc) 629 B
import { AIMessage, HumanMessage } from "@langchain/core/messages"; export declare class InterruptModal { private inputParams; constructor(inputParams: { action: "prompt" | string; }); rawResponse?: { response: string; request: { message: string; action: "prompt" | string; }; }; get response(): { answer?: string; }; interrupt(message: string): this; isApprove(): string | undefined; isReject(): boolean; toMessages(options?: { AIAskMessage?: boolean; }): (false | HumanMessage | AIMessage | undefined)[]; }