agents.rag.multi_agent_rag.compatibility

Safe Agent Compatibility Testing.

This module provides comprehensive compatibility testing for RAG agents using the compatibility module without modifying or breaking existing agents.

Classes

AgentCompatibilityReport

Comprehensive compatibility report for agent pairs.

CompatibilityLevel

Levels of compatibility between agents.

MultiAgentCompatibilityReport

Compatibility report for multiple agents in a workflow.

SafeCompatibilityTester

Safe compatibility testing that doesn't modify original agents.

Functions

quick_agent_compatibility_check(agent1, agent2)

Quick compatibility check between two agents.

safe_test_rag_compatibility()

Safely test RAG agent compatibility without breaking anything.

test_custom_agent_workflow(agents, workflow_name)

Test compatibility of a custom agent workflow.

Module Contents

class agents.rag.multi_agent_rag.compatibility.AgentCompatibilityReport

Comprehensive compatibility report for agent pairs.

class agents.rag.multi_agent_rag.compatibility.CompatibilityLevel

Bases: str, enum.Enum

Levels of compatibility between agents.

Initialize self. See help(type(self)) for accurate signature.

class agents.rag.multi_agent_rag.compatibility.MultiAgentCompatibilityReport

Compatibility report for multiple agents in a workflow.

class agents.rag.multi_agent_rag.compatibility.SafeCompatibilityTester

Safe compatibility testing that doesn’t modify original agents.

This class provides comprehensive compatibility analysis between agents without risking damage to existing systems.

Init .

Returns:

Add return description]

Return type:

[TODO

test_agent_pair_compatibility(source_agent, target_agent, safe_mode=True)

Safely test compatibility between two agents.

Parameters:
  • source_agent (haive.agents.base.agent.Agent) – The source agent in the workflow

  • target_agent (haive.agents.base.agent.Agent) – The target agent in the workflow

  • safe_mode (bool) – If True, uses read-only testing without modifications

Returns:

Detailed compatibility report

Return type:

AgentCompatibilityReport

test_rag_agents_safely()

Safely test compatibility of common RAG agent combinations.

Returns:

Comprehensive test results for common RAG patterns

Return type:

dict[str, Any]

test_workflow_compatibility(agents, workflow_name='RAG Workflow')

Test compatibility across an entire workflow of agents.

Parameters:
  • agents (list[haive.agents.base.agent.Agent]) – List of agents in workflow order

  • workflow_name (str) – Name of the workflow being tested

Returns:

Comprehensive workflow compatibility report

Return type:

MultiAgentCompatibilityReport

agents.rag.multi_agent_rag.compatibility.quick_agent_compatibility_check(agent1, agent2)

Quick compatibility check between two agents.

Returns:

True if agents are safe to chain, False otherwise

Parameters:
  • agent1 (haive.agents.base.agent.Agent)

  • agent2 (haive.agents.base.agent.Agent)

Return type:

bool

agents.rag.multi_agent_rag.compatibility.safe_test_rag_compatibility()

Safely test RAG agent compatibility without breaking anything.

This is the main function to use for testing RAG agent compatibility.

Return type:

dict[str, Any]

agents.rag.multi_agent_rag.compatibility.test_custom_agent_workflow(agents, workflow_name)

Test compatibility of a custom agent workflow.

Parameters:
  • agents (list[haive.agents.base.agent.Agent]) – List of agents to test

  • workflow_name (str) – Name for the workflow

Returns:

Comprehensive compatibility report

Return type:

MultiAgentCompatibilityReport