DefaultTool
relationalai.agent.cortex.tool
DefaultTool( model: rai.Model, description: str, verbalizer: Optional[Verbalizer] = None, queries: Optional[Queries] = None,)Standard implementation of Tool for RAI semantic models.
Wraps a RAI Model and provides semantic exploration capabilities through
discovery, verbalization, explanation, and querying. Uses pluggable
components (Verbalizer and Queries) to customize how model structure
and pre-defined queries are presented to the agent.
Parameters
Section titled “Parameters”
(modelModel) - RAI semantic model to expose through this tool.
(descriptionstr) - Human-readable description of what this tool provides.
(verbalizerVerbalizer, default:None) - Custom verbalizer for model structure. IfNone, usesModelVerbalizerwhich returns relationship readings.
(queriesQueries, default:None) - Queries provider for pre-defined query functions (PREVIEW). IfNone, query discovery returns a helpful message.
Examples
Section titled “Examples”>>> tool = DefaultTool(... model=model,... description="Jaffle Shop e-commerce data",... verbalizer=SourceCodeVerbalizer(model, define_customer, define_order),... )