Skip to content

Verbalizer

relationalai.agent.cortex.verbalize

Abstract base class for verbalizing RAI model structure and semantics.

Verbalizers control how model information is presented to Cortex agents. They provide two levels of explanation:

  • Model-level: Overall structure, relationships, and available concepts
  • Concept-level: Detailed business rules for specific concepts

Implement this interface to customize how your models are explained to agents.

Verbalizer.explain_model() -> str

Return comprehensive explanation of the model’s structure and relationships.

Returns:

  • str - A natural language explanation of the model.
Verbalizer.explain_concept(concept: str) -> str

Return detailed explanation of business rules for a specific concept.

Parameters:

  • concept

    (str) - The name of the concept to explain.

Returns:

  • str - A natural language explanation of the concept.
Verbalizerabc.ABC
 agent > cortex > tool
├──  DefaultTool
└──  ToolRegistry
    └──  add