From 2496e831a1d176a452c4644b3089930af60f4c9b Mon Sep 17 00:00:00 2001 From: "cristiano.hoshikawa" Date: Fri, 21 Aug 2026 16:47:13 -0300 Subject: [PATCH] Adding transaction state --- .../app/state.py | 2 ++ .../agent_template_backend/app/state.py | 2 ++ .../agent_template_backend/app/state.py | 2 ++ .../agent_template_backend/app/state.py | 2 ++ .../agent_template_backend_day_zero/app/state.py | 2 ++ .../agent_template_backend/app/state.py | 2 ++ .../agent_template_backend_day_zero/app/state.py | 2 ++ .../agent_template_backend/app/state.py | 1 + .../agent_template_backend/app/state.py | 1 + templates/agent_template_backend/app/state.py | 1 + .../agent_template_backend_day_zero/app/state.py | 2 ++ ...aph_checkpoint_runtime_config.cpython-313.pyc | Bin 0 -> 2894 bytes 12 files changed, 19 insertions(+) create mode 100644 tests/unit/__pycache__/test_langgraph_checkpoint_runtime_config.cpython-313.pyc diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/state.py b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/state.py index cc19c03..84d9f49 100644 --- a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/state.py +++ b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/state.py @@ -26,6 +26,8 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] + last_transaction: dict[str, Any] transaction_status: str confirmation_required: bool confirmation_received: bool diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/state.py b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/state.py index cc19c03..84d9f49 100644 --- a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/state.py +++ b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/state.py @@ -26,6 +26,8 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] + last_transaction: dict[str, Any] transaction_status: str confirmation_required: bool confirmation_received: bool diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/state.py b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/state.py index cc19c03..84d9f49 100644 --- a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/state.py +++ b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/state.py @@ -26,6 +26,8 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] + last_transaction: dict[str, Any] transaction_status: str confirmation_required: bool confirmation_received: bool diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/state.py b/Tuning-Performance/Normal/templates/agent_template_backend/app/state.py index ac673d6..fc68092 100644 --- a/Tuning-Performance/Normal/templates/agent_template_backend/app/state.py +++ b/Tuning-Performance/Normal/templates/agent_template_backend/app/state.py @@ -26,6 +26,8 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] + last_transaction: dict[str, Any] transaction_status: str confirmation_required: bool confirmation_received: bool diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/state.py b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/state.py index ac673d6..fc68092 100644 --- a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/state.py +++ b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/state.py @@ -26,6 +26,8 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] + last_transaction: dict[str, Any] transaction_status: str confirmation_required: bool confirmation_received: bool diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/state.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/state.py index ac673d6..fc68092 100644 --- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/state.py +++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/state.py @@ -26,6 +26,8 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] + last_transaction: dict[str, Any] transaction_status: str confirmation_required: bool confirmation_received: bool diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/state.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/state.py index ac673d6..fc68092 100644 --- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/state.py +++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/state.py @@ -26,6 +26,8 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] + last_transaction: dict[str, Any] transaction_status: str confirmation_required: bool confirmation_received: bool diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/state.py b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/state.py index 1fce695..7d929a8 100644 --- a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/state.py +++ b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/state.py @@ -26,6 +26,7 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] transaction_status: str transaction_evidence: list[dict[str, Any]] last_transaction_evidence: dict[str, Any] diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/state.py b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/state.py index a7c91a0..ff1d474 100644 --- a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/state.py +++ b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/state.py @@ -26,6 +26,7 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] transaction_status: str transaction_pre_validation: dict[str, Any] transaction_evidence: list[dict[str, Any]] diff --git a/templates/agent_template_backend/app/state.py b/templates/agent_template_backend/app/state.py index a7c91a0..ff1d474 100644 --- a/templates/agent_template_backend/app/state.py +++ b/templates/agent_template_backend/app/state.py @@ -26,6 +26,7 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] transaction_status: str transaction_pre_validation: dict[str, Any] transaction_evidence: list[dict[str, Any]] diff --git a/templates/agent_template_backend_day_zero/app/state.py b/templates/agent_template_backend_day_zero/app/state.py index e6e308a..7e3f280 100644 --- a/templates/agent_template_backend_day_zero/app/state.py +++ b/templates/agent_template_backend_day_zero/app/state.py @@ -26,6 +26,8 @@ class AgentState(TypedDict, total=False): available_mcp_tools: list[str] selected_tool_call: dict[str, Any] pending_tool_call: dict[str, Any] + active_transaction: dict[str, Any] + last_transaction: dict[str, Any] transaction_status: str transaction_pre_validation: dict[str, Any] confirmation_required: bool diff --git a/tests/unit/__pycache__/test_langgraph_checkpoint_runtime_config.cpython-313.pyc b/tests/unit/__pycache__/test_langgraph_checkpoint_runtime_config.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..50642e2cf9aa3ca76b7770d3777ef1baf7192640 GIT binary patch literal 2894 zcmZ`*O>7&-6`t8YlDm{>*^+FjjY7$mE!s6D168HSMcX8DBFg{`a7@63j4oE>lG>PB zva?GkQV@V>fxvE2*ePH{IYoy6u}<+(#~gj+f`6*N(aAi5hV`*}VOb{lI5~j=w;Z8ix5-c`K-jjF&qKXBAhY;9#Af_7!v|pBqoj$E;9+Z!ekz+D4Dn~>v-hz zBz#w-uWX4siiFVpF&w?lo|0nO-_~nIYuYs(*O_kEmK%tA)vzlSZq(QGV(%Js-mqP3 zJ@P+W-|*u)>}t8X?)L|7WTSB(SmGprHA!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