From 838a0b916f6605373b46e6b98b13117a8a0bb561 Mon Sep 17 00:00:00 2001 From: "cristiano.hoshikawa" Date: Fri, 21 Aug 2026 16:45:04 -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 + .../app/state.py | 2 + .../agent_template_backend/app/state.py | 2 + .../app/state.py | 2 + .../agent_template_backend/app/state.py | 1 + .../agent_template_backend/.env.example | 195 ++++++++++++++++++ .../agent_template_backend/app/state.py | 1 + .../agent_template_backend/app/state.py | 1 + .../app/state.py | 2 + .../contestation_rules.cpython-313.pyc | Bin 13592 -> 13592 bytes .../__pycache__/ic_tags.cpython-313.pyc | Bin 17242 -> 17242 bytes .../invoice_context.cpython-313.pyc | Bin 16847 -> 16847 bytes .../invoice_models.cpython-313.pyc | Bin 1819 -> 1819 bytes .../invoice_resolver.cpython-313.pyc | Bin 54211 -> 54211 bytes .../__pycache__/item_matcher.cpython-313.pyc | Bin 9932 -> 9932 bytes .../pro_rata_rules.cpython-313.pyc | Bin 17689 -> 17689 bytes .../protocol_triplets.cpython-313.pyc | Bin 7752 -> 7752 bytes .../__pycache__/rct_policy.cpython-313.pyc | Bin 6345 -> 6345 bytes .../string_metrics.cpython-313.pyc | Bin 6318 -> 6318 bytes .../vas_cancellation_message.cpython-313.pyc | Bin 16339 -> 16339 bytes .../__pycache__/vas_variation.cpython-313.pyc | Bin 42144 -> 42144 bytes .../workflow_actions.cpython-313.pyc | Bin 129646 -> 129646 bytes app/state.py | 1 + .../__pycache__/__init__.cpython-313.pyc | Bin 173 -> 173 bytes .../__pycache__/__init__.cpython-313.pyc | Bin 181 -> 181 bytes .../__pycache__/__init__.cpython-313.pyc | Bin 199 -> 199 bytes .../__pycache__/main.cpython-313.pyc | Bin 61137 -> 61137 bytes 30 files changed, 215 insertions(+) create mode 100644 agent_framework_oci/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/.env.example diff --git a/agent_framework_oci/Tuning-Performance/Authentication/agent_template_backend_authentication/app/state.py b/agent_framework_oci/Tuning-Performance/Authentication/agent_template_backend_authentication/app/state.py index cc19c03..84d9f49 100644 --- a/agent_framework_oci/Tuning-Performance/Authentication/agent_template_backend_authentication/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/state.py b/agent_framework_oci/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/state.py index cc19c03..84d9f49 100644 --- a/agent_framework_oci/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/state.py b/agent_framework_oci/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/state.py index cc19c03..84d9f49 100644 --- a/agent_framework_oci/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/Tuning-Performance/Normal/templates/agent_template_backend/app/state.py b/agent_framework_oci/Tuning-Performance/Normal/templates/agent_template_backend/app/state.py index ac673d6..fc68092 100644 --- a/agent_framework_oci/Tuning-Performance/Normal/templates/agent_template_backend/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/state.py b/agent_framework_oci/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/state.py index ac673d6..fc68092 100644 --- a/agent_framework_oci/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/state.py b/agent_framework_oci/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/state.py index ac673d6..fc68092 100644 --- a/agent_framework_oci/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/state.py b/agent_framework_oci/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/state.py index ac673d6..fc68092 100644 --- a/agent_framework_oci/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/state.py b/agent_framework_oci/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/state.py index 1fce695..7d929a8 100644 --- a/agent_framework_oci/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/.env.example b/agent_framework_oci/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/.env.example new file mode 100644 index 0000000..e93ecca --- /dev/null +++ b/agent_framework_oci/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/.env.example @@ -0,0 +1,195 @@ +############################################################################### +# AI AGENT PLATFORM - CONFIGURAÇÃO ÚNICA +# Este arquivo é lido por Pydantic Settings no framework e no backend template. +############################################################################### + +APP_NAME=ai-agent-template +APP_ENV=local +LOG_LEVEL=INFO +API_HOST=0.0.0.0 +API_PORT=8000 +CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173 + +############################################################################### +# LLM - OCI Generative AI como provider principal +############################################################################### +# Opções: mock, oci_openai, oci_sdk, openai_compatible +LLM_PROVIDER=oci_openai +LLM_TEMPERATURE=0.2 +LLM_MAX_TOKENS=2048 +LLM_TIMEOUT_SECONDS=120 + +# OCI OpenAI-compatible endpoint +OCI_GENAI_BASE_URL=https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/openai/v1 +OCI_GENAI_MODEL=openai.gpt-4.1 +OCI_GENAI_API_KEY=sk-ph3FgX6ph3FgX6ph3FgX6ph3FgX6ph3FgX6ph3FgX6 +OCI_GENAI_PROJECT_OCID= + +# OCI SDK / signer / profiles +OCI_CONFIG_FILE=~/.oci/config +OCI_PROFILE=DEFAULT +OCI_COMPARTMENT_ID=ocid1.compartment.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +OCI_REGION=us-chicago-1 + +############################################################################### +# Persistência +############################################################################### +# Opções: memory, autonomous, mongodb +SESSION_REPOSITORY_PROVIDER=sqlite +MEMORY_REPOSITORY_PROVIDER=sqlite +CHECKPOINT_REPOSITORY_PROVIDER=sqlite +SQLITE_DB_PATH=./data/agent_framework.db + +# Autonomous Database +ADB_USER=admin +ADB_PASSWORD=fjhsdf04954hf +ADB_DSN=oradb23aidev_high +ADB_WALLET_LOCATION=/ORACLE/DEFAULT/Wallet_ORADB23aiDev +ADB_WALLET_PASSWORD=fjhsdf04954hf +ADB_TABLE_PREFIX=AGENTFW + +# MongoDB - também pode representar Autonomous usando API compatível com Mongo, se habilitada no ambiente +MONGODB_URI=mongodb://mongo:mongopassword@localhost:27017 +MONGODB_DATABASE=agent_platform + +# Redis +REDIS_URL=redis://localhost:6379/0 +ENABLE_REDIS_CACHE=false + +############################################################################### +# RAG / Vector / Graph +############################################################################### +VECTOR_STORE_PROVIDER=sqlite +GRAPH_STORE_PROVIDER=sqlite +RAG_TOP_K=5 +EMBEDDING_PROVIDER=mock +OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0 +RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json + +############################################################################### +# Observabilidade +############################################################################### +ENABLE_LANGFUSE=true +LANGFUSE_TRACE_MODE=compact # Opcional: verbose, compact +LANGFUSE_PUBLIC_KEY=pk-lf-2f9da109-5b0f-4c78-b61d-9598ed787eba +LANGFUSE_SECRET_KEY=sk-lf-a4cb0cdd-f2ea-4468-9911-cebeb91ba944 +LANGFUSE_HOST=http://localhost:3005 +ENABLE_OTEL=false +OTEL_EXPORTER_OTLP_ENDPOINT= +OTEL_SERVICE_NAME=ai-agent-template +ENABLE_LANGFUSE_OPENAI_AUTO_INSTRUMENTATION=true + +############################################################################### +# Analytics / Observer corporativo +############################################################################### +# Quando true, AgentObserver publica eventos IC.*, NOC.* e GRL.* nos providers abaixo. +ENABLE_ANALYTICS=false +# Providers aceitos: oci_streaming,pubsub,noop +ANALYTICS_PROVIDERS=pubsub +# Compatibilidade FIRST/TIM: pode informar AGENT_PUBSUB_TOPIC diretamente. +AGENT_PUBSUB_TOPIC= +GCP_PUBSUB_TOPIC_PATH= +GCP_PROJECT_ID= +GCP_PUBSUB_TOPIC= +GCP_PUBSUB_TIMEOUT_SECONDS=30 +# Credencial GCP segue padrão Google: +# GOOGLE_APPLICATION_CREDENTIALS=/secrets/gcp-service-account.json + +############################################################################### +# OCI Streaming +############################################################################### +ENABLE_OCI_STREAMING=false +OCI_STREAM_ENDPOINT= +OCI_STREAM_OCID= +OCI_STREAM_PARTITION_KEY=agent-events + +############################################################################### +# Guardrails, Judges, Supervisor +############################################################################### +ENABLE_INPUT_GUARDRAILS=true +ENABLE_OUTPUT_GUARDRAILS=true +ENABLE_JUDGES=true +ENABLE_SUPERVISOR=true +ENABLE_OUTPUT_SUPERVISOR=true +ENABLE_PARALLEL_GUARDRAILS=true +GUARDRAILS_FAIL_FAST=true +OUTPUT_SUPERVISOR_MAX_RETRIES=3 +GUARDRAILS_CONFIG_PATH=./config/guardrails.yaml +JUDGES_CONFIG_PATH=./config/judges.yaml +PROMPT_POLICY_PATH=./config/prompt_policy.yaml + +############################################################################### +# Gateway de canais +############################################################################### +DEFAULT_CHANNEL=web +# embedded = backend may parse simple/native channel payloads. +# external = backend only accepts GatewayRequest normalized by an external Channel Gateway. +FRAMEWORK_CHANNEL_INPUT_MODE=embedded +ENABLE_VOICE_ADAPTER=true +ENABLE_WHATSAPP_ADAPTER=true +ENABLE_TEXT_ADAPTER=true + +################################################# +# ENTERPRISE ROUTING +################################################# +# Arquivo YAML com intents, keywords, políticas de estado e fallback. +ROUTING_CONFIG_PATH=./config/routing.yaml +# true = usa LLM para classificar quando keywords/estado não resolverem. +# Em produção, costuma ser útil; em desenvolvimento, false evita custo e latência. +ENABLE_LLM_ROUTER=true + +############################################################################### +# MCP / Tools +############################################################################### +ENABLE_MCP_TOOLS=true +MCP_SERVERS_CONFIG_PATH=./config/mcp_servers.yaml +TOOLS_CONFIG_PATH=./config/tools.yaml +TOOL_POLICIES_PATH=./config/tool_policies.yaml +MCP_TOOL_TIMEOUT_SECONDS=30 + +# router = EnterpriseRouter seleciona um agente; supervisor = pode acionar múltiplos agentes +ROUTING_MODE=router + +# Usage/cost accounting +USAGE_REPOSITORY_PROVIDER=sqlite +IDENTITY_CONFIG_PATH=./config/identity.yaml +MCP_PARAMETER_MAPPING_PATH=./config/mcp_parameter_mapping.yaml + +# ----------------------------------------------------------------------------- +# ConversationSummaryMemory / compressão de contexto conversacional +# ----------------------------------------------------------------------------- +ENABLE_CONVERSATION_SUMMARY_MEMORY=true +MEMORY_CONTEXT_STRATEGY=summary +MEMORY_HISTORY_LIMIT=80 +MEMORY_RECENT_MESSAGES_LIMIT=8 +MEMORY_SUMMARY_TRIGGER_MESSAGES=20 +MEMORY_MAX_SUMMARY_CHARS=6000 +MEMORY_SUMMARY_USE_LLM=true +MEMORY_INJECT_RECENT_MESSAGES=true +MEMORY_INJECT_SUMMARY=true + +############################################################################### +# MCP Gateway +############################################################################### +# true = framework routes tool calls to the dedicated MCP Gateway. +# false = framework calls MCP servers directly from mcp_servers.yaml. +MCP_GATEWAY_ENABLED=true +MCP_GATEWAY_URL=http://localhost:8300 +MCP_GATEWAY_TIMEOUT_SECONDS=60 +# MCP_GATEWAY_TOKEN= +MCP_GATEWAY_AGENT_ID=telecom_contas +MCP_GATEWAY_TENANT_ID=default + +############################################################################### +# LONG-TERM MEMORY +############################################################################### +ENABLE_LONG_TERM_MEMORY=true +LONG_TERM_MEMORY_PROVIDER=sqlite +LONG_TERM_MEMORY_SQLITE_PATH=./data/agent_framework.db +LONG_TERM_MEMORY_TABLE=agentfw_long_term_memory +# For Autonomous/Oracle, defaults to ${ADB_TABLE_PREFIX}_LONG_TERM_MEMORY +# LONG_TERM_MEMORY_ORACLE_TABLE=AGENTFW_LONG_TERM_MEMORY +LONG_TERM_MEMORY_MAX_CONTEXT_ITEMS=20 +LONG_TERM_MEMORY_MIN_CONFIDENCE=0.70 +LONG_TERM_MEMORY_AUTO_EXTRACT=true +LONG_TERM_MEMORY_INJECT_CONTEXT=true diff --git a/agent_framework_oci/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/state.py b/agent_framework_oci/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/state.py index a7c91a0..ff1d474 100644 --- a/agent_framework_oci/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/templates/agent_template_backend/app/state.py b/agent_framework_oci/templates/agent_template_backend/app/state.py index a7c91a0..ff1d474 100644 --- a/agent_framework_oci/templates/agent_template_backend/app/state.py +++ b/agent_framework_oci/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/agent_framework_oci/templates/agent_template_backend_day_zero/app/state.py b/agent_framework_oci/templates/agent_template_backend_day_zero/app/state.py index e6e308a..7e3f280 100644 --- a/agent_framework_oci/templates/agent_template_backend_day_zero/app/state.py +++ b/agent_framework_oci/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/app/domain/contas/__pycache__/contestation_rules.cpython-313.pyc b/app/domain/contas/__pycache__/contestation_rules.cpython-313.pyc index c99d9baaa8b2c5dd558f0ac8a42f933239ceda11..49a7c5c22d047e1bc225db09d5c884c34872b2a1 100644 GIT binary patch delta 19 ZcmbP{H6x4bGcPX}0}uo)+sMUd3IIEI1snhX delta 19 ZcmbP{H6x4bGcPX}0}#A0*vQ3a3IIH<1v~%% diff --git a/app/domain/contas/__pycache__/ic_tags.cpython-313.pyc b/app/domain/contas/__pycache__/ic_tags.cpython-313.pyc index 9de28e5b2c9b14fc34ab652d272cb5f8ffed99e8..1506260ca9910f959cc52a55b497185e6dae6292 100644 GIT binary patch delta 21 bcmccB#(1lZk?S)rFBbz41TEXh72pg2O-=?X delta 21 bcmccB#(1lZk?S)rFBbz4yfE0v72pg2PJ{+Z diff --git a/app/domain/contas/__pycache__/invoice_context.cpython-313.pyc b/app/domain/contas/__pycache__/invoice_context.cpython-313.pyc index fb7836de29eebcdd28ed5793a4e6bbac46cbbd20..72bdaf639e2292b0c7c09ff22026e8ccdbb2b6f2 100644 GIT binary patch delta 21 bcmX@#%y_<;k?S)rFBbz41TEXhb<`06Od1A( delta 21 bcmX@#%y_<;k?S)rFBbz4yfE0vb<`06O;84* diff --git a/app/domain/contas/__pycache__/invoice_models.cpython-313.pyc b/app/domain/contas/__pycache__/invoice_models.cpython-313.pyc index 7283338e9f76ad7edc5eacc8d3e996e763195769..37bb05a0bd9ac1ed85bb27311cbcfeebca747f13 100644 GIT binary patch delta 19 ZcmbQuH=B>^GcPX}0}uo)+sGxz4gfEM1U~=( delta 19 ZcmbQuH=B>^GcPX}0}#A0*vKWw4gfH@1YZCE diff --git a/app/domain/contas/__pycache__/invoice_resolver.cpython-313.pyc b/app/domain/contas/__pycache__/invoice_resolver.cpython-313.pyc index 64944d982ed2fe22d5e09f3d0225ea9828b25537..66df3d03523d5d852a8c20cb809e925e50f991a4 100644 GIT binary patch delta 21 bcmX@SocZu_X0Fe?yj%=G5VUL~*UrlTP&x-Y delta 21 bcmX@SocZu_X0Fe?yj%=G@WNmt*UrlTQE&%a diff --git a/app/domain/contas/__pycache__/item_matcher.cpython-313.pyc b/app/domain/contas/__pycache__/item_matcher.cpython-313.pyc index e997de98f6357f52720f636f33f8ce4fcd1d4bc7..8257e58ab804493982a1cc99736f9a7b322b7b82 100644 GIT binary patch delta 19 ZcmX@(d&ZaRGcPX}0}uo)+sJiD4FEt!1@8a= delta 19 ZcmX@(d&ZaRGcPX}0}#A0*vNHA4FExW1`hxL diff --git a/app/domain/contas/__pycache__/pro_rata_rules.cpython-313.pyc b/app/domain/contas/__pycache__/pro_rata_rules.cpython-313.pyc index e9aed119042f9ecdfdf3424786af6c376ee6599d..6130d1dc0ec6721be96591bf9497e4c742627363 100644 GIT binary patch delta 21 bcmbQ)#W=Hzk?S)rFBbz41TEXh#qSCLLwf~r delta 21 bcmbQ)#W=Hzk?S)rFBbz4yfE0v#qSCLM6m^t diff --git a/app/domain/contas/__pycache__/protocol_triplets.cpython-313.pyc b/app/domain/contas/__pycache__/protocol_triplets.cpython-313.pyc index b42b1b625e9356305d8a0ddfc3614bd13e7951d3..f166a9005aa87d31ffc680b977b14efbfa5e95d8 100644 GIT binary patch delta 19 ZcmX?MbHaw}GcPX}0}uo)+sI`n2LL=|1vvl! delta 19 ZcmX?MbHaw}GcPX}0}#A0*vMrk2LL^q1z7+9 diff --git a/app/domain/contas/__pycache__/rct_policy.cpython-313.pyc b/app/domain/contas/__pycache__/rct_policy.cpython-313.pyc index dcf95cb714e76e1daf8ebf80f089730eeca618ed..7d7ad482d312d0630dbf4ce9e19547d6e26f4076 100644 GIT binary patch delta 19 ZcmX?Uc+!yTGcPX}0}uo)+sL(F0suS?1)u-` delta 19 ZcmX?Uc+!yTGcPX}0}#A0*vPeC0suWk1;79R diff --git a/app/domain/contas/__pycache__/string_metrics.cpython-313.pyc b/app/domain/contas/__pycache__/string_metrics.cpython-313.pyc index 9129239c09ecfbc3778299d568989c77aa06760b..e9af98ef4935cca6aa53584fcadf18485c0ed093 100644 GIT binary patch delta 19 ZcmZ2yxXzI4GcPX}0}uo)+sL&<0suG+1y29~ delta 19 ZcmZ2yxXzI4GcPX}0}#A0*vPd+0suKe1#bWV diff --git a/app/domain/contas/__pycache__/vas_cancellation_message.cpython-313.pyc b/app/domain/contas/__pycache__/vas_cancellation_message.cpython-313.pyc index 8c3fa0c0dbcdba281deafb376190620f281bf19d..62ef395e52a272647695c4db6a11ce7a08163840 100644 GIT binary patch delta 19 Zcmcayf4QFPGcPX}0}uo)+sJj&9so!U27v$o delta 19 Zcmcayf4QFPGcPX}0}#A0*vNI#9so&02B81| diff --git a/app/domain/contas/__pycache__/vas_variation.cpython-313.pyc b/app/domain/contas/__pycache__/vas_variation.cpython-313.pyc index 7a4347cee32dd5c03a79e0ae5ecdbdf83397ffd9..a5536d0247ae47cebdfe1d2ec4930c21d3d7587e 100644 GIT binary patch delta 21 bcmZ2*l4-$7Ca%xCyj%=G5VUL~*R&-7Pd5hT delta 21 bcmZ2*l4-$7Ca%xCyj%=G@WNmt*R&-7P;CbV diff --git a/app/domain/contas/__pycache__/workflow_actions.cpython-313.pyc b/app/domain/contas/__pycache__/workflow_actions.cpython-313.pyc index 83a3bfe976c34240cc53c4cb957a4d4a00e346a9..e5c598b32d8e406d57f0f0b95b7bf1d923e7426e 100644 GIT binary patch delta 24 ecmaF&h5g+ZcCOF7yj%=G5VWk3YbzIH$}a$TN(hwz delta 24 ecmaF&h5g+ZcCOF7yj%=G@WP;xYbzIH$}a$U;0Uz< diff --git a/app/state.py b/app/state.py index 4d5bd1c..a4395c2 100644 --- a/app/state.py +++ b/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] pending_tool_clarification: dict[str, Any] pending_domain_workflow: dict[str, Any] business_workflows_executed: list[str] diff --git a/contas_mcp/__pycache__/__init__.cpython-313.pyc b/contas_mcp/__pycache__/__init__.cpython-313.pyc index 18db98b236a8d2b7378679876f09586371974079..c1e2f94d1aff4dd5ccd747bc1260ef9dfdadc26e 100644 GIT binary patch delta 18 YcmZ3>xR#OYGcPX}0}uo*o5-~o04y~Gvj6}9 delta 18 YcmZ3>xR#OYGcPX}0}wnnn8>vl04+-d(*OVf diff --git a/contas_mcp/servers/__pycache__/__init__.cpython-313.pyc b/contas_mcp/servers/__pycache__/__init__.cpython-313.pyc index 815c9dfb96ef420c8d382a9c38a2b47d084d63e7..978853be7fad1706de1a262a2f9d7046540d7fb7 100644 GIT binary patch delta 18 YcmdnWxRsIXGcPX}0}uo*o5-~q04+@f%K!iX delta 18 YcmdnWxRsIXGcPX}0}wnnn8>vn04`$$>i_@% diff --git a/contas_mcp/servers/contas_mcp_server/__pycache__/__init__.cpython-313.pyc b/contas_mcp/servers/contas_mcp_server/__pycache__/__init__.cpython-313.pyc index 3819cbcd1e8999f3667b66050bfbf1e62ec316bc..fbef08db6fb3b347c02e73a6b797a856bb96a1a3 100644 GIT binary patch delta 18 YcmX@kc$|^zGcPX}0}uo*o5-~n058J@0RR91 delta 18 YcmX@kc$|^zGcPX}0}wnnn8>vk05I7FApigX diff --git a/contas_mcp/servers/contas_mcp_server/__pycache__/main.cpython-313.pyc b/contas_mcp/servers/contas_mcp_server/__pycache__/main.cpython-313.pyc index 175599f413bb269c0cbf59fe28fa8973bf75fd52..ea588b2aad5ddb37a1e5649d33663b52bf712709 100644 GIT binary patch delta 21 bcmcb3m-*sdX0Fe?yj%=G5V&k3*YS4%T3ZL} delta 21 bcmcb3m-*sdX0Fe?yj%=G@Z4Y{*YS4%TagG0