Class CountRecordsTool
java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.tools.AbstractAiTool
com.kingsrook.qqq.backend.core.actions.ai.tools.CountRecordsTool
count_records: the number of records of a readable table matching a filter
(METADATA_ONLY fields may be filtered on) - plus a "count" render payload
with an openHref to the filtered list.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(AiToolContext context, AiToolInput input) Run the tool - returning the data to send to the model.The tool's description, for the model.The tool's strict input schema (an object schema).getKind()The tool's kind.getName()The tool's wire name (snake_case).Methods inherited from class com.kingsrook.qqq.backend.core.actions.ai.tools.AbstractAiTool
getDefinition, getInputPropertyNames
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
CountRecordsTool
public CountRecordsTool()
-
-
Method Details
-
getName
Description copied from class:AbstractAiToolThe tool's wire name (snake_case).- Specified by:
getNamein classAbstractAiTool
-
getDescription
Description copied from class:AbstractAiToolThe tool's description, for the model.- Specified by:
getDescriptionin classAbstractAiTool
-
getKind
Description copied from class:AbstractAiToolThe tool's kind.- Specified by:
getKindin classAbstractAiTool
-
getInputSchema
Description copied from class:AbstractAiToolThe tool's strict input schema (an object schema).- Specified by:
getInputSchemain classAbstractAiTool
-
execute
Description copied from class:AbstractAiToolRun the tool - returning the data to send to the model.- Specified by:
executein classAbstractAiTool- Throws:
QException
-