Class QueryRecordsTool

java.lang.Object
com.axelor.ai.tool.data.QueryRecordsTool
All Implemented Interfaces:
SystemTool<QueryRecordsTool.Input>

public class QueryRecordsTool extends Object implements SystemTool<QueryRecordsTool.Input>
System tool for advanced queries using a structured JSON DSL, returning the rows of the columns a query selects, computed or grouped.

A query with no select would return whole records, carrying every field whether or not the user may read it: the engine checks only the fields a query names. So one is refused, and every column the model gets has been checked.