trustgraph/tests/unit/test_agent
cybermaggedon 4b5bfacab1
Forward missing explain_triples through RAG clients and agent tool callback (#768)
fix: forward explain_triples through RAG clients and agent tool callback
- RAG clients and the KnowledgeQueryImpl tool callback were
  dropping explain_triples from explain events, losing provenance
  data (including focus edge selections) when graph-rag is invoked
  via the agent.

Tests for provenance and explainability (56 new):
- Client-level forwarding of explain_triples
- Graph-RAG structural chain
  (question → grounding → exploration → focus → synthesis)
- Graph-RAG integration with mocked subsidiary clients
- Document-RAG integration
  (question → grounding → exploration → synthesis)
- Agent-orchestrator all 3 patterns: react, plan-then-execute,
  supervisor
2026-04-08 11:41:17 +01:00
..
__init__.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
conftest.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_agent_service_non_streaming.py Split Analysis into Analysis+ToolUse and Observation, add message_id (#747) 2026-03-31 17:51:22 +01:00
test_agent_step_arguments.py MCP auth for the simple case (#557) 2025-11-11 12:28:53 +00:00
test_aggregator.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_callback_message_id.py Additional agent DAG tests (#750) 2026-04-01 13:59:58 +01:00
test_completion_dispatch.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_conversation_state.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_explainability_parsing.py Additional agent DAG tests (#750) 2026-04-01 13:59:58 +01:00
test_mcp_tool_auth.py MCP auth for the simple case (#557) 2025-11-11 12:28:53 +00:00
test_meta_router.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_on_action_callback.py Additional agent DAG tests (#750) 2026-04-01 13:59:58 +01:00
test_orchestrator_provenance_integration.py Forward missing explain_triples through RAG clients and agent tool callback (#768) 2026-04-08 11:41:17 +01:00
test_parse_chunk_message_id.py Additional agent DAG tests (#750) 2026-04-01 13:59:58 +01:00
test_pattern_base_subagent.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_provenance_triples.py Split Analysis into Analysis+ToolUse and Observation, add message_id (#747) 2026-03-31 17:51:22 +01:00
test_react_processor.py master -> 1.5 (README updates) (#552) 2025-10-11 11:46:03 +01:00
test_reasoning_engine.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_tool_coordination.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_tool_filter.py Feature/tool group (#484) 2025-09-03 23:39:49 +01:00
test_tool_service.py Tool services - dynamically pluggable tool implementations for agent frameworks (#658) 2026-03-04 14:51:32 +00:00
test_tool_service_lifecycle.py Updated test suite for explainability & provenance (#696) 2026-03-13 14:27:42 +00:00