LangState is an abstract generic class that holds component references and defines an application-facing lifecycle. The pinned source does not include a concrete subclass, so it cannot be instantiated directly.
Required methods
An application subclass implements:get_current_state(). A completed invocation returns ActionResultData, not StateResultData.
Constructor components
LangState.__init__() accepts optional:
BaseSpecExtractorBaseMutatorBaseProjectorCanonicalState- one
BaseProjectorUIor a list of UI projectors
Invocation result models
InteractionRequest represents another user interaction. It can carry a prompt, UI components, options, pending fields, InterpretiveStateSchema, and CanonicalStateSchema.
ActionResultData represents completion:
ActionResult in the action module. ActionResult describes an individual action execution with an ActionStatus; ActionResultData is the orchestrator’s completed-flow payload.