middleware.continuation_state ============================= .. py:module:: middleware.continuation_state .. autoapi-nested-parse:: Private LangGraph state fields for continuation guard middleware. Attributes ---------- .. autoapisummary:: middleware.continuation_state.ContinuationMode Classes ------- .. autoapisummary:: middleware.continuation_state.ContinuationGuardState Module Contents --------------- .. py:data:: ContinuationMode .. py:class:: ContinuationGuardState Bases: :py:obj:`langchain.agents.middleware.AgentState` Private orchestration state for continuation control. .. py:attribute:: continuation_mode :type: NotRequired[Annotated[ContinuationMode, langchain.agents.middleware.types.PrivateStateAttr]] .. py:attribute:: finalize_only_forbidden_tool_rounds :type: NotRequired[Annotated[int, langchain.agents.middleware.types.PrivateStateAttr]] Count of consecutive finalize-only model turns that still emitted tool calls. .. py:attribute:: normal_mode_rejected_tool_signature :type: NotRequired[Annotated[str | None, langchain.agents.middleware.types.PrivateStateAttr]] Exact signature of the repeated rejected tool call currently being tracked. .. py:attribute:: normal_mode_rejected_tool_name :type: NotRequired[Annotated[str | None, langchain.agents.middleware.types.PrivateStateAttr]] Tool name paired with ``normal_mode_rejected_tool_signature`` for logging/debugging. .. py:attribute:: normal_mode_rejected_tool_rounds :type: NotRequired[Annotated[int, langchain.agents.middleware.types.PrivateStateAttr]] Count of consecutive normal-mode retries for the same already-rejected tool call. .. py:attribute:: pending_tool_transcript_system_reminder :type: NotRequired[Annotated[str | None, _PENDING_TOOL_TRANSCRIPT_CHANNEL, langchain.agents.middleware.types.PrivateStateAttr]] Tool-transcript repair nudge deferred from ``before_model`` for ``wrap_model_call``.