diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 4bacf18e..f9cde5f7 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,9 +4,7 @@
-
-
-
+
@@ -52,27 +50,107 @@
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
"ModuleVcsDetector.initialDetectionPerformed": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
- "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
+ "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
"RunOnceActivity.git.unshallow": "true",
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
- "git-widget-placeholder": "main",
+ "Shell Script.agent_frontend.executor": "Run",
+ "Shell Script.agent_template_backend.executor": "Run",
+ "Shell Script.mcp_gateway.executor": "Run",
+ "Shell Script.mcp_server.executor": "Run",
+ "git-widget-placeholder": "master",
"kotlin-language-version-configured": "true",
- "last_opened_file_path": "D:/Dropbox/ORACLE/TIM/FY27/Commits/agent_platform_oci",
+ "last_opened_file_path": "C:/Asus_Projects/kbdb/agent_framework_oci/templates/agent_template_backend",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm",
- "settings.editor.selected.configurable": "configurable.group.appearance",
+ "project.structure.last.edited": "Project",
+ "project.structure.proportion": "0.15",
+ "project.structure.side.proportion": "0.2",
+ "settings.editor.selected.configurable": "advanced.settings",
"vue.rearranger.settings.migration": "true"
}
}]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -92,10 +170,10 @@
-
-
-
-
+
+
+
+
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/.env.example b/Tuning-Performance/Authentication/agent_template_backend_authentication/.env.example
index 310a33c9..ae6a1f5f 100644
--- a/Tuning-Performance/Authentication/agent_template_backend_authentication/.env.example
+++ b/Tuning-Performance/Authentication/agent_template_backend_authentication/.env.example
@@ -37,3 +37,27 @@ AGENT_AUTH_BASIC_REALM=agent-contas
# AGENT_AUTH_PROXY_SUBJECT_HEADER=x-authenticated-subject
# AGENT_AUTH_PROXY_SHARED_SECRET_HEADER=x-internal-auth
# AGENT_AUTH_PROXY_SHARED_SECRET_HASH=sha256:replace-hex
+
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index f80d2276..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index ad5975b5..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index 7cbdba34..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index 851ddfad..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index 78a71e5d..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index 1e1d6034..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index 9173e5ab..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index 3c4c277b..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index c79c9ecd..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index 05f7a751..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/billing_agent.py b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/billing_agent.py
+++ b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/orders_agent.py b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/orders_agent.py
+++ b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/product_agent.py b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/product_agent.py
+++ b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/support_agent.py b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/support_agent.py
+++ b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 59de5647..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/grl_examples.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/grl_examples.cpython-313.pyc
deleted file mode 100644
index 1bbb960d..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/grl_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/ic_examples.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/ic_examples.cpython-313.pyc
deleted file mode 100644
index 72b0aca7..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/ic_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/mcp_examples.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/mcp_examples.cpython-313.pyc
deleted file mode 100644
index a763cc5c..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/mcp_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/noc_examples.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/noc_examples.cpython-313.pyc
deleted file mode 100644
index e39ccb57..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/noc_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/observer_examples.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/observer_examples.cpython-313.pyc
deleted file mode 100644
index 4bdbd362..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/examples/__pycache__/observer_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/main.py b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/main.py
index c1d33544..b2d27c25 100644
--- a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/main.py
+++ b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/main.py
@@ -372,6 +372,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
"judges": result.get("judge_results"),
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index b6a83d0d..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index b917a574..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/presentation/__pycache__/tool_renderers.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/presentation/__pycache__/tool_renderers.cpython-313.pyc
deleted file mode 100644
index 0c79403d..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/presentation/__pycache__/tool_renderers.cpython-313.pyc and /dev/null differ
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 6ec11159..27d4f7b9 100644
--- a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/state.py
+++ b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/state.py
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflow_actions/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflow_actions/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 672ec8af..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflow_actions/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc
deleted file mode 100644
index ba3e1b16..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index 70ba3b26..00000000
Binary files a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflows/agent_graph.py b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflows/agent_graph.py
index d45cb7b9..9fd902f4 100644
--- a/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflows/agent_graph.py
+++ b/Tuning-Performance/Authentication/agent_template_backend_authentication/app/workflows/agent_graph.py
@@ -570,6 +570,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -577,7 +578,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -650,6 +663,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -876,6 +890,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
},
)
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/.env.example b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/.env.example
index f41c0ed7..03d5cbbb 100644
--- a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/.env.example
+++ b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/.env.example
@@ -67,6 +67,30 @@ EMBEDDING_PROVIDER=mock
OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0
RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+
###############################################################################
# Observabilidade
###############################################################################
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index da7ea03c..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index 5b6ab51e..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index 77accaf2..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index 8e74de72..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index cf679934..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index 5c3f4a04..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index 0e8cc297..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index 00a5707f..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index 26cc262c..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index f56e53d6..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/billing_agent.py b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/billing_agent.py
+++ b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/orders_agent.py b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/orders_agent.py
+++ b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/product_agent.py b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/product_agent.py
+++ b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/support_agent.py b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/support_agent.py
+++ b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 97bc5803..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc
deleted file mode 100644
index 823a1a39..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc
deleted file mode 100644
index a725202b..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc
deleted file mode 100644
index 19296b0a..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc
deleted file mode 100644
index fce919c0..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc
deleted file mode 100644
index bf35ba7a..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/main.py b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/main.py
index d51bbc24..e8383282 100644
--- a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/main.py
+++ b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/main.py
@@ -366,6 +366,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
"judges": result.get("judge_results"),
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 47fe1272..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index 05612aee..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index c39a0a89..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc
deleted file mode 100644
index 009b7c12..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc and /dev/null differ
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 6ec11159..27d4f7b9 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
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 8accd287..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc
deleted file mode 100644
index 0b970980..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index 49ad6af0..00000000
Binary files a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflows/agent_graph.py b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflows/agent_graph.py
index d45cb7b9..9fd902f4 100644
--- a/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflows/agent_graph.py
+++ b/Tuning-Performance/Deterministic_Transactional_Workflow/agent_template_backend/app/workflows/agent_graph.py
@@ -570,6 +570,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -577,7 +578,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -650,6 +663,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -876,6 +890,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
},
)
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/.env.example b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/.env.example
index e93eccab..50c3109f 100644
--- a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/.env.example
+++ b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/.env.example
@@ -66,6 +66,30 @@ EMBEDDING_PROVIDER=mock
OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0
RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+
###############################################################################
# Observabilidade
###############################################################################
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 21303451..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index 005a6d8a..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index 2f423392..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index 8ee7f900..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index 7214e11a..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index f1bf0dfe..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index af63de6a..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index bc4a8147..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index 52afdf36..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index a44cfd9c..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/billing_agent.py b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/billing_agent.py
+++ b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/orders_agent.py b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/orders_agent.py
+++ b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/product_agent.py b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/product_agent.py
+++ b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/support_agent.py b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/support_agent.py
+++ b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e9246dd6..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc
deleted file mode 100644
index 5961c07a..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc
deleted file mode 100644
index 6674af30..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc
deleted file mode 100644
index 37c8d76c..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc
deleted file mode 100644
index 3e4fe4b8..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc
deleted file mode 100644
index a9c17ae6..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/extensions/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/extensions/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index a1382b06..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/extensions/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/extensions/__pycache__/example_guardrails.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/extensions/__pycache__/example_guardrails.cpython-313.pyc
deleted file mode 100644
index 4a27a18a..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/extensions/__pycache__/example_guardrails.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/extensions/__pycache__/example_judges.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/extensions/__pycache__/example_judges.cpython-313.pyc
deleted file mode 100644
index d82ff088..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/extensions/__pycache__/example_judges.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/main.py b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/main.py
index 06d1bd14..7e9401f6 100644
--- a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/main.py
+++ b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/main.py
@@ -361,6 +361,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
"judges": result.get("judge_results"),
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 14323bf2..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index 15b78667..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e34e5416..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc
deleted file mode 100644
index 28859532..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/state.py b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/state.py
index ef4f2c70..9ec69485 100644
--- a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/state.py
+++ b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/state.py
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index d345c8b9..00000000
Binary files a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/workflows/agent_graph.py b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/workflows/agent_graph.py
index 1f139537..2b3ff2d2 100644
--- a/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/workflows/agent_graph.py
+++ b/Tuning-Performance/External_Guardrails_Judges/agent_template_backend/app/workflows/agent_graph.py
@@ -568,6 +568,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -575,7 +576,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -648,6 +661,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -805,6 +819,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
},
)
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/.env.example b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/.env.example
index 116eb7d3..f724b51e 100644
--- a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/.env.example
+++ b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/.env.example
@@ -67,6 +67,30 @@ EMBEDDING_PROVIDER=mock
OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0
RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+
###############################################################################
# Observabilidade
###############################################################################
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 884409ed..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index 7f097b78..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index d6621835..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index e5055fe3..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index 0e9f1e1c..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index f05ef2c6..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index 2b363379..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index 27c5dd67..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index 321fc089..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index bcd05596..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/billing_agent.py b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/billing_agent.py
+++ b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/orders_agent.py b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/orders_agent.py
+++ b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/product_agent.py b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/product_agent.py
+++ b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/support_agent.py b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/support_agent.py
+++ b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e011e2c1..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc
deleted file mode 100644
index 417fdeaf..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc
deleted file mode 100644
index 43c28410..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc
deleted file mode 100644
index 8684f23b..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc
deleted file mode 100644
index 19cee2f2..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc
deleted file mode 100644
index 5919f9d0..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/main.py b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/main.py
index d51bbc24..e8383282 100644
--- a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/main.py
+++ b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/main.py
@@ -366,6 +366,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
"judges": result.get("judge_results"),
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 60f4328a..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index a01c7f1e..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 91dabf0d..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc
deleted file mode 100644
index 32cbdf80..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc and /dev/null differ
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 6ec11159..27d4f7b9 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
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index 0807ab7c..00000000
Binary files a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/workflows/agent_graph.py b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/workflows/agent_graph.py
index d45cb7b9..9fd902f4 100644
--- a/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/workflows/agent_graph.py
+++ b/Tuning-Performance/Long_Term_Memory/templates/agent_template_backend/app/workflows/agent_graph.py
@@ -570,6 +570,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -577,7 +578,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -650,6 +663,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -876,6 +890,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
},
)
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/.env.example b/Tuning-Performance/Normal/templates/agent_template_backend/.env.example
index e93eccab..50c3109f 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend/.env.example
+++ b/Tuning-Performance/Normal/templates/agent_template_backend/.env.example
@@ -66,6 +66,30 @@ EMBEDDING_PROVIDER=mock
OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0
RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+
###############################################################################
# Observabilidade
###############################################################################
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 33197e54..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index b834e5a5..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index 3f0f59de..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index 66a88310..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index dd8907fd..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index d93873a6..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index e6a45d17..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index da03ff12..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index e5072a2b..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index e38f7072..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/billing_agent.py b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/billing_agent.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/orders_agent.py b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/orders_agent.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/product_agent.py b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/product_agent.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/support_agent.py b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/support_agent.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index ef32d167..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc
deleted file mode 100644
index e21d30a5..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc
deleted file mode 100644
index 04492435..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc
deleted file mode 100644
index 02ff434c..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc
deleted file mode 100644
index 502913f3..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc
deleted file mode 100644
index 84f7d61e..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/main.py b/Tuning-Performance/Normal/templates/agent_template_backend/app/main.py
index 06d1bd14..7e9401f6 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend/app/main.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend/app/main.py
@@ -361,6 +361,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
"judges": result.get("judge_results"),
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index be993d0a..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index da0b1635..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index d5802e05..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc
deleted file mode 100644
index 23b52e13..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc and /dev/null differ
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 ef4f2c70..9ec69485 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend/app/state.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend/app/state.py
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index 7293dd3a..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend/app/workflows/agent_graph.py b/Tuning-Performance/Normal/templates/agent_template_backend/app/workflows/agent_graph.py
index 1f139537..2b3ff2d2 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend/app/workflows/agent_graph.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend/app/workflows/agent_graph.py
@@ -568,6 +568,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -575,7 +576,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -648,6 +661,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -805,6 +819,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
},
)
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/.env.example b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/.env.example
index 34118b9a..3fb43004 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/.env.example
+++ b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/.env.example
@@ -66,6 +66,30 @@ EMBEDDING_PROVIDER=mock
OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0
RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+
###############################################################################
# Observabilidade
###############################################################################
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index f58a0656..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index ffb3aacc..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index 2c08e830..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index 633c69ba..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index b054c868..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index 710b3183..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index a06a87f0..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index 71ad8ec6..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index e10fbd85..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index 1a49580a..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/billing_agent.py b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/billing_agent.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/orders_agent.py b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/orders_agent.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/product_agent.py b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/product_agent.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/support_agent.py b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/support_agent.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/main.py b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/main.py
index 06d1bd14..7e9401f6 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/main.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/main.py
@@ -361,6 +361,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
"judges": result.get("judge_results"),
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 42d368bd..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index b99954da..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
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 ef4f2c70..9ec69485 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
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index ce2047c5..00000000
Binary files a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py
index 1f139537..2b3ff2d2 100644
--- a/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py
+++ b/Tuning-Performance/Normal/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py
@@ -568,6 +568,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -575,7 +576,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -648,6 +661,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -805,6 +819,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
},
)
diff --git a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 41f7f0a9..00000000
Binary files a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend/app/__pycache__/demo.cpython-313.pyc b/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend/app/__pycache__/demo.cpython-313.pyc
deleted file mode 100644
index 4bb04c5e..00000000
Binary files a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend/app/__pycache__/demo.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend/tests/__pycache__/test_pause_resume.cpython-313-pytest-9.0.2.pyc b/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend/tests/__pycache__/test_pause_resume.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 96739456..00000000
Binary files a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend/tests/__pycache__/test_pause_resume.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend_pause_resume/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend_pause_resume/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index a8d37181..00000000
Binary files a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend_pause_resume/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend_pause_resume/app/__pycache__/demo.cpython-313.pyc b/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend_pause_resume/app/__pycache__/demo.cpython-313.pyc
deleted file mode 100644
index aca91b75..00000000
Binary files a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend_pause_resume/app/__pycache__/demo.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend_pause_resume/tests/__pycache__/test_pause_resume.cpython-313-pytest-9.0.2.pyc b/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend_pause_resume/tests/__pycache__/test_pause_resume.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 2d339c6d..00000000
Binary files a/Tuning-Performance/Pause_Resume_Workflow/agent_template_backend_pause_resume/tests/__pycache__/test_pause_resume.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/.env.example b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/.env.example
index a8a666c3..be7467eb 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/.env.example
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/.env.example
@@ -66,6 +66,30 @@ EMBEDDING_PROVIDER=mock
OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0
RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+
###############################################################################
# Observabilidade
###############################################################################
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index f8eb5411..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index dd7251b0..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index 2e100295..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index af7100e9..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index f5a9d475..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index 9fefbf7d..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index 7ebb5c30..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index e81fba32..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index 0302053e..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index 956fee11..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/billing_agent.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/billing_agent.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/orders_agent.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/orders_agent.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/product_agent.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/product_agent.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/support_agent.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/support_agent.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index fda75cab..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc
deleted file mode 100644
index 9d7cc49e..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc
deleted file mode 100644
index e1fe21e2..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc
deleted file mode 100644
index b69294dc..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc
deleted file mode 100644
index 85c19945..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc
deleted file mode 100644
index 3a2600e2..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/main.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/main.py
index 06d1bd14..7e9401f6 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/main.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/main.py
@@ -361,6 +361,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
"judges": result.get("judge_results"),
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index f201aed9..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index 7c9b983b..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index ed945c8d..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc
deleted file mode 100644
index 567eb4dc..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc and /dev/null differ
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 ef4f2c70..9ec69485 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
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index 03dc5e99..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/workflows/agent_graph.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/workflows/agent_graph.py
index 1f139537..2b3ff2d2 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/workflows/agent_graph.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend/app/workflows/agent_graph.py
@@ -568,6 +568,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -575,7 +576,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -648,6 +661,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -805,6 +819,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
},
)
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/.env.example b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/.env.example
index 31aa694f..83ae1d7f 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/.env.example
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/.env.example
@@ -66,6 +66,30 @@ EMBEDDING_PROVIDER=mock
OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0
RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+
###############################################################################
# Observabilidade
###############################################################################
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index f0d4c0e1..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index ca99d568..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index ffaf183b..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index 8a0915dc..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index 455b1753..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index bb03d128..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index 44aa6f58..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index 7d146604..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index 340ff14d..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index c047c8d5..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/billing_agent.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/billing_agent.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/orders_agent.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/orders_agent.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/product_agent.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/product_agent.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/support_agent.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/support_agent.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/main.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/main.py
index 06d1bd14..7e9401f6 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/main.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/main.py
@@ -361,6 +361,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
"judges": result.get("judge_results"),
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e757f931..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index 65b0a28a..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
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 ef4f2c70..9ec69485 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
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index e22859d1..00000000
Binary files a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py
index 1f139537..2b3ff2d2 100644
--- a/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py
+++ b/Tuning-Performance/Route_Stickness/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py
@@ -568,6 +568,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -575,7 +576,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -648,6 +661,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -805,6 +819,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
},
)
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/.env.example b/Tuning-Performance/Transaction_Evidence/agent_template_backend/.env.example
index a8a666c3..be7467eb 100644
--- a/Tuning-Performance/Transaction_Evidence/agent_template_backend/.env.example
+++ b/Tuning-Performance/Transaction_Evidence/agent_template_backend/.env.example
@@ -66,6 +66,30 @@ EMBEDDING_PROVIDER=mock
OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0
RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+
###############################################################################
# Observabilidade
###############################################################################
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 41099f9b..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index 7a89633b..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index c84d77fa..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index 9c38b483..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index b970a9fe..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index 9ca64f20..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index 1ebd6c50..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index 2a94b99f..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index 0014d62e..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index 1d1ee676..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/billing_agent.py b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/billing_agent.py
+++ b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/orders_agent.py b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/orders_agent.py
+++ b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/product_agent.py b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/product_agent.py
+++ b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/support_agent.py b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/support_agent.py
+++ b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index deb38e5d..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc
deleted file mode 100644
index 505e62bd..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc
deleted file mode 100644
index 2fcb362f..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc
deleted file mode 100644
index d78ba9c1..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc
deleted file mode 100644
index 50ae968a..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc
deleted file mode 100644
index ffc9f3f3..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/main.py b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/main.py
index e0363157..52585276 100644
--- a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/main.py
+++ b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/main.py
@@ -460,6 +460,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"transaction_evidence": result.get("relevant_transaction_evidence", []),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index dd8600fb..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index d6f43df7..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 8048b8f5..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc
deleted file mode 100644
index defbfd70..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc and /dev/null differ
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 de25c1e8..fbb54b63 100644
--- a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/state.py
+++ b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/state.py
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 50d3c241..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc
deleted file mode 100644
index 40704f84..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index a4df9969..00000000
Binary files a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflows/agent_graph.py b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflows/agent_graph.py
index f700f35d..72ed72e5 100644
--- a/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflows/agent_graph.py
+++ b/Tuning-Performance/Transaction_Evidence/agent_template_backend/app/workflows/agent_graph.py
@@ -570,6 +570,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -577,7 +578,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -650,6 +663,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -733,6 +747,7 @@ class AgentWorkflow:
relevant_transaction_evidence = list(state.get("relevant_transaction_evidence") or [])
judge_context["transaction_evidence"] = relevant_transaction_evidence
current_evidence = list(state.get("mcp_results", []) or [])
+ current_evidence.extend(state.get("rag_results", []) or [])
current_evidence.extend(relevant_transaction_evidence)
judge_context["evidence"] = current_evidence or judge_context.get("evidence")
judge_context["route"] = state.get("route")
@@ -880,6 +895,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
"transaction_evidence": state.get("relevant_transaction_evidence", []),
},
)
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/.env.example b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/.env.example
index e93eccab..50c3109f 100644
--- a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/.env.example
+++ b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/.env.example
@@ -66,6 +66,30 @@ EMBEDDING_PROVIDER=mock
OCI_EMBEDDING_MODEL=cohere.embed-multilingual-v3.0
RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json
+
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+
###############################################################################
# Observabilidade
###############################################################################
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index f942810b..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/main.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index 886a86f3..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index accca3bf..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/state.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index 103d670b..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index c09150b1..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index 2d784a42..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index 5f7bfa18..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index 942b2401..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index c06c1248..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index ba05a3eb..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/billing_agent.py b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/billing_agent.py
+++ b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/orders_agent.py b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/orders_agent.py
+++ b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/product_agent.py b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/product_agent.py
+++ b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/support_agent.py b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/support_agent.py
+++ b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 317ae4d6..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc
deleted file mode 100644
index 0cf9b024..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc
deleted file mode 100644
index 479518dc..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc
deleted file mode 100644
index 2baa2d5e..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc
deleted file mode 100644
index 912d680d..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc
deleted file mode 100644
index bc15baf2..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/main.py b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/main.py
index 86530a36..891f0e06 100644
--- a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/main.py
+++ b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/main.py
@@ -460,6 +460,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"transaction_evidence": result.get("relevant_transaction_evidence", []),
"transaction_pre_validation": result.get("transaction_pre_validation"),
"business_context": business_context.model_dump(),
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 515f8338..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index 24d81969..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 15e8e717..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc
deleted file mode 100644
index fde7777a..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc and /dev/null differ
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 0b4da3e9..aee4d926 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
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 6003863c..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc
deleted file mode 100644
index e179f6df..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index f8da2411..00000000
Binary files a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflows/agent_graph.py b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflows/agent_graph.py
index f700f35d..72ed72e5 100644
--- a/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflows/agent_graph.py
+++ b/Tuning-Performance/Transaction_Pre_Validation/agent_template_backend/app/workflows/agent_graph.py
@@ -570,6 +570,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -577,7 +578,19 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
+ "tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
+ "tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
+ "mcp_results": drained.mcp_results,
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -650,6 +663,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -733,6 +747,7 @@ class AgentWorkflow:
relevant_transaction_evidence = list(state.get("relevant_transaction_evidence") or [])
judge_context["transaction_evidence"] = relevant_transaction_evidence
current_evidence = list(state.get("mcp_results", []) or [])
+ current_evidence.extend(state.get("rag_results", []) or [])
current_evidence.extend(relevant_transaction_evidence)
judge_context["evidence"] = current_evidence or judge_context.get("evidence")
judge_context["route"] = state.get("route")
@@ -880,6 +895,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
"transaction_evidence": state.get("relevant_transaction_evidence", []),
},
)
diff --git a/apps/agent_gateway/app/__pycache__/governance_middleware.cpython-313.pyc b/apps/agent_gateway/app/__pycache__/governance_middleware.cpython-313.pyc
deleted file mode 100644
index 9ef1c4ff..00000000
Binary files a/apps/agent_gateway/app/__pycache__/governance_middleware.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/__pycache__/main.cpython-313.pyc b/apps/agent_gateway/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index fffdb5d2..00000000
Binary files a/apps/agent_gateway/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/__pycache__/settings.cpython-313.pyc b/apps/agent_gateway/app/__pycache__/settings.cpython-313.pyc
deleted file mode 100644
index 0331ed76..00000000
Binary files a/apps/agent_gateway/app/__pycache__/settings.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/config/__pycache__/governance_loader.cpython-313.pyc b/apps/agent_gateway/app/config/__pycache__/governance_loader.cpython-313.pyc
deleted file mode 100644
index 49664df5..00000000
Binary files a/apps/agent_gateway/app/config/__pycache__/governance_loader.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/governance/__pycache__/__init__.cpython-313.pyc b/apps/agent_gateway/app/governance/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 9facf879..00000000
Binary files a/apps/agent_gateway/app/governance/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/governance/__pycache__/audit.cpython-313.pyc b/apps/agent_gateway/app/governance/__pycache__/audit.cpython-313.pyc
deleted file mode 100644
index 1da29c60..00000000
Binary files a/apps/agent_gateway/app/governance/__pycache__/audit.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/governance/__pycache__/evaluation_hooks.cpython-313.pyc b/apps/agent_gateway/app/governance/__pycache__/evaluation_hooks.cpython-313.pyc
deleted file mode 100644
index 473f2bc2..00000000
Binary files a/apps/agent_gateway/app/governance/__pycache__/evaluation_hooks.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/governance/__pycache__/model_policies.cpython-313.pyc b/apps/agent_gateway/app/governance/__pycache__/model_policies.cpython-313.pyc
deleted file mode 100644
index 1141210a..00000000
Binary files a/apps/agent_gateway/app/governance/__pycache__/model_policies.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/governance/__pycache__/rate_limit.cpython-313.pyc b/apps/agent_gateway/app/governance/__pycache__/rate_limit.cpython-313.pyc
deleted file mode 100644
index 507ee7d0..00000000
Binary files a/apps/agent_gateway/app/governance/__pycache__/rate_limit.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/governance/__pycache__/usage.cpython-313.pyc b/apps/agent_gateway/app/governance/__pycache__/usage.cpython-313.pyc
deleted file mode 100644
index b102d113..00000000
Binary files a/apps/agent_gateway/app/governance/__pycache__/usage.cpython-313.pyc and /dev/null differ
diff --git a/apps/agent_gateway/app/routes/__pycache__/governed_proxy_example.cpython-313.pyc b/apps/agent_gateway/app/routes/__pycache__/governed_proxy_example.cpython-313.pyc
deleted file mode 100644
index e4d8952b..00000000
Binary files a/apps/agent_gateway/app/routes/__pycache__/governed_proxy_example.cpython-313.pyc and /dev/null differ
diff --git a/apps/mcp_gateway/app/__pycache__/__init__.cpython-313.pyc b/apps/mcp_gateway/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 0e96f674..00000000
Binary files a/apps/mcp_gateway/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/apps/mcp_gateway/app/__pycache__/main.cpython-313.pyc b/apps/mcp_gateway/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index 83107d48..00000000
Binary files a/apps/mcp_gateway/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/deploy/oke/load-test/scripts/__pycache__/prepare_env.cpython-313.pyc b/deploy/oke/load-test/scripts/__pycache__/prepare_env.cpython-313.pyc
deleted file mode 100644
index c77aeb7e..00000000
Binary files a/deploy/oke/load-test/scripts/__pycache__/prepare_env.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 393fb8bf..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/__pycache__/extensions.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/__pycache__/extensions.cpython-313.pyc
deleted file mode 100644
index 6bcfde5d..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/__pycache__/extensions.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/__pycache__/gateway_policy_context.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/__pycache__/gateway_policy_context.cpython-313.pyc
deleted file mode 100644
index 8f935c61..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/__pycache__/gateway_policy_context.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/__pycache__/idempotency.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/__pycache__/idempotency.cpython-313.pyc
deleted file mode 100644
index d7cfedbb..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/__pycache__/idempotency.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/__pycache__/observer.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/__pycache__/observer.cpython-313.pyc
deleted file mode 100644
index 54827815..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/__pycache__/observer.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/__pycache__/runtime_mcp_gateway_adapter.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/__pycache__/runtime_mcp_gateway_adapter.cpython-313.pyc
deleted file mode 100644
index 38238133..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/__pycache__/runtime_mcp_gateway_adapter.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 91e613ef..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/composite_publisher.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/composite_publisher.cpython-313.pyc
deleted file mode 100644
index 98c3131c..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/composite_publisher.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/event_builder.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/event_builder.cpython-313.pyc
deleted file mode 100644
index 4446a3ff..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/event_builder.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/factory.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/factory.cpython-313.pyc
deleted file mode 100644
index 8a3e728d..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/factory.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/publisher.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/publisher.cpython-313.pyc
deleted file mode 100644
index 39a07288..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/publisher.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/tim_payload_mapper.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/tim_payload_mapper.cpython-313.pyc
deleted file mode 100644
index 3710122e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/tim_payload_mapper.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/tim_sequence.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/tim_sequence.cpython-313.pyc
deleted file mode 100644
index 025f7710..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/__pycache__/tim_sequence.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 9a843496..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/kafka.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/kafka.cpython-313.pyc
deleted file mode 100644
index b2e4a9a5..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/kafka.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/langfuse.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/langfuse.cpython-313.pyc
deleted file mode 100644
index eb3c2eae..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/langfuse.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/oci_streaming.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/oci_streaming.cpython-313.pyc
deleted file mode 100644
index 850581c1..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/oci_streaming.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/pubsub.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/pubsub.cpython-313.pyc
deleted file mode 100644
index 91e65961..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/analytics/providers/__pycache__/pubsub.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/billing/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/billing/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e9e66d67..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/billing/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/billing/__pycache__/usage_repository.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/billing/__pycache__/usage_repository.cpython-313.pyc
deleted file mode 100644
index a67530c2..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/billing/__pycache__/usage_repository.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/cache/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/cache/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 04b86877..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/cache/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/cache/__pycache__/cache.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/cache/__pycache__/cache.cpython-313.pyc
deleted file mode 100644
index e47f0c9e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/cache/__pycache__/cache.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 37b3d894..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/adapters.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/adapters.cpython-313.pyc
deleted file mode 100644
index 432b7d64..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/adapters.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/base.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/base.cpython-313.pyc
deleted file mode 100644
index 53e0fb60..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/base.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/gateway.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/gateway.cpython-313.pyc
deleted file mode 100644
index 161d2324..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/gateway.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/interruption.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/interruption.cpython-313.pyc
deleted file mode 100644
index 5c310dad..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/interruption.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/transcription.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/transcription.cpython-313.pyc
deleted file mode 100644
index 07cf4ede..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/channels/__pycache__/transcription.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/checkpoints/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/checkpoints/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index f7d3dbc8..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/checkpoints/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/checkpoints/__pycache__/checkpoint_repository.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/checkpoints/__pycache__/checkpoint_repository.cpython-313.pyc
deleted file mode 100644
index 9b48baaf..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/checkpoints/__pycache__/checkpoint_repository.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/checkpoints/__pycache__/langgraph_saver.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/checkpoints/__pycache__/langgraph_saver.cpython-313.pyc
deleted file mode 100644
index f3c63174..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/checkpoints/__pycache__/langgraph_saver.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/config/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/config/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index a6db1bb1..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/config/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/config/__pycache__/agent_registry.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/config/__pycache__/agent_registry.cpython-313.pyc
deleted file mode 100644
index c1db452a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/config/__pycache__/agent_registry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/config/__pycache__/settings.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/config/__pycache__/settings.cpython-313.pyc
deleted file mode 100644
index 88305648..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/config/__pycache__/settings.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/events/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/events/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index dfe6ced0..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/events/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/events/__pycache__/oci_streaming.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/events/__pycache__/oci_streaming.cpython-313.pyc
deleted file mode 100644
index 6a517098..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/events/__pycache__/oci_streaming.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/gateways/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/gateways/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 1497c7b0..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/gateways/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/gateways/__pycache__/mcp_gateway_client.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/gateways/__pycache__/mcp_gateway_client.cpython-313.pyc
deleted file mode 100644
index 938c58d3..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/gateways/__pycache__/mcp_gateway_client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 13d24b84..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/client.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/client.cpython-313.pyc
deleted file mode 100644
index 3ee859c0..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/config.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/config.cpython-313.pyc
deleted file mode 100644
index 370f6f6e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/config.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/models.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index 2a6c75c3..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/router.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/router.cpython-313.pyc
deleted file mode 100644
index a99fd417..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/router.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/session_store.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/session_store.cpython-313.pyc
deleted file mode 100644
index 063978d9..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/global_supervisor/__pycache__/session_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 9503cb79..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/base.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/base.cpython-313.pyc
deleted file mode 100644
index ad115454..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/base.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/config_loader.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/config_loader.cpython-313.pyc
deleted file mode 100644
index 4a6373b9..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/config_loader.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/custom_rails.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/custom_rails.cpython-313.pyc
deleted file mode 100644
index 5f16e14b..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/custom_rails.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/executor.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/executor.cpython-313.pyc
deleted file mode 100644
index 76a0ce34..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/executor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/framework_llm_client.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/framework_llm_client.cpython-313.pyc
deleted file mode 100644
index 005475ba..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/framework_llm_client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/langgraph_adapters.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/langgraph_adapters.cpython-313.pyc
deleted file mode 100644
index 53ac82d8..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/langgraph_adapters.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/llm_rails.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/llm_rails.cpython-313.pyc
deleted file mode 100644
index 36676c00..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/llm_rails.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/output_supervisor.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/output_supervisor.cpython-313.pyc
deleted file mode 100644
index 6fe0384e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/output_supervisor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/parallel_executor.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/parallel_executor.cpython-313.pyc
deleted file mode 100644
index 6e5a9dc8..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/parallel_executor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/pipeline.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/pipeline.cpython-313.pyc
deleted file mode 100644
index 2faecbb2..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/pipeline.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rail_action.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rail_action.cpython-313.pyc
deleted file mode 100644
index de06bc82..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rail_action.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rail_decision.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rail_decision.cpython-313.pyc
deleted file mode 100644
index a9334338..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rail_decision.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rail_result.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rail_result.cpython-313.pyc
deleted file mode 100644
index 3d3b39bf..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rail_result.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rails.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rails.cpython-313.pyc
deleted file mode 100644
index 03f36cfc..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/__pycache__/rails.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 5a8663ca..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/_compat.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/_compat.cpython-313.pyc
deleted file mode 100644
index a1da7169..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/_compat.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/config.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/config.cpython-313.pyc
deleted file mode 100644
index 009d915e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/config.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/contestation_validation.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/contestation_validation.cpython-313.pyc
deleted file mode 100644
index 69fe1a5b..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/contestation_validation.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/contracts.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/contracts.cpython-313.pyc
deleted file mode 100644
index 9abed83d..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/contracts.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/input_size.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/input_size.cpython-313.pyc
deleted file mode 100644
index f18e5d15..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/input_size.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/llm_adapter.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/llm_adapter.cpython-313.pyc
deleted file mode 100644
index ab6cbe50..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/llm_adapter.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/llm_client.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/llm_client.cpython-313.pyc
deleted file mode 100644
index 8f10fdc3..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/llm_client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/llm_rails.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/llm_rails.cpython-313.pyc
deleted file mode 100644
index d6e600ef..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/llm_rails.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/output_sanitization.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/output_sanitization.cpython-313.pyc
deleted file mode 100644
index 1b2dff7a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/output_sanitization.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/pipeline.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/pipeline.cpython-313.pyc
deleted file mode 100644
index c2af6f63..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/__pycache__/pipeline.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 9e4ba3ee..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/_context.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/_context.cpython-313.pyc
deleted file mode 100644
index e0c2e93d..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/_context.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/ausencia_oferta_proativa.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/ausencia_oferta_proativa.cpython-313.pyc
deleted file mode 100644
index 053dc694..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/ausencia_oferta_proativa.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/coerencia.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/coerencia.cpython-313.pyc
deleted file mode 100644
index 08b46a44..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/coerencia.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_in.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_in.cpython-313.pyc
deleted file mode 100644
index 023ef961..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_in.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-313.pyc
deleted file mode 100644
index 77bac8f9..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/fallback.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/fallback.cpython-313.pyc
deleted file mode 100644
index d5cd6332..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/fallback.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/fraseologia.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/fraseologia.cpython-313.pyc
deleted file mode 100644
index 4bf4d612..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/fraseologia.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/out_of_scope.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/out_of_scope.cpython-313.pyc
deleted file mode 100644
index e21f5956..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/out_of_scope.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/pinj.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/pinj.cpython-313.pyc
deleted file mode 100644
index 97277c86..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/pinj.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/ragsec.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/ragsec.cpython-313.pyc
deleted file mode 100644
index 33e30180..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/ragsec.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/revprec.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/revprec.cpython-313.pyc
deleted file mode 100644
index 334e62b3..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/revprec.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/safe_out.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/safe_out.cpython-313.pyc
deleted file mode 100644
index ea56658d..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/safe_out.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/tox.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/tox.cpython-313.pyc
deleted file mode 100644
index afce58b5..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/tox.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/toxicidade_output.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/toxicidade_output.cpython-313.pyc
deleted file mode 100644
index aacec91d..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/__pycache__/toxicidade_output.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 903f4e91..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/supervision_template.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/supervision_template.cpython-313.pyc
deleted file mode 100644
index e7111a6b..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/supervision_template.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/tts_rules.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/tts_rules.cpython-313.pyc
deleted file mode 100644
index 12e38f60..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/tts_rules.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e4547ab7..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/alcada.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/alcada.cpython-313.pyc
deleted file mode 100644
index 9cd565fc..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/alcada.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/anatel.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/anatel.cpython-313.pyc
deleted file mode 100644
index 7ebd55ba..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/anatel.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/confirmation.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/confirmation.cpython-313.pyc
deleted file mode 100644
index ca1905ea..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/confirmation.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_in.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_in.cpython-313.pyc
deleted file mode 100644
index bf674c16..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_in.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_out.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_out.cpython-313.pyc
deleted file mode 100644
index 516d9ba2..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_out.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/ragsec.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/ragsec.cpython-313.pyc
deleted file mode 100644
index aa71f5f4..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/ragsec.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/revprec.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/revprec.cpython-313.pyc
deleted file mode 100644
index a26fce76..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/revprec.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/tox.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/tox.cpython-313.pyc
deleted file mode 100644
index c8f9c0fb..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/__pycache__/tox.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index dae0fca7..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/correspondencia_item.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/correspondencia_item.cpython-313.pyc
deleted file mode 100644
index 25203986..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/correspondencia_item.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/groundedness.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/groundedness.cpython-313.pyc
deleted file mode 100644
index 3f7c6819..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/groundedness.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/intencao_cancelar.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/intencao_cancelar.cpython-313.pyc
deleted file mode 100644
index 94012421..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/intencao_cancelar.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/quantidade_coerente.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/quantidade_coerente.cpython-313.pyc
deleted file mode 100644
index ce058caa..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/quantidade_coerente.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/servico_correto.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/servico_correto.cpython-313.pyc
deleted file mode 100644
index ab875b40..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/servico_correto.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/verbalizacao_prematura.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/verbalizacao_prematura.cpython-313.pyc
deleted file mode 100644
index 26d97a2a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/verbalizacao_prematura.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 63716a33..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/alcada.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/alcada.cpython-313.pyc
deleted file mode 100644
index 82c85db4..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/alcada.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/oos_blocklist.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/oos_blocklist.cpython-313.pyc
deleted file mode 100644
index 64cb2564..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/oos_blocklist.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/pinj_patterns.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/pinj_patterns.cpython-313.pyc
deleted file mode 100644
index 47569e8f..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/pinj_patterns.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/tox_blocklist.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/tox_blocklist.cpython-313.pyc
deleted file mode 100644
index ca1fa168..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/guardrails/calibrated/rules/__pycache__/tox_blocklist.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 3693bdb4..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/mcp_mapper.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/mcp_mapper.cpython-313.pyc
deleted file mode 100644
index 28329f0c..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/mcp_mapper.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/models.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index 0506d819..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/resolver.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/resolver.cpython-313.pyc
deleted file mode 100644
index e760e2a7..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/identity/__pycache__/resolver.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 3f398b48..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/__pycache__/judge.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/__pycache__/judge.cpython-313.pyc
deleted file mode 100644
index 49d40ba5..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/__pycache__/judge.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 6d6627d7..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/_compat.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/_compat.cpython-313.pyc
deleted file mode 100644
index da779fef..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/_compat.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/llm_client.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/llm_client.cpython-313.pyc
deleted file mode 100644
index d8673447..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/llm_client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/models.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index f014ca02..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 6713dee6..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/aluc.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/aluc.cpython-313.pyc
deleted file mode 100644
index 9b1920ed..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/aluc.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/csi.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/csi.cpython-313.pyc
deleted file mode 100644
index 8d25a7eb..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/csi.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/fallback.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/fallback.cpython-313.pyc
deleted file mode 100644
index ac88701c..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/fallback.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/rqlt.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/rqlt.cpython-313.pyc
deleted file mode 100644
index 23cbc9f1..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/rqlt.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/vctn.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/vctn.cpython-313.pyc
deleted file mode 100644
index ce953403..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/judges/calibrated/prompts/__pycache__/vctn.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index f53408a7..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/base.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/base.cpython-313.pyc
deleted file mode 100644
index c2723909..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/base.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/profile_resolver.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/profile_resolver.cpython-313.pyc
deleted file mode 100644
index 240d8a2a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/profile_resolver.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/providers.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/providers.cpython-313.pyc
deleted file mode 100644
index 0e46e899..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/providers.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/types.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/types.cpython-313.pyc
deleted file mode 100644
index fac84663..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/llm/__pycache__/types.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 5671eaa5..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/client.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/client.cpython-313.pyc
deleted file mode 100644
index e1051427..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/models.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index ab343571..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/registry.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/registry.cpython-313.pyc
deleted file mode 100644
index 4a2f72c4..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/registry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/tool_policy.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/tool_policy.cpython-313.pyc
deleted file mode 100644
index ff81f2fa..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/tool_policy.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/tool_router.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/tool_router.cpython-313.pyc
deleted file mode 100644
index a83ed8fc..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/mcp/__pycache__/tool_router.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index dfc32d2c..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_extractor.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_extractor.cpython-313.pyc
deleted file mode 100644
index 75617bc9..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_extractor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_memory.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_memory.cpython-313.pyc
deleted file mode 100644
index e0542ae4..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_memory.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_models.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_models.cpython-313.pyc
deleted file mode 100644
index ab1f4386..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_store.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_store.cpython-313.pyc
deleted file mode 100644
index bceeeb72..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/long_term_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/message_history.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/message_history.cpython-313.pyc
deleted file mode 100644
index 8a4baf1e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/message_history.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/summary_memory.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/summary_memory.cpython-313.pyc
deleted file mode 100644
index f2e6d50a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/summary_memory.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/summary_store.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/summary_store.cpython-313.pyc
deleted file mode 100644
index ea2e3022..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/memory/__pycache__/summary_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/models/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/models/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 62370613..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/models/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/models/__pycache__/identity.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/models/__pycache__/identity.cpython-313.pyc
deleted file mode 100644
index 1a6b4d01..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/models/__pycache__/identity.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/models/__pycache__/session.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/models/__pycache__/session.cpython-313.pyc
deleted file mode 100644
index ecdbb999..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/models/__pycache__/session.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e5922853..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/code_mapper.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/code_mapper.cpython-313.pyc
deleted file mode 100644
index 6bb7356d..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/code_mapper.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/context.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/context.cpython-313.pyc
deleted file mode 100644
index 24187ed6..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/context.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/control_events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/control_events.cpython-313.pyc
deleted file mode 100644
index 8a51c87f..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/control_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/decorators.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/decorators.cpython-313.pyc
deleted file mode 100644
index 0eb8dc72..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/decorators.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/event_bus.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/event_bus.cpython-313.pyc
deleted file mode 100644
index 0d54e8b2..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/event_bus.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/grl_events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/grl_events.cpython-313.pyc
deleted file mode 100644
index edbd6b54..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/grl_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/guardrail_events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/guardrail_events.cpython-313.pyc
deleted file mode 100644
index 31552cdf..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/guardrail_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/ic_events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/ic_events.cpython-313.pyc
deleted file mode 100644
index 50c66aee..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/ic_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/informational_events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/informational_events.cpython-313.pyc
deleted file mode 100644
index 1af4354b..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/informational_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/judge_events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/judge_events.cpython-313.pyc
deleted file mode 100644
index fb64d4f9..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/judge_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/langfuse_enterprise.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/langfuse_enterprise.cpython-313.pyc
deleted file mode 100644
index f1dbfa32..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/langfuse_enterprise.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/langgraph_telemetry.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/langgraph_telemetry.cpython-313.pyc
deleted file mode 100644
index e3f93f8f..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/langgraph_telemetry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/llm_advisors.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/llm_advisors.cpython-313.pyc
deleted file mode 100644
index acd379cd..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/llm_advisors.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/noc_contract.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/noc_contract.cpython-313.pyc
deleted file mode 100644
index 30ac0c22..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/noc_contract.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/noc_events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/noc_events.cpython-313.pyc
deleted file mode 100644
index d37ab17a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/noc_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/noc_otel.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/noc_otel.cpython-313.pyc
deleted file mode 100644
index 47c1def9..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/noc_otel.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/observer.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/observer.cpython-313.pyc
deleted file mode 100644
index 4871e78e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/observer.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/otel.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/otel.cpython-313.pyc
deleted file mode 100644
index 0c0e1644..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/otel.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/streaming_events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/streaming_events.cpython-313.pyc
deleted file mode 100644
index 346186b3..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/streaming_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/streaming_exporter.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/streaming_exporter.cpython-313.pyc
deleted file mode 100644
index e46d02e9..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/streaming_exporter.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/telemetry.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/telemetry.cpython-313.pyc
deleted file mode 100644
index 77915f0e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/telemetry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/tim_backoffice_contract.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/tim_backoffice_contract.cpython-313.pyc
deleted file mode 100644
index bd3eedbb..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/tim_backoffice_contract.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/token_cost.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/token_cost.cpython-313.pyc
deleted file mode 100644
index eb020acd..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/token_cost.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/workflow_events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/workflow_events.cpython-313.pyc
deleted file mode 100644
index de1a0127..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/observability/__pycache__/workflow_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/oci/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/oci/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 8a331fb0..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/oci/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/oci/__pycache__/auth.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/oci/__pycache__/auth.cpython-313.pyc
deleted file mode 100644
index a8cca2ad..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/oci/__pycache__/auth.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 0393bae6..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/mongodb_store.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/mongodb_store.cpython-313.pyc
deleted file mode 100644
index 546cc342..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/mongodb_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/oracle_store.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/oracle_store.cpython-313.pyc
deleted file mode 100644
index 836b1e2e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/oracle_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/sqlite_store.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/sqlite_store.cpython-313.pyc
deleted file mode 100644
index 28d590e8..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/persistence/__pycache__/sqlite_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/presentation/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 2ea8209c..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/presentation/__pycache__/renderers.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/presentation/__pycache__/renderers.cpython-313.pyc
deleted file mode 100644
index 966f6d4a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/presentation/__pycache__/renderers.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index b06d83ac..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/embedding_provider.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/embedding_provider.cpython-313.pyc
deleted file mode 100644
index f0027235..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/embedding_provider.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/graph_store.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/graph_store.cpython-313.pyc
deleted file mode 100644
index e9db1f82..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/graph_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/ingest.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/ingest.cpython-313.pyc
deleted file mode 100644
index 35ac6bf3..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/ingest.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/rag_service.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/rag_service.cpython-313.pyc
deleted file mode 100644
index 871c7d84..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/rag_service.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/vector_store.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/vector_store.cpython-313.pyc
deleted file mode 100644
index 7a3ea018..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/rag/__pycache__/vector_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/repositories/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/repositories/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 6f1fb7aa..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/repositories/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/repositories/__pycache__/session_repository.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/repositories/__pycache__/session_repository.cpython-313.pyc
deleted file mode 100644
index b8815bbb..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/repositories/__pycache__/session_repository.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 222d34ec..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/config_loader.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/config_loader.cpython-313.pyc
deleted file mode 100644
index 17ab49de..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/config_loader.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/continuity.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/continuity.cpython-313.pyc
deleted file mode 100644
index a3edd9e0..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/continuity.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/enterprise_router.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/enterprise_router.cpython-313.pyc
deleted file mode 100644
index b805d8d4..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/enterprise_router.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/models.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index 52d1888a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/routing/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 14725d45..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/agent_runtime.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/agent_runtime.cpython-313.pyc
deleted file mode 100644
index 5030833e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/agent_runtime.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/transaction_input.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/transaction_input.cpython-313.pyc
deleted file mode 100644
index f7d5ff86..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/transaction_input.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/transaction_parameters.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/transaction_parameters.cpython-313.pyc
deleted file mode 100644
index 0df895b3..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/runtime/__pycache__/transaction_parameters.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/security/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 8d437d4d..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/authentication.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/security/__pycache__/authentication.cpython-313.pyc
deleted file mode 100644
index 4e932231..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/authentication.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/factory.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/security/__pycache__/factory.cpython-313.pyc
deleted file mode 100644
index e79d4ac9..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/factory.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/installer.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/security/__pycache__/installer.cpython-313.pyc
deleted file mode 100644
index 4b60c06b..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/installer.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/middleware.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/security/__pycache__/middleware.cpython-313.pyc
deleted file mode 100644
index 7ac290cf..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/security/__pycache__/middleware.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/sse/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/sse/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 6cccf5f5..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/sse/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/sse/__pycache__/events.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/sse/__pycache__/events.cpython-313.pyc
deleted file mode 100644
index 4f40a31a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/sse/__pycache__/events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/supervisor/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/supervisor/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index ab585f86..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/supervisor/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/supervisor/__pycache__/router_supervisor.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/supervisor/__pycache__/router_supervisor.cpython-313.pyc
deleted file mode 100644
index 02b57518..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/supervisor/__pycache__/router_supervisor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/supervisor/__pycache__/supervisor.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/supervisor/__pycache__/supervisor.cpython-313.pyc
deleted file mode 100644
index 790fbed3..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/supervisor/__pycache__/supervisor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 662e3cc8..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/graph.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/graph.cpython-313.pyc
deleted file mode 100644
index ecf06f78..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/graph.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/input_contract.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/input_contract.cpython-313.pyc
deleted file mode 100644
index 9280ab9b..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/input_contract.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/models.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index e3648446..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/registry.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/registry.cpython-313.pyc
deleted file mode 100644
index ac7534a1..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/registry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/repository.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/repository.cpython-313.pyc
deleted file mode 100644
index 4ba84943..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/repository.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/runtime.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index f739c63a..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/tool_executor.cpython-313.pyc b/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/tool_executor.cpython-313.pyc
deleted file mode 100644
index 7714ab8e..00000000
Binary files a/libs/agent_framework/build/lib/agent_framework/workflows/__pycache__/tool_executor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 047d5216..00000000
Binary files a/libs/agent_framework/src/agent_framework/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 71d64042..00000000
Binary files a/libs/agent_framework/src/agent_framework/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/__pycache__/extensions.cpython-313.pyc b/libs/agent_framework/src/agent_framework/__pycache__/extensions.cpython-313.pyc
deleted file mode 100644
index fd8778da..00000000
Binary files a/libs/agent_framework/src/agent_framework/__pycache__/extensions.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/__pycache__/gateway_policy_context.cpython-313.pyc b/libs/agent_framework/src/agent_framework/__pycache__/gateway_policy_context.cpython-313.pyc
deleted file mode 100644
index e88eaccd..00000000
Binary files a/libs/agent_framework/src/agent_framework/__pycache__/gateway_policy_context.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/__pycache__/idempotency.cpython-313.pyc b/libs/agent_framework/src/agent_framework/__pycache__/idempotency.cpython-313.pyc
deleted file mode 100644
index c608aeea..00000000
Binary files a/libs/agent_framework/src/agent_framework/__pycache__/idempotency.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/__pycache__/idempotency.cpython-314.pyc b/libs/agent_framework/src/agent_framework/__pycache__/idempotency.cpython-314.pyc
deleted file mode 100644
index c57d7a90..00000000
Binary files a/libs/agent_framework/src/agent_framework/__pycache__/idempotency.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/__pycache__/observer.cpython-313.pyc b/libs/agent_framework/src/agent_framework/__pycache__/observer.cpython-313.pyc
deleted file mode 100644
index 203b5bbb..00000000
Binary files a/libs/agent_framework/src/agent_framework/__pycache__/observer.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/__pycache__/observer.cpython-314.pyc b/libs/agent_framework/src/agent_framework/__pycache__/observer.cpython-314.pyc
deleted file mode 100644
index 5769340f..00000000
Binary files a/libs/agent_framework/src/agent_framework/__pycache__/observer.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/__pycache__/runtime_mcp_gateway_adapter.cpython-313.pyc b/libs/agent_framework/src/agent_framework/__pycache__/runtime_mcp_gateway_adapter.cpython-313.pyc
deleted file mode 100644
index 1d040f91..00000000
Binary files a/libs/agent_framework/src/agent_framework/__pycache__/runtime_mcp_gateway_adapter.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 47bd891d..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index db730fda..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/composite_publisher.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/composite_publisher.cpython-313.pyc
deleted file mode 100644
index d8eb7a49..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/composite_publisher.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/composite_publisher.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/composite_publisher.cpython-314.pyc
deleted file mode 100644
index 4a7eec80..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/composite_publisher.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/event_builder.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/event_builder.cpython-313.pyc
deleted file mode 100644
index 62703d07..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/event_builder.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/event_builder.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/event_builder.cpython-314.pyc
deleted file mode 100644
index 2fd78d87..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/event_builder.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/factory.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/factory.cpython-313.pyc
deleted file mode 100644
index eb85102b..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/factory.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/factory.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/factory.cpython-314.pyc
deleted file mode 100644
index dbb0b1e3..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/factory.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/publisher.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/publisher.cpython-313.pyc
deleted file mode 100644
index aab04f79..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/publisher.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/publisher.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/publisher.cpython-314.pyc
deleted file mode 100644
index 1b2e0731..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/publisher.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_payload_mapper.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_payload_mapper.cpython-313.pyc
deleted file mode 100644
index dabdbc89..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_payload_mapper.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_payload_mapper.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_payload_mapper.cpython-314.pyc
deleted file mode 100644
index 93116399..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_payload_mapper.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_sequence.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_sequence.cpython-313.pyc
deleted file mode 100644
index e4b04ed7..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_sequence.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_sequence.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_sequence.cpython-314.pyc
deleted file mode 100644
index 1f849c97..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/__pycache__/tim_sequence.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 603d36e8..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 801eb7fb..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/kafka.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/kafka.cpython-313.pyc
deleted file mode 100644
index 999cc817..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/kafka.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/kafka.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/kafka.cpython-314.pyc
deleted file mode 100644
index 4585713c..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/kafka.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/langfuse.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/langfuse.cpython-313.pyc
deleted file mode 100644
index 81b64310..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/langfuse.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/langfuse.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/langfuse.cpython-314.pyc
deleted file mode 100644
index 9ae90a61..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/langfuse.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/oci_streaming.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/oci_streaming.cpython-313.pyc
deleted file mode 100644
index af57afa9..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/oci_streaming.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/oci_streaming.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/oci_streaming.cpython-314.pyc
deleted file mode 100644
index db5b6685..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/oci_streaming.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/pubsub.cpython-313.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/pubsub.cpython-313.pyc
deleted file mode 100644
index bdc754f3..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/pubsub.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/pubsub.cpython-314.pyc b/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/pubsub.cpython-314.pyc
deleted file mode 100644
index 7bb19f1d..00000000
Binary files a/libs/agent_framework/src/agent_framework/analytics/providers/__pycache__/pubsub.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/billing/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/billing/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index ce3571a7..00000000
Binary files a/libs/agent_framework/src/agent_framework/billing/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/billing/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/billing/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 6ef6f8cf..00000000
Binary files a/libs/agent_framework/src/agent_framework/billing/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/billing/__pycache__/usage_repository.cpython-313.pyc b/libs/agent_framework/src/agent_framework/billing/__pycache__/usage_repository.cpython-313.pyc
deleted file mode 100644
index 6b69221d..00000000
Binary files a/libs/agent_framework/src/agent_framework/billing/__pycache__/usage_repository.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/billing/__pycache__/usage_repository.cpython-314.pyc b/libs/agent_framework/src/agent_framework/billing/__pycache__/usage_repository.cpython-314.pyc
deleted file mode 100644
index 86878d26..00000000
Binary files a/libs/agent_framework/src/agent_framework/billing/__pycache__/usage_repository.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/cache/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/cache/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 3c13dadb..00000000
Binary files a/libs/agent_framework/src/agent_framework/cache/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/cache/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/cache/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 6be3d8d1..00000000
Binary files a/libs/agent_framework/src/agent_framework/cache/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/cache/__pycache__/cache.cpython-313.pyc b/libs/agent_framework/src/agent_framework/cache/__pycache__/cache.cpython-313.pyc
deleted file mode 100644
index 9f24e6af..00000000
Binary files a/libs/agent_framework/src/agent_framework/cache/__pycache__/cache.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/cache/__pycache__/cache.cpython-314.pyc b/libs/agent_framework/src/agent_framework/cache/__pycache__/cache.cpython-314.pyc
deleted file mode 100644
index d100dadd..00000000
Binary files a/libs/agent_framework/src/agent_framework/cache/__pycache__/cache.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 426ec235..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 12318df1..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/adapters.cpython-313.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/adapters.cpython-313.pyc
deleted file mode 100644
index c0c3e710..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/adapters.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/adapters.cpython-314.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/adapters.cpython-314.pyc
deleted file mode 100644
index de548818..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/adapters.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/base.cpython-313.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/base.cpython-313.pyc
deleted file mode 100644
index 4e958512..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/base.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/base.cpython-314.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/base.cpython-314.pyc
deleted file mode 100644
index aca24524..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/base.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/gateway.cpython-313.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/gateway.cpython-313.pyc
deleted file mode 100644
index 418c1e32..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/gateway.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/gateway.cpython-314.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/gateway.cpython-314.pyc
deleted file mode 100644
index 52b31d12..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/gateway.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/interruption.cpython-313.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/interruption.cpython-313.pyc
deleted file mode 100644
index b51ae384..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/interruption.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/interruption.cpython-314.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/interruption.cpython-314.pyc
deleted file mode 100644
index 29ce8619..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/interruption.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/transcription.cpython-313.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/transcription.cpython-313.pyc
deleted file mode 100644
index 7d0f8ede..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/transcription.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/channels/__pycache__/transcription.cpython-314.pyc b/libs/agent_framework/src/agent_framework/channels/__pycache__/transcription.cpython-314.pyc
deleted file mode 100644
index bf3e5264..00000000
Binary files a/libs/agent_framework/src/agent_framework/channels/__pycache__/transcription.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 823af306..00000000
Binary files a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 0f1a5aac..00000000
Binary files a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/checkpoint_repository.cpython-313.pyc b/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/checkpoint_repository.cpython-313.pyc
deleted file mode 100644
index ea320db5..00000000
Binary files a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/checkpoint_repository.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/checkpoint_repository.cpython-314.pyc b/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/checkpoint_repository.cpython-314.pyc
deleted file mode 100644
index d4532893..00000000
Binary files a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/checkpoint_repository.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/langgraph_saver.cpython-313.pyc b/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/langgraph_saver.cpython-313.pyc
deleted file mode 100644
index 3daa5593..00000000
Binary files a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/langgraph_saver.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/langgraph_saver.cpython-314.pyc b/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/langgraph_saver.cpython-314.pyc
deleted file mode 100644
index 73567503..00000000
Binary files a/libs/agent_framework/src/agent_framework/checkpoints/__pycache__/langgraph_saver.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/config/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/config/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 1a708ad6..00000000
Binary files a/libs/agent_framework/src/agent_framework/config/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/config/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/config/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index fc23523e..00000000
Binary files a/libs/agent_framework/src/agent_framework/config/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/config/__pycache__/agent_registry.cpython-313.pyc b/libs/agent_framework/src/agent_framework/config/__pycache__/agent_registry.cpython-313.pyc
deleted file mode 100644
index aaa4fd7e..00000000
Binary files a/libs/agent_framework/src/agent_framework/config/__pycache__/agent_registry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/config/__pycache__/agent_registry.cpython-314.pyc b/libs/agent_framework/src/agent_framework/config/__pycache__/agent_registry.cpython-314.pyc
deleted file mode 100644
index 7e4aa3f2..00000000
Binary files a/libs/agent_framework/src/agent_framework/config/__pycache__/agent_registry.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/config/__pycache__/settings.cpython-313.pyc b/libs/agent_framework/src/agent_framework/config/__pycache__/settings.cpython-313.pyc
deleted file mode 100644
index 6e9cb7a3..00000000
Binary files a/libs/agent_framework/src/agent_framework/config/__pycache__/settings.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/config/__pycache__/settings.cpython-314.pyc b/libs/agent_framework/src/agent_framework/config/__pycache__/settings.cpython-314.pyc
deleted file mode 100644
index c5c6565e..00000000
Binary files a/libs/agent_framework/src/agent_framework/config/__pycache__/settings.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/config/settings.py b/libs/agent_framework/src/agent_framework/config/settings.py
index 5cab2f19..2225c282 100644
--- a/libs/agent_framework/src/agent_framework/config/settings.py
+++ b/libs/agent_framework/src/agent_framework/config/settings.py
@@ -124,6 +124,9 @@ class Settings(BaseSettings):
KBDB_DOCUMENT_TYPE: str | None = 'customer_safe'
KBDB_METADATA_JSON: str | None = None
KBDB_MIN_SCORE: float | None = None
+ KBDB_IDENTIFY_DOCUMENT: bool = True
+ KBDB_STORE_QUERY: bool = True
+ KBDB_IDENTIFY_TOP_N: int = 3
# MCP só pula retrieval quando declarar explicitamente rag_sufficient/knowledge_sufficient.
SKIP_RAG_WHEN_MCP_SUFFICIENT: bool = True
# Preserva comportamento legado do RAG standard; KBDB enterprise é grounded-only por padrão.
diff --git a/libs/agent_framework/src/agent_framework/events/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/events/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 7f8879c5..00000000
Binary files a/libs/agent_framework/src/agent_framework/events/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/events/__pycache__/oci_streaming.cpython-313.pyc b/libs/agent_framework/src/agent_framework/events/__pycache__/oci_streaming.cpython-313.pyc
deleted file mode 100644
index 2787c391..00000000
Binary files a/libs/agent_framework/src/agent_framework/events/__pycache__/oci_streaming.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/gateways/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/gateways/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index d7cab90e..00000000
Binary files a/libs/agent_framework/src/agent_framework/gateways/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/gateways/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/gateways/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 653eb0a8..00000000
Binary files a/libs/agent_framework/src/agent_framework/gateways/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/gateways/__pycache__/mcp_gateway_client.cpython-313.pyc b/libs/agent_framework/src/agent_framework/gateways/__pycache__/mcp_gateway_client.cpython-313.pyc
deleted file mode 100644
index 420e8dff..00000000
Binary files a/libs/agent_framework/src/agent_framework/gateways/__pycache__/mcp_gateway_client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/gateways/__pycache__/mcp_gateway_client.cpython-314.pyc b/libs/agent_framework/src/agent_framework/gateways/__pycache__/mcp_gateway_client.cpython-314.pyc
deleted file mode 100644
index 82a2a06d..00000000
Binary files a/libs/agent_framework/src/agent_framework/gateways/__pycache__/mcp_gateway_client.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 17a4e0e0..00000000
Binary files a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/client.cpython-313.pyc b/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/client.cpython-313.pyc
deleted file mode 100644
index 8d949d94..00000000
Binary files a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/config.cpython-313.pyc b/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/config.cpython-313.pyc
deleted file mode 100644
index 1cda59f7..00000000
Binary files a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/config.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/models.cpython-313.pyc b/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index c00fbcd3..00000000
Binary files a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/router.cpython-313.pyc b/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/router.cpython-313.pyc
deleted file mode 100644
index 5c36a51a..00000000
Binary files a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/router.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/session_store.cpython-313.pyc b/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/session_store.cpython-313.pyc
deleted file mode 100644
index f29f409b..00000000
Binary files a/libs/agent_framework/src/agent_framework/global_supervisor/__pycache__/session_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index d7182df2..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 78bb0ad7..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/base.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/base.cpython-313.pyc
deleted file mode 100644
index ed1fbf22..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/base.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/base.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/base.cpython-314.pyc
deleted file mode 100644
index bb9ca225..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/base.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/config_loader.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/config_loader.cpython-313.pyc
deleted file mode 100644
index 61bae08b..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/config_loader.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/config_loader.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/config_loader.cpython-314.pyc
deleted file mode 100644
index 66e624fd..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/config_loader.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/custom_rails.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/custom_rails.cpython-313.pyc
deleted file mode 100644
index 062e5a9b..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/custom_rails.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/custom_rails.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/custom_rails.cpython-314.pyc
deleted file mode 100644
index 773b7140..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/custom_rails.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/executor.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/executor.cpython-313.pyc
deleted file mode 100644
index 20cae0e9..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/executor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/framework_llm_client.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/framework_llm_client.cpython-313.pyc
deleted file mode 100644
index 50a34b75..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/framework_llm_client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/framework_llm_client.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/framework_llm_client.cpython-314.pyc
deleted file mode 100644
index 85d2efc5..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/framework_llm_client.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/langgraph_adapters.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/langgraph_adapters.cpython-313.pyc
deleted file mode 100644
index 8358bbd1..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/langgraph_adapters.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/llm_rails.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/llm_rails.cpython-313.pyc
deleted file mode 100644
index 963724ca..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/llm_rails.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/llm_rails.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/llm_rails.cpython-314.pyc
deleted file mode 100644
index f3de0d04..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/llm_rails.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/output_supervisor.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/output_supervisor.cpython-313.pyc
deleted file mode 100644
index c4b79277..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/output_supervisor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/output_supervisor.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/output_supervisor.cpython-314.pyc
deleted file mode 100644
index 00e048cb..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/output_supervisor.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/parallel_executor.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/parallel_executor.cpython-313.pyc
deleted file mode 100644
index 21dc1a65..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/parallel_executor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/parallel_executor.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/parallel_executor.cpython-314.pyc
deleted file mode 100644
index c6af641d..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/parallel_executor.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/pipeline.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/pipeline.cpython-313.pyc
deleted file mode 100644
index bf2c81c7..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/pipeline.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/pipeline.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/pipeline.cpython-314.pyc
deleted file mode 100644
index ad982155..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/pipeline.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_action.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_action.cpython-313.pyc
deleted file mode 100644
index 9403c2c7..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_action.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_action.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_action.cpython-314.pyc
deleted file mode 100644
index 1f21200f..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_action.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_decision.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_decision.cpython-313.pyc
deleted file mode 100644
index df1c3267..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_decision.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_decision.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_decision.cpython-314.pyc
deleted file mode 100644
index 2b6383ca..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_decision.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_result.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_result.cpython-313.pyc
deleted file mode 100644
index 9553b2ed..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_result.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_result.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_result.cpython-314.pyc
deleted file mode 100644
index 84103c52..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rail_result.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rails.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rails.cpython-313.pyc
deleted file mode 100644
index 0a6f6b0e..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rails.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rails.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rails.cpython-314.pyc
deleted file mode 100644
index ada55196..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/__pycache__/rails.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e9006a64..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 0e2103da..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/_compat.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/_compat.cpython-313.pyc
deleted file mode 100644
index f815d3c5..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/_compat.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/_compat.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/_compat.cpython-314.pyc
deleted file mode 100644
index 6335a222..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/_compat.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/config.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/config.cpython-313.pyc
deleted file mode 100644
index 1e3b36da..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/config.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contestation_validation.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contestation_validation.cpython-313.pyc
deleted file mode 100644
index 7a71e277..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contestation_validation.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contestation_validation.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contestation_validation.cpython-314.pyc
deleted file mode 100644
index 57e5e6a9..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contestation_validation.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contracts.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contracts.cpython-313.pyc
deleted file mode 100644
index ce1a4d85..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contracts.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contracts.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contracts.cpython-314.pyc
deleted file mode 100644
index 9a38d414..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/contracts.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/input_size.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/input_size.cpython-313.pyc
deleted file mode 100644
index 19bcadb5..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/input_size.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/input_size.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/input_size.cpython-314.pyc
deleted file mode 100644
index bd35ca0f..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/input_size.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_adapter.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_adapter.cpython-313.pyc
deleted file mode 100644
index 3da66dd7..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_adapter.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_adapter.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_adapter.cpython-314.pyc
deleted file mode 100644
index 6c7b8d21..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_adapter.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_client.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_client.cpython-313.pyc
deleted file mode 100644
index f1404d7c..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_client.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_client.cpython-314.pyc
deleted file mode 100644
index f8f9d1c4..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_client.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_rails.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_rails.cpython-313.pyc
deleted file mode 100644
index e89c2722..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_rails.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_rails.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_rails.cpython-314.pyc
deleted file mode 100644
index d220e22e..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/llm_rails.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/output_sanitization.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/output_sanitization.cpython-313.pyc
deleted file mode 100644
index 09d07e13..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/output_sanitization.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/output_sanitization.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/output_sanitization.cpython-314.pyc
deleted file mode 100644
index b66611a4..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/output_sanitization.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/pipeline.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/pipeline.cpython-313.pyc
deleted file mode 100644
index 9a4db631..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/pipeline.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/pipeline.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/pipeline.cpython-314.pyc
deleted file mode 100644
index f32bdd76..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/__pycache__/pipeline.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e086b178..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 2eb5407f..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/_context.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/_context.cpython-313.pyc
deleted file mode 100644
index e6f46255..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/_context.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/_context.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/_context.cpython-314.pyc
deleted file mode 100644
index 2e8a98ce..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/_context.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ausencia_oferta_proativa.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ausencia_oferta_proativa.cpython-313.pyc
deleted file mode 100644
index ce8fd813..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ausencia_oferta_proativa.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ausencia_oferta_proativa.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ausencia_oferta_proativa.cpython-314.pyc
deleted file mode 100644
index 8aa6d650..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ausencia_oferta_proativa.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/coerencia.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/coerencia.cpython-313.pyc
deleted file mode 100644
index e41496fa..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/coerencia.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/coerencia.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/coerencia.cpython-314.pyc
deleted file mode 100644
index 6a20d0fa..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/coerencia.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_in.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_in.cpython-313.pyc
deleted file mode 100644
index 6365ac61..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_in.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_in.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_in.cpython-314.pyc
deleted file mode 100644
index 3481c088..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_in.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-313.pyc
deleted file mode 100644
index 99d75e45..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-313.pyc.128272546232176 b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-313.pyc.128272546232176
deleted file mode 100644
index e69de29b..00000000
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-314.pyc
deleted file mode 100644
index 3974ac0f..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/dlex_out.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fallback.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fallback.cpython-313.pyc
deleted file mode 100644
index d3904bcf..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fallback.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fallback.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fallback.cpython-314.pyc
deleted file mode 100644
index 42746422..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fallback.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fraseologia.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fraseologia.cpython-313.pyc
deleted file mode 100644
index 4521f683..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fraseologia.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fraseologia.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fraseologia.cpython-314.pyc
deleted file mode 100644
index efcf677c..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/fraseologia.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/out_of_scope.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/out_of_scope.cpython-313.pyc
deleted file mode 100644
index 752de0e6..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/out_of_scope.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/out_of_scope.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/out_of_scope.cpython-314.pyc
deleted file mode 100644
index 32c3c9b4..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/out_of_scope.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/pinj.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/pinj.cpython-313.pyc
deleted file mode 100644
index db480d7d..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/pinj.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/pinj.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/pinj.cpython-314.pyc
deleted file mode 100644
index 5eebc604..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/pinj.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ragsec.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ragsec.cpython-313.pyc
deleted file mode 100644
index 5f4023bd..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ragsec.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ragsec.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ragsec.cpython-314.pyc
deleted file mode 100644
index e96207b2..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/ragsec.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/revprec.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/revprec.cpython-313.pyc
deleted file mode 100644
index ff9d2d5b..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/revprec.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/revprec.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/revprec.cpython-314.pyc
deleted file mode 100644
index e13b37ad..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/revprec.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/safe_out.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/safe_out.cpython-313.pyc
deleted file mode 100644
index 2774d2dd..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/safe_out.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/tox.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/tox.cpython-313.pyc
deleted file mode 100644
index 9212d475..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/tox.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/tox.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/tox.cpython-314.pyc
deleted file mode 100644
index 5d569726..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/tox.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/toxicidade_output.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/toxicidade_output.cpython-313.pyc
deleted file mode 100644
index baf476b1..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/toxicidade_output.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/toxicidade_output.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/toxicidade_output.cpython-314.pyc
deleted file mode 100644
index 451b2728..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/__pycache__/toxicidade_output.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 81b6a1f9..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/supervision_template.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/supervision_template.cpython-313.pyc
deleted file mode 100644
index 8cf6db9c..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/supervision_template.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/tts_rules.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/tts_rules.cpython-313.pyc
deleted file mode 100644
index 99288c8a..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/prompts/shared/__pycache__/tts_rules.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 8934ee8e..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 1726df73..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/alcada.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/alcada.cpython-313.pyc
deleted file mode 100644
index a1d01dac..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/alcada.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/alcada.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/alcada.cpython-314.pyc
deleted file mode 100644
index 0e6fb0c9..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/alcada.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/anatel.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/anatel.cpython-313.pyc
deleted file mode 100644
index 24be80fa..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/anatel.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/anatel.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/anatel.cpython-314.pyc
deleted file mode 100644
index cd8b0c9e..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/anatel.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/confirmation.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/confirmation.cpython-313.pyc
deleted file mode 100644
index 6924bce5..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/confirmation.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/confirmation.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/confirmation.cpython-314.pyc
deleted file mode 100644
index 398e18a0..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/confirmation.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_in.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_in.cpython-313.pyc
deleted file mode 100644
index 27537fb7..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_in.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_in.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_in.cpython-314.pyc
deleted file mode 100644
index 3c349030..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_in.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_out.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_out.cpython-313.pyc
deleted file mode 100644
index 77453b42..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_out.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_out.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_out.cpython-314.pyc
deleted file mode 100644
index 34bb605e..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/dlex_out.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/ragsec.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/ragsec.cpython-313.pyc
deleted file mode 100644
index 9194807b..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/ragsec.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/ragsec.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/ragsec.cpython-314.pyc
deleted file mode 100644
index 1da544c4..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/ragsec.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/revprec.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/revprec.cpython-313.pyc
deleted file mode 100644
index a53d2027..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/revprec.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/revprec.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/revprec.cpython-314.pyc
deleted file mode 100644
index 807ecfeb..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/revprec.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/tox.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/tox.cpython-313.pyc
deleted file mode 100644
index 019c89a3..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/tox.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/tox.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/tox.cpython-314.pyc
deleted file mode 100644
index 00de5433..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/__pycache__/tox.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index da950c01..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/correspondencia_item.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/correspondencia_item.cpython-313.pyc
deleted file mode 100644
index d6a00dc1..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/correspondencia_item.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/groundedness.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/groundedness.cpython-313.pyc
deleted file mode 100644
index 1308c952..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/groundedness.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/intencao_cancelar.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/intencao_cancelar.cpython-313.pyc
deleted file mode 100644
index db9779ed..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/intencao_cancelar.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/quantidade_coerente.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/quantidade_coerente.cpython-313.pyc
deleted file mode 100644
index 6d3357e4..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/quantidade_coerente.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/servico_correto.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/servico_correto.cpython-313.pyc
deleted file mode 100644
index fbe5429a..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/servico_correto.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/verbalizacao_prematura.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/verbalizacao_prematura.cpython-313.pyc
deleted file mode 100644
index f0cbbe33..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rails/supervision/__pycache__/verbalizacao_prematura.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 5f3c4ad9..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 29d0b959..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/alcada.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/alcada.cpython-313.pyc
deleted file mode 100644
index e22e83be..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/alcada.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/alcada.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/alcada.cpython-314.pyc
deleted file mode 100644
index 77f59381..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/alcada.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/oos_blocklist.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/oos_blocklist.cpython-313.pyc
deleted file mode 100644
index a8d83f4e..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/oos_blocklist.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/pinj_patterns.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/pinj_patterns.cpython-313.pyc
deleted file mode 100644
index 74c84ca1..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/pinj_patterns.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/pinj_patterns.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/pinj_patterns.cpython-314.pyc
deleted file mode 100644
index 553ba623..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/pinj_patterns.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/tox_blocklist.cpython-313.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/tox_blocklist.cpython-313.pyc
deleted file mode 100644
index 45c61b4d..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/tox_blocklist.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/tox_blocklist.cpython-314.pyc b/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/tox_blocklist.cpython-314.pyc
deleted file mode 100644
index 0e597824..00000000
Binary files a/libs/agent_framework/src/agent_framework/guardrails/calibrated/rules/__pycache__/tox_blocklist.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/identity/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/identity/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index bd9109ad..00000000
Binary files a/libs/agent_framework/src/agent_framework/identity/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/identity/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/identity/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 94d0a627..00000000
Binary files a/libs/agent_framework/src/agent_framework/identity/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/identity/__pycache__/mcp_mapper.cpython-313.pyc b/libs/agent_framework/src/agent_framework/identity/__pycache__/mcp_mapper.cpython-313.pyc
deleted file mode 100644
index bd8769c3..00000000
Binary files a/libs/agent_framework/src/agent_framework/identity/__pycache__/mcp_mapper.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/identity/__pycache__/mcp_mapper.cpython-314.pyc b/libs/agent_framework/src/agent_framework/identity/__pycache__/mcp_mapper.cpython-314.pyc
deleted file mode 100644
index 01486b5c..00000000
Binary files a/libs/agent_framework/src/agent_framework/identity/__pycache__/mcp_mapper.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/identity/__pycache__/models.cpython-313.pyc b/libs/agent_framework/src/agent_framework/identity/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index e487e49a..00000000
Binary files a/libs/agent_framework/src/agent_framework/identity/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/identity/__pycache__/models.cpython-314.pyc b/libs/agent_framework/src/agent_framework/identity/__pycache__/models.cpython-314.pyc
deleted file mode 100644
index 42bb4a31..00000000
Binary files a/libs/agent_framework/src/agent_framework/identity/__pycache__/models.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/identity/__pycache__/resolver.cpython-313.pyc b/libs/agent_framework/src/agent_framework/identity/__pycache__/resolver.cpython-313.pyc
deleted file mode 100644
index 5fade9b9..00000000
Binary files a/libs/agent_framework/src/agent_framework/identity/__pycache__/resolver.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/identity/__pycache__/resolver.cpython-314.pyc b/libs/agent_framework/src/agent_framework/identity/__pycache__/resolver.cpython-314.pyc
deleted file mode 100644
index 33d85369..00000000
Binary files a/libs/agent_framework/src/agent_framework/identity/__pycache__/resolver.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 0e772978..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 8d81487b..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/__pycache__/judge.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/__pycache__/judge.cpython-313.pyc
deleted file mode 100644
index fbf09e6b..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/__pycache__/judge.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/__pycache__/judge.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/__pycache__/judge.cpython-314.pyc
deleted file mode 100644
index 7a77062d..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/__pycache__/judge.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e973635b..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index cd289340..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/_compat.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/_compat.cpython-313.pyc
deleted file mode 100644
index f430abb6..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/_compat.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/llm_client.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/llm_client.cpython-313.pyc
deleted file mode 100644
index dd4cde5e..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/llm_client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/llm_client.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/llm_client.cpython-314.pyc
deleted file mode 100644
index b1a58d00..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/llm_client.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/models.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index 8a144360..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 349e8519..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 524d2fa8..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/aluc.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/aluc.cpython-313.pyc
deleted file mode 100644
index 3fbf3a3d..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/aluc.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/aluc.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/aluc.cpython-314.pyc
deleted file mode 100644
index d4fa79eb..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/aluc.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/csi.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/csi.cpython-313.pyc
deleted file mode 100644
index 05751df0..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/csi.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/csi.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/csi.cpython-314.pyc
deleted file mode 100644
index f7caec67..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/csi.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/fallback.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/fallback.cpython-313.pyc
deleted file mode 100644
index 6064ff5d..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/fallback.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/fallback.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/fallback.cpython-314.pyc
deleted file mode 100644
index 5225c547..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/fallback.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/rqlt.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/rqlt.cpython-313.pyc
deleted file mode 100644
index 8689c1c6..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/rqlt.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/rqlt.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/rqlt.cpython-314.pyc
deleted file mode 100644
index d37df005..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/rqlt.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/vctn.cpython-313.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/vctn.cpython-313.pyc
deleted file mode 100644
index 66c3634f..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/vctn.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/vctn.cpython-314.pyc b/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/vctn.cpython-314.pyc
deleted file mode 100644
index 82d78778..00000000
Binary files a/libs/agent_framework/src/agent_framework/judges/calibrated/prompts/__pycache__/vctn.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index ea7723da..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 92b06624..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/base.cpython-313.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/base.cpython-313.pyc
deleted file mode 100644
index 7131a5ee..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/base.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/base.cpython-314.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/base.cpython-314.pyc
deleted file mode 100644
index 612655a4..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/base.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/profile_resolver.cpython-313.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/profile_resolver.cpython-313.pyc
deleted file mode 100644
index b3c47f9c..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/profile_resolver.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/profile_resolver.cpython-314.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/profile_resolver.cpython-314.pyc
deleted file mode 100644
index 763301ff..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/profile_resolver.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/providers.cpython-313.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/providers.cpython-313.pyc
deleted file mode 100644
index c9068838..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/providers.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/providers.cpython-314.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/providers.cpython-314.pyc
deleted file mode 100644
index 3b8a7878..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/providers.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/structured_output.cpython-313.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/structured_output.cpython-313.pyc
deleted file mode 100644
index 1e19fa1e..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/structured_output.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/types.cpython-313.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/types.cpython-313.pyc
deleted file mode 100644
index cea65d3d..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/types.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/llm/__pycache__/types.cpython-314.pyc b/libs/agent_framework/src/agent_framework/llm/__pycache__/types.cpython-314.pyc
deleted file mode 100644
index 6ab0fe25..00000000
Binary files a/libs/agent_framework/src/agent_framework/llm/__pycache__/types.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 6837d85c..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index b9ca1a86..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/client.cpython-313.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/client.cpython-313.pyc
deleted file mode 100644
index f173a5ba..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/client.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/client.cpython-314.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/client.cpython-314.pyc
deleted file mode 100644
index a28d6d05..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/client.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/models.cpython-313.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index 9147dd2e..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/models.cpython-314.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/models.cpython-314.pyc
deleted file mode 100644
index dd643d26..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/models.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/registry.cpython-313.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/registry.cpython-313.pyc
deleted file mode 100644
index 669e72b3..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/registry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/registry.cpython-314.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/registry.cpython-314.pyc
deleted file mode 100644
index 9bd592a5..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/registry.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_policy.cpython-313.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_policy.cpython-313.pyc
deleted file mode 100644
index 8c65792a..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_policy.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_policy.cpython-314.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_policy.cpython-314.pyc
deleted file mode 100644
index 861d005a..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_policy.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_router.cpython-313.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_router.cpython-313.pyc
deleted file mode 100644
index a2cdd857..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_router.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_router.cpython-314.pyc b/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_router.cpython-314.pyc
deleted file mode 100644
index ca2966a5..00000000
Binary files a/libs/agent_framework/src/agent_framework/mcp/__pycache__/tool_router.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 658bd859..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index cf4b7753..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_extractor.cpython-313.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_extractor.cpython-313.pyc
deleted file mode 100644
index c71b6252..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_extractor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_extractor.cpython-314.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_extractor.cpython-314.pyc
deleted file mode 100644
index 0346f895..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_extractor.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_memory.cpython-313.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_memory.cpython-313.pyc
deleted file mode 100644
index 0441f745..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_memory.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_memory.cpython-314.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_memory.cpython-314.pyc
deleted file mode 100644
index 828229ca..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_memory.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_models.cpython-313.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_models.cpython-313.pyc
deleted file mode 100644
index b11c0204..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_models.cpython-314.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_models.cpython-314.pyc
deleted file mode 100644
index 4d8e11a9..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_models.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_store.cpython-313.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_store.cpython-313.pyc
deleted file mode 100644
index 0982f8cb..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_store.cpython-314.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_store.cpython-314.pyc
deleted file mode 100644
index c8ab6e0d..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/long_term_store.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/message_history.cpython-313.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/message_history.cpython-313.pyc
deleted file mode 100644
index 91e9e279..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/message_history.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/message_history.cpython-314.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/message_history.cpython-314.pyc
deleted file mode 100644
index d5f245cb..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/message_history.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_memory.cpython-313.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_memory.cpython-313.pyc
deleted file mode 100644
index a3fa8054..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_memory.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_memory.cpython-314.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_memory.cpython-314.pyc
deleted file mode 100644
index 046b1d97..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_memory.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_store.cpython-313.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_store.cpython-313.pyc
deleted file mode 100644
index e70f0ede..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_store.cpython-314.pyc b/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_store.cpython-314.pyc
deleted file mode 100644
index 8e8c46b6..00000000
Binary files a/libs/agent_framework/src/agent_framework/memory/__pycache__/summary_store.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/models/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/models/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 87646498..00000000
Binary files a/libs/agent_framework/src/agent_framework/models/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/models/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/models/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 158dc319..00000000
Binary files a/libs/agent_framework/src/agent_framework/models/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/models/__pycache__/identity.cpython-313.pyc b/libs/agent_framework/src/agent_framework/models/__pycache__/identity.cpython-313.pyc
deleted file mode 100644
index c37e1efa..00000000
Binary files a/libs/agent_framework/src/agent_framework/models/__pycache__/identity.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/models/__pycache__/identity.cpython-314.pyc b/libs/agent_framework/src/agent_framework/models/__pycache__/identity.cpython-314.pyc
deleted file mode 100644
index 669b49e5..00000000
Binary files a/libs/agent_framework/src/agent_framework/models/__pycache__/identity.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/models/__pycache__/session.cpython-313.pyc b/libs/agent_framework/src/agent_framework/models/__pycache__/session.cpython-313.pyc
deleted file mode 100644
index e94ab292..00000000
Binary files a/libs/agent_framework/src/agent_framework/models/__pycache__/session.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/models/__pycache__/session.cpython-314.pyc b/libs/agent_framework/src/agent_framework/models/__pycache__/session.cpython-314.pyc
deleted file mode 100644
index 27631f27..00000000
Binary files a/libs/agent_framework/src/agent_framework/models/__pycache__/session.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 15633666..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 48009c3a..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/code_mapper.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/code_mapper.cpython-313.pyc
deleted file mode 100644
index 9b2dfe17..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/code_mapper.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/code_mapper.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/code_mapper.cpython-314.pyc
deleted file mode 100644
index 721e0f6f..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/code_mapper.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/context.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/context.cpython-313.pyc
deleted file mode 100644
index 94a0e261..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/context.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/context.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/context.cpython-314.pyc
deleted file mode 100644
index 283fa670..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/context.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/control_events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/control_events.cpython-313.pyc
deleted file mode 100644
index 42f45e68..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/control_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/decorators.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/decorators.cpython-313.pyc
deleted file mode 100644
index aa273b07..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/decorators.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/event_bus.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/event_bus.cpython-313.pyc
deleted file mode 100644
index b9567f3c..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/event_bus.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/event_bus.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/event_bus.cpython-314.pyc
deleted file mode 100644
index 38824de4..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/event_bus.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/grl_events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/grl_events.cpython-313.pyc
deleted file mode 100644
index aaeab242..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/grl_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/guardrail_events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/guardrail_events.cpython-313.pyc
deleted file mode 100644
index dee1bde7..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/guardrail_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/guardrail_events.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/guardrail_events.cpython-314.pyc
deleted file mode 100644
index 49ca9cdc..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/guardrail_events.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/ic_events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/ic_events.cpython-313.pyc
deleted file mode 100644
index bfb7a899..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/ic_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/ic_events.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/ic_events.cpython-314.pyc
deleted file mode 100644
index 054226b7..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/ic_events.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/informational_events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/informational_events.cpython-313.pyc
deleted file mode 100644
index 8295681d..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/informational_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/judge_events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/judge_events.cpython-313.pyc
deleted file mode 100644
index 74645fdf..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/judge_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/judge_events.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/judge_events.cpython-314.pyc
deleted file mode 100644
index c69dff5f..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/judge_events.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/langfuse_enterprise.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/langfuse_enterprise.cpython-313.pyc
deleted file mode 100644
index 228abc6d..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/langfuse_enterprise.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/langgraph_telemetry.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/langgraph_telemetry.cpython-313.pyc
deleted file mode 100644
index 12a17b67..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/langgraph_telemetry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/langgraph_telemetry.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/langgraph_telemetry.cpython-314.pyc
deleted file mode 100644
index a31f9204..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/langgraph_telemetry.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/llm_advisors.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/llm_advisors.cpython-313.pyc
deleted file mode 100644
index 1f4b4f15..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/llm_advisors.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/llm_advisors.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/llm_advisors.cpython-314.pyc
deleted file mode 100644
index 3ff69f78..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/llm_advisors.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_contract.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_contract.cpython-313.pyc
deleted file mode 100644
index 1ed06463..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_contract.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_contract.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_contract.cpython-314.pyc
deleted file mode 100644
index b42cb531..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_contract.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_events.cpython-313.pyc
deleted file mode 100644
index 3471004f..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_otel.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_otel.cpython-313.pyc
deleted file mode 100644
index 1e2b554c..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_otel.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_otel.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_otel.cpython-314.pyc
deleted file mode 100644
index e5208bbf..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/noc_otel.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/observer.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/observer.cpython-313.pyc
deleted file mode 100644
index 70e9f4d3..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/observer.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/observer.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/observer.cpython-314.pyc
deleted file mode 100644
index b6d9d520..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/observer.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/otel.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/otel.cpython-313.pyc
deleted file mode 100644
index 09163f85..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/otel.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/otel.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/otel.cpython-314.pyc
deleted file mode 100644
index c82d9a00..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/otel.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/streaming_events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/streaming_events.cpython-313.pyc
deleted file mode 100644
index edcda5b2..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/streaming_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/streaming_events.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/streaming_events.cpython-314.pyc
deleted file mode 100644
index 5024ce92..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/streaming_events.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/streaming_exporter.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/streaming_exporter.cpython-313.pyc
deleted file mode 100644
index a7df1984..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/streaming_exporter.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/telemetry.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/telemetry.cpython-313.pyc
deleted file mode 100644
index deb82cf1..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/telemetry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/telemetry.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/telemetry.cpython-314.pyc
deleted file mode 100644
index 328363c3..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/telemetry.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/tim_backoffice_contract.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/tim_backoffice_contract.cpython-313.pyc
deleted file mode 100644
index 1a5f3fc0..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/tim_backoffice_contract.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/token_cost.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/token_cost.cpython-313.pyc
deleted file mode 100644
index f1008fdb..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/token_cost.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/token_cost.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/token_cost.cpython-314.pyc
deleted file mode 100644
index 527e74dd..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/token_cost.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/workflow_events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/workflow_events.cpython-313.pyc
deleted file mode 100644
index 93dc35b0..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/workflow_events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/observability/__pycache__/workflow_events.cpython-314.pyc b/libs/agent_framework/src/agent_framework/observability/__pycache__/workflow_events.cpython-314.pyc
deleted file mode 100644
index e1b6ed0d..00000000
Binary files a/libs/agent_framework/src/agent_framework/observability/__pycache__/workflow_events.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/oci/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/oci/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index acd781af..00000000
Binary files a/libs/agent_framework/src/agent_framework/oci/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/oci/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/oci/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index a0dbad2e..00000000
Binary files a/libs/agent_framework/src/agent_framework/oci/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/oci/__pycache__/auth.cpython-313.pyc b/libs/agent_framework/src/agent_framework/oci/__pycache__/auth.cpython-313.pyc
deleted file mode 100644
index 2af4386c..00000000
Binary files a/libs/agent_framework/src/agent_framework/oci/__pycache__/auth.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/oci/__pycache__/auth.cpython-314.pyc b/libs/agent_framework/src/agent_framework/oci/__pycache__/auth.cpython-314.pyc
deleted file mode 100644
index 777bee6f..00000000
Binary files a/libs/agent_framework/src/agent_framework/oci/__pycache__/auth.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/persistence/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/persistence/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 364e0963..00000000
Binary files a/libs/agent_framework/src/agent_framework/persistence/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/persistence/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/persistence/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 9d1a06ec..00000000
Binary files a/libs/agent_framework/src/agent_framework/persistence/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/persistence/__pycache__/mongodb_store.cpython-313.pyc b/libs/agent_framework/src/agent_framework/persistence/__pycache__/mongodb_store.cpython-313.pyc
deleted file mode 100644
index 763cec20..00000000
Binary files a/libs/agent_framework/src/agent_framework/persistence/__pycache__/mongodb_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/persistence/__pycache__/oracle_store.cpython-313.pyc b/libs/agent_framework/src/agent_framework/persistence/__pycache__/oracle_store.cpython-313.pyc
deleted file mode 100644
index 0095c968..00000000
Binary files a/libs/agent_framework/src/agent_framework/persistence/__pycache__/oracle_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/persistence/__pycache__/oracle_store.cpython-314.pyc b/libs/agent_framework/src/agent_framework/persistence/__pycache__/oracle_store.cpython-314.pyc
deleted file mode 100644
index f0ca36fc..00000000
Binary files a/libs/agent_framework/src/agent_framework/persistence/__pycache__/oracle_store.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/persistence/__pycache__/sqlite_store.cpython-313.pyc b/libs/agent_framework/src/agent_framework/persistence/__pycache__/sqlite_store.cpython-313.pyc
deleted file mode 100644
index a0efd068..00000000
Binary files a/libs/agent_framework/src/agent_framework/persistence/__pycache__/sqlite_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/persistence/__pycache__/sqlite_store.cpython-314.pyc b/libs/agent_framework/src/agent_framework/persistence/__pycache__/sqlite_store.cpython-314.pyc
deleted file mode 100644
index af469be1..00000000
Binary files a/libs/agent_framework/src/agent_framework/persistence/__pycache__/sqlite_store.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/presentation/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 89c4493e..00000000
Binary files a/libs/agent_framework/src/agent_framework/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/presentation/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/presentation/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index fd21b0dc..00000000
Binary files a/libs/agent_framework/src/agent_framework/presentation/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/presentation/__pycache__/renderers.cpython-313.pyc b/libs/agent_framework/src/agent_framework/presentation/__pycache__/renderers.cpython-313.pyc
deleted file mode 100644
index c896e8ea..00000000
Binary files a/libs/agent_framework/src/agent_framework/presentation/__pycache__/renderers.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/presentation/__pycache__/renderers.cpython-314.pyc b/libs/agent_framework/src/agent_framework/presentation/__pycache__/renderers.cpython-314.pyc
deleted file mode 100644
index 5f59fa15..00000000
Binary files a/libs/agent_framework/src/agent_framework/presentation/__pycache__/renderers.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index ec312ff3..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index a672562d..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/embedding_provider.cpython-313.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/embedding_provider.cpython-313.pyc
deleted file mode 100644
index 0ff0750c..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/embedding_provider.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/embedding_provider.cpython-314.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/embedding_provider.cpython-314.pyc
deleted file mode 100644
index 64fed763..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/embedding_provider.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/graph_store.cpython-313.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/graph_store.cpython-313.pyc
deleted file mode 100644
index de313c88..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/graph_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/graph_store.cpython-314.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/graph_store.cpython-314.pyc
deleted file mode 100644
index de809b45..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/graph_store.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/ingest.cpython-313.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/ingest.cpython-313.pyc
deleted file mode 100644
index 0ea52795..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/ingest.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/ingest.cpython-314.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/ingest.cpython-314.pyc
deleted file mode 100644
index e2019397..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/ingest.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/kbdb_service.cpython-313.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/kbdb_service.cpython-313.pyc
deleted file mode 100644
index eaaa2b58..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/kbdb_service.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/kbdb_service.cpython-314.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/kbdb_service.cpython-314.pyc
deleted file mode 100644
index 36a91cdc..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/kbdb_service.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/rag_service.cpython-313.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/rag_service.cpython-313.pyc
deleted file mode 100644
index 142e1668..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/rag_service.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/rag_service.cpython-314.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/rag_service.cpython-314.pyc
deleted file mode 100644
index 60e42b2a..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/rag_service.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/vector_store.cpython-313.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/vector_store.cpython-313.pyc
deleted file mode 100644
index 2f1ba423..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/vector_store.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/__pycache__/vector_store.cpython-314.pyc b/libs/agent_framework/src/agent_framework/rag/__pycache__/vector_store.cpython-314.pyc
deleted file mode 100644
index 1d46a12a..00000000
Binary files a/libs/agent_framework/src/agent_framework/rag/__pycache__/vector_store.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/rag/kbdb_service.py b/libs/agent_framework/src/agent_framework/rag/kbdb_service.py
index e8422b24..568cdda6 100644
--- a/libs/agent_framework/src/agent_framework/rag/kbdb_service.py
+++ b/libs/agent_framework/src/agent_framework/rag/kbdb_service.py
@@ -85,6 +85,43 @@ class KbdbRagService:
finally:
conn.close()
+ @staticmethod
+ def _procedure_arguments(cur) -> list[dict[str, Any]]:
+ """Discover the installed facade signature instead of assuming bind types."""
+ cur.execute(
+ """
+ SELECT argument_name, position, in_out, data_type, overload
+ FROM all_arguments
+ WHERE package_name = 'PKG_KB_SERVING'
+ AND object_name = 'SEARCH_KNOWLEDGE_BASE'
+ AND data_level = 0
+ ORDER BY NVL(overload, '0'), sequence
+ """
+ )
+ rows = cur.fetchall()
+ if not rows:
+ return []
+ # Use the first visible overload. Each returned row describes one bind.
+ first_overload = rows[0][4]
+ return [
+ {
+ "name": str(row[0] or ""),
+ "position": int(row[1] or 0),
+ "in_out": str(row[2] or "IN").upper(),
+ "data_type": str(row[3] or "").upper(),
+ }
+ for row in rows
+ if row[4] == first_overload and int(row[1] or 0) > 0
+ ]
+
+ @staticmethod
+ def _out_var(cur, oracledb, data_type: str):
+ if data_type == "JSON" and hasattr(oracledb, "DB_TYPE_JSON"):
+ return cur.var(oracledb.DB_TYPE_JSON)
+ if data_type in {"CLOB", "NCLOB"} and hasattr(oracledb, "DB_TYPE_CLOB"):
+ return cur.var(oracledb.DB_TYPE_CLOB)
+ return cur.var(oracledb.DB_TYPE_VARCHAR, size=32767)
+
def _search_sync(self, query: str, k: int) -> dict[str, Any]:
import oracledb
metadata = self.settings.KBDB_METADATA_JSON
@@ -95,8 +132,13 @@ class KbdbRagService:
cur = conn.cursor()
if self.settings.KBDB_MIN_SCORE is not None:
cur.callproc("PKG_KB_SERVING.set_min_score", [float(self.settings.KBDB_MIN_SCORE)])
- out = cur.var(oracledb.DB_TYPE_JSON)
- cur.callproc("PKG_KB_SERVING.search_knowledge_base", [
+ signature = self._procedure_arguments(cur)
+ if not signature:
+ raise RuntimeError(
+ "Não foi possível descobrir a assinatura de "
+ "PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE em ALL_ARGUMENTS"
+ )
+ canonical_inputs = [
self.settings.KBDB_SEARCH_TYPE,
query,
int(k),
@@ -106,8 +148,58 @@ class KbdbRagService:
int(self.settings.KBDB_MAX_CROSS_REF_HOPS),
self.settings.KBDB_DOCUMENT_TYPE or None,
metadata or None,
- out,
- ])
+ bool(getattr(self.settings, "KBDB_IDENTIFY_DOCUMENT", True)),
+ bool(getattr(self.settings, "KBDB_STORE_QUERY", True)),
+ int(getattr(self.settings, "KBDB_IDENTIFY_TOP_N", 3)),
+ ]
+ named_inputs = {
+ "SEARCH_TYPE": self.settings.KBDB_SEARCH_TYPE,
+ "QUERY": query,
+ "QUERY_TEXT": query,
+ "QUESTION": query,
+ "TOP_K": int(k),
+ "K": int(k),
+ "NODE_EXPANSION": bool(self.settings.KBDB_NODE_EXPANSION),
+ "ENABLE_NODE_EXPANSION": bool(self.settings.KBDB_NODE_EXPANSION),
+ "NODE_MAX_RELATED": int(self.settings.KBDB_NODE_MAX_RELATED),
+ "MAX_RELATED_NODES": int(self.settings.KBDB_NODE_MAX_RELATED),
+ "GRAPH_CROSS_REF": bool(self.settings.KBDB_GRAPH_CROSS_REF),
+ "ENABLE_GRAPH_CROSS_REF": bool(self.settings.KBDB_GRAPH_CROSS_REF),
+ "MAX_CROSS_REF_HOPS": int(self.settings.KBDB_MAX_CROSS_REF_HOPS),
+ "DOCUMENT_TYPE": self.settings.KBDB_DOCUMENT_TYPE or None,
+ "METADATA_JSON": metadata or None,
+ "METADATA": metadata or None,
+ "IDENTIFY_DOCUMENT": bool(getattr(self.settings, "KBDB_IDENTIFY_DOCUMENT", True)),
+ "STORE_QUERY": bool(getattr(self.settings, "KBDB_STORE_QUERY", True)),
+ "IDENTIFY_TOP_N": int(getattr(self.settings, "KBDB_IDENTIFY_TOP_N", 3)),
+ }
+ input_index = 0
+ binds: list[Any] = []
+ out = None
+ for argument in signature:
+ if "OUT" in argument["in_out"]:
+ bind = self._out_var(cur, oracledb, argument["data_type"])
+ binds.append(bind)
+ out = bind
+ continue
+ if input_index >= len(canonical_inputs):
+ raise RuntimeError(
+ "Assinatura KBDB possui parâmetros de entrada não suportados: "
+ f"{[item['name'] for item in signature]}"
+ )
+ normalized_name = argument["name"].strip().upper()
+ if normalized_name.startswith("P_"):
+ normalized_name = normalized_name[2:]
+ value = named_inputs.get(normalized_name, canonical_inputs[input_index])
+ input_index += 1
+ if argument["data_type"] == "NUMBER" and isinstance(value, bool):
+ value = 1 if value else 0
+ elif argument["data_type"] in {"VARCHAR", "VARCHAR2", "CHAR", "NCHAR"} and isinstance(value, bool):
+ value = "true" if value else "false"
+ binds.append(value)
+ if out is None:
+ raise RuntimeError("Assinatura KBDB não possui parâmetro OUT visível")
+ cur.callproc("PKG_KB_SERVING.search_knowledge_base", binds)
value = _lob_value(out.getvalue())
if isinstance(value, str):
return json.loads(value)
diff --git a/libs/agent_framework/src/agent_framework/repositories/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/repositories/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 472278b0..00000000
Binary files a/libs/agent_framework/src/agent_framework/repositories/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/repositories/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/repositories/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index f5377bab..00000000
Binary files a/libs/agent_framework/src/agent_framework/repositories/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/repositories/__pycache__/session_repository.cpython-313.pyc b/libs/agent_framework/src/agent_framework/repositories/__pycache__/session_repository.cpython-313.pyc
deleted file mode 100644
index 312153fa..00000000
Binary files a/libs/agent_framework/src/agent_framework/repositories/__pycache__/session_repository.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/repositories/__pycache__/session_repository.cpython-314.pyc b/libs/agent_framework/src/agent_framework/repositories/__pycache__/session_repository.cpython-314.pyc
deleted file mode 100644
index dc5d5ec1..00000000
Binary files a/libs/agent_framework/src/agent_framework/repositories/__pycache__/session_repository.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 333011b8..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 4309a16d..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/config_loader.cpython-313.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/config_loader.cpython-313.pyc
deleted file mode 100644
index a75ba967..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/config_loader.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/config_loader.cpython-314.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/config_loader.cpython-314.pyc
deleted file mode 100644
index ffa86a58..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/config_loader.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/continuity.cpython-313.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/continuity.cpython-313.pyc
deleted file mode 100644
index 44f00e26..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/continuity.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/continuity.cpython-314.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/continuity.cpython-314.pyc
deleted file mode 100644
index 297d701c..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/continuity.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/enterprise_router.cpython-313.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/enterprise_router.cpython-313.pyc
deleted file mode 100644
index 572ecf90..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/enterprise_router.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/enterprise_router.cpython-314.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/enterprise_router.cpython-314.pyc
deleted file mode 100644
index eac189e4..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/enterprise_router.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/models.cpython-313.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index d8b32772..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/models.cpython-314.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/models.cpython-314.pyc
deleted file mode 100644
index 27a483b5..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/models.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/multi_intent.cpython-313.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/multi_intent.cpython-313.pyc
deleted file mode 100644
index 2419ff36..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/multi_intent.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/__pycache__/pending_topics.cpython-313.pyc b/libs/agent_framework/src/agent_framework/routing/__pycache__/pending_topics.cpython-313.pyc
deleted file mode 100644
index 932cd3a8..00000000
Binary files a/libs/agent_framework/src/agent_framework/routing/__pycache__/pending_topics.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/routing/multi_intent.py b/libs/agent_framework/src/agent_framework/routing/multi_intent.py
index b135326d..ed64cf8a 100644
--- a/libs/agent_framework/src/agent_framework/routing/multi_intent.py
+++ b/libs/agent_framework/src/agent_framework/routing/multi_intent.py
@@ -38,7 +38,7 @@ class MultiIntentPlanner:
Execution remains owned by the agent/workflow runtime.
"""
- _SPLIT = re.compile(r"\s*(?:,|;|\be\b|\bmas\b|\btamb[eé]m\b)\s*", re.I)
+ _SPLIT = re.compile(r"\s*(?:[.!?]+|,|;|\be\b|\bmas\b|\btamb[eé]m\b)\s*", re.I)
_CONFIRM_WITH_REMAINDER = re.compile(
r"^\s*(?:sim|s|pode|pode\s+sim|isso\s+mesmo|claro|ok|confirmo)\s*(?:,|;|\be\b)\s*(.+)$",
re.I,
diff --git a/libs/agent_framework/src/agent_framework/routing/pending_topics.py b/libs/agent_framework/src/agent_framework/routing/pending_topics.py
index 4a77f9ba..8996e88f 100644
--- a/libs/agent_framework/src/agent_framework/routing/pending_topics.py
+++ b/libs/agent_framework/src/agent_framework/routing/pending_topics.py
@@ -14,6 +14,7 @@ class PendingTopicDrain:
pending_topics: list[dict[str, Any]]
handled_topics: list[dict[str, Any]]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
async def drain_pending_topics(
@@ -30,6 +31,7 @@ async def drain_pending_topics(
remaining: list[dict[str, Any]] = []
handled = list(state.get("handled_topics") or [])
combined_mcp_results = list(state.get("mcp_results") or [])
+ combined_rag_results = list(state.get("rag_results") or [])
secondary_answers: list[str] = []
for topic in topics:
disposition = topic.get("disposition")
@@ -88,6 +90,20 @@ async def drain_pending_topics(
for evidence in (result or {}).get("mcp_results") or []:
if isinstance(evidence, dict) and evidence not in combined_mcp_results:
combined_mcp_results.append(evidence)
+ rag_metadata = (result or {}).get("rag")
+ rag_context = str((result or {}).get("rag_context") or "").strip()
+ if isinstance(rag_metadata, dict):
+ rag_evidence = {
+ "operation_id": topic.get("operation_id"),
+ "intent": topic.get("intent"),
+ "agent": topic.get("agent"),
+ "source_text": source_text,
+ "metadata": rag_metadata,
+ }
+ if rag_context:
+ rag_evidence["context"] = rag_context
+ if rag_evidence not in combined_rag_results:
+ combined_rag_results.append(rag_evidence)
secondary_answers.append(answer)
handled.append({**topic, "status": "completed"})
@@ -99,4 +115,6 @@ async def drain_pending_topics(
if unique:
secondary = "\n\n".join(unique)
candidate = f"{candidate.rstrip()}\n\n{secondary}".strip()
- return PendingTopicDrain(candidate, remaining, handled, combined_mcp_results)
+ return PendingTopicDrain(
+ candidate, remaining, handled, combined_mcp_results, combined_rag_results
+ )
diff --git a/libs/agent_framework/src/agent_framework/runtime/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/runtime/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 9bcad7f7..00000000
Binary files a/libs/agent_framework/src/agent_framework/runtime/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/runtime/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/runtime/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 6e59bce2..00000000
Binary files a/libs/agent_framework/src/agent_framework/runtime/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/runtime/__pycache__/agent_runtime.cpython-313.pyc b/libs/agent_framework/src/agent_framework/runtime/__pycache__/agent_runtime.cpython-313.pyc
deleted file mode 100644
index 053f4dc1..00000000
Binary files a/libs/agent_framework/src/agent_framework/runtime/__pycache__/agent_runtime.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/runtime/__pycache__/agent_runtime.cpython-314.pyc b/libs/agent_framework/src/agent_framework/runtime/__pycache__/agent_runtime.cpython-314.pyc
deleted file mode 100644
index 660e3228..00000000
Binary files a/libs/agent_framework/src/agent_framework/runtime/__pycache__/agent_runtime.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/runtime/__pycache__/transaction_input.cpython-313.pyc b/libs/agent_framework/src/agent_framework/runtime/__pycache__/transaction_input.cpython-313.pyc
deleted file mode 100644
index 4ca250eb..00000000
Binary files a/libs/agent_framework/src/agent_framework/runtime/__pycache__/transaction_input.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/runtime/__pycache__/transaction_parameters.cpython-313.pyc b/libs/agent_framework/src/agent_framework/runtime/__pycache__/transaction_parameters.cpython-313.pyc
deleted file mode 100644
index d95c6ede..00000000
Binary files a/libs/agent_framework/src/agent_framework/runtime/__pycache__/transaction_parameters.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/runtime/__pycache__/transaction_parameters.cpython-314.pyc b/libs/agent_framework/src/agent_framework/runtime/__pycache__/transaction_parameters.cpython-314.pyc
deleted file mode 100644
index ddee35ac..00000000
Binary files a/libs/agent_framework/src/agent_framework/runtime/__pycache__/transaction_parameters.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/security/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/security/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index e4e83433..00000000
Binary files a/libs/agent_framework/src/agent_framework/security/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/security/__pycache__/authentication.cpython-313.pyc b/libs/agent_framework/src/agent_framework/security/__pycache__/authentication.cpython-313.pyc
deleted file mode 100644
index b09249eb..00000000
Binary files a/libs/agent_framework/src/agent_framework/security/__pycache__/authentication.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/security/__pycache__/factory.cpython-313.pyc b/libs/agent_framework/src/agent_framework/security/__pycache__/factory.cpython-313.pyc
deleted file mode 100644
index 615bb375..00000000
Binary files a/libs/agent_framework/src/agent_framework/security/__pycache__/factory.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/security/__pycache__/installer.cpython-313.pyc b/libs/agent_framework/src/agent_framework/security/__pycache__/installer.cpython-313.pyc
deleted file mode 100644
index aaed83ce..00000000
Binary files a/libs/agent_framework/src/agent_framework/security/__pycache__/installer.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/security/__pycache__/middleware.cpython-313.pyc b/libs/agent_framework/src/agent_framework/security/__pycache__/middleware.cpython-313.pyc
deleted file mode 100644
index de845c0e..00000000
Binary files a/libs/agent_framework/src/agent_framework/security/__pycache__/middleware.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/sse/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/sse/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 2c4f45ab..00000000
Binary files a/libs/agent_framework/src/agent_framework/sse/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/sse/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/sse/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 9ac09c33..00000000
Binary files a/libs/agent_framework/src/agent_framework/sse/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/sse/__pycache__/events.cpython-313.pyc b/libs/agent_framework/src/agent_framework/sse/__pycache__/events.cpython-313.pyc
deleted file mode 100644
index 52885970..00000000
Binary files a/libs/agent_framework/src/agent_framework/sse/__pycache__/events.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/sse/__pycache__/events.cpython-314.pyc b/libs/agent_framework/src/agent_framework/sse/__pycache__/events.cpython-314.pyc
deleted file mode 100644
index b77449d8..00000000
Binary files a/libs/agent_framework/src/agent_framework/sse/__pycache__/events.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/supervisor/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 094a1101..00000000
Binary files a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/supervisor/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 60c412db..00000000
Binary files a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/router_supervisor.cpython-313.pyc b/libs/agent_framework/src/agent_framework/supervisor/__pycache__/router_supervisor.cpython-313.pyc
deleted file mode 100644
index 3359cc74..00000000
Binary files a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/router_supervisor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/supervisor.cpython-313.pyc b/libs/agent_framework/src/agent_framework/supervisor/__pycache__/supervisor.cpython-313.pyc
deleted file mode 100644
index af02e699..00000000
Binary files a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/supervisor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/supervisor.cpython-314.pyc b/libs/agent_framework/src/agent_framework/supervisor/__pycache__/supervisor.cpython-314.pyc
deleted file mode 100644
index 13df78c2..00000000
Binary files a/libs/agent_framework/src/agent_framework/supervisor/__pycache__/supervisor.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/__init__.cpython-313.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index b3df8ea0..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/__init__.cpython-314.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index c074f711..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/graph.cpython-313.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/graph.cpython-313.pyc
deleted file mode 100644
index 1b0a21b6..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/graph.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/graph.cpython-314.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/graph.cpython-314.pyc
deleted file mode 100644
index 075d8fe1..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/graph.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/input_contract.cpython-313.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/input_contract.cpython-313.pyc
deleted file mode 100644
index 0dac1f25..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/input_contract.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/models.cpython-313.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/models.cpython-313.pyc
deleted file mode 100644
index c08980d5..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/models.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/models.cpython-314.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/models.cpython-314.pyc
deleted file mode 100644
index 3b48e642..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/models.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/registry.cpython-313.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/registry.cpython-313.pyc
deleted file mode 100644
index 3ad59d88..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/registry.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/registry.cpython-314.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/registry.cpython-314.pyc
deleted file mode 100644
index 55efa0a4..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/registry.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/repository.cpython-313.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/repository.cpython-313.pyc
deleted file mode 100644
index b4b0d991..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/repository.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/repository.cpython-314.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/repository.cpython-314.pyc
deleted file mode 100644
index 8179873d..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/repository.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/runtime.cpython-313.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index 7b4574f8..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/runtime.cpython-314.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/runtime.cpython-314.pyc
deleted file mode 100644
index d9a32d43..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/runtime.cpython-314.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/tool_executor.cpython-313.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/tool_executor.cpython-313.pyc
deleted file mode 100644
index 69526bfe..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/tool_executor.cpython-313.pyc and /dev/null differ
diff --git a/libs/agent_framework/src/agent_framework/workflows/__pycache__/tool_executor.cpython-314.pyc b/libs/agent_framework/src/agent_framework/workflows/__pycache__/tool_executor.cpython-314.pyc
deleted file mode 100644
index ef439ebe..00000000
Binary files a/libs/agent_framework/src/agent_framework/workflows/__pycache__/tool_executor.cpython-314.pyc and /dev/null differ
diff --git a/mcp/servers/retail_mcp_server/__pycache__/main.cpython-313.pyc b/mcp/servers/retail_mcp_server/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index 222be2fd..00000000
Binary files a/mcp/servers/retail_mcp_server/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/mcp/servers/retail_mcp_server/__pycache__/main.cpython-314.pyc b/mcp/servers/retail_mcp_server/__pycache__/main.cpython-314.pyc
deleted file mode 100644
index 300cc321..00000000
Binary files a/mcp/servers/retail_mcp_server/__pycache__/main.cpython-314.pyc and /dev/null differ
diff --git a/mcp/servers/telecom_mcp_server/__pycache__/main.cpython-313.pyc b/mcp/servers/telecom_mcp_server/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index e1fdcb0e..00000000
Binary files a/mcp/servers/telecom_mcp_server/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/mcp/servers/telecom_mcp_server/__pycache__/main.cpython-314.pyc b/mcp/servers/telecom_mcp_server/__pycache__/main.cpython-314.pyc
deleted file mode 100644
index f8707172..00000000
Binary files a/mcp/servers/telecom_mcp_server/__pycache__/main.cpython-314.pyc and /dev/null differ
diff --git a/scripts/sync_pending_topics_to_tuning.py b/scripts/sync_pending_topics_to_tuning.py
index c91eaf21..26158899 100644
--- a/scripts/sync_pending_topics_to_tuning.py
+++ b/scripts/sync_pending_topics_to_tuning.py
@@ -13,16 +13,23 @@ def replace_once(text: str, old: str, new: str, path: Path) -> str:
def update_state(path: Path) -> None:
text = path.read_text(encoding="utf-8")
- if " pending_topics: list[dict[str, Any]]" in text:
- return
- text = replace_once(
- text,
- " supervisor_results: list[dict[str, Any]]\n",
- " supervisor_results: list[dict[str, Any]]\n"
- " pending_topics: list[dict[str, Any]]\n"
- " handled_topics: list[dict[str, Any]]\n",
- path,
- )
+ if " pending_topics: list[dict[str, Any]]" not in text:
+ text = replace_once(
+ text,
+ " supervisor_results: list[dict[str, Any]]\n",
+ " supervisor_results: list[dict[str, Any]]\n"
+ " pending_topics: list[dict[str, Any]]\n"
+ " handled_topics: list[dict[str, Any]]\n",
+ path,
+ )
+ if " rag_results: list[dict[str, Any]]" not in text:
+ text = replace_once(
+ text,
+ " mcp_results: list[dict[str, Any]]\n",
+ " mcp_results: list[dict[str, Any]]\n"
+ " rag_results: list[dict[str, Any]]\n",
+ path,
+ )
path.write_text(text, encoding="utf-8")
@@ -121,17 +128,119 @@ def update_guardrail_evidence_context(path: Path) -> None:
path.write_text(text, encoding="utf-8")
+def update_rag_propagation(path: Path) -> None:
+ text = path.read_text(encoding="utf-8")
+ mcp_line = ' "mcp_results": drained.mcp_results,\n'
+ rag_line = mcp_line + ' "rag_results": drained.rag_results,\n'
+ if rag_line not in text:
+ if mcp_line not in text:
+ raise RuntimeError(f"Marcador MCP não encontrado em {path}")
+ text = text.replace(mcp_line, rag_line)
+ text = text.replace(
+ ' "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),\n',
+ ' "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),\n',
+ )
+ marker = ' current_evidence = list(state.get("mcp_results", []) or [])\n'
+ addition = marker + ' current_evidence.extend(state.get("rag_results", []) or [])\n'
+ if marker in text and addition not in text:
+ text = text.replace(marker, addition, 1)
+ path.write_text(text, encoding="utf-8")
+
+
+def update_rag_agents(path: Path) -> None:
+ text = path.read_text(encoding="utf-8")
+ marker = ' "rag": rag_metadata,\n'
+ if marker not in text or ' "rag_results": [{\n' in text:
+ return
+ addition = marker + (
+ ' "rag_context": rag_context,\n'
+ ' "rag_results": [{\n'
+ ' "intent": state.get("intent"),\n'
+ ' "agent": self.name,\n'
+ ' "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),\n'
+ ' "metadata": rag_metadata,\n'
+ ' **({"context": rag_context} if rag_context else {}),\n'
+ ' }],\n'
+ )
+ path.write_text(text.replace(marker, addition, 1), encoding="utf-8")
+
+
+def update_rag_http_response(path: Path) -> None:
+ text = path.read_text(encoding="utf-8")
+ marker = ' "mcp_results": result.get("mcp_results"),\n'
+ addition = marker + ' "rag_results": result.get("rag_results"),\n'
+ if addition not in text:
+ text = replace_once(text, marker, addition, path)
+ path.write_text(text, encoding="utf-8")
+
+
+def update_rag_telemetry(path: Path) -> None:
+ text = path.read_text(encoding="utf-8")
+ marker = ' "mcp_results": state.get("mcp_results", []),\n'
+ addition = marker + ' "rag_results": state.get("rag_results", []),\n'
+ if addition not in text:
+ text = replace_once(text, marker, addition, path)
+ path.write_text(text, encoding="utf-8")
+
+
+def update_rag_env(path: Path) -> None:
+ text = path.read_text(encoding="utf-8")
+ if "KBDB_IDENTIFY_DOCUMENT=" in text:
+ return
+ marker = "RAG_FILE_GLOBS=*.md,*.txt,*.yaml,*.yml,*.json\n"
+ settings_block = """
+# RAG / KBDB
+# RAG provider: standard (local) ou kbdb (PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE)
+RAG_PROVIDER=standard
+# KBDB usa credenciais próprias; não há fallback para ADB_*.
+KBDB_DB_USER=
+KBDB_DB_PASSWORD=
+KBDB_DB_DSN=
+KBDB_DB_WALLET_LOCATION=
+KBDB_DB_WALLET_PASSWORD=
+KBDB_SEARCH_TYPE=hybrid
+KBDB_NODE_EXPANSION=true
+KBDB_NODE_MAX_RELATED=8
+KBDB_GRAPH_CROSS_REF=false
+KBDB_MAX_CROSS_REF_HOPS=1
+KBDB_DOCUMENT_TYPE=customer_safe
+KBDB_METADATA_JSON=
+KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
+RAG_GROUNDED_ONLY=false
+KBDB_GROUNDED_ONLY=true
+"""
+ if marker in text:
+ text = text.replace(marker, marker + "\n" + settings_block, 1)
+ else:
+ text = text.rstrip() + "\n\n" + settings_block
+ path.write_text(text, encoding="utf-8")
+
+
def main() -> None:
tuning = ROOT / "Tuning-Performance"
states = sorted(tuning.glob("**/app/state.py"))
graphs = sorted(tuning.glob("**/app/workflows/agent_graph.py"))
+ agents = sorted(tuning.glob("**/app/agents/*.py"))
+ mains = sorted(tuning.glob("**/app/main.py"))
+ envs = sorted(tuning.glob("**/.env.example"))
for path in states:
update_state(path)
for path in graphs:
update_graph(path)
update_evidence_propagation(path)
update_guardrail_evidence_context(path)
- print(f"pending_topics sincronizado: {len(states)} states, {len(graphs)} graphs")
+ update_rag_propagation(path)
+ update_rag_telemetry(path)
+ for path in agents:
+ update_rag_agents(path)
+ for path in mains:
+ update_rag_http_response(path)
+ for path in envs:
+ update_rag_env(path)
+ print(f"pending_topics/RAG sincronizado: {len(states)} states, {len(graphs)} graphs, {len(agents)} agents, {len(mains)} APIs, {len(envs)} envs")
if __name__ == "__main__":
diff --git a/templates/agent_template_backend/.env.example b/templates/agent_template_backend/.env.example
index 16527cf8..dfca44a0 100644
--- a/templates/agent_template_backend/.env.example
+++ b/templates/agent_template_backend/.env.example
@@ -230,6 +230,9 @@ KBDB_MAX_CROSS_REF_HOPS=1
KBDB_DOCUMENT_TYPE=customer_safe
KBDB_METADATA_JSON=
KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
# RAG grounding
RAG_GROUNDED_ONLY=false
diff --git a/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc b/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index f6a2b79f..00000000
Binary files a/templates/agent_template_backend/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/__pycache__/__init__.cpython-314.pyc b/templates/agent_template_backend/app/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 4f344901..00000000
Binary files a/templates/agent_template_backend/app/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc b/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index 08f8cb6c..00000000
Binary files a/templates/agent_template_backend/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/__pycache__/main.cpython-314.pyc b/templates/agent_template_backend/app/__pycache__/main.cpython-314.pyc
deleted file mode 100644
index 15378ed3..00000000
Binary files a/templates/agent_template_backend/app/__pycache__/main.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index 8d7093df..00000000
Binary files a/templates/agent_template_backend/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc b/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index 31cdc3a5..00000000
Binary files a/templates/agent_template_backend/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/__pycache__/state.cpython-314.pyc b/templates/agent_template_backend/app/__pycache__/state.cpython-314.pyc
deleted file mode 100644
index 642a1e4d..00000000
Binary files a/templates/agent_template_backend/app/__pycache__/state.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc b/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index 4e27b205..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-314.pyc b/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-314.pyc
deleted file mode 100644
index 12a86967..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/billing_agent.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc b/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index 803273eb..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-314.pyc b/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-314.pyc
deleted file mode 100644
index 383d9630..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/orders_agent.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc b/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index 104fb209..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-314.pyc b/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-314.pyc
deleted file mode 100644
index 0f0b10e4..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/product_agent.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc b/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index eda48f56..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-314.pyc b/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-314.pyc
deleted file mode 100644
index df4ccb96..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/prompting.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc b/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index df7bf154..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-314.pyc b/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-314.pyc
deleted file mode 100644
index 9545b887..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/runtime.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc b/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index 7fbc59f0..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-314.pyc b/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-314.pyc
deleted file mode 100644
index 54dbc3d0..00000000
Binary files a/templates/agent_template_backend/app/agents/__pycache__/support_agent.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/agents/billing_agent.py b/templates/agent_template_backend/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/templates/agent_template_backend/app/agents/billing_agent.py
+++ b/templates/agent_template_backend/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/templates/agent_template_backend/app/agents/orders_agent.py b/templates/agent_template_backend/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/templates/agent_template_backend/app/agents/orders_agent.py
+++ b/templates/agent_template_backend/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/templates/agent_template_backend/app/agents/product_agent.py b/templates/agent_template_backend/app/agents/product_agent.py
index 113bd8e9..cc65c705 100644
--- a/templates/agent_template_backend/app/agents/product_agent.py
+++ b/templates/agent_template_backend/app/agents/product_agent.py
@@ -123,6 +123,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/templates/agent_template_backend/app/agents/support_agent.py b/templates/agent_template_backend/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/templates/agent_template_backend/app/agents/support_agent.py
+++ b/templates/agent_template_backend/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc b/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index a6540ec7..00000000
Binary files a/templates/agent_template_backend/app/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc b/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc
deleted file mode 100644
index 8fc575e9..00000000
Binary files a/templates/agent_template_backend/app/examples/__pycache__/grl_examples.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc b/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc
deleted file mode 100644
index 8253000a..00000000
Binary files a/templates/agent_template_backend/app/examples/__pycache__/ic_examples.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc b/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc
deleted file mode 100644
index 41a72082..00000000
Binary files a/templates/agent_template_backend/app/examples/__pycache__/mcp_examples.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc b/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc
deleted file mode 100644
index a8f3f887..00000000
Binary files a/templates/agent_template_backend/app/examples/__pycache__/noc_examples.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc b/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc
deleted file mode 100644
index 3b7d6a83..00000000
Binary files a/templates/agent_template_backend/app/examples/__pycache__/observer_examples.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/main.py b/templates/agent_template_backend/app/main.py
index 86530a36..891f0e06 100644
--- a/templates/agent_template_backend/app/main.py
+++ b/templates/agent_template_backend/app/main.py
@@ -460,6 +460,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"transaction_evidence": result.get("relevant_transaction_evidence", []),
"transaction_pre_validation": result.get("transaction_pre_validation"),
"business_context": business_context.model_dump(),
diff --git a/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc b/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 9144c5b2..00000000
Binary files a/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-314.pyc b/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 021ac353..00000000
Binary files a/templates/agent_template_backend/app/observability/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index 9495cf23..00000000
Binary files a/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-314.pyc b/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-314.pyc
deleted file mode 100644
index 78794e78..00000000
Binary files a/templates/agent_template_backend/app/observability/__pycache__/telemetry_observer.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc b/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 9191fadd..00000000
Binary files a/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-314.pyc b/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-314.pyc
deleted file mode 100644
index 128f7539..00000000
Binary files a/templates/agent_template_backend/app/presentation/__pycache__/__init__.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc b/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc
deleted file mode 100644
index 32e74b95..00000000
Binary files a/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-314.pyc b/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-314.pyc
deleted file mode 100644
index 6045cee7..00000000
Binary files a/templates/agent_template_backend/app/presentation/__pycache__/tool_renderers.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/state.py b/templates/agent_template_backend/app/state.py
index 0b4da3e9..aee4d926 100644
--- a/templates/agent_template_backend/app/state.py
+++ b/templates/agent_template_backend/app/state.py
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/templates/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc b/templates/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index d2173760..00000000
Binary files a/templates/agent_template_backend/app/workflow_actions/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc b/templates/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc
deleted file mode 100644
index 9ec9aa1b..00000000
Binary files a/templates/agent_template_backend/app/workflow_actions/__pycache__/devolucao.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index 3515b5c1..00000000
Binary files a/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-314.pyc b/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-314.pyc
deleted file mode 100644
index 7e6e5fcb..00000000
Binary files a/templates/agent_template_backend/app/workflows/__pycache__/agent_graph.cpython-314.pyc and /dev/null differ
diff --git a/templates/agent_template_backend/app/workflows/agent_graph.py b/templates/agent_template_backend/app/workflows/agent_graph.py
index d1455b4c..f76c2c7d 100644
--- a/templates/agent_template_backend/app/workflows/agent_graph.py
+++ b/templates/agent_template_backend/app/workflows/agent_graph.py
@@ -570,6 +570,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -577,7 +578,7 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -650,6 +651,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -733,6 +735,7 @@ class AgentWorkflow:
relevant_transaction_evidence = list(state.get("relevant_transaction_evidence") or [])
judge_context["transaction_evidence"] = relevant_transaction_evidence
current_evidence = list(state.get("mcp_results", []) or [])
+ current_evidence.extend(state.get("rag_results", []) or [])
current_evidence.extend(relevant_transaction_evidence)
judge_context["evidence"] = current_evidence or judge_context.get("evidence")
judge_context["route"] = state.get("route")
@@ -880,6 +883,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
"transaction_evidence": state.get("relevant_transaction_evidence", []),
},
)
diff --git a/templates/agent_template_backend_day_zero/.env.example b/templates/agent_template_backend_day_zero/.env.example
index eeb71309..1668c3d3 100644
--- a/templates/agent_template_backend_day_zero/.env.example
+++ b/templates/agent_template_backend_day_zero/.env.example
@@ -215,7 +215,7 @@ LONG_TERM_MEMORY_INJECT_CONTEXT=true
# kbdb = KBDB enterprise via PKG_KB_SERVING.SEARCH_KNOWLEDGE_BASE
RAG_PROVIDER=standard
-# Somente usados quando RAG_PROVIDER=kbdb. Se vazios, credenciais caem para ADB_*.
+# Somente usados quando RAG_PROVIDER=kbdb; não há fallback para ADB_*.
KBDB_DB_USER=
KBDB_DB_PASSWORD=
KBDB_DB_DSN=
@@ -229,3 +229,6 @@ KBDB_MAX_CROSS_REF_HOPS=1
KBDB_DOCUMENT_TYPE=customer_safe
KBDB_METADATA_JSON=
KBDB_MIN_SCORE=
+KBDB_IDENTIFY_DOCUMENT=true
+KBDB_STORE_QUERY=true
+KBDB_IDENTIFY_TOP_N=3
diff --git a/templates/agent_template_backend_day_zero/app/__pycache__/__init__.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index eafedeeb..00000000
Binary files a/templates/agent_template_backend_day_zero/app/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/__pycache__/main.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/__pycache__/main.cpython-313.pyc
deleted file mode 100644
index c13b42c4..00000000
Binary files a/templates/agent_template_backend_day_zero/app/__pycache__/main.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc
deleted file mode 100644
index a8f0280d..00000000
Binary files a/templates/agent_template_backend_day_zero/app/__pycache__/mcp_gateway_client_factory.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/__pycache__/state.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/__pycache__/state.cpython-313.pyc
deleted file mode 100644
index f856d0c4..00000000
Binary files a/templates/agent_template_backend_day_zero/app/__pycache__/state.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/agents/__pycache__/billing_agent.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/agents/__pycache__/billing_agent.cpython-313.pyc
deleted file mode 100644
index 406206df..00000000
Binary files a/templates/agent_template_backend_day_zero/app/agents/__pycache__/billing_agent.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/agents/__pycache__/orders_agent.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/agents/__pycache__/orders_agent.cpython-313.pyc
deleted file mode 100644
index cbe2d5df..00000000
Binary files a/templates/agent_template_backend_day_zero/app/agents/__pycache__/orders_agent.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/agents/__pycache__/product_agent.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/agents/__pycache__/product_agent.cpython-313.pyc
deleted file mode 100644
index d394a5bf..00000000
Binary files a/templates/agent_template_backend_day_zero/app/agents/__pycache__/product_agent.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/agents/__pycache__/prompting.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/agents/__pycache__/prompting.cpython-313.pyc
deleted file mode 100644
index d96c6e4c..00000000
Binary files a/templates/agent_template_backend_day_zero/app/agents/__pycache__/prompting.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/agents/__pycache__/runtime.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/agents/__pycache__/runtime.cpython-313.pyc
deleted file mode 100644
index 0d395862..00000000
Binary files a/templates/agent_template_backend_day_zero/app/agents/__pycache__/runtime.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/agents/__pycache__/support_agent.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/agents/__pycache__/support_agent.cpython-313.pyc
deleted file mode 100644
index 9dee7059..00000000
Binary files a/templates/agent_template_backend_day_zero/app/agents/__pycache__/support_agent.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/agents/billing_agent.py b/templates/agent_template_backend_day_zero/app/agents/billing_agent.py
index aa600999..e627beb9 100644
--- a/templates/agent_template_backend_day_zero/app/agents/billing_agent.py
+++ b/templates/agent_template_backend_day_zero/app/agents/billing_agent.py
@@ -108,6 +108,14 @@ class BillingAgent(AgentRuntimeMixin):
"next_state": "BILLING_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/templates/agent_template_backend_day_zero/app/agents/orders_agent.py b/templates/agent_template_backend_day_zero/app/agents/orders_agent.py
index f557bed4..bdb3c244 100644
--- a/templates/agent_template_backend_day_zero/app/agents/orders_agent.py
+++ b/templates/agent_template_backend_day_zero/app/agents/orders_agent.py
@@ -108,6 +108,14 @@ class OrdersAgent(AgentRuntimeMixin):
"next_state": "ORDER_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/templates/agent_template_backend_day_zero/app/agents/product_agent.py b/templates/agent_template_backend_day_zero/app/agents/product_agent.py
index 34433f57..3e1f0d6d 100644
--- a/templates/agent_template_backend_day_zero/app/agents/product_agent.py
+++ b/templates/agent_template_backend_day_zero/app/agents/product_agent.py
@@ -108,6 +108,14 @@ class ProductAgent(AgentRuntimeMixin):
"next_state": "PRODUCT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/templates/agent_template_backend_day_zero/app/agents/support_agent.py b/templates/agent_template_backend_day_zero/app/agents/support_agent.py
index b4f0244f..99562a7d 100644
--- a/templates/agent_template_backend_day_zero/app/agents/support_agent.py
+++ b/templates/agent_template_backend_day_zero/app/agents/support_agent.py
@@ -108,6 +108,14 @@ class SupportAgent(AgentRuntimeMixin):
"next_state": "SUPPORT_ACTIVE",
"mcp_results": tool_context,
"rag": rag_metadata,
+ "rag_context": rag_context,
+ "rag_results": [{
+ "intent": state.get("intent"),
+ "agent": self.name,
+ "source_text": str(state.get("sanitized_input") or state.get("user_text") or ""),
+ "metadata": rag_metadata,
+ **({"context": rag_context} if rag_context else {}),
+ }],
"memory_context_metadata": state.get("memory_context_metadata"),
**self.transaction_state_patch(state),
}
diff --git a/templates/agent_template_backend_day_zero/app/main.py b/templates/agent_template_backend_day_zero/app/main.py
index 670f85f9..0b9f0a6e 100644
--- a/templates/agent_template_backend_day_zero/app/main.py
+++ b/templates/agent_template_backend_day_zero/app/main.py
@@ -455,6 +455,7 @@ async def _process_gateway_message(req: GatewayRequest, emit_sse: bool = False)
"domain": result.get("domain"),
"mcp_tools": result.get("mcp_tools"),
"mcp_results": result.get("mcp_results"),
+ "rag_results": result.get("rag_results"),
"business_context": business_context.model_dump(),
"identity_missing": missing_identity_keys,
"judges": result.get("judge_results"),
diff --git a/templates/agent_template_backend_day_zero/app/observability/__pycache__/__init__.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/observability/__pycache__/__init__.cpython-313.pyc
deleted file mode 100644
index 359dee6e..00000000
Binary files a/templates/agent_template_backend_day_zero/app/observability/__pycache__/__init__.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/observability/__pycache__/telemetry_observer.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/observability/__pycache__/telemetry_observer.cpython-313.pyc
deleted file mode 100644
index 76a03bbd..00000000
Binary files a/templates/agent_template_backend_day_zero/app/observability/__pycache__/telemetry_observer.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/state.py b/templates/agent_template_backend_day_zero/app/state.py
index fb4a93bd..a0016e73 100644
--- a/templates/agent_template_backend_day_zero/app/state.py
+++ b/templates/agent_template_backend_day_zero/app/state.py
@@ -23,6 +23,7 @@ class AgentState(TypedDict, total=False):
domain: str
mcp_tools: list[str]
mcp_results: list[dict[str, Any]]
+ rag_results: list[dict[str, Any]]
available_mcp_tools: list[str]
selected_tool_call: dict[str, Any]
pending_tool_call: dict[str, Any]
diff --git a/templates/agent_template_backend_day_zero/app/workflows/__pycache__/agent_graph.cpython-313.pyc b/templates/agent_template_backend_day_zero/app/workflows/__pycache__/agent_graph.cpython-313.pyc
deleted file mode 100644
index 31ea4a26..00000000
Binary files a/templates/agent_template_backend_day_zero/app/workflows/__pycache__/agent_graph.cpython-313.pyc and /dev/null differ
diff --git a/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py b/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py
index 76d16dfb..aa4726f6 100644
--- a/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py
+++ b/templates/agent_template_backend_day_zero/app/workflows/agent_graph.py
@@ -568,6 +568,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"output_guardrails_already_applied": False,
"supervisor_action": "disabled",
"supervisor_attempt": int(state.get("supervisor_attempt", 0)),
@@ -575,7 +576,7 @@ class AgentWorkflow:
context = {
**(state.get("context") or {}),
- "evidence": drained.mcp_results or (state.get("context") or {}).get("evidence"),
+ "evidence": (list(drained.mcp_results) + list(drained.rag_results)) or (state.get("context") or {}).get("evidence"),
"tool_result": drained.mcp_results or (state.get("context") or {}).get("tool_result"),
"tool_executed": any(isinstance(item, dict) and item.get("ok") for item in drained.mcp_results),
"mcp_results": drained.mcp_results,
@@ -648,6 +649,7 @@ class AgentWorkflow:
"pending_topics": drained.pending_topics,
"handled_topics": drained.handled_topics,
"mcp_results": drained.mcp_results,
+ "rag_results": drained.rag_results,
"guardrail_decisions": state.get("guardrail_decisions", [])
+ [item for r in decision.results for item in (r.metadata or {}).get("legacy_decisions", [])],
}
@@ -805,6 +807,7 @@ class AgentWorkflow:
"judges": state.get("judge_results", []),
"mcp_tools": state.get("mcp_tools", []),
"mcp_results": state.get("mcp_results", []),
+ "rag_results": state.get("rag_results", []),
},
)
diff --git a/tests/__pycache__/conftest.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/conftest.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 9f26c74c..00000000
Binary files a/tests/__pycache__/conftest.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_agent_template_backend_safety_consistency.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_agent_template_backend_safety_consistency.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 203c1aaa..00000000
Binary files a/tests/__pycache__/test_agent_template_backend_safety_consistency.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_aoferta_transaction_continuation.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_aoferta_transaction_continuation.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index be2a9639..00000000
Binary files a/tests/__pycache__/test_aoferta_transaction_continuation.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_compliance_protocol_expected_values.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_compliance_protocol_expected_values.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 547d6c39..00000000
Binary files a/tests/__pycache__/test_compliance_protocol_expected_values.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_contextual_reentry_transaction_parameters.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_contextual_reentry_transaction_parameters.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 87d39ac0..00000000
Binary files a/tests/__pycache__/test_contextual_reentry_transaction_parameters.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_dlex_out_expected_protocol_authorization.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_dlex_out_expected_protocol_authorization.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 53b3c203..00000000
Binary files a/tests/__pycache__/test_dlex_out_expected_protocol_authorization.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_expected_input_coherence_delegation.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_expected_input_coherence_delegation.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 6671a979..00000000
Binary files a/tests/__pycache__/test_expected_input_coherence_delegation.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_expected_input_semantic_classifier.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_expected_input_semantic_classifier.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 9ae409fc..00000000
Binary files a/tests/__pycache__/test_expected_input_semantic_classifier.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_fraseologia_business_parameter_prompt.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_fraseologia_business_parameter_prompt.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 14867836..00000000
Binary files a/tests/__pycache__/test_fraseologia_business_parameter_prompt.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_generic_tool_response_presentation.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_generic_tool_response_presentation.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 9d92704e..00000000
Binary files a/tests/__pycache__/test_generic_tool_response_presentation.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_judge_transaction_sampling.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_judge_transaction_sampling.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index e5a4371b..00000000
Binary files a/tests/__pycache__/test_judge_transaction_sampling.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_mcp_parameter_extraction_runtime.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_mcp_parameter_extraction_runtime.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index c855ad64..00000000
Binary files a/tests/__pycache__/test_mcp_parameter_extraction_runtime.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_observer_cross_loop_deadlock_fix.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_observer_cross_loop_deadlock_fix.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 12210d63..00000000
Binary files a/tests/__pycache__/test_observer_cross_loop_deadlock_fix.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_paused_workflow_resume_precedence.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_paused_workflow_resume_precedence.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index d66326e1..00000000
Binary files a/tests/__pycache__/test_paused_workflow_resume_precedence.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_performance_optimizations.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_performance_optimizations.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index d35152ba..00000000
Binary files a/tests/__pycache__/test_performance_optimizations.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_phraseology_rewrite_revalidation.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_phraseology_rewrite_revalidation.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 95d74350..00000000
Binary files a/tests/__pycache__/test_phraseology_rewrite_revalidation.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_route_stickiness_transaction_shift.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_route_stickiness_transaction_shift.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index f1635a55..00000000
Binary files a/tests/__pycache__/test_route_stickiness_transaction_shift.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_structured_output_parser.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_structured_output_parser.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index cecf5edf..00000000
Binary files a/tests/__pycache__/test_structured_output_parser.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_transaction_confirmation_customer_facing.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_transaction_confirmation_customer_facing.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index d6311453..00000000
Binary files a/tests/__pycache__/test_transaction_confirmation_customer_facing.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_transaction_explicit_abandonment_and_structural_candidate.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_transaction_explicit_abandonment_and_structural_candidate.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index ec3b3223..00000000
Binary files a/tests/__pycache__/test_transaction_explicit_abandonment_and_structural_candidate.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_transaction_explicit_abandonment_and_structural_candidate.cpython-313.pyc b/tests/__pycache__/test_transaction_explicit_abandonment_and_structural_candidate.cpython-313.pyc
deleted file mode 100644
index 4636b040..00000000
Binary files a/tests/__pycache__/test_transaction_explicit_abandonment_and_structural_candidate.cpython-313.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_transaction_parameter_descriptions.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_transaction_parameter_descriptions.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 44c4613f..00000000
Binary files a/tests/__pycache__/test_transaction_parameter_descriptions.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_transaction_parameter_llm_precedence.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_transaction_parameter_llm_precedence.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index d728688f..00000000
Binary files a/tests/__pycache__/test_transaction_parameter_llm_precedence.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_transaction_state_regression_matrix.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_transaction_state_regression_matrix.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 61bf31ba..00000000
Binary files a/tests/__pycache__/test_transaction_state_regression_matrix.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_transaction_state_router_interruption.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_transaction_state_router_interruption.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 5be25124..00000000
Binary files a/tests/__pycache__/test_transaction_state_router_interruption.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_transactional_tool_flow.cpython-313-pytest-9.0.2.pyc b/tests/__pycache__/test_transactional_tool_flow.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 155772f3..00000000
Binary files a/tests/__pycache__/test_transactional_tool_flow.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/__pycache__/test_transactional_tool_flow.cpython-313.pyc b/tests/__pycache__/test_transactional_tool_flow.cpython-313.pyc
deleted file mode 100644
index e3cdf074..00000000
Binary files a/tests/__pycache__/test_transactional_tool_flow.cpython-313.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_agent_runtime.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_agent_runtime.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 05f0804d..00000000
Binary files a/tests/unit/__pycache__/test_agent_runtime.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_authentication.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_authentication.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index f5b533dc..00000000
Binary files a/tests/unit/__pycache__/test_authentication.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_authentication_policies.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_authentication_policies.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 669a59f7..00000000
Binary files a/tests/unit/__pycache__/test_authentication_policies.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_cache.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_cache.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 81702987..00000000
Binary files a/tests/unit/__pycache__/test_cache.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_cache_distributed.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_cache_distributed.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 9254699c..00000000
Binary files a/tests/unit/__pycache__/test_cache_distributed.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_imports_compile.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_imports_compile.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 747a0d75..00000000
Binary files a/tests/unit/__pycache__/test_imports_compile.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_langgraph_checkpoint_interrupt_controlled.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_langgraph_checkpoint_interrupt_controlled.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 98335bb2..00000000
Binary files a/tests/unit/__pycache__/test_langgraph_checkpoint_interrupt_controlled.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_langgraph_checkpoint_runtime_config.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_langgraph_checkpoint_runtime_config.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 0037d7d6..00000000
Binary files a/tests/unit/__pycache__/test_langgraph_checkpoint_runtime_config.cpython-313-pytest-9.0.2.pyc and /dev/null differ
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
deleted file mode 100644
index 50642e2c..00000000
Binary files a/tests/unit/__pycache__/test_langgraph_checkpoint_runtime_config.cpython-313.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_langgraph_checkpoint_saver.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_langgraph_checkpoint_saver.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 5db2eac4..00000000
Binary files a/tests/unit/__pycache__/test_langgraph_checkpoint_saver.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_langgraph_telemetry.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_langgraph_telemetry.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index beb69f5d..00000000
Binary files a/tests/unit/__pycache__/test_langgraph_telemetry.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_llm_rich_response.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_llm_rich_response.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index bdbb6ddd..00000000
Binary files a/tests/unit/__pycache__/test_llm_rich_response.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_long_term_memory_autonomous.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_long_term_memory_autonomous.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 90691ca9..00000000
Binary files a/tests/unit/__pycache__/test_long_term_memory_autonomous.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_pubsub_analytics_publisher.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_pubsub_analytics_publisher.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 10f1143b..00000000
Binary files a/tests/unit/__pycache__/test_pubsub_analytics_publisher.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_rag.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_rag.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index a851eae3..00000000
Binary files a/tests/unit/__pycache__/test_rag.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_rag_kbdb_provider.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_rag_kbdb_provider.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index ea9a16f6..00000000
Binary files a/tests/unit/__pycache__/test_rag_kbdb_provider.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_rag_oracle_sql_generation.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_rag_oracle_sql_generation.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 9710d2eb..00000000
Binary files a/tests/unit/__pycache__/test_rag_oracle_sql_generation.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_rag_runtime_grounding.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_rag_runtime_grounding.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 9d570a9a..00000000
Binary files a/tests/unit/__pycache__/test_rag_runtime_grounding.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_resilient_checkpointer.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_resilient_checkpointer.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 49b0a868..00000000
Binary files a/tests/unit/__pycache__/test_resilient_checkpointer.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_semantic_route_stickiness.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_semantic_route_stickiness.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 899f8ae5..00000000
Binary files a/tests/unit/__pycache__/test_semantic_route_stickiness.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_sse.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_sse.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index bfcfb418..00000000
Binary files a/tests/unit/__pycache__/test_sse.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_sse_replay_dedup.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_sse_replay_dedup.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index a82430aa..00000000
Binary files a/tests/unit/__pycache__/test_sse_replay_dedup.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_telemetry_langfuse_compact.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_telemetry_langfuse_compact.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 3b71e865..00000000
Binary files a/tests/unit/__pycache__/test_telemetry_langfuse_compact.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_token_cost_enterprise.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_token_cost_enterprise.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index abcb3534..00000000
Binary files a/tests/unit/__pycache__/test_token_cost_enterprise.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_tool_policies.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_tool_policies.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 20bbb399..00000000
Binary files a/tests/unit/__pycache__/test_tool_policies.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_transactional_workflows.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_transactional_workflows.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index eaee4e80..00000000
Binary files a/tests/unit/__pycache__/test_transactional_workflows.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_transactional_workflows.cpython-313.pyc b/tests/unit/__pycache__/test_transactional_workflows.cpython-313.pyc
deleted file mode 100644
index afb7dd26..00000000
Binary files a/tests/unit/__pycache__/test_transactional_workflows.cpython-313.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_workflow_runtime_diagnostics.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_workflow_runtime_diagnostics.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index 484de46d..00000000
Binary files a/tests/unit/__pycache__/test_workflow_runtime_diagnostics.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_workflow_static.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_workflow_static.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index dfdaa34c..00000000
Binary files a/tests/unit/__pycache__/test_workflow_static.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/__pycache__/test_workflow_terminal_snapshot_semantics.cpython-313-pytest-9.0.2.pyc b/tests/unit/__pycache__/test_workflow_terminal_snapshot_semantics.cpython-313-pytest-9.0.2.pyc
deleted file mode 100644
index f2157704..00000000
Binary files a/tests/unit/__pycache__/test_workflow_terminal_snapshot_semantics.cpython-313-pytest-9.0.2.pyc and /dev/null differ
diff --git a/tests/unit/test_multi_intent_planner.py b/tests/unit/test_multi_intent_planner.py
index 2f47ab81..d463d6bd 100644
--- a/tests/unit/test_multi_intent_planner.py
+++ b/tests/unit/test_multi_intent_planner.py
@@ -40,6 +40,20 @@ def test_transactional_intent_is_primary_even_when_mentioned_second():
assert [item.intent for item in plan.operations] == ["cancel", "invoice"]
+def test_sentence_boundary_does_not_leak_previous_intent_into_knowledge_query():
+ planner = MultiIntentPlanner([
+ IntentDefinition(name="invoice", agent="billing", priority=20, keywords=["fatura"]),
+ IntentDefinition(name="knowledge", agent="support", priority=30, keywords=["tarifação"]),
+ ])
+ plan = planner.plan(
+ "quero ver minha fatura e o valor. depois gostaria de saber como funciona a tarifação do plano"
+ )
+ assert plan is not None
+ knowledge = next(item for item in plan.operations if item.intent == "knowledge")
+ assert knowledge.source_text == "depois gostaria de saber como funciona a tarifação do plano"
+ assert not knowledge.source_text.startswith("valor")
+
+
def test_does_not_plan_single_intent_or_invent_unknown_intent():
assert _planner().plan("quero cancelar pedido") is None
assert _planner().plan("quero cancelar pedido e saber o clima") is None
diff --git a/tests/unit/test_pending_topics_isolation.py b/tests/unit/test_pending_topics_isolation.py
index d5c1b69b..e2dbb948 100644
--- a/tests/unit/test_pending_topics_isolation.py
+++ b/tests/unit/test_pending_topics_isolation.py
@@ -12,6 +12,8 @@ async def test_secondary_topic_does_not_inherit_primary_transaction_state():
return {
"answer": "Aqui está a sua segunda via.",
"mcp_results": [{"tool_name": "consultar_faturas", "ok": True}],
+ "rag": {"provider": "kbdb", "attempted": True, "status": "executed", "document_count": 1},
+ "rag_context": "Documento recuperado da base de conhecimento.",
}
state = {
@@ -59,3 +61,5 @@ async def test_secondary_topic_does_not_inherit_primary_transaction_state():
{"tool_name": "consultar_vas"},
{"tool_name": "consultar_faturas", "ok": True},
]
+ assert result.rag_results[0]["metadata"]["provider"] == "kbdb"
+ assert result.rag_results[0]["context"] == "Documento recuperado da base de conhecimento."
diff --git a/tests/unit/test_rag_kbdb_provider.py b/tests/unit/test_rag_kbdb_provider.py
index b3d1722d..48f77b75 100644
--- a/tests/unit/test_rag_kbdb_provider.py
+++ b/tests/unit/test_rag_kbdb_provider.py
@@ -1,4 +1,5 @@
from types import SimpleNamespace
+from contextlib import contextmanager
import pytest
@@ -16,6 +17,7 @@ def _settings(**overrides):
KBDB_NODE_MAX_RELATED=8, KBDB_GRAPH_CROSS_REF=False,
KBDB_MAX_CROSS_REF_HOPS=1, KBDB_DOCUMENT_TYPE="customer_safe",
KBDB_METADATA_JSON=None, KBDB_MIN_SCORE=None,
+ KBDB_IDENTIFY_DOCUMENT=True, KBDB_STORE_QUERY=True, KBDB_IDENTIFY_TOP_N=3,
)
data.update(overrides)
return SimpleNamespace(**data)
@@ -115,3 +117,69 @@ def test_kbdb_does_not_fallback_to_framework_adb_credentials():
)
with pytest.raises(RuntimeError, match="KBDB_DB_USER"):
KbdbRagService(settings)
+
+
+def test_kbdb_discovers_number_flags_and_clob_output(monkeypatch):
+ import sys
+ from agent_framework.rag.kbdb_service import KbdbRagService
+
+ captured = {}
+
+ class Var:
+ def __init__(self, value=None):
+ self.value = value
+
+ def getvalue(self):
+ return self.value
+
+ class Cursor:
+ def execute(self, statement):
+ captured["signature_query"] = statement
+
+ def fetchall(self):
+ names = [
+ ("P_SEARCH_TYPE", "VARCHAR2"), ("P_QUERY", "VARCHAR2"),
+ ("P_TOP_K", "NUMBER"), ("P_NODE_EXPANSION", "NUMBER"),
+ ("P_NODE_MAX_RELATED", "NUMBER"), ("P_DOCUMENT_TYPE", "VARCHAR2"),
+ ("P_METADATA", "CLOB"), ("P_IDENTIFY_DOCUMENT", "NUMBER"),
+ ("P_STORE_QUERY", "NUMBER"), ("P_IDENTIFY_TOP_N", "NUMBER"),
+ ("P_RESULT", "CLOB"),
+ ]
+ return [
+ (name, index, "OUT" if index == 11 else "IN", data_type, None)
+ for index, (name, data_type) in enumerate(names, start=1)
+ ]
+
+ def var(self, data_type, size=None):
+ captured["out_type"] = data_type
+ return Var('{"units": [], "seeds": []}')
+
+ def callproc(self, name, binds):
+ captured["procedure"] = name
+ captured["binds"] = binds
+
+ class Connection:
+ def cursor(self):
+ return Cursor()
+
+ class FakeOracleDb:
+ DB_TYPE_JSON = "JSON"
+ DB_TYPE_CLOB = "CLOB"
+ DB_TYPE_VARCHAR = "VARCHAR"
+
+ service = KbdbRagService(_settings())
+
+ @contextmanager
+ def connect():
+ yield Connection()
+
+ monkeypatch.setitem(sys.modules, "oracledb", FakeOracleDb)
+ monkeypatch.setattr(service, "_connect", connect)
+
+ result = service._search_sync("como funciona?", 5)
+
+ assert result == {"units": [], "seeds": []}
+ assert captured["procedure"] == "PKG_KB_SERVING.search_knowledge_base"
+ assert captured["binds"][3] == 1
+ assert captured["binds"][7:10] == [1, 1, 3]
+ assert captured["out_type"] == "CLOB"
diff --git a/tests/unit/test_tuning_pending_topics_sync.py b/tests/unit/test_tuning_pending_topics_sync.py
index f5f77d60..b0f8e50c 100644
--- a/tests/unit/test_tuning_pending_topics_sync.py
+++ b/tests/unit/test_tuning_pending_topics_sync.py
@@ -13,7 +13,8 @@ def test_all_tuning_backend_graphs_support_pending_topics():
assert '"pending_topics": drained.pending_topics' in source, path
assert '"handled_topics": drained.handled_topics' in source, path
assert '"mcp_results": drained.mcp_results' in source, path
- assert '"evidence": drained.mcp_results' in source, path
+ assert '"rag_results": drained.rag_results' in source, path
+ assert 'list(drained.mcp_results) + list(drained.rag_results)' in source, path
def test_all_tuning_backend_states_expose_pending_topics():
@@ -23,6 +24,7 @@ def test_all_tuning_backend_states_expose_pending_topics():
source = path.read_text(encoding="utf-8")
assert "pending_topics: list[dict[str, Any]]" in source, path
assert "handled_topics: list[dict[str, Any]]" in source, path
+ assert "rag_results: list[dict[str, Any]]" in source, path
def test_canonical_templates_delegate_drain_to_framework_helper():
@@ -36,7 +38,53 @@ def test_canonical_templates_delegate_drain_to_framework_helper():
assert '"pending_topics": drained.pending_topics' in graph_source
assert '"handled_topics": drained.handled_topics' in graph_source
assert '"mcp_results": drained.mcp_results' in graph_source
- assert '"evidence": drained.mcp_results' in graph_source
+ assert '"rag_results": drained.rag_results' in graph_source
+ assert 'list(drained.mcp_results) + list(drained.rag_results)' in graph_source
assert "MultiIntentPlanner.public_messages" not in graph_source
assert "pending_topics: list[dict[str, Any]]" in state_source
assert "handled_topics: list[dict[str, Any]]" in state_source
+ assert "rag_results: list[dict[str, Any]]" in state_source
+
+
+def test_all_rag_agents_expose_metadata_and_context_as_state_evidence():
+ roots = [ROOT / "templates", ROOT / "Tuning-Performance"]
+ agents = sorted(
+ path
+ for root in roots
+ for path in root.glob("**/app/agents/*.py")
+ if '"rag": rag_metadata' in path.read_text(encoding="utf-8")
+ )
+ assert agents
+ for path in agents:
+ source = path.read_text(encoding="utf-8")
+ assert '"rag_context": rag_context' in source, path
+ assert '"rag_results": [{' in source, path
+
+
+def test_templates_and_tuning_expose_rag_results_in_api_and_telemetry():
+ roots = [ROOT / "templates", ROOT / "Tuning-Performance"]
+ mains = sorted(path for root in roots for path in root.glob("**/app/main.py"))
+ graphs = sorted(path for root in roots for path in root.glob("**/app/workflows/agent_graph.py"))
+ assert mains and graphs
+ for path in mains:
+ assert '"rag_results": result.get("rag_results")' in path.read_text(encoding="utf-8"), path
+ for path in graphs:
+ assert '"rag_results": state.get("rag_results", [])' in path.read_text(encoding="utf-8"), path
+
+
+def test_all_tuning_envs_expose_complete_kbdb_configuration():
+ envs = sorted((ROOT / "Tuning-Performance").glob("**/.env.example"))
+ assert envs
+ required = (
+ "RAG_PROVIDER=standard",
+ "KBDB_DB_USER=",
+ "KBDB_DB_DSN=",
+ "KBDB_IDENTIFY_DOCUMENT=true",
+ "KBDB_STORE_QUERY=true",
+ "KBDB_IDENTIFY_TOP_N=3",
+ "KBDB_GROUNDED_ONLY=true",
+ )
+ for path in envs:
+ source = path.read_text(encoding="utf-8")
+ for setting in required:
+ assert setting in source, (path, setting)