Class GetRecordTool
java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.tools.AbstractAiTool
com.kingsrook.qqq.backend.core.actions.ai.tools.GetRecordTool
get_record: one record of a readable table, by primary key, read as the
current user (so record security applies: a record the user can't see is
NOT_FOUND, exactly like a missing one) - only exposed field values.
-
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
-
GetRecordTool
public GetRecordTool()
-
-
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
-