Class SearchRecordsTool
java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.tools.AbstractAiTool
com.kingsrook.qqq.backend.core.actions.ai.tools.SearchRecordsTool
search_records: free-text record search (RecordSearchAction - and so any
record search provider, e.g. Quick Search), as the current user, over the
readable tables whose values the assistant may see.
A table is searched only if its exposure allows values and none of its
search fields is NONE (a match on an unexposed field would reveal its
content). Record labels are only sent when every label field is exposed
with VALUES (else "{table label} {id}"). Tables named in the input that are
not searchable are silently skipped (as RecordSearchAction does), so a
caller can't probe which tables exist.
-
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
-
SearchRecordsTool
public SearchRecordsTool()
-
-
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
-