Skip to main content

Interfaces

GraphStateContextType

Defined in: hooks/use-graph-state-context.ts:9 Context value structure for the LangGraph State Graph. Holds active node execution state, errors, and the current state snapshot of the translation pipeline.

Properties

activeNode
Defined in: hooks/use-graph-state-context.ts:21 The currently active LangGraph node matching keys of NODE_NAME_MAP.
error
Defined in: hooks/use-graph-state-context.ts:13 Tracks general runtime errors displayed in a global banner.
graphState
Defined in: hooks/use-graph-state-context.ts:11 Represents the structured state values of the orchestrator state graph.
runError
Defined in: hooks/use-graph-state-context.ts:17 Tracks execution errors that happen specifically during run processes (e.g. streaming issues).
setError
Defined in: hooks/use-graph-state-context.ts:15 Sets or clears a general runtime error.
Parameters
error
| { error?: any; message: string; } | null
Returns
void
setRunError
Defined in: hooks/use-graph-state-context.ts:19 Sets or clears a run-specific error.
Parameters
error
| { error?: any; message: string; } | null
Returns
void

Variables

GraphStateContext

Defined in: hooks/use-graph-state-context.ts:27 React Context object that shares the LangGraph state and execution status across the application.

Functions

useGraphStateContext()

Defined in: hooks/use-graph-state-context.ts:43 Custom React hook that accesses the GraphStateContext. Must be used within an AssistantRuntimeProviderWrapper component.

Returns

GraphStateContextType The current LangGraph state context value.

Throws

If called outside of a provider context.