Class SearchRecordsTool

java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.tools.AbstractAiTool
com.kingsrook.qqq.backend.core.actions.ai.tools.SearchRecordsTool

public class SearchRecordsTool extends AbstractAiTool
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.