agents.rag.agentic_router.agent_v2ΒΆ

Agentic RAG Router with Proper Conditional Routing.

Implementation using conditional edges for routing between strategies.

ClassesΒΆ

AgenticRAGRouterV2

Agentic RAG Router using proper conditional routing.

RAGStrategy

Available RAG strategies for routing.

StrategyDecision

Strategy selection decision.

Module ContentsΒΆ

class agents.rag.agentic_router.agent_v2.AgenticRAGRouterV2ΒΆ

Bases: haive.agents.base.agent.Agent

Agentic RAG Router using proper conditional routing.

build_graph()ΒΆ

Build graph with conditional routing between strategies.

Return type:

haive.core.graph.state_graph.base_graph2.BaseGraph

class agents.rag.agentic_router.agent_v2.RAGStrategyΒΆ

Bases: str, enum.Enum

Available RAG strategies for routing.

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

class agents.rag.agentic_router.agent_v2.StrategyDecision(/, **data)ΒΆ

Bases: pydantic.BaseModel

Strategy selection decision.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)