UNPKG

@langchain/langgraph-sdk

Version:

Client library for interacting with the LangGraph API

20 lines • 923 B
//#region src/ui/hitl-interrupt-payload.d.ts /** * Human-in-the-loop interrupt values from the LangGraph API may use * snake_case (Python server) while JS clients and LangChain types expect * camelCase. Normalize known HITL fields on interrupt payloads at read time. */ /** * If `value` looks like a HITL request object, expose both the new camelCase * keys and the deprecated snake_case aliases so older apps keep working while * migrating to the new shape. */ declare function normalizeHitlInterruptPayload(value: unknown): unknown; /** * If `value` looks like a HITL resume payload from a JS client, expose both * camelCase and snake_case decision fields so Python and JS runtimes accept it. */ declare function normalizeHitlResponseForServer(value: unknown): unknown; //#endregion export { normalizeHitlInterruptPayload, normalizeHitlResponseForServer }; //# sourceMappingURL=hitl-interrupt-payload.d.cts.map